/* Boost — design tokens */
:root {
  /* Base (light) — crisp, cool, confident */
  --bg: #FBFCFD;            /* near-white, cool */
  --bg-2: #F2F5F8;          /* subtle cool tint */
  --bg-3: #E7ECF2;
  --ink: #0A1F44;            /* strong deep navy */
  --ink-2: #0F2A58;
  --ink-3: #1A3A75;
  --muted: #4A5670;          /* darker for contrast */
  --muted-2: #7C8699;
  --line: rgba(10, 31, 68, 0.14);
  --line-2: rgba(10, 31, 68, 0.26);
  --accent: #0051FF;         /* electric blue */
  --accent-ink: #0040CC;
  --accent-soft: #D6E4FF;
  --paper: #FFFFFF;
  --selection: rgba(59,111,176,0.22);

  /* Type */
  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Söhne", "Inter", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --step--2: clamp(11px, 0.68vw, 12px);
  --step--1: clamp(12px, 0.78vw, 13.5px);
  --step-0: clamp(14.5px, 0.95vw, 16px);
  --step-1: clamp(17px, 1.1vw, 19px);
  --step-2: clamp(20px, 1.4vw, 24px);
  --step-3: clamp(26px, 2vw, 34px);
  --step-4: clamp(34px, 3vw, 50px);
  --step-5: clamp(44px, 4.6vw, 76px);
  --step-6: clamp(58px, 6.4vw, 112px);

  --radius: 2px;
  --radius-lg: 4px;
  --page-pad: clamp(20px, 4vw, 64px);
  --container: 1320px;
}

[data-theme="dark"] {
  --bg: #06152E;
  --bg-2: #0C1F42;
  --bg-3: #13295A;
  --ink: #F5F7FA;
  --ink-2: #E6EBF2;
  --ink-3: #C9D2DE;
  --muted: #A5B0C2;
  --muted-2: #6E7A8F;
  --line: rgba(245, 247, 250, 0.14);
  --line-2: rgba(245, 247, 250, 0.26);
  --accent: #6FA0DB;
  --accent-ink: #BFD4EE;
  --accent-soft: rgba(111,160,219,0.14);
  --paper: #0C1F42;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    linear-gradient(to right, rgba(10,31,68,0.05) 1px, transparent 1px) 0 0 / 67px 67px,
    linear-gradient(to bottom, rgba(10,31,68,0.05) 1px, transparent 1px) 0 0 / 67px 67px,
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
[data-theme="dark"] body {
  background:
    linear-gradient(to right, rgba(245,247,250,0.06) 1px, transparent 1px) 0 0 / 67px 67px,
    linear-gradient(to bottom, rgba(245,247,250,0.06) 1px, transparent 1px) 0 0 / 67px 67px,
    var(--bg);
}
::selection { background: var(--selection); }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; text-transform: uppercase; font-size: var(--step--2); }
.label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.rule { height: 1px; background: var(--line); width: 100%; }
.thin-rule { height: 1px; background: var(--line); }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--page-pad); padding-right: var(--page-pad); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius); font-size: var(--step-0); font-weight: 500; border: 1px solid transparent; transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, border-color .2s; position: relative; overflow: hidden; }
.btn .arrow { display: inline-block; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset; }
.btn-primary:hover { background: var(--ink-2); box-shadow: 0 12px 28px -10px rgba(0,81,255,0.7); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }

/* Grid accents */
.grid-lines { position: absolute; inset: 0; pointer-events: none; }
.grid-lines::before, .grid-lines::after {
  content: ""; position: absolute; background: var(--line);
}
.grid-lines::before { left: 0; right: 0; top: 0; height: 1px; }
.grid-lines::after { left: 0; right: 0; bottom: 0; height: 1px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* Site chrome */
.site-nav {
  position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.site-brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.site-brand .dot { width: 7px; height: 7px; background: var(--accent); display: inline-block; border-radius: 50%; transform: translateY(-2px); }
.site-brand small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.brand-mark { height: 32px !important; width: auto !important; display: block; max-height: 32px; }
[data-theme="dark"] .brand-mark { filter: invert(1) hue-rotate(180deg) brightness(1.15); }
.footer-lockup { height: 72px !important; width: auto !important; max-width: 100%; display: block; margin-bottom: 16px; }
[data-theme="dark"] .footer-lockup { filter: invert(1) hue-rotate(180deg) brightness(1.15); }
.site-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink); }
.site-links a { position: relative; padding: 4px 0; color: var(--muted); transition: color .2s; }
.site-links a:hover, .site-links a[aria-current="page"] { color: var(--ink); }
.site-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 1px; background: var(--ink); }

.site-footer { margin-top: 140px; border-top: 1px solid var(--line); }
.site-footer .inner { padding: 64px 0 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.site-footer h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.site-footer a { display: block; padding: 6px 0; color: var(--ink); opacity: 0.82; }
.site-footer a:hover { opacity: 1; color: var(--accent-ink); }
.site-footer .colophon { padding: 20px 0 32px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; }

/* Page header pattern */
.page-head { padding: 96px 0 48px; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: 28px; }
.page-head h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.025em; max-width: 16ch; }
.page-head .lede { font-size: var(--step-2); line-height: 1.35; color: var(--muted); max-width: 56ch; margin-top: 28px; font-family: var(--font-display); font-style: italic; font-weight: 300; }
.page-head .cta-row { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Section */
section { position: relative; }
.section-pad { padding: 96px 0; }

/* Number list */
.num-list { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 48px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.num-list li:last-child { border-bottom: 1px solid var(--line); }
.num-list li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-mono); color: var(--muted); font-size: 12px; padding-top: 4px; letter-spacing: 0.1em; }
.num-list h3 { font-size: var(--step-2); margin-bottom: 10px; }
.num-list p { color: var(--muted); max-width: 62ch; }

/* Cards */
.card-row { display: grid; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-row.three { grid-template-columns: repeat(3, 1fr); }
.card-row.two { grid-template-columns: repeat(2, 1fr); }
.card-row.four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 40px 36px; border-right: 1px solid var(--line); transition: background .3s, box-shadow .3s, transform .3s; position: relative; }
.card:last-child { border-right: none; }
.card:hover { background: var(--paper); box-shadow: 0 10px 30px -12px rgba(0,81,255,0.38), 0 0 0 1px var(--accent-soft); transform: translateY(-2px); z-index: 2; }
.card .idx { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.14em; }
.card h3 { font-size: var(--step-2); margin: 18px 0 14px; }
.card p { color: var(--muted); }

/* Definition list */
.defs { display: grid; grid-template-columns: 220px 1fr; gap: 12px 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.defs dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.defs dd { margin: 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); color: var(--ink); }
.defs dd:last-of-type { border-bottom: none; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); font-weight: 500; }
.tag::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px var(--accent-soft); }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; font-family: var(--font-display); font-size: var(--step-3); white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 60px; animation: marquee 42s linear infinite; padding-left: 60px; }
.marquee .sep { color: var(--accent); }
.marquee .crossed { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; color: var(--muted); font-style: italic; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Focus states */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 900px) {
  .card-row.three, .card-row.four { grid-template-columns: 1fr; }
  .card-row .card { border-right: none; border-bottom: 1px solid var(--line); }
  .card-row .card:last-child { border-bottom: none; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
  .defs { grid-template-columns: 1fr; gap: 4px; }
  .num-list li { grid-template-columns: 1fr; gap: 8px; }
  .site-links { display: none; }
}
