/* ═══════════════════════════════════════════════════════════════
   EPINOTE — Landing Page Styles
   2026 "Maison" luxury aesthetic
   Palette from mobile/src/theme/index.ts
   Design ref: Le Labo, Byredo, Aesop, Bottega Veneta
   ═══════════════════════════════════════════════════════════════ */

/* ── Cascade Layers ── */
@layer reset, tokens, base, components, utilities;

/* ── Animated Gradient Properties ── */
@property --shimmer-pos {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -50%;
}

/* ── Dark Theme (default) ── */
@layer tokens {
:root, [data-theme="dark"] {
  --color-primary: oklch(77% 0.05 55);
  --color-primary-rgb: 200, 185, 158;
  --stone: oklch(62% 0.04 50);
  --stone-rgb: 160, 140, 122;
  --earth: oklch(48% 0.04 52);
  --champagne: oklch(77% 0.05 55);
  --mauve-ash: oklch(52% 0.06 355);
  --ink: oklch(15% 0.01 52);

  --bg: oklch(10% 0.005 52);
  --surface: oklch(12% 0.005 52);
  --surface-elevated: oklch(15% 0.005 52);
  --card: oklch(11.5% 0.005 52);
  --text: oklch(95% 0.008 55);
  --text-secondary: oklch(62% 0.008 55);
  --text-tertiary: oklch(40% 0.007 55);
  --border: oklch(18% 0.006 52);
  --divider: oklch(15% 0.005 52);

  --color-success: oklch(66% 0.08 148);
  --color-warning: oklch(71% 0.08 75);
  --color-error: oklch(60% 0.10 22);
  --on-primary: oklch(15% 0.01 52);

  --glass: oklch(10% 0.005 52 / 0.92);
  --glass-border: oklch(77% 0.05 55 / 0.05);

  --gradient-primary: linear-gradient(135deg, oklch(48% 0.04 52), oklch(77% 0.05 55));
  --gradient-brand: linear-gradient(135deg, oklch(48% 0.04 52), oklch(62% 0.04 50), oklch(77% 0.05 55));
  --gradient-text: linear-gradient(135deg, oklch(77% 0.05 55) 0%, oklch(62% 0.04 50) 50%, oklch(52% 0.06 355) 100%);

  --note-top: oklch(66% 0.08 148);
  --note-heart: oklch(58% 0.09 22);
  --note-base: oklch(71% 0.08 75);
  --accent-amber: oklch(71% 0.08 75);
  --accent-purple: oklch(54% 0.07 305);
  --accent-blue: oklch(62% 0.06 230);
  --accent-teal: oklch(64% 0.06 190);

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.20);
  --shadow-md: 0 4px 12px oklch(0% 0 0 / 0.30);
  --shadow-lg: 0 12px 40px oklch(0% 0 0 / 0.40);
  --shadow-glow: 0 0 40px oklch(62% 0.04 50 / 0.08);

  --phone-bg: oklch(14% 0 0);
  --phone-screen: oklch(10% 0.005 52);
}

/* ── Light Theme ── */
[data-theme="light"] {
  --color-primary: oklch(62% 0.04 50);
  --color-primary-rgb: 160, 140, 122;
  --bg: oklch(98% 0.005 65);
  --surface: oklch(96% 0.006 65);
  --surface-elevated: oklch(100% 0 0);
  --card: oklch(100% 0 0);
  --text: oklch(15% 0.01 52);
  --text-secondary: oklch(48% 0.008 55);
  --text-tertiary: oklch(68% 0.007 55);
  --border: oklch(93% 0.007 65);
  --divider: oklch(95% 0.006 65);
  --color-success: oklch(58% 0.08 148);
  --color-warning: oklch(71% 0.08 75);
  --color-error: oklch(54% 0.10 22);
  --on-primary: oklch(100% 0 0);
  --glass: oklch(98% 0.005 65 / 0.88);
  --glass-border: oklch(0% 0 0 / 0.04);
  --gradient-primary: linear-gradient(135deg, oklch(48% 0.04 52), oklch(62% 0.04 50));
  --gradient-brand: linear-gradient(135deg, oklch(48% 0.04 52), oklch(62% 0.04 50), oklch(77% 0.05 55));
  --gradient-text: linear-gradient(135deg, oklch(48% 0.04 52) 0%, oklch(62% 0.04 50) 50%, oklch(52% 0.06 355) 100%);
  --note-top: oklch(58% 0.08 148);
  --note-heart: oklch(52% 0.06 355);
  --note-base: oklch(62% 0.04 50);
  --accent-amber: oklch(71% 0.08 75);
  --accent-purple: oklch(48% 0.07 305);
  --accent-blue: oklch(54% 0.06 230);
  --accent-teal: oklch(54% 0.06 190);
  --shadow-sm: 0 1px 2px oklch(15% 0.01 52 / 0.03);
  --shadow-md: 0 4px 12px oklch(15% 0.01 52 / 0.05);
  --shadow-lg: 0 12px 40px oklch(15% 0.01 52 / 0.07);
  --shadow-glow: 0 0 40px oklch(62% 0.04 50 / 0.06);
  --phone-bg: oklch(90% 0.006 65);
  --phone-screen: oklch(98% 0.005 65);
}

/* ── Design Tokens ── */
:root {
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px; --sp-xl: 32px;
  --sp-2xl: 48px; --sp-3xl: 64px; --sp-4xl: 96px;
  --sp-section: clamp(5rem, 10vw, 10rem);

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px;
  --radius-2xl: 32px; --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elegant: cubic-bezier(0.2, 0, 0, 1);
  --dur: 0.4s; --dur-fast: 0.2s;
}
} /* end @layer tokens */

/* ── Reset ── */
@layer reset {
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
}
/* ── Base ── */
@layer base {
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--text);
  line-height: 1.7; overflow-x: hidden; scrollbar-gutter: stable;
  transition: background 0.5s var(--ease-elegant), color 0.5s var(--ease-elegant);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
p { text-wrap: pretty; }
} /* end @layer base */

/* ── Components ── */
@layer components {
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-lg); }
.section { padding: var(--sp-section) 0; }

/* ══ Skip Link ══ */
.skip-link {
  position: absolute; top: -100%; left: var(--sp-md);
  padding: var(--sp-sm) var(--sp-md); border-radius: var(--radius-md);
  background: var(--color-primary); color: var(--on-primary);
  font-size: 0.875rem; font-weight: 600; z-index: 9999;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--sp-md); }

/* ── SVG Icons ── */
.icon { width: 1.25rem; height: 1.25rem; color: currentColor; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon--xs { width: 0.75rem; height: 0.75rem; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--feature { width: 1.5rem; height: 1.5rem; color: var(--color-primary); }
.icon--xl { width: 2.5rem; height: 2.5rem; position: relative; z-index: 1; }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); letter-spacing: -0.03em; font-weight: 300; }
h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 500; }

.overline {
  display: inline-block; font-family: var(--font-body); font-weight: 500;
  font-size: 0.6875rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--stone); margin-bottom: var(--sp-lg);
}
.section-title { margin-bottom: var(--sp-xl); }
.accent-text {
  background: var(--gradient-text); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}

/* Gold shimmer on hero title accent */
.hero__title-accent {
  background: linear-gradient(
    120deg,
    var(--earth) 0%,
    var(--champagne) var(--shimmer-pos),
    var(--earth) 100%
  );
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4s ease-in-out infinite;
}
@keyframes goldShimmer {
  0%   { --shimmer-pos: -50%; }
  50%  { --shimmer-pos: 150%; }
  100% { --shimmer-pos: -50%; }
}

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 1px;
  background: var(--gradient-brand); z-index: 200;
  transform-origin: left; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: progressBar linear both;
    animation-timeline: scroll();
    transform: unset;
  }
  @keyframes progressBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ═══════ THEME TOGGLE ═══════ */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: all var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--stone); }
.theme-toggle__icon { position: absolute; width: 16px; height: 16px; transition: all 0.4s var(--ease-out); }
.theme-toggle__icon--sun { opacity: 0; transform: translateY(16px) rotate(-90deg); }
.theme-toggle__icon--moon { opacity: 1; transform: translateY(0) rotate(0); color: var(--text-secondary); }
[data-theme="light"] .theme-toggle__icon--sun { opacity: 1; transform: translateY(0) rotate(0); color: var(--text-secondary); }
[data-theme="light"] .theme-toggle__icon--moon { opacity: 0; transform: translateY(-16px) rotate(90deg); }

/* ═══════ NAVIGATION ═══════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background 0.4s var(--ease-elegant), backdrop-filter 0.4s var(--ease-elegant);
}
.nav--scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}
.nav__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: var(--sp-lg) var(--sp-lg); }
.nav__logo { display: flex; align-items: center; gap: var(--sp-sm); }
.nav__logo-img { border-radius: var(--radius-sm); transition: filter 0.4s var(--ease-out); }
[data-theme="light"] .nav__logo-img,
[data-theme="light"] .footer__logo { filter: brightness(0); }
.nav__logo-text { font-family: var(--font-heading); font-weight: 500; font-size: 1.125rem; letter-spacing: 0.02em; }
.nav__links { display: flex; gap: var(--sp-2xl); }
.nav__link {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-secondary); transition: color var(--dur-fast); position: relative;
}
.nav__link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-elegant);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: var(--sp-md); }
.nav__cta {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 24px; border: 1px solid var(--border); border-radius: var(--radius-full);
  color: var(--text); transition: all var(--dur-fast) var(--ease-out);
}
.nav__cta:hover { border-color: var(--stone); color: var(--color-primary); }

/* ══ Hamburger ══ */
.nav__hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; border-radius: 50%; background: transparent;
  border: 1px solid var(--border); padding: 8px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.nav__hamburger:hover { border-color: var(--stone); }
.nav__hamburger span {
  display: block; width: 100%; height: 1px; background: var(--text);
  border-radius: 1px; transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══ Mobile Menu (native <dialog>) ══ */
dialog.mobile-menu {
  border: none; padding: 0; background: transparent; max-width: none; max-height: none;
  position: fixed; inset: 0; z-index: 140;
  width: 100vw; height: 100dvh; margin: 0;
  overflow: hidden;
  /* disable browser-native open/close animation */
  animation: none !important;
  transition: none !important;
}
dialog.mobile-menu::backdrop { background: transparent; animation: none !important; }
.mobile-menu__backdrop {
  position: absolute; inset: 0;
  background: oklch(0% 0 0 / 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.35s var(--ease-out);
}
.mobile-menu--open .mobile-menu__backdrop { opacity: 1; }
/* Effet glass plus marqué */
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; width: min(312px, 82vw); height: 100dvh;
  background: var(--glass, oklch(10% 0.005 52 / 0.92));
  border-left: 1.5px solid var(--glass-border, oklch(77% 0.05 55 / 0.09));
  box-shadow: 0 8px 40px oklch(0% 0 0 / 0.22), 0 1.5px 0 oklch(77% 0.05 55 / 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  display: flex; flex-direction: column; gap: var(--sp-xl);
  padding: clamp(1rem, 2vw, 1.25rem);
  overscroll-behavior: contain;
  opacity: 0;
  transform: translate3d(calc(100% + 24px),0,0);
  transition: transform 0.38s cubic-bezier(0.23,1,0.32,1), opacity 0.25s var(--ease-out);
}
@starting-style {
  .mobile-menu--open .mobile-menu__panel { opacity: 0; transform: translate3d(calc(100% + 24px),0,0); }
}
.mobile-menu--open .mobile-menu__panel {
   transform: translate3d(0,0,0);
   opacity: 1;
 }
 
.mobile-menu__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-md); padding-bottom: var(--sp-md);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}
.mobile-menu__eyebrow {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-tertiary);
}
.mobile-menu__close {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  position: relative; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-elevated) 88%, transparent);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.mobile-menu__close:hover {
  border-color: var(--stone); transform: rotate(90deg);
  background: color-mix(in srgb, var(--surface-elevated) 100%, transparent);
}
.mobile-menu__close span {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 1px;
  background: var(--text); border-radius: 999px;
}
.mobile-menu__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-menu__nav {
  display: flex; flex-direction: column; gap: var(--sp-xs);
  padding-top: var(--sp-xs);
}
.mobile-menu__link {
  font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.35rem, 1.15rem + 1vw, 1.7rem);
  color: var(--text-secondary); transition: color var(--dur-fast), transform 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
  letter-spacing: -0.01em; line-height: 1.1; padding: 0.5rem 0;
  opacity: 0; transform: translateX(24px) scale(0.98);
  will-change: opacity, transform;
}
.mobile-menu--open .mobile-menu__link {
  opacity: 1; transform: translateX(0) scale(1);
}
/* Stagger plus fluide, indexé sur l'ordre */
.mobile-menu__link { transition-delay: 0s; }
.mobile-menu__link:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu__link:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu__link:nth-child(3) { transition-delay: 0.26s; }
.mobile-menu__link:nth-child(4) { transition-delay: 0.34s; }
.mobile-menu__link:nth-child(5) { transition-delay: 0.42s; }
.mobile-menu__link:nth-child(6) { transition-delay: 0.50s; }
.mobile-menu__link:nth-child(7) { transition-delay: 0.58s; }
.mobile-menu__link.active,
.mobile-menu__link[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
}
.mobile-menu__link.active::before,
.mobile-menu__link[aria-current="page"]::before {
  content: '';
  position: absolute;
  left: -1.2em;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px 2px oklch(77% 0.05 55 / 0.18);
}
.mobile-menu__link:hover { color: var(--text); }
.mobile-menu__link--cta {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border: 1px solid var(--border); border-radius: var(--radius-full);
  color: var(--text); margin-top: var(--sp-sm);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.mobile-menu__link--cta:hover { border-color: var(--stone); color: var(--color-primary); }

/* ═══════ HERO ═══════ */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 140px var(--sp-lg) var(--sp-4xl); position: relative; overflow: hidden;
}
.hero__glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--stone-rgb), 0.05) 0%, transparent 70%);
  top: -200px; left: -200px; pointer-events: none;
}
.hero__content { max-width: 540px; flex-shrink: 0; }
.hero__title { margin-bottom: var(--sp-xl); font-weight: 300; }
.hero__sub {
  font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem);
  color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--sp-xl);
  font-weight: 300;
}
.hero__proof { display: flex; align-items: center; gap: var(--sp-md); margin-top: var(--sp-xl); }
.hero__proof-dots { display: flex; }
.proof-dot {
  display: inline-block; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-elevated); border: 2px solid var(--bg); margin-right: -6px;
  position: relative;
}
.proof-dot:nth-child(1)::after,
.proof-dot:nth-child(2)::after,
.proof-dot:nth-child(3)::after,
.proof-dot:nth-child(4)::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; }
.proof-dot:nth-child(1)::after { background: var(--stone); }
.proof-dot:nth-child(2)::after { background: var(--mauve-ash); }
.proof-dot:nth-child(3)::after { background: var(--earth); }
.proof-dot:nth-child(4)::after { background: var(--champagne); }
.hero__proof-text { font-size: 0.75rem; color: var(--text-tertiary); letter-spacing: 0.02em; }
.hero__proof-text strong { color: var(--text-secondary); font-weight: 600; }
.hero__phone-wrap { flex-shrink: 0; perspective: 1200px; }

/* ═══════ PLATFORM BADGES ═══════ */
.platform-badges {
  display: flex; align-items: center; gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
.platform-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.5px;
  color: var(--text-secondary);
}
.platform-badge .icon { color: var(--text-tertiary); }
.platform-divider {
  width: 1px; height: 14px; background: var(--border);
}

/* ═══════ WAITLIST FORM ═══════ */
.waitlist__pill {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 4px;
  transition: all var(--dur-fast) var(--ease-out);
}
.waitlist__pill:focus-within { border-color: var(--stone); box-shadow: 0 0 0 3px rgba(var(--stone-rgb), 0.06); }
.waitlist__input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font-body); font-size: 0.875rem;
  font-weight: 300; padding: 12px 20px; min-width: 0; letter-spacing: 0.01em;
}
.waitlist__input::placeholder { color: var(--text-tertiary); }
.waitlist__btn {
  position: relative; background: var(--gradient-brand); color: #fff;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden;
  transition: all var(--dur-fast) var(--ease-out);
}
.waitlist__btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-100%); transition: transform 0.6s var(--ease-out);
}
.waitlist__btn:hover::after { transform: translateX(100%); }
.waitlist__btn:hover { box-shadow: 0 0 20px rgba(var(--stone-rgb), 0.15); transform: translateY(-1px); }
.waitlist__btn:active { transform: scale(0.98); }
.waitlist__btn-loading { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; }
.waitlist--loading .waitlist__btn-text { opacity: 0; }
.waitlist--loading .waitlist__btn-loading { display: flex; }
.waitlist__msg { font-size: 0.75rem; margin-top: var(--sp-sm); min-height: 18px; text-align: center; font-weight: 400; }
.waitlist__msg--success { color: var(--color-success); }
.waitlist__msg--error { color: var(--color-error); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 1.5px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════ iPHONE 16 PRO ═══════ */
.iphone {
  --pw: 280px; --ph: 580px; --pr: 44px; --sr: 38px; --iw: 100px; --ih: 28px;
  width: var(--pw); height: var(--ph); background: var(--phone-bg); border-radius: var(--pr);
  padding: 10px; position: relative;
  box-shadow: 0 0 0 0.5px rgba(var(--color-primary-rgb), 0.06), var(--shadow-lg);
  transition: transform 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
.iphone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 10; }
.iphone__dynamic-island { width: var(--iw); height: var(--ih); background: #000; border-radius: 20px; }
.iphone__screen {
  width: 100%; height: 100%; border-radius: var(--sr); background: var(--phone-screen);
  overflow: hidden; overflow-y: auto; position: relative;
  transition: background 0.5s var(--ease-out);
}
.iphone__screen::-webkit-scrollbar { display: none; }
.iphone__screen * { transition: background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), color 0.5s var(--ease-out); }
.iphone--tilted-left { transform: perspective(1200px) rotateY(10deg) scale(0.9); }
.iphone--center { transform: scale(1.05); z-index: 2; }
.iphone--tilted-right { transform: perspective(1200px) rotateY(-10deg) scale(0.9); }

/* ═══════ MOCKUP SCREENS ═══════ */
.mockup { padding: 50px 14px 0; font-size: 0.75rem; color: var(--text); min-height: 100%; display: flex; flex-direction: column; }
.mockup__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mockup__back, .mockup__share {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: 8px; border: 1px solid var(--border);
}
.mockup__title { font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.02em; }
.mockup__badge-ai {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.5625rem; background: var(--gradient-brand);
  padding: 3px 8px; border-radius: var(--radius-full); font-weight: 600; color: #fff;
}
.mockup__section-label {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.5625rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 8px;
}

/* Perfume Detail */
.mockup__hero-img { display: flex; justify-content: center; margin-bottom: 10px; }
.mockup__bottle-img {
  width: 80px; height: 80px; object-fit: contain; border-radius: var(--radius-md);
  background: var(--surface); padding: 8px;
}
.mockup__name { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 500; text-align: center; margin-bottom: 2px; letter-spacing: 0.02em; }
.mockup__brand { text-align: center; color: var(--text-tertiary); font-size: 0.5625rem; margin-bottom: 8px; letter-spacing: 0.05em; text-transform: uppercase; }
.mockup__meta-row { display: flex; justify-content: center; gap: 4px; margin-bottom: 10px; }
.mockup__meta-badge {
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.5px;
  padding: 2px 8px; border-radius: var(--radius-full);
  background: rgba(var(--color-primary-rgb), 0.06); color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

/* Stars */
.mockup__rating { display: flex; align-items: center; justify-content: center; gap: 3px; margin-bottom: 12px; }
.mockup__stars { display: flex; gap: 1px; }
.star-icon { width: 12px; height: 12px; fill: var(--text-tertiary); }
.star-icon--filled { fill: var(--accent-amber); }
/* .star-icon--half fill is applied via inline SVG linearGradient */
.mockup__rating-num { margin-left: 4px; color: var(--text-secondary); font-size: 0.625rem; font-weight: 500; }

/* Notes */
.mockup__notes-section { margin-bottom: 12px; }
.mockup__notes { display: flex; flex-wrap: wrap; gap: 3px; }
.note-chip {
  padding: 2px 8px; border-radius: var(--radius-full);
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.3px; border: 1px solid;
}
.note-chip--top { color: var(--note-top); background: rgba(115,168,125,0.08); border-color: rgba(115,168,125,0.15); }
.note-chip--heart { color: var(--note-heart); background: rgba(184,120,120,0.08); border-color: rgba(184,120,120,0.15); }
.note-chip--base { color: var(--note-base); background: rgba(200,169,106,0.08); border-color: rgba(200,169,106,0.15); }
[data-theme="light"] .note-chip--top { color: #6A8F73; background: rgba(106,143,115,0.06); border-color: rgba(106,143,115,0.12); }
[data-theme="light"] .note-chip--heart { color: #8C6E75; background: rgba(140,110,117,0.06); border-color: rgba(140,110,117,0.12); }
[data-theme="light"] .note-chip--base { color: #A08C7A; background: rgba(160,140,122,0.06); border-color: rgba(160,140,122,0.12); }

/* Pyramid */
.mockup__pyramid { margin-bottom: 12px; }
.pyramid-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.pyramid-label {
  width: 36px; text-align: center; font-size: 0.375rem; font-weight: 700; letter-spacing: 0.8px;
  padding: 2px 0; border-radius: 3px;
}
.pyramid-label--top { color: var(--note-top); background: rgba(115,168,125,0.1); }
.pyramid-label--heart { color: var(--note-heart); background: rgba(184,120,120,0.1); }
.pyramid-label--base { color: var(--note-base); background: rgba(200,169,106,0.1); }
.pyramid-card { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font-size: 0.5rem; font-weight: 500; }

/* Details Card */
.mockup__details-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 4px 0; margin-bottom: 12px;
}
.mockup__detail-row { display: flex; justify-content: space-between; padding: 4px 10px; font-size: 0.5rem; }
.mockup__detail-row span:first-child { color: var(--text-tertiary); letter-spacing: 0.3px; text-transform: uppercase; font-weight: 500; }
.mockup__detail-row span:last-child { font-weight: 600; }

/* Buy CTA */
.mockup__cta-area { text-align: center; margin-bottom: 12px; }
.mockup__buy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--gradient-brand); color: #fff;
  font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.5px;
  padding: 8px 20px; border-radius: var(--radius-full);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.mockup__buy-btn:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(var(--stone-rgb), 0.2); }
.mockup__via { display: block; font-size: 0.5rem; color: var(--text-secondary); margin-top: 4px; letter-spacing: 0.3px; font-weight: 500; }

/* Bottom Bar -- sticky at bottom of scroll */
.mockup__bottom-bar {
  display: flex; gap: 6px;
  position: sticky; bottom: 0; z-index: 5;
  padding: 8px 0 12px;
  background: var(--phone-screen);
  margin-top: auto;
  transition: background 0.5s var(--ease-out);
}
.mockup__action-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  flex: 1; padding: 8px 0; border-radius: var(--radius-lg);
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.3px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary);
  white-space: nowrap; overflow: hidden;
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
.mockup__action-btn--primary {
  background: var(--gradient-brand); color: #fff; border-color: transparent;
  flex: 1;
}

/* Bottom Tabs */
.mockup__bottom-tabs {
  position: sticky; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 0 16px; margin-top: auto;
  background: color-mix(in srgb, var(--phone-screen) 96%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.tab { color: var(--text-tertiary); display: flex; align-items: center; justify-content: center; }
.tab--create {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand); border-radius: 50%; color: #fff; margin-top: -8px;
}

/* Layer Builder */
.layer-steps { margin-bottom: 12px; }
.layer-step {
  display: flex; gap: 8px; padding: 8px; border-radius: var(--radius-md);
  margin-bottom: 6px; background: var(--surface); border: 1px solid var(--border);
}
.layer-step--active { border-color: rgba(var(--color-primary-rgb), 0.15); }
.layer-step__img-wrap { width: 36px; height: 36px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--surface-elevated); }
.layer-step__img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.layer-step__info { flex: 1; }
.layer-step__info strong { display: block; font-size: 0.625rem; font-weight: 600; }
.layer-step__info span { font-size: 0.5rem; color: var(--text-secondary); }
.layer-step__bar { height: 2px; background: var(--divider); border-radius: 1px; margin-top: 5px; overflow: hidden; }
.layer-step__fill { height: 100%; width: var(--fill); background: var(--fill-color); border-radius: 1px; }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.analysis-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; text-align: center; }
.analysis-label { display: block; font-size: 0.4375rem; color: var(--text-tertiary); margin-bottom: 1px; letter-spacing: 0.5px; text-transform: uppercase; }
.analysis-value { font-size: 0.8125rem; font-weight: 700; color: var(--val-color); }

/* ═══════ SHOWCASE STRIP ═══════ */
.showcase-strip { padding: var(--sp-lg) 0; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; }
.showcase-strip__track { display: flex; gap: var(--sp-md); animation: showcaseScroll 45s linear infinite; width: max-content; will-change: transform; }
.showcase-card {
  display: flex; align-items: center; gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md) var(--sp-sm) var(--sp-sm);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  flex-shrink: 0; transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.showcase-card:hover { border-color: rgba(var(--color-primary-rgb), 0.15); transform: translateY(-2px); }
.showcase-card img { width: 40px; height: 40px; border-radius: var(--radius-md); object-fit: contain; background: var(--surface); padding: 4px; }
.showcase-card__info strong { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.01em; }
.showcase-card__info span { font-size: 0.5625rem; color: var(--text-tertiary); letter-spacing: 0.03em; }
@keyframes showcaseScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══════ FEATURES BENTO ═══════ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sp-md); }
.bento__item {
  grid-column: span 6; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--sp-xl); overflow: hidden; position: relative;
  transition: border-color 0.5s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.bento__item:hover { border-color: rgba(var(--color-primary-rgb), 0.1); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.bento__item--wide { grid-column: span 8; }
.bento__item--dna { grid-column: span 4; }
.bento__item--sm { grid-column: span 4; }
.bento__icon-wrap { margin-bottom: var(--sp-md); }
.bento__title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 500; margin-bottom: var(--sp-sm); letter-spacing: 0.01em; }
.bento__desc { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--sp-md); font-weight: 300; }

/* Harmony Meter */
.bento__visual { margin-top: var(--sp-md); }
.harmony-meter { margin-bottom: var(--sp-md); }
.harmony-meter__track { height: 6px; background: var(--divider); border-radius: 3px; overflow: hidden; margin-bottom: var(--sp-xs); }
.harmony-meter__fill { height: 100%; width: 0; background: var(--gradient-brand); border-radius: 3px; transition: width 2s var(--ease-out); }
.harmony-meter__labels { display: flex; justify-content: space-between; font-size: 0.6875rem; color: var(--text-tertiary); }
.harmony-meter__value { font-weight: 600; color: var(--color-success); }
.blend-chips { display: flex; align-items: center; gap: var(--sp-sm); flex-wrap: wrap; }
.blend-chip {
  padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.6875rem; font-weight: 500;
  color: var(--chip-color); background: color-mix(in srgb, var(--chip-color) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--chip-color) 15%, transparent);
}
.blend-chip--result { background: var(--gradient-brand); color: #fff; border: none; font-weight: 600; }
.blend-arrow { color: var(--text-tertiary); }

/* Scent DNA */
.dna-visual { margin-top: var(--sp-md); }
.dna-radar { display: none; }
.dna-strand { display: flex; justify-content: center; gap: 8px; padding: var(--sp-md) 0; }
.dna-node {
  width: 8px; height: 32px; border-radius: 4px; background: var(--node-color);
  animation: dnaFloat 3s ease-in-out infinite; animation-delay: var(--delay);
}
@keyframes dnaFloat { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-6px) scaleY(1.2); } }
.dna-top-notes { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: var(--sp-sm); }
.dna-note-tag {
  font-size: 0.625rem; font-weight: 500; padding: 3px 10px; border-radius: var(--radius-full);
  color: var(--tag-color); background: color-mix(in srgb, var(--tag-color) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag-color) 12%, transparent);
}
.dna-radar__segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dna-segment {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); position: relative; overflow: hidden;
}
.dna-segment::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: var(--seg-pct); background: color-mix(in srgb, var(--seg-color) 8%, transparent);
  transition: height 1.5s var(--ease-out);
}
.dna-segment span { font-size: 0.625rem; font-weight: 600; color: var(--seg-color); position: relative; z-index: 1; }

@media (min-width: 1024px) {
  .dna-radar { display: block; margin-bottom: var(--sp-md); }
  .dna-strand { gap: 10px; }
  .dna-node { width: 10px; height: 40px; }
}

/* Collection Grid */
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: var(--sp-md); }
.collection-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); object-fit: contain; background: var(--surface); padding: 4px; border: 1px solid var(--border); }

/* Weather */
.weather-badge-wrap { margin-top: var(--sp-md); text-align: center; }
.frosted {
  display: inline-block; background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 8px 18px; font-size: 0.75rem; font-weight: 500; color: var(--accent-teal); letter-spacing: 0.02em;
}

/* ═══════ APP PREVIEW ═══════ */
.preview__phones {
  display: flex; justify-content: center; align-items: center;
  gap: var(--sp-xl); margin-top: var(--sp-2xl); perspective: 1500px;
}

/* ═══════ AI SHOWCASE ═══════ */
.neural-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: var(--sp-xl); margin-top: var(--sp-2xl); }
.neural-col { display: flex; flex-direction: column; gap: var(--sp-md); }
.neural-col__title {
  font-family: var(--font-body); font-weight: 500; font-size: 0.6875rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: var(--sp-sm);
}
.neural-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-lg); transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.neural-card:hover { border-color: rgba(var(--color-primary-rgb), 0.1); transform: translateY(-2px); }
.neural-card--output { border-color: rgba(var(--stone-rgb), 0.1); background: linear-gradient(135deg, rgba(var(--stone-rgb), 0.03), var(--card)); }
.neural-card__label { display: block; font-weight: 600; font-size: 0.8125rem; margin-top: var(--sp-sm); margin-bottom: var(--sp-xs); }
.neural-card__data { display: block; font-size: 0.6875rem; color: var(--text-tertiary); }
.neural-col--center { align-items: center; justify-content: center; }
.neural-brain { text-align: center; }
.neural-brain__core {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; margin-bottom: var(--sp-lg);
}
.neural-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--gradient-brand); opacity: 0.08;
  animation: neuralPulse 3s ease-in-out infinite;
}
@keyframes neuralPulse { 0%,100% { transform: scale(1); opacity: 0.08; } 50% { transform: scale(1.3); opacity: 0.03; } }
.neural-brain__models { display: flex; gap: var(--sp-sm); justify-content: center; margin-bottom: var(--sp-md); }
.model-tag {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.5px;
  padding: 4px 12px; border-radius: var(--radius-full);
  background: rgba(var(--stone-rgb), 0.06); color: var(--stone);
  border: 1px solid rgba(var(--stone-rgb), 0.1);
}
.neural-brain__processes { display: flex; flex-direction: column; gap: var(--sp-sm); }
.neural-brain__processes span {
  font-size: 0.6875rem; color: var(--text-tertiary); font-weight: 400;
  background: var(--surface); padding: 6px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.neural-output { margin-top: var(--sp-md); }
.neural-output__recipe { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-sm); }
.neural-output__name { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 500; }
.neural-output__confidence { font-size: 0.625rem; font-weight: 600; color: var(--color-success); }
.neural-output__layers { display: flex; align-items: center; gap: var(--sp-sm); margin-top: var(--sp-sm); }
.neural-output__thumb { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: contain; background: var(--surface); padding: 3px; border: 1px solid var(--border); }
.neural-output__plus { color: var(--text-tertiary); font-weight: 500; font-size: 0.75rem; }

/* ═══════ NOTE FAMILIES ═══════ */
.families__wheel { display: flex; flex-wrap: wrap; gap: var(--sp-sm); justify-content: center; margin-top: var(--sp-2xl); }
.family-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-full);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--family-color); background: color-mix(in srgb, var(--family-color) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--family-color) 12%, transparent);
  cursor: default; transition: all 0.3s var(--ease-out);
}
.family-chip .icon { color: var(--family-color); opacity: 0.6; }
.family-chip:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--family-color) 12%, transparent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--family-color) 10%, transparent);
}

/* ═══════ CTA ═══════ */
.cta-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(var(--stone-rgb), 0.03), var(--card));
  border: 1px solid rgba(var(--stone-rgb), 0.06);
  border-radius: var(--radius-2xl); padding: var(--sp-4xl) var(--sp-xl);
}
.cta-card__sub {
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  color: var(--text-secondary); max-width: 480px; margin: 0 auto var(--sp-xl);
  line-height: 1.8; font-weight: 300;
}
.cta-card .waitlist__pill { max-width: 460px; margin: 0 auto; }

/* ═══════ LEGAL PAGES ═══════ */
.legal { padding: 140px 0 var(--sp-section); }
.legal__title { font-family: var(--font-heading); font-weight: 300; margin-bottom: var(--sp-sm); }
.legal__updated { font-size: 0.8125rem; color: var(--text-tertiary); margin-bottom: var(--sp-3xl); font-weight: 300; letter-spacing: 0.02em; }
.legal__body { max-width: 720px; }
.legal__body section { margin-bottom: var(--sp-2xl); }
.legal__body h2 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 500; margin-bottom: var(--sp-md); letter-spacing: -0.01em; }
.legal__body h3 { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; margin-top: var(--sp-lg); margin-bottom: var(--sp-sm); }
.legal__body p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: var(--sp-md); font-weight: 300; }
.legal__body ul { list-style: disc; padding-left: var(--sp-lg); margin-bottom: var(--sp-md); }
.legal__body li { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: var(--sp-sm); font-weight: 300; }
.legal__body li::marker { color: var(--stone); }
.legal__body li strong { color: var(--text); font-weight: 500; }
.legal__body a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(var(--color-primary-rgb), 0.3); transition: text-decoration-color var(--dur-fast); }
.legal__body a:hover { text-decoration-color: var(--color-primary); }

/* ═══════ FOOTER ═══════ */
.footer { padding: var(--sp-3xl) 0 var(--sp-xl); border-top: 1px solid var(--border); }
.footer__top { display: flex; justify-content: space-between; gap: var(--sp-2xl); margin-bottom: var(--sp-2xl); }
.footer__brand { max-width: 280px; }
.footer__logo { border-radius: var(--radius-sm); margin-bottom: var(--sp-sm); transition: filter 0.4s var(--ease-out); }
.footer__name { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 500; display: block; margin-bottom: var(--sp-sm); letter-spacing: 0.02em; }
.footer__tagline { font-size: 0.8125rem; color: var(--text-secondary); font-style: italic; font-weight: 300; }
.footer__links { display: flex; gap: var(--sp-3xl); }
.footer__col { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer__col-title { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--text-secondary); margin-bottom: var(--sp-xs); }
.footer__col a { font-size: 0.8125rem; color: var(--text-secondary); transition: color var(--dur-fast); font-weight: 400; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: var(--sp-lg); }
.footer__copy { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: var(--sp-sm); font-weight: 400; }
.footer__disclosure { font-size: 0.6875rem; color: var(--text-secondary); line-height: 1.7; max-width: 600px; font-weight: 400; }

/* ═══════ REVEAL ANIMATIONS ═══════ */
/* CSS-driven via animation-timeline: view() — JS fallback kept for older browsers */
@supports (animation-timeline: view()) {
  .reveal {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }
  .reveal--delay-1 { animation-delay: 0s; animation-range: entry 5% entry 30%; }
  .reveal--delay-2 { animation-delay: 0s; animation-range: entry 10% entry 35%; }
  @keyframes revealUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* Prevent the JS .visible class from conflicting */
  .reveal.visible { opacity: 1; transform: none; }
}
@supports not (animation-timeline: view()) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-elegant), transform 0.8s var(--ease-elegant); }
  .reveal--delay-1 { transition-delay: 0.12s; }
  .reveal--delay-2 { transition-delay: 0.24s; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
}

/* ══ :user-valid / :user-invalid form validation styling ══ */
.waitlist__input:user-valid {
  color: var(--color-success);
}
.waitlist__input:user-invalid {
  color: var(--color-error);
}
.waitlist__pill:has(.waitlist__input:user-valid) {
  border-color: oklch(from var(--color-success) l c h / 0.3);
}
.waitlist__pill:has(.waitlist__input:user-invalid) {
  border-color: oklch(from var(--color-error) l c h / 0.3);
}

/* ══ Back to Top ══ */
.back-to-top {
  position: fixed; bottom: var(--sp-xl); right: var(--sp-xl); z-index: 80;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.back-to-top--visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { border-color: var(--stone); }
.back-to-top .icon { width: 18px; height: 18px; color: var(--text-secondary); }

/* ══ Footer Social Links ══ */
.footer__social-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; color: var(--text-secondary);
  transition: color var(--dur-fast); font-weight: 400;
}
.footer__social-link:hover { color: var(--text); }
.footer__social-link .icon { color: var(--text-tertiary); }

/* ══ Showcase Strip Pause Button ══ */
.showcase-strip__pause-btn {
  position: absolute; right: var(--sp-md); top: 50%; transform: translateY(-50%);
  z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s var(--ease-out), border-color var(--dur-fast);
}
.showcase-strip:hover .showcase-strip__pause-btn { opacity: 1; }
.showcase-strip__pause-btn:hover { border-color: var(--stone); }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; gap: var(--sp-2xl); padding-top: 140px; }
  .hero__content { max-width: 560px; }
  .hero__proof { justify-content: center; }
  .neural-grid { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .neural-col--center { order: -1; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__cta { display: none; }
  .bento__item, .bento__item--wide, .bento__item--dna, .bento__item--sm { grid-column: span 12; }
  .preview__phones { flex-direction: column; gap: var(--sp-lg); }
  .iphone--tilted-left, .iphone--tilted-right { transform: scale(0.85); }
  .iphone--center { transform: scale(1); }
  .footer__top { flex-direction: column; }
  .footer__links { flex-direction: column; gap: var(--sp-xl); }
}
@media (max-width: 480px) {
  .waitlist__pill { flex-direction: column; border-radius: var(--radius-lg); gap: var(--sp-sm); padding: var(--sp-sm); }
  .waitlist__input { padding: 10px 14px; text-align: center; }
  .waitlist__btn { width: 100%; }
  .iphone { --pw: 240px; --ph: 500px; --pr: 36px; --sr: 30px; }
  .mobile-menu__panel { width: min(100vw, 320px); padding: 0.875rem; }
  .mobile-menu__header { padding-bottom: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
} /* end @layer components */

/* ═══════ CROSS-DOCUMENT VIEW TRANSITIONS ═══════ */
@layer utilities {
@view-transition { navigation: auto; }

/* Theme toggle circular clip-path reveal */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 999; }

/* content-visibility for off-screen sections */
.features, .preview, .ai-showcase, .families, .cta-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}
}
