/* ═══════════════════════════════════════════════════════════════
   Airbook Enterprise — Ultra Luxury Presentation
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-deep: #0a0a0f;
  --bg-card: rgba(18, 18, 28, 0.72);
  --gold: #d4af37;
  --gold-light: #f0d78c;
  --gold-dim: rgba(212, 175, 55, 0.15);
  --champagne: #e8dcc4;
  --wa-green: #25D366;
  --wa-green-glow: rgba(37, 211, 102, 0.35);
  --text-primary: #faf8f5;
  --text-secondary: rgba(250, 248, 245, 0.72);
  --text-muted: rgba(250, 248, 245, 0.45);
  --glass-border: rgba(212, 175, 55, 0.22);
  --glass-shine: rgba(255, 255, 255, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --topbar-h: 56px;
  --nav-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  height: 100dvh;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ── Ambient Background ── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 20s var(--ease-in-out) infinite;
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
  top: -15%;
  right: -20%;
  animation-delay: 0s;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  max-width: 400px;
  max-height: 400px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.12) 0%, transparent 70%);
  bottom: 10%;
  left: -15%;
  animation-delay: -7s;
}

.orb-3 {
  width: 40vw;
  height: 40vw;
  max-width: 320px;
  max-height: 320px;
  background: radial-gradient(circle, rgba(120, 80, 200, 0.15) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -14s;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ── Top Bar ── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  padding: 0 20px;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--gold);
}

.brand-icon svg {
  width: 18px;
  height: 18px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-counter {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.slide-counter .sep {
  margin: 0 4px;
  opacity: 0.4;
}

#currentSlide {
  color: var(--gold);
  font-weight: 600;
}

/* ── Deck & Slides ── */
.deck {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--topbar-h) + 8px) 16px calc(24px + var(--safe-bottom));
  opacity: 0;
  visibility: hidden;
  transform: translateY(48px) scale(0.98);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo),
    visibility 0.7s;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.slide.exit-up {
  transform: translateY(-48px) scale(0.98);
  opacity: 0;
}

.slide.exit-down {
  transform: translateY(48px) scale(0.98);
  opacity: 0;
}

.slide-inner {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  margin: 0 auto;
  padding-right: 28px;
}

/* ── Slide Content ── */
.slide-content {
  order: 1;
}

.slide-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--champagne) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-subtitle {
  font-size: clamp(0.9rem, 3.5vw, 1.05rem);
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.slide-desc {
  font-size: clamp(0.84rem, 3.2vw, 0.95rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: none;
}

/* ── Highlights ── */
.highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 10px 14px;
  background: var(--glass-shine);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s var(--ease-out-expo);
}

.highlights li:hover {
  border-color: var(--glass-border);
  transform: translateY(-2px);
}

.hl-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  border-radius: 8px;
  color: var(--gold);
}

.hl-icon svg {
  width: 16px;
  height: 16px;
}

/* ── Visual Frame ── */
.slide-visual {
  order: 2;
  flex-shrink: 0;
}

.visual-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 16px 32px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(212, 175, 55, 0.08);
  aspect-ratio: 16 / 9;
  max-height: 38vh;
}

.frame-glow {
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), transparent 40%, rgba(37, 211, 102, 0.15));
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s var(--ease-in-out);
}

.slide.active .visual-frame img {
  transform: scale(1.03);
}

.slide-inner--campaign {
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  padding: 0 12px;
  margin: 0 auto;
  gap: 0;
}

.slide--campaign {
  align-items: stretch;
  justify-content: center;
  padding-top: calc(var(--topbar-h) + 4px);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

@media (max-width: 767px) {
  .slide {
    padding-left: 12px;
    padding-right: 12px;
  }

  .slide-inner {
    max-width: none;
    padding-right: 0;
  }

  .slide--campaign {
    padding-bottom: calc(28px + var(--safe-bottom));
  }

  .slide--campaign .campaign-slide,
  .slide--campaign .campaign-slide .stage-wrap {
    flex: 1;
    min-height: 0;
    height: 100%;
    width: 100%;
  }

  .slide-inner--campaign {
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
}

.slide--campaign .slide-inner {
  max-width: none;
  padding-right: 0;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}

.slide.active .reveal {
  opacity: 1;
  transform: translateY(0);
}

.slide.active .reveal:nth-child(1) { transition-delay: 0.05s; }
.slide.active .reveal:nth-child(2) { transition-delay: 0.12s; }
.slide.active .reveal:nth-child(3) { transition-delay: 0.19s; }
.slide.active .reveal:nth-child(4) { transition-delay: 0.26s; }
.slide.active .reveal:nth-child(5) { transition-delay: 0.33s; }
.slide.active .reveal:nth-child(6) { transition-delay: 0.40s; }
.slide.active .reveal:nth-child(7) { transition-delay: 0.47s; }

/* ── Contact Actions ── */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-wa {
  background: linear-gradient(135deg, var(--wa-green), #128C7E);
  color: #fff;
  box-shadow: 0 8px 24px var(--wa-green-glow);
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--wa-green-glow);
}

.btn-call {
  background: var(--gold-dim);
  color: var(--gold-light);
  border: 1px solid var(--glass-border);
}

.btn-call:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.25);
}

.btn-email {
  background: var(--glass-shine);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-email:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border);
}

.contact-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Navigation (vertical) ── */
.nav-controls {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  padding: 12px 10px;
  padding-right: calc(10px + env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 100;
  background: none;
}

.nav-controls--hidden,
.nav-controls[hidden] {
  display: none !important;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.nav-btn svg {
  width: 20px;
  height: 20px;
}

.nav-btn:hover:not(:disabled) {
  background: var(--gold-dim);
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.2);
}

.nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.progress-dots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  padding: 0;
}

.dot.active {
  width: 8px;
  height: 28px;
  border-radius: 100px;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.dot:hover:not(.active) {
  background: rgba(212, 175, 55, 0.4);
}

/* ── Swipe Hint ── */
.swipe-hint {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: hintPulseVertical 2.5s ease-in-out infinite;
  z-index: 50;
  pointer-events: none;
  transition: opacity 0.5s;
}

.swipe-hint svg {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  transform: rotate(180deg);
}

.swipe-hint.hidden {
  opacity: 0;
}

@keyframes hintPulseVertical {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(-6px); }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 768px) {
  .slide-inner {
    max-width: 560px;
    gap: 24px;
  }

  .visual-frame {
    max-height: 42vh;
  }
}
