/* ==========================================================================
   Cloudflare Durable Objects — landing page styles
   Hand-rolled, no framework. Sections: tokens, base, nav, hero, sections,
   explainer, simulator, comparison, use cases, code tour, pricing, proof,
   FAQ, CTA, footer, utilities, responsive.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --orange: #f6821f;
  --orange-bright: #ff9633;
  --orange-soft: #fbad41;
  --orange-ink: #c05b00;
  --navy-990: #050d1a;
  --navy-950: #081527;
  --navy-900: #0c1d33;
  --navy-850: #12213a;
  --navy-800: #16263f;
  --navy-700: #23364f;
  --blue: #3b82f6;
  --teal: #2dd4bf;
  --green: #34d399;
  --red: #f4586a;
  --ink: #16222e;
  --ink-soft: #46586a;
  --ink-faint: #6b7d8f;
  --mist: #f4f7fa;
  --mist-deep: #e9eef4;
  --line: #dde5ec;
  --line-dark: rgba(255, 255, 255, 0.09);
  --paper: #ffffff;
  --dark-text: #e9f0f7;
  --dark-text-soft: #a9bacb;
  --dark-text-faint: #7c8fa3;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(10, 25, 47, 0.05), 0 8px 24px -12px rgba(10, 25, 47, 0.18);
  --shadow-pop: 0 2px 6px rgba(10, 25, 47, 0.08), 0 20px 48px -20px rgba(10, 25, 47, 0.3);
  --wrap: 1160px;
  --nav-h: 64px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
canvas {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
}
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}
:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: rgba(246, 130, 31, 0.28);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
  position: relative;
}
.section--dark {
  background: var(--navy-950);
  color: var(--dark-text);
}
.section--mist {
  background: var(--mist);
}
.section--line-top {
  border-top: 1px solid var(--line);
}

/* Section headers */
.sec-head {
  max-width: 780px;
  margin-bottom: 52px;
}
.sec-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: 14px;
}
.section--dark .eyebrow {
  color: var(--orange-soft);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.sec-head--center .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.sec-head h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 700;
}
.sec-head .lede {
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--ink-soft);
  margin-top: 14px;
}
.section--dark .sec-head .lede {
  color: var(--dark-text-soft);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-stagger.is-in > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.btn svg {
  flex: none;
  transition: transform 0.16s ease;
}
.btn:hover svg.arrow {
  transform: translateX(3px);
}
.btn--primary {
  background: linear-gradient(135deg, var(--orange) 0%, #f96f00 100%);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(246, 130, 31, 0.55);
}
.btn--primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 22px -6px rgba(246, 130, 31, 0.65);
}
.btn--primary:active {
  transform: translateY(0);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--ink-faint);
  transform: translateY(-1.5px);
}
.btn--ghost-dark {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--dark-text);
  background: rgba(255, 255, 255, 0.04);
}
.btn--ghost-dark:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1.5px);
}
.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 8px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 21, 39, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(8, 21, 39, 0.9);
  border-bottom-color: var(--line-dark);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark-text);
  margin-right: 4px;
  flex: none;
}
.nav-brand img {
  width: 96px;
  display: block;
}
.nav-brand .divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.22);
}
.nav-brand .product {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--dark-text-soft);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.nav-links a.is-active {
  color: var(--orange-soft);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.nav-cta .docs-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--dark-text-soft);
  text-decoration: none;
  padding: 8px 10px;
}
.nav-cta .docs-link:hover {
  color: #fff;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--dark-text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  transition: width 0.1s linear;
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 55;
  background: #0a1a30;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--line-dark);
  padding: 12px 24px 24px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.nav-drawer.is-open {
  display: flex;
}
.nav-drawer a {
  padding: 13px 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-text);
  text-decoration: none;
  border-radius: 8px;
}
.nav-drawer a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav-drawer .drawer-cta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(246, 130, 31, 0.16), transparent 60%),
    radial-gradient(900px 500px at 12% 110%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--navy-950);
  color: var(--dark-text);
  padding: calc(var(--nav-h) + 76px) 0 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(251, 173, 65, 0.35);
  background: rgba(246, 130, 31, 0.1);
  color: var(--orange-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--orange-soft);
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.09em;
  background: linear-gradient(90deg, var(--orange), transparent);
  border-radius: 3px;
  opacity: 0.7;
}
.hero .sub {
  font-size: clamp(16.5px, 1.7vw, 19px);
  color: var(--dark-text-soft);
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero .sub strong {
  color: var(--dark-text);
  font-weight: 600;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0 0 60px;
  list-style: none;
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dark-text-faint);
}
.hero-facts svg {
  color: var(--green);
  flex: none;
}

/* Hero visual */
.hero-visual {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.hero-visual .visual-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dark-text-faint);
}
.hero-visual .visual-head .traffic {
  display: flex;
  gap: 6px;
  margin-right: 8px;
}
.hero-visual .visual-head .traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.hero-visual canvas {
  display: block;
  width: 100%;
}
.hero-visual .visual-caption {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line-dark);
  font-size: 12.5px;
  color: var(--dark-text-faint);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-visual .visual-caption .legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-visual .visual-caption .legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-visual .visual-caption .legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Trusted-by strip inside hero bottom */
.hero-strip {
  position: relative;
  margin-top: 8px;
  border-top: 1px solid var(--line-dark);
  padding: 22px 0 26px;
}
.hero-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 34px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--dark-text-faint);
}
.hero-strip strong {
  color: var(--dark-text-soft);
  font-weight: 600;
}
.hero-strip .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- Problem section ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.problem-copy h2 {
  font-size: clamp(26px, 3.6vw, 38px);
}
.problem-copy p {
  color: var(--ink-soft);
  font-size: 17px;
}
.problem-copy .pivot {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 23px);
  color: var(--ink);
  border-left: 3px solid var(--orange);
  padding-left: 16px;
  margin-top: 26px;
}
.pain-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pain-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.pain-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--red);
}
.problem-figure {
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-800);
  padding: 22px 22px 16px;
  box-shadow: var(--shadow-pop);
}
.problem-figure svg {
  display: block;
  width: 100%;
}
.problem-figure figcaption {
  font-size: 13px;
  color: var(--dark-text-faint);
  padding: 12px 4px 4px;
  line-height: 1.55;
}
.problem-figure figcaption strong {
  color: var(--dark-text-soft);
}

/* ---------- Mental model / explainer journey ---------- */
.journey {
  counter-reset: level;
  display: grid;
  gap: 26px;
}
.level {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.level:nth-child(even) {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
.level:nth-child(even) .level-copy {
  order: 2;
}
.level-copy {
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.level-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: 14px;
}
.level-tag .lvl-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(246, 130, 31, 0.12);
  border: 1px solid rgba(246, 130, 31, 0.35);
  color: var(--orange-ink);
  font-size: 13px;
}
.level h3 {
  font-size: clamp(21px, 2.4vw, 27px);
  margin-bottom: 12px;
}
.level-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 12px;
}
.level-copy p:last-child {
  margin-bottom: 0;
}
.level-copy .callout {
  margin-top: 10px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.level-copy .callout strong {
  color: var(--ink);
}
.level-visual {
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 30px;
  min-height: 300px;
  position: relative;
}
.level-visual svg {
  width: 100%;
  max-width: 520px;
  display: block;
}
.level-visual .code-mini {
  width: 100%;
  max-width: 520px;
}

/* Mechanics cards (level 3) */
.mech-intro {
  max-width: 780px;
  margin: 60px auto 36px;
  text-align: center;
}
.mech-intro h3 {
  font-size: clamp(23px, 2.8vw, 30px);
}
.mech-intro p {
  color: var(--ink-soft);
}
.mech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mech-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.mech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
  border-color: rgba(246, 130, 31, 0.45);
}
.mech-card .mech-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(246, 130, 31, 0.14), rgba(251, 173, 65, 0.08));
  border: 1px solid rgba(246, 130, 31, 0.3);
  color: var(--orange-ink);
  margin-bottom: 16px;
}
.mech-card h4 {
  font-size: 17.5px;
  margin-bottom: 8px;
}
.mech-card > p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  flex: 1;
}
.mech-card details {
  border-top: 1px dashed var(--line);
  padding-top: 4px;
  margin-top: auto;
}
.mech-card summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange-ink);
  cursor: pointer;
  padding: 8px 0 4px;
  user-select: none;
}
.mech-card summary::-webkit-details-marker {
  display: none;
}
.mech-card summary svg {
  transition: transform 0.2s ease;
}
.mech-card details[open] summary svg {
  transform: rotate(90deg);
}
.mech-card details p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 6px 0 4px;
}
.mech-card details code {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 12px;
  white-space: nowrap;
}

/* ---------- Simulator (centerpiece) ---------- */
.sim-shell {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.sim-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
}
.mode-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}
.mode-switch button {
  border: 0;
  background: transparent;
  color: var(--dark-text-soft);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}
.mode-switch button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--orange), #f96f00);
  color: #fff;
  box-shadow: 0 2px 10px -2px rgba(246, 130, 31, 0.6);
}
.mode-switch button[aria-pressed="true"].mode-legacy {
  background: linear-gradient(135deg, #64748b, #475569);
  box-shadow: none;
}
.sim-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
  color: var(--dark-text);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 9px;
  padding: 8px 14px;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.sim-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.sim-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.sim-btn.is-on {
  border-color: rgba(52, 211, 153, 0.5);
  color: var(--green);
}
.sim-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}
.sim-stage {
  position: relative;
  border-right: 1px solid var(--line-dark);
  min-height: 380px;
}
.sim-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}
.sim-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background: rgba(8, 21, 39, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: opacity 0.4s ease;
}
.sim-empty.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.sim-empty p {
  max-width: 40ch;
  color: var(--dark-text-soft);
  font-size: 14.5px;
  margin: 0;
}
.sim-side {
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.sim-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line-dark);
}
.sim-stat {
  padding: 14px 14px 12px;
  border-right: 1px solid var(--line-dark);
}
.sim-stat:last-child {
  border-right: 0;
}
.sim-stat .label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-text-faint);
  display: block;
  margin-bottom: 3px;
  white-space: nowrap;
}
.sim-stat .value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sim-stat .value.is-bad {
  color: var(--red);
}
.sim-stat .value.is-good {
  color: var(--green);
}
.sim-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-text-faint);
}
.sim-log {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 12px;
  margin: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  max-height: 300px;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-700) transparent;
}
.sim-log li {
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--dark-text-soft);
  display: flex;
  gap: 8px;
  align-items: baseline;
  animation: log-in 0.3s ease;
}
@keyframes log-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sim-log li { animation: none; }
}
.sim-log li .t {
  color: var(--dark-text-faint);
  flex: none;
  font-size: 10.5px;
}
.sim-log li.evt-process { color: var(--orange-soft); }
.sim-log li.evt-broadcast { color: var(--teal); }
.sim-log li.evt-conflict { color: var(--red); background: rgba(244, 88, 106, 0.08); }
.sim-log li.evt-write { color: var(--green); }
.sim-log .sim-log-empty {
  color: var(--dark-text-faint);
  font-style: italic;
  animation: none;
}
.sim-footnote {
  border-top: 1px solid var(--line-dark);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--dark-text-faint);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.sim-footnote svg {
  flex: none;
  margin-top: 2px;
  color: var(--orange-soft);
}
.sim-footnote strong {
  color: var(--dark-text-soft);
}

/* ---------- Comparison ---------- */
.compare-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 46px;
}
.arch-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.arch-card--do {
  border-color: rgba(246, 130, 31, 0.5);
  box-shadow: 0 2px 6px rgba(246, 130, 31, 0.06), 0 22px 52px -22px rgba(246, 130, 31, 0.28);
}
.arch-card .arch-head {
  padding: 20px 24px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.arch-card .arch-head h3 {
  font-size: 18px;
  margin: 0;
}
.arch-card .arch-head .pill {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 11px;
}
.pill--old {
  background: var(--mist-deep);
  color: var(--ink-faint);
}
.pill--new {
  background: rgba(246, 130, 31, 0.14);
  color: var(--orange-ink);
}
.arch-card .arch-figure {
  background: var(--navy-950);
  padding: 20px;
}
.arch-card .arch-figure svg {
  display: block;
  width: 100%;
}
.arch-card ul {
  list-style: none;
  margin: 0;
  padding: 18px 24px 22px;
  display: grid;
  gap: 9px;
}
.arch-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.arch-card li svg {
  flex: none;
  margin-top: 3.5px;
}
.arch-card li.minus svg { color: var(--red); }
.arch-card li.plus svg { color: var(--green); }

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--paper);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14.5px;
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  background: var(--mist);
  white-space: nowrap;
}
.compare-table thead th.do-col {
  background: rgba(246, 130, 31, 0.1);
  color: var(--orange-ink);
}
.compare-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  font-size: 13.5px;
  width: 172px;
}
.compare-table td {
  color: var(--ink-soft);
}
.compare-table td.do-col {
  background: rgba(246, 130, 31, 0.045);
  color: var(--ink);
}
.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.honesty {
  margin-top: 42px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 26px 28px 18px;
  box-shadow: var(--shadow-card);
}
.honesty h3 {
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.honesty h3 svg {
  color: var(--orange-ink);
}
.honesty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 26px;
  margin-top: 8px;
}
.honesty-grid p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.honesty-grid strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  margin-bottom: 3px;
}

/* ---------- Use cases ---------- */
.uc-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.uc-nav {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.uc-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  width: 100%;
}
.uc-nav button:hover {
  background: var(--mist);
  color: var(--ink);
}
.uc-nav button[aria-selected="true"] {
  background: var(--paper);
  border-color: rgba(246, 130, 31, 0.5);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.uc-nav button svg {
  flex: none;
  color: var(--ink-faint);
  transition: color 0.16s ease;
}
.uc-nav button[aria-selected="true"] svg {
  color: var(--orange);
}
.uc-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  padding: 34px 36px;
  min-height: 520px;
}
.uc-panel[hidden] {
  display: none;
}
.uc-panel h3 {
  font-size: clamp(21px, 2.3vw, 26px);
  margin-bottom: 6px;
}
.uc-panel .uc-tagline {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 22px;
}
.uc-duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.uc-duel .duel-col {
  border-radius: var(--radius);
  padding: 18px 20px 12px;
  font-size: 14px;
}
.duel-col.strain {
  background: #fdf3f4;
  border: 1px solid #f5d5d9;
}
.duel-col.fits {
  background: #f2fbf7;
  border: 1px solid #cdeede;
}
.duel-col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.duel-col.strain h4 { color: #b3323f; }
.duel-col.fits h4 { color: #14795b; }
.duel-col p {
  color: var(--ink-soft);
  margin-bottom: 10px;
  line-height: 1.6;
}
.duel-col p strong {
  color: var(--ink);
}
.uc-panel .uc-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 14px;
}
.uc-panel .uc-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-ink);
  font-weight: 600;
  text-decoration: none;
}
.uc-panel .uc-foot a:hover {
  text-decoration: underline;
}
.uc-mobile-select {
  display: none;
  width: 100%;
  margin-bottom: 18px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Code blocks ---------- */
.code-block {
  background: var(--navy-990);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13.5px;
}
.code-block .code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--navy-800);
  background: rgba(255, 255, 255, 0.02);
}
.code-block .code-head .fname {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--dark-text-soft);
}
.code-block .code-head .lang {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy-990);
  background: var(--orange-soft);
  border-radius: 4px;
  padding: 2px 6px;
  text-transform: uppercase;
}
.code-copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--navy-700);
  color: var(--dark-text-faint);
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  padding: 5px 10px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.code-copy:hover {
  color: var(--dark-text);
  border-color: var(--dark-text-faint);
}
.code-copy.is-copied {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.5);
}
.code-block pre {
  margin: 0;
  padding: 16px 0;
  overflow-x: auto;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-700) transparent;
}
.code-block pre code {
  display: block;
  min-width: max-content;
  padding: 0 18px;
  font-size: 13px;
  color: #dbe7f4;
}
.code-block .ln {
  display: inline-block;
  width: 2em;
  margin-right: 1.2em;
  text-align: right;
  color: #3d5878;
  user-select: none;
}
/* syntax token colors (dark) */
.tok-kw { color: #ff7eb6; }
.tok-str { color: #a5e6a1; }
.tok-num { color: #f8b26a; }
.tok-fn { color: #82cfff; }
.tok-cls { color: #ffd580; }
.tok-com { color: #5c7889; }
.tok-prop { color: #bcaaff; }
.tok-pun { color: #8da3bb; }

/* ---------- Code tour ---------- */
.tour-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: start;
}
.tour-side {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.tour-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.tour-tabs button {
  text-align: left;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dark-text-soft);
  border-radius: 10px;
  padding: 13px 16px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.tour-tabs button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--dark-text);
}
.tour-tabs button[aria-selected="true"] {
  background: rgba(246, 130, 31, 0.12);
  border-color: rgba(246, 130, 31, 0.5);
  color: #fff;
}
.tour-tabs .t-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.tour-tabs button[aria-selected="true"] .t-name {
  color: var(--orange-soft);
}
.tour-tabs .t-desc {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}
.tour-note {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--dark-text-soft);
  background: rgba(255, 255, 255, 0.02);
}
.tour-note strong {
  color: var(--dark-text);
}
.tour-note code {
  color: var(--orange-soft);
  font-size: 12px;
}
.tour-panels .code-block {
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.65);
}
.tour-panels [hidden] {
  display: none;
}
.tour-terminal {
  margin-top: 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dark-text-soft);
  overflow-x: auto;
}
.tour-terminal .ps1 { color: var(--green); user-select: none; }
.tour-terminal .cmd { color: #dbe7f4; }
.tour-terminal .out { color: var(--dark-text-faint); }

/* ---------- Pricing ---------- */
.price-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 30px 32px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.price-card--paid {
  border-color: rgba(246, 130, 31, 0.55);
  box-shadow: 0 2px 6px rgba(246, 130, 31, 0.07), 0 24px 56px -24px rgba(246, 130, 31, 0.3);
}
.price-card .plan-flag {
  position: absolute;
  top: -12px;
  right: 22px;
  background: linear-gradient(135deg, var(--orange), #f96f00);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 0 4px 12px -4px rgba(246, 130, 31, 0.6);
}
.price-card h3 {
  font-size: 20px;
  margin-bottom: 2px;
}
.price-card .plan-price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  margin: 8px 0 2px;
}
.price-card .plan-price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-faint);
}
.price-card .plan-sub {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.price-card ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
}
.price-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.price-card li svg {
  flex: none;
  color: var(--green);
  margin-top: 3.5px;
}
.price-card li strong {
  color: var(--ink);
}
.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.price-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.price-table th,
.price-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.price-table thead th {
  background: var(--mist);
  font-family: var(--font-display);
  font-size: 14px;
  white-space: nowrap;
}
.price-table tbody th {
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}
.price-table td {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.price-table tr:last-child th,
.price-table tr:last-child td {
  border-bottom: 0;
}
.price-notes {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.price-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.price-note strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 5px;
}
.price-note strong svg {
  color: var(--orange-ink);
}
.price-fineprint {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.price-fineprint a {
  color: var(--orange-ink);
}

/* ---------- Proof / ecosystem ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 26px;
  align-items: stretch;
}
.quote-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(246, 130, 31, 0.1), rgba(255, 255, 255, 0.02) 55%);
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
}
.quote-card .qmark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--orange);
  height: 40px;
}
.quote-card blockquote {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.5;
  color: #fff;
  flex: 1;
}
.quote-card .attrib {
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote-card .attrib .avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7b5cf5, #4437b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.quote-card .attrib .who strong {
  display: block;
  color: var(--dark-text);
  font-size: 15px;
}
.quote-card .attrib .who span {
  font-size: 13px;
  color: var(--dark-text-faint);
}
.eco-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  padding: 30px 32px;
}
.eco-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.eco-card > p {
  font-size: 14.5px;
  color: var(--dark-text-soft);
  margin-bottom: 18px;
}
.eco-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.eco-list li {
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 12px 15px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.eco-list li:hover {
  border-color: rgba(246, 130, 31, 0.45);
  background: rgba(246, 130, 31, 0.05);
}
.eco-list a {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.eco-list .eco-name {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange-soft);
}
.eco-list .eco-desc {
  font-size: 13px;
  color: var(--dark-text-soft);
}
.stat-band {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.stat-cell {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
}
.stat-cell .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  color: #fff;
  display: block;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-cell .big .unit {
  color: var(--orange-soft);
}
.stat-cell .small {
  font-size: 13px;
  color: var(--dark-text-faint);
  margin-top: 5px;
  display: block;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}
.faq-item summary:hover {
  background: var(--mist);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .chev {
  margin-left: auto;
  flex: none;
  color: var(--ink-faint);
  transition: transform 0.22s ease;
}
.faq-item[open] summary .chev {
  transform: rotate(180deg);
}
.faq-item .faq-body {
  padding: 2px 22px 20px;
  font-size: 15px;
  color: var(--ink-soft);
}
.faq-item .faq-body a {
  color: var(--orange-ink);
  font-weight: 600;
}
.faq-item .faq-body code {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 12.5px;
}

/* ---------- Final CTA ---------- */
.cta-final {
  background:
    radial-gradient(900px 400px at 50% -20%, rgba(251, 173, 65, 0.28), transparent 65%),
    linear-gradient(135deg, #f6821f 0%, #ec6300 60%, #d95700 100%);
  color: #fff;
  text-align: center;
  padding: 92px 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 80%);
}
.cta-final .wrap {
  position: relative;
}
.cta-final h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  color: #fff;
}
.cta-final p {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 0 auto 32px;
}
.cta-final .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-final .btn--inverse {
  background: #fff;
  color: #b34a00;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
}
.cta-final .btn--inverse:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.4);
}
.cta-final .btn--outline-w {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
.cta-final .btn--outline-w:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1.5px);
}
.cta-final .fine {
  margin-top: 20px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-990);
  color: var(--dark-text-soft);
  padding: 64px 0 34px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand img {
  width: 118px;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--dark-text-faint);
  max-width: 30ch;
}
.footer h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 14px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer a {
  color: var(--dark-text-faint);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer a:hover {
  color: var(--orange-soft);
}
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 12px 26px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13px;
  color: var(--dark-text-faint);
}
.footer-bottom .legal {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin-left: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .mech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .honesty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .sub { max-width: 62ch; }
  .problem-grid { grid-template-columns: 1fr; }
  .level,
  .level:nth-child(even) { grid-template-columns: 1fr; }
  .level:nth-child(even) .level-copy { order: 0; }
  .level-visual { min-height: 260px; }
  .sim-body { grid-template-columns: 1fr; }
  .sim-stage { border-right: 0; border-bottom: 1px solid var(--line-dark); min-height: 320px; }
  .sim-side { min-height: 0; }
  .sim-log { max-height: 220px; }
  .compare-cards { grid-template-columns: 1fr; }
  .uc-layout { grid-template-columns: 1fr; }
  .uc-nav { display: none; }
  .uc-mobile-select { display: block; }
  .uc-panel { padding: 26px 22px; min-height: 0; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-side { position: static; }
  .tour-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .tour-tabs button { flex: none; min-width: 180px; }
  .price-cards { grid-template-columns: 1fr; }
  .price-notes { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta .docs-link { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { margin-left: 0; }
  .nav .wrap { gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero-ctas .btn { flex: 1 1 auto; }
  .uc-duel { grid-template-columns: 1fr; }
  .level-copy { padding: 28px 22px; }
  .honesty-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sim-toolbar { gap: 10px; }
  .sim-actions { margin-left: 0; width: 100%; }
  .sim-actions .sim-btn { flex: 1 1 auto; justify-content: center; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .quote-card { padding: 28px 24px; }
  .eco-card { padding: 24px 20px; }
  .cta-final .btn { width: 100%; max-width: 320px; }
  .price-card { padding: 24px 20px; }
  .sim-stats .value { font-size: 20px; }
  .nav-cta .btn { padding: 8px 13px; font-size: 13.5px; }
  .nav-brand img { width: 84px; }
  .nav-brand .product { font-size: 13.5px; }
}
@media (max-width: 400px) {
  .nav-brand .divider,
  .nav-brand .product { display: none; }
}

/* ---------- Brand & utilities (late additions) ---------- */
.nav-brand .brand-mark {
  width: 34px;
  height: auto;
  display: block;
}
.nav-brand .brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: #fff;
  margin-left: 2px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.footer-logo img {
  width: 40px;
}
.footer-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: #fff;
  letter-spacing: -0.01em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 400px) {
  .nav-brand .brand-word { display: none; }
}

/* ---------- Overflow guards (mobile min-content fixes) ---------- */
.level > *,
.sim-body > *,
.uc-layout > *,
.tour-grid > *,
.proof-grid > *,
.problem-grid > *,
.hero-grid > *,
.compare-cards > * {
  min-width: 0;
}
.level-visual,
.level-visual .code-mini {
  min-width: 0;
}
@media (max-width: 960px) {
  .level,
  .level:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }
  .sim-body {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .sim-stat .label {
    white-space: normal;
  }
  .sim-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .level-visual {
    padding: 24px 16px;
  }
  .level-visual .code-mini {
    max-width: 100%;
  }
}

/* dark thin scrollbars for horizontally scrolling strips */
.tour-tabs {
  scrollbar-width: thin;
  scrollbar-color: var(--navy-700) transparent;
}
.tour-tabs::-webkit-scrollbar {
  height: 6px;
}
.tour-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.tour-tabs::-webkit-scrollbar-thumb {
  background: var(--navy-700);
  border-radius: 3px;
}
.code-block pre::-webkit-scrollbar {
  height: 6px;
}
.code-block pre::-webkit-scrollbar-track {
  background: transparent;
}
.code-block pre::-webkit-scrollbar-thumb {
  background: var(--navy-700);
  border-radius: 3px;
}
.sim-log::-webkit-scrollbar {
  width: 6px;
}
.sim-log::-webkit-scrollbar-thumb {
  background: var(--navy-700);
  border-radius: 3px;
}
