/* ============================================================
   Stay Vault Days — Design System
   Dark luxury: space-indigo + passport-gold
   Fraunces (display) + Manrope (body)
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-0: #fafafb;
  --bg-1: #f1f3f9;
  --bg-2: #ffffff;

  /* Text */
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;

  /* Accents */
  --gold: #b07d18;
  --gold-fill: #f2c879;
  --gold-deep: #8a6212;
  --indigo: #6366f1;
  --indigo-soft: #4f46e5;

  /* Status */
  --green: #0f9d76;
  --amber: #b45309;
  --red: #dc2626;

  /* Surfaces */
  --card-bg: #ffffff;
  --card-border: rgba(15,23,42,0.10);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md: 0 10px 30px rgba(15,23,42,0.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,0.12);
  --card-border-hover: rgba(99,102,241,0.45);

  /* Geometry */
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Page-level atmospheric glows */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
}
body::before {
  top: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(79, 108, 255, 0.16), transparent 70%);
}
body::after {
  bottom: -15%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(242, 200, 121, 0.08), transparent 70%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 460;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(242, 200, 121, 0.0) 8%,
    rgba(242, 200, 121, 0.35) 50%,
    rgba(242, 200, 121, 0.0) 92%,
    transparent);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-deep);
  opacity: 0.7;
}
.eyebrow.center::before { display: none; }

/* ---------- Headlines ---------- */
.h-xl { font-size: clamp(40px, 6vw, 76px); }
.h-lg { font-size: clamp(34px, 4.6vw, 56px); }
.h-md { font-size: clamp(28px, 3.4vw, 40px); }

.lead {
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--muted);
  line-height: 1.7;
}

.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 15px 26px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, #f7d894, var(--gold));
  color: #2a1d05;
  box-shadow: 0 10px 30px -10px rgba(242, 200, 121, 0.5);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(242, 200, 121, 0.65);
}
.btn-ghost {
  background: var(--card-bg);
  border-color: var(--card-border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
}
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---------- Store badges ---------- */
.badge-row { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.store-badge:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-small { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; line-height: 1.2; }
.store-badge .sb-big { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.25; }

/* ---------- Glass card ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.card:hover { border-color: var(--card-border-hover); }

/* ---------- Icon chip ---------- */
.icon-chip {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(242, 200, 121, 0.08);
  border: 1px solid rgba(242, 200, 121, 0.18);
  color: var(--gold);
}
.icon-chip svg { width: 24px; height: 24px; }

/* ---------- Scroll reveal (keyframe-based; transitions can stick
   at opacity:0 in some embedded engines, animations do not) ---------- */
.reveal { opacity: 0; will-change: opacity, transform; }
.reveal.in { animation: svdReveal 0.72s var(--ease) both; }
.reveal.in[data-d="1"] { animation-delay: 0.08s; }
.reveal.in[data-d="2"] { animation-delay: 0.16s; }
.reveal.in[data-d="3"] { animation-delay: 0.24s; }

@keyframes svdReveal {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal.in { animation: none !important; }
}

/* status colors */
.s-green { color: var(--green); }
.s-amber { color: var(--amber); }
.s-red   { color: var(--red); }
.s-indigo { color: var(--indigo-soft); }
.t-gold { color: var(--gold); }
.t-muted { color: var(--muted); }

/* ============================================================
   Light-mode overrides (2026-05-30) — neutralise the few
   hardcoded-dark sections so the whole site reads light & official.
   The globe stage stays dark on purpose: the light globe needs a
   dark backdrop to be visible.
   ============================================================ */
body { background: var(--bg-0); color: var(--text); }

.trust { background: var(--bg-1) !important; color: var(--text); }
.trust::before { opacity: 0.05 !important; }
.trust .source-card,
.trust .trust-note { background: var(--bg-2) !important; border: 1px solid var(--card-border); }

.problem-visual {
  background: radial-gradient(circle at 50% 40%, rgba(99,102,241,0.10), var(--bg-2)) !important;
}
.globe-section { background: var(--bg-0) !important; }
.globe-stage {
  background: radial-gradient(circle at 50% 35%, #1c2348, #0a0e26) !important;
  border: 1px solid var(--card-border);
}

/* Cards get a soft shadow instead of relying on a dark backdrop. */
.card, .price-card, .problem-card, .feature-card, .faq-item {
  box-shadow: var(--shadow-sm);
}

/* Gold buttons keep the bright fill + dark text; ensure contrast. */
.btn-gold { background: var(--gold-fill); color: #2a1e05; }
.btn-ghost { color: var(--text); border: 1px solid var(--card-border); background: var(--bg-2); }

/* Eyebrows/accents that were gold-on-dark → readable bronze on light. */
.eyebrow { color: var(--gold); }

/* Starfield canvas is for the dark hero only — hide it on the light page. */
#starfield, .starfield { display: none !important; }

/* ===== Showcase band (app imagery) ===== */
.showcase { padding: 96px 0; background: var(--bg-1); }
.showcase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px;
}
.showcase-card {
  background: var(--bg-2); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.showcase-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.showcase-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.showcase-card figcaption {
  padding: 18px 20px; font-weight: 700; color: var(--text);
  font-family: var(--font-display); font-size: 18px;
}
@media (max-width: 860px) { .showcase-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* Single paid plan — center the one card. */
.price-grid.price-single { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

/* Hero globe: never show a bare white gap. Soft indigo halo behind the canvas
   so if WebGL/three.js is slow or unsupported, the area still looks intentional.
   Also cap reserved height on small screens. */
.hero-globe {
  min-height: 360px;
  overflow: visible;
  background: radial-gradient(circle at 50% 45%, rgba(99,102,241,0.10), transparent 68%);
}
.hero-globe #heroGlobe { width: 100%; height: 100%; min-height: 360px; overflow: visible; }
.hero-globe #heroGlobe canvas { display: block; }
@media (max-width: 860px) {
  .hero-globe { min-height: 300px; max-width: 360px; }
  .hero-globe #heroGlobe { min-height: 300px; }
}

/* ============ Cinematic video hero (Dubai flyover) ============ */
.hero--cinematic { position: relative; background: #05070f; }
.hero--cinematic .container { position: relative; z-index: 3; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
/* Daytime clip is bright: heavy scrim on the left under the copy, lighter on
   the right behind the globe, plus an overall dim so white text always reads. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,6,13,0.94) 0%, rgba(4,6,13,0.80) 38%, rgba(4,6,13,0.45) 72%, rgba(4,6,13,0.30) 100%),
    linear-gradient(0deg, rgba(4,6,13,0.70) 0%, rgba(4,6,13,0.10) 45%),
    rgba(4,6,13,0.28);
}
.hero--cinematic .starfield { z-index: 2; opacity: 0.30; }

/* Recolour the real hero typography for the dark backdrop. */
.hero--cinematic .eyebrow { color: #f2c879; }
.hero--cinematic .h-xl {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.45);
}
.hero--cinematic .lead {
  color: rgba(255,255,255,0.90);
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.hero--cinematic .hero-fine { color: rgba(255,255,255,0.78); }
.hero--cinematic .hero-fine .dot { background: rgba(255,255,255,0.5); }
.hero--cinematic .grad {
  background: linear-gradient(90deg, #d6c7ff, #b3c0ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Bigger, more prominent globe. */
.hero--cinematic .hero-globe { min-height: 460px; }
.hero--cinematic .hero-globe #heroGlobe { min-height: 460px; }
@media (max-width: 860px) {
  .hero--cinematic .hero-globe { min-height: 340px; }
  .hero--cinematic .hero-globe #heroGlobe { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero--cinematic { background: #05070f url(assets/video/dubai-hero.jpg) center/cover; }
}

/* ===== Overlay nav for the cinematic hero (transparent over dark video) ===== */
/* Until the user scrolls (.scrolled adds the light bg), the nav sits on the dark
   hero, so its text must be light. Scoped to the homepage via .nav--overlay so
   light-background pages keep their dark nav text. */
.nav--overlay:not(.scrolled) .brand-name { color: #fff; }
.nav--overlay:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.85); }
.nav--overlay:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav--overlay:not(.scrolled) .nav-toggle { color: #fff; }
.nav--overlay:not(.scrolled) .brand-seal circle,
.nav--overlay:not(.scrolled) .brand-seal ellipse,
.nav--overlay:not(.scrolled) .brand-seal line { stroke: #f2c879; }

/* Hero store badges sit on the dark video — give them a frosted, clearly-visible
   pill instead of near-black-on-dark. White text stays readable. */
.hero--cinematic .store-badge {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(8px);
}
.hero--cinematic .store-badge:hover { background: rgba(255,255,255,0.22); }
.hero--cinematic .store-badge .sb-small { color: rgba(255,255,255,0.75); }
.hero--cinematic .store-badge .sb-big { color: #ffffff; }
