/* ============================================================================
   COHESIVITY — landing v1
   Design system: Cohesivity's terminal DNA, elevated to basement.studio craft.
   Warm near-black canvas · Geist + Geist Mono · ONE hot signal-orange accent ·
   1px off-white hairline grid · animated registration-mark corners · film grain.
   ============================================================================ */

@import url("assets/fonts/fonts.css");

/* ----------------------------------------------------------------- tokens -- */
:root {
  color-scheme: dark;
  /* canvas — warm near-black (honors the product's #1e1e1e, pushed deeper) */
  --bg:          #0b0b0c;
  --bg-1:        #101012;
  --panel:       #141416;
  --panel-2:     #18181b;
  --panel-dark:  #0e0e10;

  /* hairlines are OFF-WHITE at low alpha — never gray */
  --line:        rgba(236,236,231,0.10);
  --line-soft:   rgba(236,236,231,0.06);
  --line-strong: rgba(236,236,231,0.20);

  /* text — off-white, not pure white */
  --text:        #ecece8;
  --muted:       #9a9a93;   /* ~6.8:1 on --bg (AA) */
  --faint:       #7c7c77;   /* ~4.7:1 on --bg (AA for small label text) */
  --white:       #ffffff;

  /* ONE hot accent — signal orange + amber "energized" partner */
  --accent:      #ff5c1a;
  --accent-2:    #ff9a3d;
  --accent-deep: #e8430a;
  --accent-glow: rgba(255,92,26,0.30);
  --accent-soft: rgba(255,92,26,0.10);
  --online:      #38e07f;   /* tiny status dots only */

  /* type */
  --font-sans: "Geist", "Geist Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* motion */
  --ease:     cubic-bezier(0.175, 0.885, 0.32, 1);   /* basement signature */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:      0.62s;   /* ~1/golden-ratio */
  --dur-fast: 0.26s;

  /* layout */
  --maxw: 1440px;
  --gutter: clamp(20px, 5vw, 96px);
  --radius: 0px;       /* sharp. always. */
}

/* ------------------------------------------------------------------ reset -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv01";
}

::selection { background: var(--accent); color: #0b0b0c; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

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

/* ------------------------------------------------------------- containers -- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* full-bleed hairline rules that partition the page into a visible blueprint grid */
.section { position: relative; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.section--flush { border-top: none; }

/* registration-mark / bracket corners on framed elements */
.framed { position: relative; }
.framed::before, .framed::after,
.frame-c { pointer-events: none; }
.corner {
  position: absolute; width: 9px; height: 9px; z-index: 2;
  border: 0 solid var(--line-strong);
}
.corner.tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
/* animated registration tick that blinks at the corners */
.corner.live { border-color: var(--accent); animation: regblink 2.4s var(--ease-out) infinite; }
@keyframes regblink { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ------------------------------------------------------------ typography --- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); display: inline-block; box-shadow: 0 0 10px var(--accent-glow); }

.display {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-size: clamp(2.75rem, 7.5vw, 6.1rem);
  color: var(--text);
}
.h2 {
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}
.h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.1;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 46ch; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* the one "energized" gradient — used surgically (logo, one headline word) */
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.glow-txt { text-shadow: 0 0 28px var(--accent-glow); }

/* mono utility */
.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
.tnum { font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- buttons -- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 13px 20px; min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: transparent;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn .arr { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn--primary {
  background: var(--accent); color: #0b0b0c; border-color: var(--accent);
  font-weight: 600;
}
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2), 0 0 34px var(--accent-glow); }

.btn--ghost:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 28px var(--accent-soft); }

.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { background: transparent; box-shadow: none; }

/* the basement "actionable-blink" — opacity pulse on hover */
.blink:hover { animation: blink 0.5s steps(1) 1; }
@keyframes blink { 0%,100% { opacity: 1; } 25%,75% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---------------------------------------------------------------- reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ======================================================== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 800;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
.nav--scrolled { background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom-color: var(--line-strong); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__logo { width: 26px; height: 26px; }
.brand__name { font-family: var(--font-mono); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
.brand__name b { color: var(--text); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__link {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  letter-spacing: 0.01em; transition: color var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link .ct { color: var(--faint); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; }

/* skip link — first focusable element, hidden until focused */
.skip {
  position: absolute; left: 10px; top: -56px; z-index: 9999;
  background: var(--accent); color: #0b0b0c; padding: 11px 15px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  transition: top 0.16s var(--ease-out);
}
.skip:focus { top: 10px; }

@media (max-width: 900px) {
  .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--line);
    padding: 6px 0; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links .nav__link { padding: 14px var(--gutter); font-size: 15px; color: var(--text); }
  .nav__links .nav__link:hover { color: var(--accent); }
  .nav__toggle {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 44px; height: 44px; border: 1px solid var(--line-strong);
  }
  .nav__toggle span { width: 18px; height: 1.5px; background: var(--text); transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out); }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* ======================================================== HERO ============= */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  padding-block: clamp(56px, 9vw, 132px);
}
.hero__eyebrow { margin-bottom: 26px; }
.hero__title { margin-bottom: 26px; }
.hero__sub { margin-bottom: 34px; }
.hero__cmd { margin-bottom: 26px; max-width: 560px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__visual { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; }
/* soft accent atmosphere behind the stack */
.hero__visual::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76%; height: 64%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%); filter: blur(34px);
}
/* SVG isometric "stack powering on" — vector, so sharp at any DPR and reflows by viewBox */
.stack-svg { position: relative; z-index: 1; width: 100%; height: 100%; max-height: 520px; display: block; overflow: visible; --cycle: 4.2s; --step: 0.35s; }
.stack-svg .spine { stroke: rgba(236,236,231,0.12); stroke-width: 1; }
.stack-svg .plane-base { fill: none; stroke: rgba(236,236,231,0.26); stroke-width: 1; }
.stack-svg .lbl-tick { stroke: var(--faint); stroke-width: 1; }
.stack-svg .lbl { fill: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }
.stack-svg .planes-lit polygon {
  fill: rgba(255,92,26,0.10); stroke: #ff6a2a; stroke-width: 1.4; opacity: 0;
  filter: drop-shadow(0 0 5px rgba(255,92,26,0.65));
  animation: stack-sweep var(--cycle) linear infinite;
  animation-delay: calc(var(--i) * var(--step));
}
@keyframes stack-sweep { 0% { opacity: 0; } 7% { opacity: 1; } 24% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .stack-svg .planes-lit polygon { animation: none; opacity: 0; }
  .stack-svg .planes-lit polygon:nth-child(6),
  .stack-svg .planes-lit polygon:nth-child(7),
  .stack-svg .planes-lit polygon:nth-child(8) { opacity: 1; }
}
.hero__stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.stat__n { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--text); letter-spacing: -0.02em; }
.stat__l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; padding-block: clamp(40px,8vw,72px); }
  /* type-led hero on small screens — the command + stats carry it; the decorative
     stack is dropped rather than squeezed into an awkward band (and it's aria-hidden). */
  .hero__visual { display: none; }
}

/* command block (copyable) */
.cmd {
  position: relative;
  font-family: var(--font-mono); font-size: 14px; line-height: 1.7;
  border: 1px solid var(--line-strong); background: var(--panel-dark);
  padding: 16px 16px 16px 18px;
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--text);
}
.cmd__prompt { color: var(--accent); user-select: none; }
.cmd__text { white-space: pre-wrap; word-break: break-word; flex: 1; }
.cmd__caret { display: inline-block; width: 8px; height: 1.05em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.cmd__copy {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); padding: 9px 12px; min-height: 38px; align-self: flex-start;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.cmd__copy:hover { color: var(--accent); border-color: var(--accent); }
.cmd__copy.copied { color: var(--online); border-color: var(--online); }

/* ====================================================== MARQUEE ============ */
.marquee-sec { padding-block: 30px; }
.marquee-sec__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); text-align: center; margin-bottom: 22px; }
.marquee { 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); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 14px; color: var(--muted);
  padding: 0 30px; height: 40px; white-space: nowrap;
  border-right: 1px solid var(--line-soft);
}
.marquee__item .dot { width: 6px; height: 6px; background: var(--faint); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ====================================================== SECTION HEAD ======= */
.sec-head { padding-block: clamp(48px, 7vw, 92px) clamp(28px, 4vw, 48px); max-width: 760px; }
.sec-head .eyebrow { margin-bottom: 22px; }
.sec-head .h2 { margin-bottom: 18px; }

/* ====================================================== PROBLEM ============= */
.problem { padding-bottom: clamp(48px, 7vw, 96px); }
.problem__intro { max-width: 60ch; margin-bottom: 40px; }
.problem__intro .body { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.55; margin-top: 16px; }
.problem__grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.problem__cell { padding: 32px 30px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background var(--dur-fast) var(--ease-out); }
.problem__cell:hover { background: var(--panel); }
.problem__cell .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.12em; }
.problem__cell h3 { margin: 14px 0 9px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.problem__cell p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; max-width: 40ch; }
@media (max-width: 720px) { .problem__grid { grid-template-columns: 1fr; } }

/* ====================================================== HOW (numbered) ===== */
.how { padding-bottom: clamp(48px, 7vw, 96px); }
.step { display: grid; grid-template-columns: 96px 1fr 1.1fr; gap: 30px; align-items: start; padding: 38px 0; border-top: 1px solid var(--line); }
.step__n { font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--faint); letter-spacing: -0.03em; line-height: 1; }
.step__body h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 10px; }
.step__body p { color: var(--muted); max-width: 42ch; }
@media (max-width: 820px) { .step { grid-template-columns: 1fr; gap: 16px; } }

/* code block */
.code {
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7;
  border: 1px solid var(--line-strong); background: var(--panel-dark);
  padding: 16px 18px; color: var(--text); overflow-x: auto;
  white-space: pre; tab-size: 2;
}
.code .c-key { color: var(--accent-2); }
.code .c-str { color: #9fd39f; }
.code .c-com { color: var(--faint); }
.code .c-fn  { color: var(--accent); }
.code .c-pun { color: var(--muted); }

/* ====================================================== CATALOG ============ */
.catalog { padding-bottom: clamp(48px, 7vw, 96px); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-bottom: none; border-right: none; }
.card {
  position: relative; padding: 22px 22px 26px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease-out);
  min-height: 168px; display: flex; flex-direction: column;
}
.card:hover { background: var(--panel); }
.card:hover .card__name { color: var(--accent); }
.card__tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card__name { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 7px; transition: color var(--dur-fast) var(--ease-out); }
.card__desc { color: var(--muted); font-size: 0.88rem; line-height: 1.5; flex: 1; }
.card__up { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 14px; display: flex; align-items: center; gap: 7px; }
.card__up .dot { width: 5px; height: 5px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
/* trailing CTA tile spans the empty slots so the 14-card grid stays flush */
.card--cta { grid-column: span 2; background: var(--panel); justify-content: center; gap: 16px; align-items: flex-start; }
.card--cta:hover { background: var(--panel-2); }
.card--cta .h3 { max-width: 22ch; }
.card--cta:hover .card__name { color: inherit; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .card--cta { grid-column: span 1; } }

/* ====================================================== EDGE / HIGHLIGHT === */
.edge { padding-bottom: clamp(48px, 7vw, 96px); }
.edge__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.edge__left { padding: clamp(28px, 4vw, 52px); border-right: 1px solid var(--line); }
.edge__right { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.edge__hl { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.edge__hl b { color: var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-family: var(--font-mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 6px 11px; }
@media (max-width: 820px) { .edge__grid { grid-template-columns: 1fr; } .edge__left { border-right: none; border-bottom: 1px solid var(--line); } }

/* ====================================================== CODE-AS-HERO (tabs)  */
.codehero { padding-bottom: clamp(48px, 7vw, 96px); }
.tabs { border: 1px solid var(--line-strong); }
.tabs__bar { display: flex; border-bottom: 1px solid var(--line); background: var(--panel-dark); }
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.tab-label {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--muted); padding: 14px 20px; cursor: pointer;
  border-right: 1px solid var(--line); transition: color var(--dur-fast) var(--ease-out);
  user-select: none;
}
.tab-label:hover { color: var(--text); }
.tabpanel { display: none; }
.tabpanel .code { border: none; background: var(--panel-dark); padding: 24px clamp(18px, 3vw, 32px); min-height: 220px; }
/* CSS radio tab switching (3 tabs) */
#ch-0:checked ~ .tabs__bar label[for="ch-0"],
#ch-1:checked ~ .tabs__bar label[for="ch-1"],
#ch-2:checked ~ .tabs__bar label[for="ch-2"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
#ch-0:checked ~ .tabpanel[data-i="0"],
#ch-1:checked ~ .tabpanel[data-i="1"],
#ch-2:checked ~ .tabpanel[data-i="2"] { display: block; }
.tab-label:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 560px) { .tab-label { padding: 12px 13px; font-size: 11.5px; } }

/* ====================================================== LIFECYCLE ========== */
.lifecycle { padding-bottom: clamp(48px, 7vw, 96px); }
.track { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.track__step { padding: 30px 26px; border-right: 1px solid var(--line); position: relative; }
.track__step:last-child { border-right: none; }
.track__step .ph { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.track__step h3 { margin: 12px 0 8px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.track__step p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.track__step .arrow { position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: var(--faint); z-index: 3; font-family: var(--font-mono); background: var(--bg); padding: 2px; }
@media (max-width: 820px) { .track { grid-template-columns: 1fr; } .track__step { border-right: none; border-bottom: 1px solid var(--line); } .track__step .arrow { display: none; } }

/* ====================================================== PRICING ============ */
.pricing { padding-bottom: clamp(48px, 7vw, 96px); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.plan { padding: 30px 26px 34px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.plan:last-child { border-right: none; }
.plan--featured { background: var(--panel); position: relative; }
.plan--featured::before { content: "MOST POPULAR"; position: absolute; top: 0; right: 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: #0b0b0c; background: var(--accent); padding: 5px 10px; }
.plan__name { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.plan__price { font-weight: 600; font-size: 2.6rem; letter-spacing: -0.03em; margin: 14px 0 4px; }
.plan__price span { font-size: 1rem; color: var(--faint); font-weight: 400; }
.plan__tag { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; min-height: 2.6em; }
.plan__feats { display: flex; flex-direction: column; gap: 11px; flex: 1; margin-bottom: 22px; }
.plan__feats li { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); display: flex; gap: 10px; line-height: 1.4; }
.plan__feats li::before { content: "+"; color: var(--accent); }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, 1fr); } .plan:nth-child(2) { border-right: none; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } .plan { border-right: none; border-bottom: 1px solid var(--line); } .plan:last-child { border-bottom: none; } }

/* ====================================================== THESIS ============= */
.thesis { padding-block: clamp(56px, 8vw, 110px); }
.thesis__head { max-width: 800px; margin-bottom: 48px; }
.thesis__body { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--muted); max-width: 60ch; line-height: 1.5; }
.thesis__body b { color: var(--text); }
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.proof__cell { padding: 26px 24px; border-right: 1px solid var(--line); }
.proof__cell:last-child { border-right: none; }
.proof__n { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; color: var(--text); }
.proof__l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 820px) { .proof { grid-template-columns: repeat(2, 1fr); } .proof__cell:nth-child(2) { border-right: none; } }

/* ====================================================== FINAL CTA ========== */
.finalcta { padding-block: clamp(70px, 11vw, 160px); text-align: center; position: relative; overflow: hidden; }
.finalcta__glow { position: absolute; left: 50%; top: 42%; width: min(720px, 90vw); height: 420px; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%); pointer-events: none; filter: blur(20px); }
.finalcta .display { margin-bottom: 30px; position: relative; }
.finalcta__cmd { max-width: 620px; margin: 0 auto 28px; position: relative; }

/* ====================================================== FOOTER ============= */
.footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__brand .brand { margin-bottom: 16px; }
.footer__tag { color: var(--muted); font-size: 0.92rem; max-width: 32ch; line-height: 1.5; }
.footer__col h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; transition: color var(--dur-fast) var(--ease-out); }
.footer__col a:hover { color: var(--accent); }
.footer__bar { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--faint); flex-wrap: wrap; gap: 12px; }
.footer__ascii { font-family: var(--font-mono); font-size: 9px; line-height: 1.1; color: var(--faint); white-space: pre; opacity: 0.5; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } .footer__ascii { display: none; } }

/* ====================================================== utilities ========== */
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.center { text-align: center; }
.hide-mob { } @media (max-width: 640px) { .hide-mob { display: none; } }
