/* Base layer of variant C: tokens, type, buttons, header and the hero stage. Section styles live in sections.css. */
:root {
  --ink: #0a0a0c; --ink-2: #111115; --ink-3: #18181d; --paper: #f4f2ee;
  --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f1ee; --text-2: #b4b1b8; --text-3: #8d8a93;
  --red: #e11d2e; --red-hot: #ff3b4e; --ember: #ff6a3d; --rose: #c2185b; --steel: #8fb3ff;
  --grad: linear-gradient(100deg, #ff6a3d 0%, #ff3b4e 45%, #e11d2e 70%, #c2185b 100%);
  --grad-loop: linear-gradient(100deg, #ff6a3d 0%, #ff3b4e 25%, #c2185b 50%, #ff3b4e 75%, #ff6a3d 100%);
  --f-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --f-text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --gutter: clamp(16px, 4vw, 48px); --maxw: 1240px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--f-text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-feature-settings: 'tnum'; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ember); margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--grad); }
.h2 { font: 700 clamp(28px, 3.6vw, 50px)/1.08 var(--f-display); letter-spacing: -.02em; max-width: 16ch; text-wrap: balance; }
.h2--wide { max-width: 24ch; }
.h2--xl { font-size: clamp(34px, 5.4vw, 76px); max-width: 18ch; }
.lead { color: var(--text-2); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; max-width: 60ch; margin-top: 22px; text-wrap: pretty; }
.lead--strong { color: var(--text); }
.fine { color: var(--text-3); font-size: 13px; margin-top: 16px; }
kbd { font: 500 12px/1 var(--f-mono); padding: 3px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--ink-3); }

/* Buttons */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 20px; border-radius: 999px; font: 600 15px/1 var(--f-text); text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: transform .25s var(--spring), background .2s, border-color .2s, box-shadow .3s; will-change: transform; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 0 0 0 rgba(225, 29, 46, 0), 0 10px 30px -10px rgba(225, 29, 46, .7); }
.btn--red:hover { background: var(--red-hot); box-shadow: 0 0 0 6px rgba(225, 29, 46, .18), 0 16px 40px -10px rgba(255, 59, 78, .8); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .07); }
.btn .arr { font-style: normal; transition: transform .3s var(--spring); }
.btn:hover .arr { transform: translateX(4px); }
.link-quiet { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.link-quiet:hover { color: var(--text); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--red); color: #fff; font: 800 13px/1 var(--f-display); letter-spacing: -.02em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.logo__mark--xl { width: 64px; height: 64px; border-radius: 16px; font-size: 24px; }
.logo__word { font: 700 17px/1 var(--f-display); letter-spacing: -.02em; }

/* Header: glass bar that appears after the first screen */
.top { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(10, 10, 12, .72); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.top__in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: 32px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.top__cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav { display: none; }

/* Hero */
.hero { position: relative; min-height: max(760px, 100svh); display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 120px 0 90px; }
.hero__stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(60% 50% at 70% 42%, rgba(225, 29, 46, .22), transparent 70%),
  linear-gradient(90deg, rgba(10, 10, 12, .92) 0%, rgba(10, 10, 12, .55) 45%, rgba(10, 10, 12, 0) 75%),
  linear-gradient(180deg, transparent 70%, var(--ink) 100%); }
.hero__in { position: relative; max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.hero__title { font: 800 clamp(40px, 5.6vw, 88px)/1 var(--f-display); letter-spacing: -.035em; margin: 26px 0 0; max-width: 11ch; }
.hero__lead { color: var(--text-2); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.6; max-width: 54ch; margin-top: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__actions--c { justify-content: center; }
.hero__note { margin-top: 22px; color: var(--text-3); font-size: 14px; max-width: 52ch; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); backdrop-filter: blur(10px); font-size: 14px; color: var(--text-2); }
.chip b { color: var(--text); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 0 0 rgba(255, 59, 78, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 59, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0); } }

/* Kinetic headline: words rise out of a blur, gradient words shimmer */
.kinetic .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotateX(-40deg); filter: blur(10px); transform-origin: 50% 100%; animation: wordIn .9s var(--ease) forwards; }
.kinetic .w:nth-child(1) { animation-delay: .05s; } .kinetic .w:nth-child(2) { animation-delay: .14s; }
.kinetic .w:nth-child(4) { animation-delay: .23s; } .kinetic .w:nth-child(5) { animation-delay: .32s; }
.kinetic .w:nth-child(7) { animation-delay: .41s; }
.w--grad { background: var(--grad-loop); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wordIn .9s var(--ease) forwards, shimmer 6s 1.2s linear infinite !important; }
.kinetic .w--grad:nth-child(5) { animation-delay: .32s, 1.2s !important; }
.kinetic .w--grad:nth-child(7) { animation-delay: .41s, 1.2s !important; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes shimmer { to { background-position: 200% 0; } }

/* Floating status cards around the stage */
.hero__cards { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fcard { position: absolute; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 14px; border-radius: 16px; background: rgba(24, 24, 30, .62); border: 1px solid var(--line-2); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); font-size: 14px; opacity: 0; animation: cardIn 1s var(--ease) forwards, bob 7s ease-in-out infinite; transform: translate3d(var(--mx, 0), var(--my, 0), 0); }
.fcard b { display: block; font-weight: 600; color: var(--text); }
.fcard small { color: var(--text-3); font-size: 12.5px; }
.fcard--a { top: 20%; right: 5%; animation-delay: .7s, 1.7s; }
.fcard--b { top: 41%; right: 15%; animation-delay: .9s, 1.9s; }
.fcard--c { top: 61%; right: 3%; animation-delay: 1.1s, 2.4s; }
.fcard--d { top: 79%; right: 19%; animation-delay: 1.3s, 2.1s; }
@keyframes cardIn { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
@keyframes bob { 50% { translate: 0 -10px; } }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--green { background: #22c55e; box-shadow: 0 0 12px #22c55e; } .dot--red { background: var(--red-hot); box-shadow: 0 0 12px var(--red-hot); }
.dot--amber { background: #f59e0b; box-shadow: 0 0 12px #f59e0b; } .dot--blue { background: #3b82f6; box-shadow: 0 0 12px #3b82f6; }
.dot--gray { background: #71717a; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line-2); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Reveal on scroll, driven by main.js */
.rv { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .fcard--b, .fcard--d { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top__cta { display: none; }
  .burger { display: block; }
  .mnav { display: grid; gap: 4px; padding: 0 var(--gutter); max-height: 0; overflow: hidden; background: rgba(10, 10, 12, .96); transition: max-height .4s var(--ease), padding .4s var(--ease); }
  .mnav.open { max-height: 420px; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); }
  .mnav a { padding: 12px 0; text-decoration: none; font: 600 20px/1.2 var(--f-display); border-bottom: 1px solid var(--line); }
  .top.menu-open { background: rgba(10, 10, 12, .96); }
  .hero { min-height: auto; padding: 108px 0 120px; align-items: flex-start; }
  .hero__glow { background: radial-gradient(80% 40% at 60% 78%, rgba(225, 29, 46, .28), transparent 70%), linear-gradient(180deg, rgba(10, 10, 12, .7) 0%, rgba(10, 10, 12, .45) 55%, var(--ink) 100%); }
  .hero__title { font-size: clamp(30px, 9vw, 52px); }
  .hero__actions .btn { width: 100%; }
  .hero__cards { display: none; }
  .hero__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .kinetic .w, .fcard { opacity: 1; transform: none; filter: none; }
  .rv { opacity: 1; transform: none; filter: none; }
}
