/* Base layer of landing A: tokens, typography, layout primitives, header, buttons, reveal states. */
:root {
  --ink: #0b0b0e;
  --ink-2: #131317;
  --ink-3: #1b1b21;
  --line-d: rgba(255, 255, 255, 0.09);
  --line-d2: rgba(255, 255, 255, 0.16);
  --paper: #f6f5f2;
  --paper-2: #ffffff;
  --line-l: #e6e3dd;
  --text-d: #f3f2f5;
  --text-d2: #a9a8b3;
  --text-l: #16161a;
  --text-l2: #55555f;
  /* Brand accent from code/core/shared/src/tokens.ts, extended with a warm ramp for marketing glow. */
  --red: #e11d2e;
  --red-hot: #ff3b46;
  --amber: #ff8a3d;
  --sun: #ffc35a;
  --ice: #cfe3ff;
  --grad: linear-gradient(100deg, #ff3b46 0%, #ff6a3d 45%, #ffc35a 100%);
  --font: 'Onest', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-d);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h2 { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }

/* Sections alternate a dark stage and a light paper, so the long page keeps a rhythm. */
.sec { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.sec--light { background: var(--paper); color: var(--text-l); }
.sec--light .lead, .sec--light .muted { color: var(--text-l2); }
.sec--ink2 { background: var(--ink-2); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-hot); margin-bottom: 22px;
}
.kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--text-d2); max-width: 680px; margin-top: 22px; }
.muted { color: var(--text-d2); }
.sec-head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 72px); }

/* Header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(11, 11, 14, 0.88); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line-d); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--red);
  display: grid; place-items: center; color: #fff; font: 800 12px/1 var(--font); letter-spacing: -0.02em;
  box-shadow: 0 6px 18px -4px rgba(225, 29, 46, 0.7);
}
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; font-size: 14.5px; color: var(--text-d2); padding: 8px 12px; border-radius: 10px; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--text-d); background: rgba(255, 255, 255, 0.06); }
.hdr-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; }

/* Buttons */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(225, 29, 46, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25); overflow: hidden; }
.btn--primary::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(225, 29, 46, 1); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); color: var(--text-d); box-shadow: inset 0 0 0 1px var(--line-d2); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-2px); }
.sec--light .btn--ghost { background: #fff; color: var(--text-l); box-shadow: inset 0 0 0 1px var(--line-l); }
.btn .arr { transition: transform 0.25s var(--spring); }
.btn:hover .arr { transform: translateX(4px); }
.link { color: var(--text-d2); text-decoration: none; font-size: 14.5px; }
.link:hover { color: var(--text-d); }

/* Reveal: elements rise and sharpen as they enter; JS adds .in once. */
.rv { opacity: 0; transform: translateY(36px) scale(0.985); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; filter: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }

/* Scroll progress line on top of the page */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.footer { background: var(--ink); border-top: 1px solid var(--line-d); padding: 56px 0 40px; color: var(--text-d2); font-size: 14.5px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { color: var(--text-d); font-size: 14px; margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text-d); }
.footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line-d); padding-top: 24px; margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .hdr-cta .link { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hdr .wrap { height: 60px; gap: 12px; }
  .hdr-cta .btn--sm { --h: 38px; padding: 0 14px; font-size: 14px; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer .wrap > :first-child { grid-column: 1 / -1; }
  .btn { --h: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .rv { opacity: 1; transform: none; filter: none; }
  .split .w > span { transform: none; }
}
