/* ============================================================
   ORO — The Gold Standard of Fitness
   Marketing site design system
   Black + metallic gold, on the app's true dark surfaces.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* surfaces — matched to the mobile app design system */
  --bg:        #070A12;
  --bg-2:      #0A0E1A;
  --surface:   #0F1729;
  --surface-2: #141E33;
  --surface-3: #1A2740;
  --line:        rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);

  /* text */
  --text:       #F1F5F9;
  --text-dim:   #9FB0C9;
  --text-faint: #8593B2;
  --text-ghost: #3D4F6B;

  /* signature gold */
  --gold:        #E6C173;
  --gold-bright: #F6DD9B;
  --gold-deep:   #B8860B;
  --gold-grad:   linear-gradient(135deg, #FBE9B7 0%, #E6C173 38%, #C79A3C 72%, #9A7424 100%);
  --gold-soft:   rgba(230, 193, 115, 0.14);
  --gold-line:   rgba(230, 193, 115, 0.30);

  /* secondary tech accent (the app's indigo) */
  --indigo:       #6366F1;
  --indigo-light: #818CF8;
  --indigo-soft:  rgba(99, 102, 241, 0.16);

  /* domain accents (macros etc — kept identical to app) */
  --protein: #10B981;
  --carbs:   #818CF8;
  --fat:     #F59E0B;
  --water:   #0EA5E9;
  --streak:  #FB923C;
  --danger:  #EF4444;
  --success: #10B981;

  /* type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-mark:    'Jost', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 22px;
  --radius-sm: 14px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: rgba(230, 193, 115, 0.28); color: #fff; }

/* Visible keyboard focus (WCAG 2.4.7) — gold ring reads ~14:1 on the dark theme */
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
a:focus-visible, .btn:focus-visible { border-radius: 100px; }

/* ---------- Ambient background ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-fx .glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.bg-fx .glow.g1 { width: 60vw; height: 60vw; top: -22vw; right: -14vw;
  background: radial-gradient(circle, rgba(230,193,115,0.22), transparent 62%); }
.bg-fx .glow.g2 { width: 52vw; height: 52vw; top: 38vh; left: -18vw;
  background: radial-gradient(circle, rgba(99,102,241,0.16), transparent 64%); }
.bg-fx .glow.g3 { width: 48vw; height: 48vw; bottom: -16vw; right: -10vw;
  background: radial-gradient(circle, rgba(230,193,115,0.10), transparent 66%); }
.bg-fx .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
}
.bg-fx .grain {
  position: absolute; inset: -50%; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
section { position: relative; z-index: 1; }
.section { padding-block: clamp(72px, 12vw, 150px); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gold); padding: 7px 14px; border-radius: 100px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.eyebrow.alt { color: var(--indigo-light); background: var(--indigo-soft); border-color: rgba(99,102,241,0.3); }

.h-display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.03em;
}
.h-section {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 4.6vw, 50px); line-height: 1.07; letter-spacing: -0.025em;
}
.lead { font-size: clamp(16px, 2vw, 20px); color: var(--text-dim); max-width: 60ch; }
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--text-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  padding: 15px 26px; border-radius: 100px; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.btn-gold {
  background: var(--gold-grad); color: #1a1304;
  box-shadow: 0 10px 34px -10px rgba(230,193,115,0.55), inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(230,193,115,0.7), inset 0 1px 0 rgba(255,255,255,0.55); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold-line); background: rgba(255,255,255,0.07); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: padding .4s var(--ease);
  padding-block: 20px;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 14px 10px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 100px; border: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.nav.scrolled { padding-block: 12px; }
.nav.scrolled .nav-inner {
  background: rgba(10, 14, 26, 0.72); border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px -16px rgba(0,0,0,0.7);
}
.brand { display: inline-flex; align-items: baseline; gap: 0; }
.brand .mark {
  font-family: var(--font-mark); font-weight: 300; font-size: 26px; letter-spacing: 0.18em;
  color: var(--text); padding-left: 0.18em;
}
.brand .mark b { font-weight: 300; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); transition: .3s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(130px, 20vh, 200px); padding-bottom: clamp(40px, 8vw, 90px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 60px); align-items: center;
}
.hero h1 { margin: 22px 0 0; }
.hero .lead { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 34px; }
.hero-meta .stars { display: flex; gap: 3px; color: var(--gold); }
.hero-meta .stars svg { width: 16px; height: 16px; }
.hero-meta .m-item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .m-num { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.hero-meta .m-lbl { font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.4px; }
.hero-meta .divider { width: 1px; height: 34px; background: var(--line-strong); }
.lang-pills { display: inline-flex; gap: 6px; }
.lang-pills span { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text-dim); padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 7px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-visual .halo {
  position: absolute; width: 120%; height: 120%; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,193,115,0.18), transparent 60%); filter: blur(20px);
}

/* ---------- Device / phone mockup ---------- */
.device {
  position: relative; width: 300px; aspect-ratio: 300 / 620;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #20232e, #0c0e16 60%);
  box-shadow:
    0 50px 90px -30px rgba(0,0,0,0.85),
    0 0 0 1.5px rgba(255,255,255,0.10),
    0 0 0 8px rgba(255,255,255,0.015),
    inset 0 0 2px rgba(255,255,255,0.2);
}
.device::before { /* side button */
  content: ''; position: absolute; right: -3px; top: 150px; width: 3px; height: 64px;
  border-radius: 3px; background: #2a2d39;
}
.device .screen {
  position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
}
/* Phone mockups render the REAL app palette — "Editorial Gold" light (default).
   Scoped vars flip the variable-driven in-screen UI; .app-dark shows dark mode. */
.device .screen {
  --bg: #F6F2E9; --surface: #FFFFFF; --surface-2: #FBF8F1; --surface-3: #F1ECE0;
  --line: rgba(26,24,19,0.09); --line-strong: rgba(26,24,19,0.12);
  --text: #1A1813; --text-dim: #6E6A60; --text-faint: #8A8475; --text-ghost: #B0A892;
  --gold: #B08A2C; --gold-deep: #946F1C; --gold-soft: #F6ECD3; --gold-line: #E6D3A0;
  --gold-grad: linear-gradient(135deg,#E9CD7E,#C8A03B 55%,#A87E26);
  --protein: #4F8265; --carbs: #6E77A8; --fat: #CE9438; --streak: #D6883A; --water: #2F86B5;
  --indigo: #6E77A8; --indigo-light: #6E77A8; --indigo-soft: rgba(110,119,168,0.14);
  color: var(--text);
}
.device .screen.app-dark {
  --bg: #12100B; --surface: #1C1813; --surface-2: #241F18; --surface-3: #2C261D;
  --line: rgba(255,255,255,0.10); --line-strong: rgba(255,255,255,0.14);
  --text: #F4EFE4; --text-dim: #B7AE9E; --text-faint: #8E8675; --text-ghost: #5E574A;
  --gold: #CDA64A; --gold-deep: #B08A2C; --gold-soft: #2A2213; --gold-line: rgba(205,166,74,0.32);
  --gold-grad: linear-gradient(135deg,#E0BC63,#C8A03B 55%,#A87E26);
  --protein: #6BA585; --carbs: #8E97C8; --fat: #E0B45C; --streak: #E8A45C; --water: #4FA6D5;
  --indigo: #8E97C8; --indigo-light: #8E97C8; --indigo-soft: rgba(142,151,200,0.16);
}
.device .screen .macro .bar { background: rgba(26,24,19,0.07); }
.device .screen.app-dark .macro .bar { background: rgba(255,255,255,0.09); }
.device .screen .scr-pill-tabbar { background: rgba(255,255,255,0.92); }
.device .screen.app-dark .scr-pill-tabbar { background: rgba(28,24,19,0.92); }
.device .notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #05070c; border-radius: 100px; z-index: 6;
}
.device.float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* in-screen app UI */
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 46px 16px 64px; gap: 12px; overflow: hidden; }
.scr-head { display: flex; align-items: center; justify-content: space-between; }
.scr-hello { font-size: 11px; color: var(--text-faint); font-weight: 600; }
.scr-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.scr-ava { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #1a1304; }

.scard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.scard.glow-gold { border-color: var(--gold-line); box-shadow: 0 0 28px -12px rgba(230,193,115,0.5); }

.ring-wrap { display: flex; align-items: center; gap: 14px; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .ring-num { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -1px; line-height: 1; }
.ring .ring-lbl { font-size: 8px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 3px; }

.macro-row { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.macro { }
.macro .macro-top { display: flex; justify-content: space-between; font-size: 9.5px; margin-bottom: 4px; }
.macro .macro-top .mv { color: var(--text-dim); font-weight: 600; }
.macro .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.06); overflow: hidden; }
.macro .bar i { display: block; height: 100%; border-radius: 6px; }

.streak-banner { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(251,146,60,0.16), rgba(230,193,115,0.10)); border: 1px solid rgba(251,146,60,0.22); }
.streak-banner .fire { font-size: 18px; }
.streak-banner .st-num { font-weight: 800; font-size: 15px; }
.streak-banner .st-sub { font-size: 9.5px; color: var(--text-faint); }

.mini-row { display: flex; gap: 9px; }
.mini { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 10px; }
.mini .mi-ic { width: 26px; height: 26px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13px; margin-bottom: 8px; }
.mini .mi-v { font-weight: 800; font-size: 14px; letter-spacing: -0.02em; }
.mini .mi-l { font-size: 8.5px; color: var(--text-faint); margin-top: 1px; }

.set-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.set-row .sx { width: 18px; height: 18px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; font-size: 9px; color: var(--text-faint); font-weight: 700; }
.set-row .sv { font-weight: 700; }
.set-row .pr { margin-left: auto; font-size: 8.5px; font-weight: 800; color: #1a1304; background: var(--gold-grad); padding: 2px 7px; border-radius: 100px; }
.prev-ghost { color: var(--text-ghost); font-size: 9.5px; }

.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.bdg { aspect-ratio: 1; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.bdg.earned { background: linear-gradient(150deg, rgba(230,193,115,0.2), rgba(230,193,115,0.05)); border-color: var(--gold-line); }
.bdg.lock { filter: grayscale(1); opacity: 0.4; }

.scr-pill-tabbar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 46px;
  background: rgba(15,23,41,0.9); border: 1px solid var(--line); border-radius: 18px;
  display: flex; align-items: center; justify-content: space-around; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.scr-pill-tabbar .tb { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; color: var(--text-ghost); }
.scr-pill-tabbar .tb.on { color: var(--gold); background: var(--gold-soft); }

.feed-post { display: flex; gap: 10px; padding: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.feed-post .fp-ava { width: 30px; height: 30px; border-radius: 50%; flex: none; background: linear-gradient(135deg,#f0abfc,#a855f7); }
.feed-post .fp-name { font-weight: 800; font-size: 11px; }
.feed-post .fp-meta { font-size: 8.5px; color: var(--text-faint); }
.feed-post .fp-body { font-size: 10.5px; color: var(--text-dim); margin-top: 4px; }
.win-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 8.5px; font-weight: 800; color: var(--protein); background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); padding: 3px 8px; border-radius: 100px; }

.scan-result { text-align: center; padding: 6px 0; }
.scan-bf { font-family: var(--font-display); font-weight: 800; font-size: 46px; letter-spacing: -2px; line-height: 1; }
.scan-bf small { font-size: 18px; color: var(--text-dim); }
.scan-tag { font-size: 9.5px; color: var(--text-faint); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }
.scan-bar { height: 8px; border-radius: 8px; margin-top: 14px; background: linear-gradient(90deg, var(--protein), var(--fat), var(--danger)); position: relative; }
.scan-bar .pin { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 4px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.6); }

.ai-snap { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10;
  background: linear-gradient(135deg, #3a2f1a, #1a1f2e); display: grid; place-items: center; }
.ai-snap .plate { font-size: 40px; }
.ai-snap .scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: scanmove 2.4s linear infinite; }
@keyframes scanmove { 0% { top: 6%; } 100% { top: 94%; } }
.ai-detect { display: flex; justify-content: space-between; font-size: 10px; padding: 9px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; }
.ai-detect b { color: var(--gold); }

/* ---------- Logos / disconnect strip ---------- */
.thesis-visual { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; margin-top: 56px; }
.chaos { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 340px; }
.chaos .app-chip { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-dim);
  opacity: 0.7; }
.chaos .app-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.thesis-arrow { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gold); }
.thesis-arrow svg { width: 50px; height: 50px; }
.thesis-arrow span { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.oro-one { display: flex; justify-content: center; }
.oro-one .one-card { padding: 26px 30px; border-radius: 24px; text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--bg)); border: 1px solid var(--gold-line);
  box-shadow: 0 0 50px -16px rgba(230,193,115,0.4); }
.oro-one .one-mark { font-family: var(--font-mark); font-weight: 300; font-size: 38px; letter-spacing: 0.18em; }
.oro-one .one-mark b { color: var(--gold); font-weight: 300; }
.oro-one .one-sub { font-size: 11px; color: var(--text-faint); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }

/* ---------- The Loop (signature differentiator) ---------- */
.loop-stage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; margin-top: 50px; }
.loop-diagram { position: relative; aspect-ratio: 1; max-width: 440px; margin-inline: auto; width: 100%; }
.loop-node { position: absolute; width: 132px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.loop-node .ln-ic { font-size: 22px; } .loop-node .ln-t { font-weight: 800; font-size: 13px; margin-top: 5px; } .loop-node .ln-s { font-size: 10px; color: var(--text-faint); }
.loop-node.n-train { top: 0; left: 50%; transform: translateX(-50%); border-color: var(--indigo-soft); }
.loop-node.n-eat { bottom: 8%; left: 0; border-color: rgba(16,185,129,0.3); }
.loop-node.n-body { bottom: 8%; right: 0; border-color: var(--gold-line); }
.loop-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 116px; height: 116px; border-radius: 50%;
  background: radial-gradient(circle, var(--surface), var(--bg)); border: 1px solid var(--gold-line);
  display: grid; place-items: center; text-align: center; box-shadow: 0 0 40px -12px rgba(230,193,115,0.5); }
.loop-center .lc-num { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.loop-center .lc-lbl { font-size: 8px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); }
.loop-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop-svg path { fill: none; stroke: var(--gold-line); stroke-width: 1.5; stroke-dasharray: 5 6; }
.loop-list { display: flex; flex-direction: column; gap: 18px; }
.loop-li { display: flex; gap: 14px; }
.loop-li .num { flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.loop-li h3 { font-size: 16px; font-weight: 700; } .loop-li p { font-size: 14px; color: var(--text-dim); }

/* ---------- Pillars / feature grid ---------- */
.pillars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 54px; }
.pillar { grid-column: span 4; background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease); }
.pillar::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), var(--accent-soft, rgba(230,193,115,0.10)), transparent 60%);
  opacity: 0; transition: opacity .4s; pointer-events: none; }
.pillar:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.pillar:hover::after { opacity: 1; }
.pillar.big { grid-column: span 6; }
.pillar.wide { grid-column: span 12; }
.p-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
  background: var(--accent-soft, var(--gold-soft)); border: 1px solid var(--accent-line, var(--gold-line)); }
.p-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.p-desc { color: var(--text-dim); font-size: 14.5px; margin-top: 8px; }
.p-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.p-list li { font-size: 12.5px; font-weight: 600; color: var(--text-dim); padding: 6px 12px; border-radius: 100px;
  background: rgba(255,255,255,0.035); border: 1px solid var(--line); }
.p-accent-gold   { --accent-soft: var(--gold-soft);              --accent-line: var(--gold-line); }
.p-accent-indigo { --accent-soft: rgba(99,102,241,0.14);         --accent-line: rgba(99,102,241,0.3); }
.p-accent-green  { --accent-soft: rgba(16,185,129,0.13);         --accent-line: rgba(16,185,129,0.3); }
.p-accent-fat    { --accent-soft: rgba(245,158,11,0.13);         --accent-line: rgba(245,158,11,0.3); }
.p-accent-water  { --accent-soft: rgba(14,165,233,0.13);         --accent-line: rgba(14,165,233,0.3); }
.p-accent-pink   { --accent-soft: rgba(236,72,153,0.13);         --accent-line: rgba(236,72,153,0.3); }

/* ---------- Screenshot gallery ---------- */
/* Native horizontal-scroll gallery — swipes on touch, trackpad/shift-wheel on desktop.
   Robust everywhere (no scroll-linked JS that can hide cards on mobile). */
.gallery { margin-top: 56px; position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.gallery::-webkit-scrollbar { display: none; }
.gallery-track { display: flex; gap: 26px; padding-block: 10px; width: max-content; }
.gallery-item { scroll-snap-align: center; }
.gallery .device { width: 244px; flex: none; }
.gallery-cap { text-align: center; margin-top: 16px; }
.gallery-cap .gc-t { font-weight: 700; font-size: 14px; } .gallery-cap .gc-s { font-size: 12px; color: var(--text-faint); }
.gallery-item { flex: none; }

/* ---------- Split feature blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split.rev .split-text { order: 2; }
.split-text h2 { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.split-text p { color: var(--text-dim); margin-top: 16px; font-size: 16px; }
.feat-points { display: flex; flex-direction: column; gap: 13px; margin-top: 22px; }
.feat-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.feat-points .ck { flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--gold-soft); border: 1px solid var(--gold-line); display: grid; place-items: center; color: var(--gold); margin-top: 1px; }
.feat-points .ck svg { width: 12px; height: 12px; }

/* ---------- Comparison table ---------- */
.compare { margin-top: 50px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 15px 16px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg-2); font-family: var(--font-display); font-weight: 700; }
.compare thead th.oro { color: var(--gold); position: relative; }
.compare thead th.oro::after { content: ''; position: absolute; inset: 0; background: var(--gold-soft); z-index: -1; }
.compare tbody td:first-child, .compare thead th:first-child { text-align: left; font-weight: 600; color: var(--text-dim); }
.compare td.oro { background: rgba(230,193,115,0.05); font-weight: 700; color: var(--text); }
.compare .yes { color: var(--gold); font-weight: 800; }
.compare .no { color: #6B7C9C; } /* ≥3:1 so the "absent" marker is perceivable */
.compare .partial { color: var(--text-faint); font-size: 12px; }
.compare tbody tr:last-child td { border-bottom: none; }

/* ---------- Creator / B2B ---------- */
.creator-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.cstat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.cstat .cs-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px,3.4vw,38px); letter-spacing: -0.03em; }
.cstat .cs-num .gold-text { display: inline; }
.cstat .cs-lbl { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.dash-mock { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); }
.dash-top { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.dash-top .dt-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-top .dt-title { margin-left: 10px; font-size: 12px; color: var(--text-faint); }
.dash-body { display: grid; grid-template-columns: 150px 1fr; min-height: 280px; }
.dash-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.dash-side .ds-item { font-size: 12px; padding: 9px 11px; border-radius: 10px; color: var(--text-faint); display: flex; gap: 8px; align-items: center; }
.dash-side .ds-item.on { background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.dash-main { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dash-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.dash-card .dc-l { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; }
.dash-card .dc-v { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-top: 5px; letter-spacing: -0.02em; }
.dash-card .dc-d { font-size: 10px; color: var(--protein); margin-top: 3px; }
.dash-rows { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; }
.dash-rows .dr { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.dash-rows .dr:last-child { border-bottom: none; }
.dash-rows .dr .dr-ava { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,var(--indigo),var(--indigo-light)); flex: none; }
.dash-rows .dr .dr-tag { margin-left: auto; font-size: 9.5px; font-weight: 800; padding: 3px 9px; border-radius: 100px; }
.dash-rows .dr .dr-tag.ok { color: var(--protein); background: rgba(16,185,129,0.12); }
.dash-rows .dr .dr-tag.warn { color: var(--fat); background: rgba(245,158,11,0.12); }

/* ---------- Revenue streams ---------- */
.streams { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 40px; }
.stream { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.stream .sn { font-size: 12px; color: var(--gold); font-weight: 800; letter-spacing: 0.5px; }
.stream h3 { font-size: 17px; margin-top: 8px; font-weight: 700; }
.stream p { font-size: 13px; color: var(--text-dim); margin-top: 7px; }

/* ---------- Pricing ---------- */
.price-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 100px; border: 1px solid var(--line-strong); background: var(--surface); margin: 28px auto 0; }
.price-toggle button { min-height: 44px; padding: 9px 22px; border-radius: 100px; font-size: 13.5px; font-weight: 700; color: var(--text-faint); transition: .3s; }
.price-toggle button.on { background: var(--gold-grad); color: #1a1304; }
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
.pricing[hidden] { display: none; } /* explicit display: grid otherwise overrides the HTML hidden attribute */
.plan { background: linear-gradient(165deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.feat { border-color: var(--gold-line); box-shadow: 0 0 50px -18px rgba(230,193,115,0.5); position: relative; }
.plan.feat::before { content: 'MOST POPULAR'; position: absolute; top: 16px; right: 16px; font-size: 9.5px; font-weight: 800; letter-spacing: 1px; color: #1a1304; background: var(--gold-grad); padding: 4px 10px; border-radius: 100px; }
.plan .pl-name { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.plan .pl-price { font-family: var(--font-display); font-weight: 800; font-size: 42px; letter-spacing: -0.03em; margin-top: 14px; line-height: 1; }
.plan .pl-price span { font-size: 15px; color: var(--text-faint); font-weight: 600; letter-spacing: 0; }
.plan .pl-desc { font-size: 13.5px; color: var(--text-dim); margin-top: 10px; min-height: 40px; }
.plan ul { display: flex; flex-direction: column; gap: 11px; margin: 20px 0 24px; }
.plan ul li { display: flex; gap: 10px; font-size: 14px; color: var(--text-dim); }
.plan ul li svg { width: 17px; height: 17px; flex: none; color: var(--gold); margin-top: 2px; }
.plan .btn { margin-top: auto; width: 100%; }
.price-note { text-align: center; margin-top: 26px; font-size: 13px; color: var(--text-faint); }

/* ---------- Social proof ---------- */
.proof-card { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--gold-line);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); margin-top: 40px; box-shadow: 0 0 60px -22px rgba(230,193,115,0.4); }
.proof-card .pc-ava { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 34px; color: #1a1304; }
.proof-card blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px,2.4vw,26px); line-height: 1.4; letter-spacing: -0.02em; }
.proof-card .pc-who { margin-top: 14px; font-size: 14px; color: var(--text-faint); }
.proof-card .pc-who b { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 44px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: clamp(16px,2vw,19px); letter-spacing: -0.01em; }
.faq-q .ic { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: .3s; color: var(--gold); }
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: var(--gold-soft); border-color: var(--gold-line); }
/* Self-sizing accordion: grid-rows 0fr→1fr re-measures on resize automatically
   (no frozen pixel max-height), and visibility removes collapsed text from the a11y tree. */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-a > p { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility .4s;
  padding: 0 4px 22px; color: var(--text-dim); font-size: 15px; max-width: 70ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { visibility: visible; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; border-radius: 32px; padding: clamp(48px, 8vw, 92px) var(--gutter); position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--surface), var(--bg)); border: 1px solid var(--gold-line); }
.cta-final::before { content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 80%; height: 80%; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,193,115,0.25), transparent 60%); filter: blur(40px); pointer-events: none; }
.cta-final .cta-mark { font-family: var(--font-mark); font-weight: 300; font-size: clamp(48px, 9vw, 96px); letter-spacing: 0.16em; padding-left: 0.16em; }
.cta-final .cta-mark b { color: var(--gold); font-weight: 300; }
.cta-final .cta-sub { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.cta-final h2 { margin-top: 26px; }
.cta-final .hero-cta { justify-content: center; margin-top: 30px; }

/* Waitlist capture */
.waitlist { display: flex; gap: 10px; max-width: 480px; margin: 30px auto 0; flex-wrap: wrap; justify-content: center; }
.waitlist[hidden] { display: none; } /* explicit display: flex otherwise overrides the hidden attribute */
.waitlist input[type="email"] {
  flex: 1 1 240px; min-width: 0; height: 54px; padding: 0 20px; border-radius: 100px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong); color: var(--text);
  font-family: inherit; font-size: 15px;
}
.waitlist input::placeholder { color: var(--text-faint); }
.waitlist input:focus-visible { border-color: var(--gold-line); outline-offset: 2px; }
.waitlist .btn { flex: 0 0 auto; }
.waitlist-note { margin-top: 14px; font-size: 12.5px; color: var(--text-faint); }
.waitlist-success { margin: 30px auto 0; max-width: 480px; padding: 18px 22px; border-radius: 18px;
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-bright); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 60px 36px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer .brand .mark { font-size: 30px; }
.footer-tag { color: var(--text-faint); font-size: 13.5px; margin-top: 14px; max-width: 34ch; }
.footer h2 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-dim); padding: 9px 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-faint); }
.footer-bottom .lang-pills span { color: var(--text-faint); }

/* ---------- Reveal animations (progressive enhancement) ----------
   Default: fully visible — so content NEVER disappears if JS/GSAP fails.
   Only when <html class="js"> is set do we hide-then-reveal on scroll. */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .device.float, .ai-snap .scan-line { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; } .hero-cta, .hero-meta { justify-content: center; }
  .hero-visual { margin-top: 30px; }
  .pillar, .pillar.big { grid-column: span 6; }
  .creator-stats { grid-template-columns: repeat(2,1fr); }
  .streams { grid-template-columns: repeat(2,1fr); }
  .loop-stage, .split, .split.rev .split-text { grid-template-columns: 1fr; }
  .split.rev .split-text { order: 0; }
  .thesis-visual { grid-template-columns: 1fr; }
  .thesis-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 76px; left: var(--gutter); right: var(--gutter);
    flex-direction: column; gap: 4px; padding: 14px; background: rgba(10,14,26,0.96); border: 1px solid var(--line);
    border-radius: 20px; backdrop-filter: blur(18px); }
  .nav.open .nav-links a { padding: 12px; width: 100%; border-radius: 12px; }
  .pricing { grid-template-columns: 1fr; }
  .pillar, .pillar.big, .pillar.wide { grid-column: span 12; }
  .compare { overflow-x: auto; } .compare table { min-width: 640px; }
  .proof-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-body { grid-template-columns: 1fr; } .dash-side { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .dash-cards { grid-template-columns: 1fr; }
  .creator-stats, .streams { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .hero-meta { gap: 16px; } .hero-meta .divider { display: none; }
  .creator-stats, .streams { grid-template-columns: 1fr; }
  .device { width: 270px; }
}
