/* ═══════════════════════════════════════════════════════════════
   ShortSync — landing page
   Palette: warm stone ground + clay accent (#D97757 / #C15F3C)
   + a muted teal counterpoint. Deliberately not blue-on-black.
   Self-contained: does not load or depend on app.css.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  /* Warm neutral ramp — every step carries a little red/yellow, so
     nothing on the page reads as the usual cool blue-grey. */
  --stone-950: #0A0908;
  --stone-900: #12100E;
  --stone-850: #171412;
  --stone-800: #1E1A17;
  --stone-750: #26211D;
  --stone-700: #302A25;
  --stone-600: #453D36;
  --stone-500: #6B6058;
  --stone-400: #948A80;
  --stone-300: #BDB3A9;
  --stone-200: #DCD4CC;
  --stone-100: #F0EAE4;

  --ground:    var(--stone-950);
  --surface:   var(--stone-900);
  --surface-2: var(--stone-850);
  --surface-3: var(--stone-800);

  --line:        rgba(240, 234, 228, .07);
  --line-2:      rgba(240, 234, 228, .12);
  --line-strong: rgba(240, 234, 228, .20);

  --text:      var(--stone-100);   /* 16.7:1 on ground */
  --text-dim:  #A89E94;            /*  7.6:1 */
  --text-mute: #847A70;            /*  4.7:1 — carries 13.5px body copy, so it
                                          has to clear AA, not just look quiet */

  /* Clay — the accent. */
  --clay-300: #F2B197;
  --clay-400: #E88C6B;
  --clay-500: #D97757;
  --clay-600: #C15F3C;
  --clay-700: #9E4A2C;
  --clay-soft:   rgba(217, 119, 87, .11);
  --clay-softer: rgba(217, 119, 87, .055);
  --clay-line:   rgba(217, 119, 87, .28);

  /* Muted teal — complementary counterpoint, used only as a second
     data series and for live/ok state. Never decoration. */
  --teal-400: #6BA39C;
  --teal-500: #4A857E;
  --teal-soft: rgba(107, 163, 156, .12);

  /* On clay, text is near-black: white on #D97757 is only 3.1:1. */
  --on-clay: #1A1310;

  --r-xs: 4px;
  --r-sm: 7px;
  --r:    10px;
  --r-lg: 16px;

  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --container: 1180px;
  --gutter: 22px;
  --bay: clamp(76px, 9vw, 132px);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── Reset / base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
p { margin: 0; }

::selection { background: var(--clay-600); color: var(--stone-100); }

:focus-visible {
  outline: 2px solid var(--clay-500);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--stone-700); border: 3px solid var(--ground); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone-600); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--surface-2); color: var(--text);
  padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Film grain. A flat dark page looks digital; grain makes it feel printed. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  opacity: .22; 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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ── Layout primitives ───────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.bay { position: relative; padding-block: var(--bay); }
.bay + .bay { border-top: 1px solid var(--line); }

/* Section index — mono numbering, left aligned. Reads as a document,
   not as a deck of centred marketing slides. */
.bay__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.bay__head--center { max-width: 700px; margin-inline: auto; text-align: center; }

.idx {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-mute);
  margin-bottom: 22px;
}
.idx::before {
  content: ""; width: 26px; height: 1px; background: var(--clay-600); flex: none;
}
.idx b { color: var(--clay-500); font-weight: 500; }

h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.035em; }
h3 { font-size: clamp(17px, 1.8vw, 19px); letter-spacing: -.02em; }
.lede { color: var(--text-dim); font-size: clamp(15px, 1.35vw, 17px); margin-top: 18px; line-height: 1.65; }

/* Editorial emphasis: a serif italic in clay, instead of the usual
   gradient-filled headline word. */
.em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--clay-500);
  letter-spacing: -.01em;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -.01em;
  padding: 11px 19px; border-radius: var(--r-sm);
  border: 1px solid transparent; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 14px 24px; font-size: 15.5px; }

/* Dark ink on clay — the legible direction, and the distinctive one. */
.btn--clay { background: var(--clay-500); color: var(--on-clay); font-weight: 600; }
.btn--clay:hover { background: var(--clay-400); }

.btn--line { border-color: var(--line-2); color: var(--text); }
.btn--line:hover { border-color: var(--line-strong); background: rgba(240, 234, 228, .045); }

.btn--bare { color: var(--text-dim); }
.btn--bare:hover { color: var(--text); background: rgba(240, 234, 228, .05); }

.btn .ico { width: 15px; height: 15px; flex: none; }
.btn--clay:hover .ico--arr { transform: translateX(2px); }
.ico--arr { transition: transform .2s var(--ease); }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 120;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav.is-stuck {
  background: rgba(10, 9, 8, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__in { display: flex; align-items: center; gap: 30px; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; letter-spacing: -.025em; }
.brand__mark {
  width: 27px; height: 27px; flex: none;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--clay-soft);
  border: 1px solid var(--clay-line);
  color: var(--clay-400);
}
.brand__mark svg { width: 15px; height: 15px; }

.nav__links { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav__links a {
  font-size: 14px; color: var(--text-dim);
  padding: 7px 11px; border-radius: var(--r-xs);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__links a:hover { color: var(--text); background: rgba(240, 234, 228, .05); }

.nav__act { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.nav__burger {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); color: var(--text-dim);
  align-items: center; justify-content: center;
}
.nav__burger svg { width: 18px; height: 18px; }
.nav__burger .i-x { display: none; }
.nav__burger[aria-expanded="true"] .i-x { display: block; }
.nav__burger[aria-expanded="true"] .i-menu { display: none; }

.menu {
  position: fixed; inset: 66px 0 0; z-index: 119;
  background: rgba(10, 9, 8, .97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 18px var(--gutter) 40px; overflow-y: auto;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.menu a.menu__link {
  display: block; padding: 15px 2px; font-size: 17px;
  color: var(--text-dim); border-bottom: 1px solid var(--line);
}
.menu a.menu__link:hover { color: var(--text); }
.menu .btn { width: 100%; margin-top: 18px; padding: 14px; }

@media (max-width: 900px) {
  .nav__links, .nav__act { display: none; }
  .nav__burger { display: inline-flex; }
}
@media (min-width: 901px) { .menu { display: none; } }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: clamp(44px, 6vw, 82px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }

/* Engineering grid, masked — no glowing blobs. */
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(240, 234, 228, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 234, 228, .032) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 12%, #000 12%, transparent 76%);
  mask-image: radial-gradient(ellipse 80% 62% at 50% 12%, #000 12%, transparent 76%);
}
/* One restrained warm bloom, low opacity, behind the router only. */
.hero__warm {
  position: absolute; top: -120px; right: -140px;
  width: 760px; height: 620px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(217, 119, 87, .10), transparent 62%);
}

.hero__in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 60px); align-items: center;
}
@media (max-width: 1000px) {
  .hero__in { grid-template-columns: 1fr; gap: 44px; }
}

.tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line-2); border-radius: 100px;
  padding: 6px 14px; margin-bottom: 26px;
  background: rgba(240, 234, 228, .022);
}
.tag i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--clay-500);
  box-shadow: 0 0 0 3px var(--clay-soft);
  animation: breathe 2.8s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.03; letter-spacing: -.042em; font-weight: 600;
}
.hero h1 .em { font-size: 1.06em; line-height: 1; }

/* Per-line clip reveal. Lines, not letters — letter-stagger is a tell. */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: block;
  transform: translateY(102%);
  animation: lineUp .9s var(--ease) forwards;
}
.reveal-line:nth-child(1) > span { animation-delay: .05s; }
.reveal-line:nth-child(2) > span { animation-delay: .14s; }
.reveal-line:nth-child(3) > span { animation-delay: .23s; }
@keyframes lineUp { to { transform: none; } }

.hero__sub { color: var(--text-dim); font-size: clamp(15.5px, 1.4vw, 17.5px); margin-top: 24px; max-width: 500px; line-height: 1.64; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 28px;
  font-size: 12.5px; color: var(--text-mute); font-family: var(--mono);
}
.hero__facts li { display: flex; align-items: center; gap: 7px; }
.hero__facts svg { width: 13px; height: 13px; color: var(--teal-400); flex: none; }

.fade-up { opacity: 0; transform: translateY(14px); animation: fadeUp .8s var(--ease) forwards; }
.d1 { animation-delay: .34s; } .d2 { animation-delay: .42s; } .d3 { animation-delay: .5s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ── Router console (hero visual) ────────────────────────────── */
.console {
  position: relative;
  background: linear-gradient(168deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95);
}
.console__bar {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 15px; border-bottom: 1px solid var(--line);
  background: rgba(240, 234, 228, .014);
}
.console__name { font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); letter-spacing: .02em; }
.live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-400); border: 1px solid rgba(107, 163, 156, .3);
  background: var(--teal-soft); border-radius: 100px; padding: 3px 9px;
}
.live i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal-400); animation: breathe 2s ease-in-out infinite; }

.console__body { padding: 6px 10px 14px; }
.router { width: 100%; height: auto; }

/* Router SVG parts */
.rt-box { fill: var(--surface-3); stroke: var(--line-2); stroke-width: 1; }
.rt-core { fill: rgba(217, 119, 87, .07); stroke: var(--clay-line); stroke-width: 1; }
.rt-t { fill: var(--text); font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: -.01em; }
.rt-s { fill: var(--text-mute); font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; }
.rt-c { fill: var(--clay-400); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.rt-path { fill: none; stroke: var(--line-2); stroke-width: 1; }
.rt-packet { fill: var(--clay-500); }

/* Providers light up in turn as the round-robin cursor advances.
   The per-node animation-delay is set inline by the template. */
.rt-node rect { animation: nodeCycle 7.2s steps(1, end) infinite; }
.rt-node text.rt-t { animation: nodeText 7.2s steps(1, end) infinite; }
@keyframes nodeCycle {
  0%, 25%   { fill: rgba(217, 119, 87, .1); stroke: var(--clay-line); }
  25.01%, 100% { fill: var(--surface-3); stroke: var(--line-2); }
}
@keyframes nodeText {
  0%, 25%   { fill: var(--clay-300); }
  25.01%, 100% { fill: var(--text); }
}

/* Distribution readout under the diagram */
.dist { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.dist__row { display: grid; grid-template-columns: 96px 1fr 42px; align-items: center; gap: 12px; }
.dist__row b { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--text-dim); }
.dist__row em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--text-mute); text-align: right; }
.meter { height: 4px; border-radius: 100px; background: rgba(240, 234, 228, .06); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: 100px; background: var(--clay-500); transition: width 1.2s var(--ease); }
.meter--2 span { background: var(--clay-600); }
.meter--3 span { background: var(--teal-500); }
.meter--4 span { background: var(--stone-600); }

/* ── Capability strip ────────────────────────────────────────── */
.caps { border-block: 1px solid var(--line); background: rgba(240, 234, 228, .009); }
.caps__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(188px, 1fr)); }
.caps__it {
  display: flex; align-items: center; gap: 11px;
  padding: 22px 18px; font-size: 13px; color: var(--text-dim);
  border-right: 1px solid var(--line);
}
.caps__it:last-child { border-right: 0; }
.caps__it svg { width: 16px; height: 16px; color: var(--clay-500); flex: none; }
@media (max-width: 860px) {
  .caps__in { grid-template-columns: 1fr 1fr; }
  .caps__it { font-size: 12.5px; padding: 17px 14px; border-bottom: 1px solid var(--line); }
  .caps__it:nth-child(2n) { border-right: 0; }
}
@media (max-width: 460px) { .caps__in { grid-template-columns: 1fr; } .caps__it { border-right: 0; } }

/* ── Compare ─────────────────────────────────────────────────── */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 880px) { .cmp { grid-template-columns: 1fr; } }
.cmp__card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; background: var(--surface); }
.cmp__card--good { border-color: var(--clay-line); background: linear-gradient(180deg, var(--clay-softer), transparent 58%), var(--surface); }
.cmp__lbl {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-mute);
}
.cmp__card--good .cmp__lbl { color: var(--clay-500); }
.cmp__list { display: grid; gap: 1px; }
.cmp__list li {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px; font-size: 14px; color: var(--text-dim);
  background: rgba(240, 234, 228, .018); border-radius: var(--r-sm);
}
.cmp__card--bad .cmp__list li { color: var(--text-mute); }
.cmp__n {
  flex: none; width: 19px; height: 19px; border-radius: 5px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 9.5px;
  background: rgba(240, 234, 228, .06); color: var(--text-mute);
}
.cmp__card--good .cmp__n { background: var(--clay-soft); color: var(--clay-400); }
.cmp__out { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-mute); }
.cmp__card--good .cmp__out { color: var(--teal-400); }

/* ── Steps ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--ground); padding: 26px 22px; transition: background .25s var(--ease); }
.step:hover { background: var(--surface); }
.step__n { font-family: var(--mono); font-size: 11.5px; color: var(--clay-500); letter-spacing: .1em; display: block; margin-bottom: 18px; }
.step h3 { margin-bottom: 9px; }
.step p { font-size: 13.5px; color: var(--text-mute); line-height: 1.6; }

/* ── Feature grid (cursor spotlight) ─────────────────────────── */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 940px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }

.cell { position: relative; background: var(--ground); padding: 28px 24px; overflow: hidden; }
/* Spotlight follows the pointer — warm, low opacity, one light source. */
.cell::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity .32s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 119, 87, .09), transparent 62%);
}
.cell:hover::before { opacity: 1; }
.cell__ico {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--clay-line); background: var(--clay-softer); color: var(--clay-400);
  margin-bottom: 18px;
}
.cell__ico svg { width: 16px; height: 16px; }
.cell h3 { margin-bottom: 8px; font-size: 15.5px; }
.cell p { font-size: 13.5px; color: var(--text-mute); line-height: 1.62; }
.cell__tag {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: 10.5px; color: var(--text-mute);
  border: 1px solid var(--line); border-radius: 100px; padding: 3px 9px;
}

/* ── Rotation modes ──────────────────────────────────────────── */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.mode {
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  background: var(--surface); transition: border-color .25s var(--ease), background .25s var(--ease);
}
.mode:hover { border-color: var(--clay-line); background: var(--surface-2); }
.mode b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.015em; }
.mode span { display: block; font-size: 12.5px; color: var(--text-mute); line-height: 1.55; }
.mode code {
  display: inline-block; margin-top: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--clay-400);
  background: var(--clay-softer); border: 1px solid var(--clay-line);
  padding: 2px 8px; border-radius: 5px;
}

/* ── Split layout ────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 60px); align-items: center; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.ticks { display: grid; gap: 12px; margin-top: 26px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.ticks svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--clay-500); }

/* ── Code ────────────────────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 13px; }
.tab {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em;
  color: var(--text-mute); padding: 7px 13px; border-radius: var(--r-xs);
  border: 1px solid transparent; transition: all .18s var(--ease);
}
.tab:hover { color: var(--text-dim); background: rgba(240, 234, 228, .04); }
.tab[aria-selected="true"] { color: var(--clay-400); background: var(--clay-softer); border-color: var(--clay-line); }

.code { border: 1px solid var(--line-2); border-radius: var(--r); background: #0D0B0A; overflow: hidden; }
.code__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(240, 234, 228, .014); }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--stone-700); }
.dots i:first-child { background: var(--clay-700); }
.code pre {
  margin: 0; padding: 17px 16px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.72; color: #C8BEB4;
  -webkit-overflow-scrolling: touch;
}
.code pre::-webkit-scrollbar { height: 6px; }
.code pre::-webkit-scrollbar-thumb { background: var(--stone-700); border: 0; }
.panel[hidden] { display: none; }
.panel { animation: panelIn .28s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Warm syntax colours — no neon. */
.t-key  { color: #D99A76; }
.t-str  { color: #9FB58A; }
.t-fn   { color: #E2B07E; }
.t-com  { color: #5C5249; font-style: italic; }
.t-num  { color: #C88C6B; }
.t-verb { color: var(--clay-500); font-weight: 500; }
.t-punc { color: #6B6058; }

/* ── Marquee ─────────────────────────────────────────────────── */
.marq { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq__track { display: flex; gap: 10px; width: max-content; animation: slide 34s linear infinite; }
.marq:hover .marq__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 100px; padding: 8px 15px; white-space: nowrap;
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--clay-600); flex: none; }
.chip--dash { border-style: dashed; color: var(--text-mute); }

/* ── Stats / analytics ───────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--surface); }
.stat__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.stat__v { font-size: 27px; font-weight: 600; letter-spacing: -.04em; margin-top: 9px; font-variant-numeric: tabular-nums; }
.stat__d { font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin-top: 5px; }

.sample {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-mute);
}
.sample::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay-700); flex: none; }

/* ── Access / billing ────────────────────────────────────────── */
.slab { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 22px; }
.slab__row { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px dashed var(--line); }
.slab__row:last-of-type { border-bottom: 0; }
.slab__row .k { font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); min-width: 110px; }
.slab__row .v { margin-left: auto; text-align: right; font-size: 13.5px; color: var(--text-dim); }
.slab__row .v b { color: var(--text); font-weight: 600; }
.bar2 { height: 5px; border-radius: 100px; background: rgba(240, 234, 228, .06); overflow: hidden; margin-top: 16px; }
.bar2 span { display: block; height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--clay-600), var(--clay-400)); transition: width 1.2s var(--ease); }
.bar2__meta { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--mono); font-size: 11px; color: var(--text-mute); }

.pays { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
@media (max-width: 540px) { .pays { grid-template-columns: 1fr; } }
.pay { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--surface); }
.pay h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.015em; }
.pay p { font-size: 12.5px; color: var(--text-mute); line-height: 1.58; }
.pay__t { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.pay__t span { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; }

/* ── Pricing ─────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 26px 22px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.plan--hot {
  border-color: var(--clay-line);
  background: linear-gradient(180deg, var(--clay-softer), transparent 52%), var(--surface);
}
.plan__badge {
  position: absolute; top: -10px; left: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--clay-500); color: var(--on-clay); font-weight: 600;
  padding: 4px 10px; border-radius: 100px;
}
.plan__name { font-size: 14.5px; font-weight: 600; letter-spacing: -.015em; }
.plan__price { display: flex; align-items: baseline; gap: 5px; margin: 18px 0 3px; }
.plan__price b { font-size: 34px; font-weight: 600; letter-spacing: -.045em; }
.plan__price s { color: var(--text-mute); font-size: 15px; }
.plan__price span { font-size: 13px; color: var(--text-mute); }
.plan__note { font-family: var(--mono); font-size: 11px; color: var(--text-mute); min-height: 17px; }
.plan .btn { width: 100%; margin: 20px 0; }
.plan__list { display: grid; gap: 10px; font-size: 13px; color: var(--text-dim); margin-top: auto; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.plan__list svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--clay-500); }
.plans__note { margin-top: 24px; font-size: 12.5px; color: var(--text-mute); line-height: 1.7; max-width: 720px; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; gap: 16px; padding: 19px 2px;
  cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 500; letter-spacing: -.018em;
  transition: color .18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay-400); }
.faq summary::after {
  content: ""; margin-left: auto; flex: none; width: 9px; height: 9px;
  border-right: 1.5px solid var(--text-mute); border-bottom: 1.5px solid var(--text-mute);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .26s var(--ease), border-color .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); border-color: var(--clay-500); }
.faq .ans { padding: 0 2px 21px; font-size: 14px; color: var(--text-dim); line-height: 1.72; max-width: 700px; }
.faq .ans code { font-family: var(--mono); font-size: 12.5px; color: var(--clay-400); background: var(--clay-softer); padding: 2px 6px; border-radius: 5px; }

/* ── Final CTA ───────────────────────────────────────────────── */
.end { position: relative; overflow: hidden; }
.end__in { position: relative; max-width: 720px; }
.end h2 { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -.04em; }
.end p { color: var(--text-dim); font-size: clamp(15px, 1.4vw, 17.5px); margin-top: 18px; line-height: 1.65; }
.end__cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.flowline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 38px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; color: var(--text-mute); }
.flowline b { font-weight: 400; color: var(--text-dim); border: 1px solid var(--line); border-radius: 100px; padding: 5px 13px; background: rgba(240, 234, 228, .02); }
.flowline i { font-style: normal; color: var(--clay-600); }

/* ── Footer ──────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--stone-900); padding-block: 52px 28px; }
.foot__grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 38px; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot__brand p { font-size: 13px; color: var(--text-mute); margin-top: 14px; max-width: 290px; line-height: 1.65; }
.foot__col h4 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 15px; }
.foot__col a { display: block; font-size: 13.5px; color: var(--text-dim); padding: 5px 0; transition: color .18s var(--ease); }
.foot__col a:hover { color: var(--clay-400); }
.foot__btm {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--text-mute);
}

/* ── Scroll reveal ───────────────────────────────────────────── */
[data-rise] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-rise].is-in { opacity: 1; transform: none; }

/* ── Motion preferences ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-rise] { opacity: 1; transform: none; }
  .reveal-line > span { transform: none; }
  .fade-up { opacity: 1; transform: none; }
  .marq__track { animation: none; }
  .plan:hover { transform: none; }
  /* Packets stop moving; the diagram still reads as a static schematic. */
  .rt-packet { display: none; }
}
