/* Lions Feed — shared design system for the marketing site, Atlas, and Guide. */
:root {
  --bg:        #07090c;
  --bg-2:      #0c0f14;
  --surface:   #12161d;
  --surface-2: #171c25;
  --line:      rgba(216, 178, 100, .14);
  --line-2:    rgba(216, 178, 100, .28);
  --ink:       #f3f0e8;
  --ink-2:     #c3c9d4;
  --muted:     #8590a1;
  --gold:      #e3b25c;
  --gold-2:    #f6d998;
  --ember:     #ff8a4c;
  --ok:        #6fcf97;
  --shadow:    0 1px 2px rgba(0,0,0,.5), 0 24px 60px -24px rgba(0,0,0,.85);
  --radius:    16px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
.serif { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
a { color: var(--gold); }
::selection { background: rgba(227, 178, 92, .3); color: var(--ink); }

/* ---- grain texture, fixed over everything, very low opacity ---- */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- aurora gradient text ---- */
.aurora {
  background: linear-gradient(100deg, var(--gold-2) 0%, var(--ember) 30%, var(--gold) 55%, var(--gold-2) 80%, var(--ember) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: auroraShift 9s ease-in-out infinite;
}
@keyframes auroraShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---- layout ---- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ---- nav ---- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  display: grid; place-items: center; color: #1a1206; font-size: 15px; font-weight: 800;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 6px 18px -6px rgba(227,178,92,.7);
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 650;
  background: linear-gradient(135deg, var(--gold), var(--ember)); color: #1a1206 !important;
  text-decoration: none; box-shadow: 0 8px 22px -10px rgba(227,178,92,.7);
}

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-poster, .hero-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 18% -8%, rgba(227,178,92,.20), transparent 60%),
    radial-gradient(700px 420px at 100% 10%, rgba(255,138,76,.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 30%, transparent) 45%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 11.5px/1 ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(227,178,92,.08);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 0 3px rgba(111,207,151,.25); }
h1.display {
  margin: 20px 0 18px; font-size: clamp(38px, 6vw, 68px); line-height: 1.03;
  font-weight: 750; letter-spacing: -.03em; max-width: 15ch;
}
.hero-sub { margin: 0 0 34px; max-width: 56ch; color: var(--ink-2); font-size: 18px; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-size: 14.5px; font-weight: 650;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--ember)); color: #1a1206; box-shadow: 0 10px 30px -12px rgba(227,178,92,.65); }
.btn-primary:hover { box-shadow: 0 14px 36px -12px rgba(227,178,92,.85); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-lock { display: inline-flex; align-items: center; gap: 6px; }
.btn-lock svg { width: 13px; height: 13px; }

/* ---- stat strip / counters ---- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.stat-cell { background: var(--surface); padding: 22px 20px; }
.stat-cell .n { font-size: 30px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--gold-2); }
.stat-cell .l { margin-top: 4px; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }

/* ---- marquee ---- */
.marquee-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 16px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 26s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 10px; font: 600 12.5px/1 ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee-item::before { content: ''; width: 5px; height: 5px; border-radius: 999px; background: var(--gold); opacity: .7; }

/* ---- reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: .05s; } .reveal-2 { transition-delay: .12s; } .reveal-3 { transition-delay: .19s; } .reveal-4 { transition-delay: .26s; }

/* ---- sections ---- */
.section-pad { padding: 90px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
h2.display { font-size: clamp(28px, 4vw, 40px); font-weight: 750; letter-spacing: -.02em; margin: 0 0 14px; }
.section-head p { color: var(--ink-2); font-size: 16px; }

/* ---- feature grid w/ tilt cards ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tilt-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .2s ease, transform .12s ease;
}
.tilt-card:hover { border-color: var(--line-2); }
.tilt-card .icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center; background: rgba(227,178,92,.1); border: 1px solid var(--line-2); color: var(--gold);
}
.tilt-card .icon svg { width: 21px; height: 21px; }
.tilt-card h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 650; }
.tilt-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

/* ---- showcase (foreground video) ---- */
.showcase { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.showcase-video {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(227,178,92,.08) inset;
  aspect-ratio: 16 / 10; background: var(--surface);
}
.showcase-video img, .showcase-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase-video::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5) 100%);
}
.showcase-copy .eyebrow { margin-bottom: 16px; }
.showcase-copy h3 { font-size: 27px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 14px; }
.showcase-copy p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin: 0 0 12px; }
.check-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.check-list svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--ok); }

/* ---- code panel ---- */
.code-panel {
  background: #0a0c10; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.code-head { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.code-head .dot2 { width: 10px; height: 10px; border-radius: 999px; }
.code-panel pre { margin: 0; padding: 20px 22px; font: 13px/1.7 ui-monospace, "SF Mono", Consolas, monospace; color: #d6dee8; overflow-x: auto; }
.code-panel .k { color: #f6d998; } .code-panel .s { color: #8fd0a8; } .code-panel .c { color: #6a7383; }

/* ---- footer ---- */
footer.site-foot { border-top: 1px solid var(--line); padding: 44px 0 60px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot-inner .brand { font-size: 15px; }
.foot-links { display: flex; gap: 22px; font-size: 13.5px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.foot-legal { margin-top: 22px; font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }

/* ---- restricted / gated banner (used on atlas + guide) ---- */
.gate-banner {
  display: flex; align-items: center; gap: 10px;
  font: 650 11.5px/1 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ember); padding: 8px 13px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ember) 35%, transparent); background: rgba(255,138,76,.08);
}
.gate-banner svg { width: 13px; height: 13px; }

@media (max-width: 860px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
