/* ─────────────────────────────────────────────────────────────
   HeadlineBuzz Marketing Site — styles.css
   Design system matching the iOS app aesthetic
   ───────────────────────────────────────────────────────────── */

/* ── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand */
  --gold:         #C5A341;
  --gold-light:   #E8C46A;
  --gold-dim:     #8A7230;
  --gold-glow:    rgba(197, 163, 65, 0.25);
  --gold-glow-sm: rgba(197, 163, 65, 0.12);

  /* Backgrounds — warm dark (matches app dark theme: gold×0.25) */
  --bg:           #100D07;
  --bg-1:         #181309;
  --bg-2:         #211A0D;
  --bg-3:         #2A2211;
  --bg-glass:     rgba(255, 245, 210, 0.04);
  --bg-glass-2:   rgba(255, 245, 210, 0.07);
  --border:       rgba(255, 245, 210, 0.09);
  --border-gold:  rgba(197, 163, 65, 0.25);

  /* Text */
  --text:         #F5F0E8;
  --text-2:       rgba(245, 240, 232, 0.72);
  --text-3:       rgba(245, 240, 232, 0.45);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font:         'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-gap: 120px;
  --container:   1160px;

  /* Radius */
  --r-sm:  10px;
  --r-md:  18px;
  --r-lg:  28px;
  --r-xl:  40px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-phone: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-card:  0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-gold:  0 0 40px rgba(197,163,65,0.2);
}

/* ── LIGHT MODE (system) ───────────────────────────────────────── */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:           #FBF6EC;
    --bg-1:         #F3EBD6;
    --bg-2:         #E9DFBF;
    --bg-3:         #DDD1A8;
    --bg-glass:     rgba(0, 0, 0, 0.035);
    --bg-glass-2:   rgba(0, 0, 0, 0.065);
    --border:       rgba(0, 0, 0, 0.09);
    --border-gold:  rgba(160, 125, 35, 0.30);

    --text:   #1C1812;
    --text-2: rgba(28, 24, 18, 0.68);
    --text-3: rgba(28, 24, 18, 0.42);

    --gold:         #8A6E20;
    --gold-light:   #B08C32;
    --gold-dim:     #6A5418;
    --gold-glow:    rgba(138, 110, 32, 0.18);
    --gold-glow-sm: rgba(138, 110, 32, 0.09);

    --shadow-phone: 0 24px 60px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,0,0,0.07);
    --shadow-card:  0 4px 20px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.05);
    --shadow-gold:  0 0 40px rgba(138,110,32,0.15);
  }

  :root:not([data-theme="dark"]) .nav.scrolled {
    background: rgba(251,246,236,0.90) !important;
    border-bottom-color: var(--border) !important;
  }

  :root:not([data-theme="dark"]) .hero-grain { opacity: 0.25; }
  :root:not([data-theme="dark"]) .phone-frame { background: #1C1C1E !important; }

  :root:not([data-theme="dark"]) .nav-links a,
  :root:not([data-theme="dark"]) .nav-links a:visited { color: var(--text); }
  :root:not([data-theme="dark"]) .nav-links a:hover,
  :root:not([data-theme="dark"]) .nav-links a.nav-active { color: var(--gold); }
  :root:not([data-theme="dark"]) .theme-toggle { color: var(--text); border-color: rgba(0,0,0,0.18); }
  :root:not([data-theme="dark"]) .source-chip { color: var(--text); border-color: rgba(0,0,0,0.14); }
  :root:not([data-theme="dark"]) .section-tag { color: var(--gold-dim); }
  :root:not([data-theme="dark"]) .sources-label { color: rgba(28, 24, 18, 0.55); }
}

/* ── MANUAL LIGHT MODE override ────────────────────────────────── */
[data-theme="light"] {
  --bg:           #FBF6EC;
  --bg-1:         #F3EBD6;
  --bg-2:         #E9DFBF;
  --bg-3:         #DDD1A8;
  --bg-glass:     rgba(0, 0, 0, 0.035);
  --bg-glass-2:   rgba(0, 0, 0, 0.065);
  --border:       rgba(0, 0, 0, 0.09);
  --border-gold:  rgba(160, 125, 35, 0.30);

  --text:   #1C1812;
  --text-2: rgba(28, 24, 18, 0.68);
  --text-3: rgba(28, 24, 18, 0.42);

  --gold:         #8A6E20;
  --gold-light:   #B08C32;
  --gold-dim:     #6A5418;
  --gold-glow:    rgba(138, 110, 32, 0.18);
  --gold-glow-sm: rgba(138, 110, 32, 0.09);

  --shadow-phone: 0 24px 60px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,0,0,0.07);
  --shadow-card:  0 4px 20px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.05);
  --shadow-gold:  0 0 40px rgba(138,110,32,0.15);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(251,246,236,0.90) !important;
  border-bottom-color: var(--border) !important;
}
[data-theme="light"] .hero-grain { opacity: 0.25; }
[data-theme="light"] .phone-frame { background: #1C1C1E !important; }

/* Light mode readability improvements */
[data-theme="light"] .nav-links a,
[data-theme="light"] .nav-links a:visited {
  color: var(--text);
}
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.nav-active {
  color: var(--gold);
}
[data-theme="light"] .theme-toggle {
  color: var(--text);
  border-color: rgba(0,0,0,0.18);
}
[data-theme="light"] .source-chip {
  color: var(--text);
  border-color: rgba(0,0,0,0.14);
}
[data-theme="light"] .section-tag {
  color: var(--gold-dim);
}
[data-theme="light"] .sources-label {
  color: rgba(28, 24, 18, 0.55);
}

/* ── MANUAL DARK MODE override ─────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #100D07;
  --bg-1:         #181309;
  --bg-2:         #211A0D;
  --bg-3:         #2A2211;
  --bg-glass:     rgba(255, 245, 210, 0.04);
  --bg-glass-2:   rgba(255, 245, 210, 0.07);
  --border:       rgba(255, 245, 210, 0.09);
  --border-gold:  rgba(197, 163, 65, 0.25);

  --text:         #F5F0E8;
  --text-2:       rgba(245, 240, 232, 0.72);
  --text-3:       rgba(245, 240, 232, 0.45);

  --gold:         #C5A341;
  --gold-light:   #E8C46A;
  --gold-dim:     #8A7230;
  --gold-glow:    rgba(197, 163, 65, 0.25);
  --gold-glow-sm: rgba(197, 163, 65, 0.12);

  --shadow-phone: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-card:  0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-gold:  0 0 40px rgba(197,163,65,0.2);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── ACCESSIBILITY UTILITIES ──────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--gold);
  color: #0A0A0A;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--r-full);
  transition: top 0.15s;
}
.skip-link:focus {
  top: 16px;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-full);
}

/* ── LAYOUT ───────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: var(--section-gap) 0;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: var(--font);
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.section-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 64px;
}

.section-body {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 40px;
}

.gold-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-sm  { font-size: 14px; padding: 10px 20px; }
.btn-lg  { font-size: 17px; padding: 16px 32px; }
.btn-xl  { font-size: 19px; padding: 20px 44px; }

.btn-gold {
  background: linear-gradient(135deg, #C5A341, #E8C46A, #C5A341);
  background-size: 200% 100%;
  color: #0A0A0A;
}
.btn-gold:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(197,163,65,0.4);
}
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-glass-2);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn-ghost { border-color: rgba(0,0,0,0.18); }
  :root:not([data-theme="dark"]) .btn-ghost:hover { border-color: rgba(0,0,0,0.28); background: rgba(0,0,0,0.05); }
}
[data-theme="light"] .btn-ghost { border-color: rgba(0,0,0,0.18); }
[data-theme="light"] .btn-ghost:hover { border-color: rgba(0,0,0,0.28); background: rgba(0,0,0,0.05); }

/* ── THEME TOGGLE ─────────────────────────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-glass);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  color: var(--text-2);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-glass-2);
  border-color: var(--border-gold);
  color: var(--gold);
  transform: rotate(20deg);
}
.theme-icon {
  width: 18px;
  height: 18px;
  transition: opacity 0.2s, transform 0.2s;
}

/* Sun shown in dark mode (click to go light), Moon shown in light mode (click to go dark) */
.theme-icon-sun  { display: block; }
.theme-icon-moon { display: none; }

/* When in light theme: show moon icon */
[data-theme="light"] .theme-icon-sun  { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-icon-sun  { display: none; }
  :root:not([data-theme="dark"]) .theme-icon-moon { display: block; }
}

/* ── SCROLL REVEAL ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.reveal-delay-1 { transition-delay: 0.08s; }
.reveal.reveal-delay-2 { transition-delay: 0.16s; }
.reveal.reveal-delay-3 { transition-delay: 0.24s; }
.reveal.reveal-delay-4 { transition-delay: 0.32s; }

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

/* ── PHONE MOCKUP ─────────────────────────────────────────────── */
.phone-mockup {
  position: relative;
  display: inline-block;
}

.phone-frame {
  position: relative;
  background: #1C1C1E;
  border-radius: 52px;
  padding: 14px 10px 18px;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}
.phone-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
  z-index: 1;
}

.phone-screen {
  border-radius: 40px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 28px;
  background: #1C1C1E;
  border-radius: 0 0 18px 18px;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
}

.phone-home-indicator {
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  margin: 10px auto 0;
}

.phone-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at 50% 80%, var(--gold-glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Hero mockup */
.phone-mockup-hero .phone-frame {
  width: 300px;
}
.phone-mockup-hero .phone-screen {
  height: 560px;
}

/* Medium */
.phone-mockup-md .phone-frame {
  width: 220px;
}
.phone-mockup-md .phone-screen {
  height: 420px;
}

/* Small */
.phone-mockup-sm .phone-frame {
  width: 180px;
}
.phone-mockup-sm .phone-screen {
  height: 340px;
}

/* ── DEVICE SHELL (image-overlay approach) ────────────────────── */
/*
  iPhone 16 Pro frame: 1350 × 2760 px
  Screen area measured from pixel analysis (transparent region):
    Screen: 1206×2622 at position (72, 69)
    top: 2.5%    left:  5.333%
    width: 89.333%  height: 95.0%
    border-radius: ~11% / ~5% (continuous curvature corners)
*/
.device-shell {
  position: relative;
  display: inline-block;
  width: 300px;
}

.device-frame {
  width: 100%;
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.55))
          drop-shadow(0 0 40px rgba(197,163,65,0.15));
}

.device-screen {
  position: absolute;
  top:    2.5%;
  left:   5.333%;
  width:  89.333%;
  height: 95.0%;
  object-fit: cover;
  object-position: top center;
  border-radius: 11% / 5%;
  z-index: 1;
  display: block;
}

/* Size variants */
.device-sm      { width: 210px; }
.device-md      { width: 220px; }
.device-feature { width: 180px; }

/* ── NAVIGATION ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(16,13,7,0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-inner .nav-right { margin-left: auto; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-wordmark {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--font);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:visited { color: var(--text-2); }
.nav-links a:hover,
.nav-links a.nav-active { color: var(--text); }
.nav-links a.nav-active { font-weight: 600; }

.nav-cta { margin-left: 8px; }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
}
.hero-glow-1 {
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(197,163,65,0.18) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.hero-glow-2 {
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(197,163,65,0.1) 0%, transparent 70%);
  bottom: -100px; left: -150px;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  flex: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

/* ── HERO MASCOT ──────────────────────────────────────────────── */
.hero-mascot-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-mascot {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(197,163,65,0.3));
  animation: mascot-float 3.5s ease-in-out infinite;
}
@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197,163,65,0.12);
  border: 1px solid rgba(197,163,65,0.3);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0;
  font-family: var(--font);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-headline .gold-text {
  font-style: italic;
  display: block;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font);
}
.hero-meta-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font);
}
.hero-meta-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.hero-device {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Hero phone glow + float animation */
.hero-device .device-shell {
  animation: float 6s ease-in-out infinite;
}

/* Hero light→dark mode crossfade */
.hero-screen-dark {
  opacity: 0;
  animation: hero-theme-switch 10s ease-in-out 2s infinite;
}

@keyframes hero-theme-switch {
  0%        { opacity: 0; }
  30%       { opacity: 0; }   /* hold on light for 3s */
  48%       { opacity: 1; }   /* fade in over 1.8s */
  72%       { opacity: 1; }   /* hold on dark for 2.4s */
  90%       { opacity: 0; }   /* fade out over 1.8s */
  100%      { opacity: 0; }   /* brief pause before repeat */
}

.phone-mockup-hero {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--text-3);
  border-radius: 50%;
  animation: scroll-bounce 2s ease infinite;
}
@keyframes scroll-bounce {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ── SOURCES BANNER ───────────────────────────────────────────── */
.sources-banner {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  overflow: hidden;
}
.sources-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  font-family: var(--font);
}
.sources-track-wrapper {
  overflow: hidden;
  position: relative;
}
.sources-track-wrapper::before,
.sources-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 10%;
  z-index: 2;
  pointer-events: none;
}
.sources-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-1), transparent);
}
.sources-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-1), transparent);
}
.sources-track {
  display: flex;
  gap: 12px;
  padding-right: 12px; /* closes the gap asymmetry so -50% lands exactly on copy 2 start */
  animation: marquee 60s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); } /* 4 copies → move exactly 1 copy width */
}
.source-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: border-color 0.3s;
  font-family: var(--font);
}

/* ── STORY SECTION ────────────────────────────────────────────── */
.story {
  background: var(--bg);
}
.story .section-sub { margin-bottom: 64px; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.story-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.story-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(197,163,65,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.story-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold), var(--shadow-card);
}
.story-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}
.story-icon svg {
  width: 100%;
  height: 100%;
}
.story-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.story-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── FEATURES ─────────────────────────────────────────────────── */
.features {
  background: var(--bg-1);
}

/* Bento container */
.features-bento {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Row 1: two equal showcase cards */
.feature-showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature-showcase {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
/* Subtle top shimmer accent */
.feature-showcase::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197,163,65,0.35) 50%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}
.feature-showcase:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.feature-showcase-content {
  flex: 1;
  min-width: 0;
  align-self: flex-start;
  padding: 36px 16px 28px 36px;
}
.feature-showcase-content h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-showcase-content p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

.feature-showcase-device {
  flex-shrink: 0;
  line-height: 0; /* remove baseline gap */
}
.device-showcase { width: 200px; }

/* Row 2: six compact capability tiles */
.feature-tiles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-tile {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197,163,65,0.2) 50%, transparent 100%);
  pointer-events: none;
}
.feature-tile:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.feature-tile:hover::before {
  background: linear-gradient(90deg, transparent 0%, rgba(197,163,65,0.45) 50%, transparent 100%);
}

.feature-tile-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(197,163,65,0.1);
  border: 1px solid rgba(197,163,65,0.2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.feature-tile-icon svg {
  width: 100%;
  height: 100%;
}

.feature-tile h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feature-tile p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Shared icon wrap (used in showcase content) */
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(197,163,65,0.1);
  border: 1px solid rgba(197,163,65,0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 11px;
}
.feature-icon-wrap svg {
  width: 100%;
  height: 100%;
}

/* ── SCREENS CAROUSEL ─────────────────────────────────────────── */
.screens {
  background: var(--bg);
}

.screens-carousel {
  position: relative;
  margin-top: 24px;
}

.screens-carousel-viewport {
  overflow: hidden;
  padding: 20px 0 56px;
  /* Edge fade via mask */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 80px,
    black calc(100% - 80px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 80px,
    black calc(100% - 80px),
    transparent 100%
  );
}

.screens-track {
  display: flex;
  gap: 28px;
  padding-left: 80px;
  will-change: transform;
  /* transition set by JS */
}

.screen-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.screen-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font);
}

/* Nav buttons */
.screens-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 28px));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1.5px solid var(--border-gold);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.screens-nav-btn svg { width: 22px; height: 22px; }
.screens-nav-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
  box-shadow: 0 0 24px rgba(197,163,65,0.4);
  transform: translateY(calc(-50% - 28px)) scale(1.08);
}
.screens-nav-prev { left: 16px; }
.screens-nav-next { right: 16px; }

/* Dot indicators */
.screens-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.screens-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.screens-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* ── DESIGN SECTION ───────────────────────────────────────────── */
.design {
  background: var(--bg-1);
}

.design-split {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
}

.design-phones {
  position: relative;
  height: 520px;
}
.design-phone {
  position: absolute;
}
.design-phone-back {
  top: 0;
  left: 80px;
  transform: rotate(-8deg);
  opacity: 0.7;
}
.design-phone-front {
  bottom: 0;
  left: 0;
  transform: rotate(4deg);
  z-index: 2;
}

.design-bullets {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.design-bullets li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.bullet-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.design-bullets strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.design-bullets p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}


/* ── ROADMAP ──────────────────────────────────────────────────── */
.roadmap {
  background: var(--bg);
}

.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 64px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold) 0%, rgba(197,163,65,0.3) 50%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 64px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 4px;
}
.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--gold);
  position: relative;
  z-index: 2;
}
.timeline-dot-dim {
  border-color: rgba(197,163,65,0.3);
}
.timeline-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: var(--gold);
  font-weight: 800;
  line-height: 1;
}
.timeline-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-glow);
  animation: pulse-ring 2.5s ease infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

.timeline-content {
  padding-left: 16px;
}
.timeline-phase {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-family: var(--font);
}
.timeline-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.timeline-desc {
  font-size: 16px;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.timeline-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: var(--font);
}
.timeline-status-done {
  background: rgba(40, 200, 100, 0.12);
  color: #5FD080;
  border: 1px solid rgba(40,200,100,0.25);
}
.timeline-status-active {
  background: rgba(197,163,65,0.12);
  color: var(--gold);
  border: 1px solid rgba(197,163,65,0.3);
  animation: status-pulse 3s ease infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197,163,65,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(197,163,65,0); }
}
.timeline-status-soon {
  background: rgba(100,100,120,0.15);
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* ── TESTIMONIALS ─────────────────────────────────────────────── */
.testimonials {
  background: var(--bg-1);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.quote-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.quote-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}
.quote-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
  flex: 1;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-avatar {
  width: 38px;
  height: 38px;
  background: rgba(197,163,65,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
  font-family: var(--font);
}
.quote-author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.quote-author span {
  font-size: 12px;
  color: var(--text-3);
}

/* ── FINAL CTA ────────────────────────────────────────────────── */
.cta-final {
  position: relative;
  background: var(--bg-1);
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(197,163,65,0.1) 0%, transparent 65%);
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

/* ── CTA MASCOT ───────────────────────────────────────────────── */
.cta-mascot-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 32px;
}

.cta-mascot {
  position: absolute;
  bottom: -8px;
  left: -128px;
  width: 136px;
  height: 136px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(197,163,65,0.35));
  animation: mascot-float 3.5s ease-in-out infinite 0.5s;
}

.cta-mascot-solo {
  position: relative;
  bottom: auto;
  left: auto;
  width: 120px;
  height: 120px;
}

.cta-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(197,163,65,0.25);
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 44px;
}

.cta-actions { margin-bottom: 52px; }

.notify-form { max-width: 480px; margin: 0 auto; }
.notify-label {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 12px;
  font-family: var(--font);
}
.notify-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.notify-input {
  flex: 1;
  background: var(--bg-glass-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}
.notify-input::placeholder { color: var(--text-3); }
.notify-input:focus {
  border-color: rgba(197,163,65,0.5);
  background: var(--bg-glass-2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(197,163,65,0.15);
}
.notify-privacy {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font);
}
.notify-thanks {
  font-size: 14px;
  color: #5FD080;
  margin-top: 12px;
  font-family: var(--font);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.footer-wordmark {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-2);
  font-family: var(--font);
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.2s;
  font-family: var(--font);
}
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--font);
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  font-family: var(--font-display);
}

/* ── FEATURES HEADER MASCOT ───────────────────────────────────── */
.features-header {
  position: relative;
  display: inline-block;
  max-width: 640px;
  margin-bottom: 64px;
}
.features-mascot {
  position: absolute;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  width: 128px;
  height: 128px;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 4px 12px rgba(197,163,65,0.25));
  animation: mascot-float 4s ease-in-out infinite 1s;
}
@media (max-width: 960px) {
  .features-mascot { display: none; }
}

/* ── FOOTER MASCOT ────────────────────────────────────────────── */
.footer-mascot-wrap {
  display: flex;
  justify-content: center;
}
.footer-mascot {
  width: 88px;
  height: 88px;
  object-fit: contain;
  opacity: 0.7;
  filter: drop-shadow(0 2px 8px rgba(197,163,65,0.2));
  transition: opacity 0.2s, transform 0.2s;
}
.footer-mascot:hover {
  opacity: 1;
  transform: translateY(-2px) rotate(5deg);
}

/* ── RESPONSIVE: TABLET ───────────────────────────────────────── */
@media (max-width: 960px) {

  :root { --section-gap: 88px; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding-top: 48px;
  }
  .hero-headline { font-size: clamp(40px, 8vw, 60px); }
  .hero-sub { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }

  .story-grid { grid-template-columns: 1fr; }

  .feature-showcase-row { grid-template-columns: 1fr; }
  .feature-showcase { flex-direction: column; align-items: stretch; }
  .feature-showcase-content { align-self: auto; padding: 28px 28px 20px; }
  .feature-showcase-device { display: flex; justify-content: center; padding-bottom: 0; }
  .device-showcase { width: 160px; }
  .feature-tiles-row { grid-template-columns: repeat(2, 1fr); }

  .design-split { grid-template-columns: 1fr; }
  .design-phones { display: none; }

  .quotes-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }

  .screens-nav-prev { left: 8px; }
  .screens-nav-next { right: 8px; }
}

/* ── RESPONSIVE: MOBILE ───────────────────────────────────────── */
@media (max-width: 600px) {

  :root { --section-gap: 72px; }

  .nav-inner { padding: 0 16px; }
  .nav-cta { font-size: 13px; padding: 9px 16px; }

  .hero-headline { font-size: clamp(36px, 10vw, 52px); }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { font-size: 16px; padding: 14px 28px; }

  .section-headline { font-size: clamp(30px, 8vw, 44px); }
  .section-sub { font-size: 16px; }

  .phone-mockup-hero .phone-frame { width: 240px; }
  .phone-mockup-hero .phone-screen { height: 448px; }

  .device-sm { width: 170px; }
  .screens-nav-btn { width: 40px; height: 40px; }
  .screens-nav-btn svg { width: 18px; height: 18px; }
  .phone-mockup-sm .phone-frame { width: 150px; }
  .phone-mockup-sm .phone-screen { height: 282px; }
  .feature-tiles-row { grid-template-columns: 1fr; }

  .timeline { padding-left: 32px; }
  .timeline::before { left: 7px; }
  .timeline-marker { left: -32px; }
  .timeline-dot { width: 18px; height: 18px; }

  .footer-top { flex-direction: column; gap: 24px; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .notify-input-row { flex-direction: column; }

  .cta-actions .btn-xl { font-size: 16px; padding: 16px 28px; }
}

/* ── REDUCED MOTION ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-device .device-shell,
  .phone-mockup-hero,
  .sources-track,
  .hero-badge-dot,
  .timeline-pulse,
  .timeline-status-active,
  .scroll-dot {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
