:root {
  color-scheme: light;
  --ink: #0a2540;
  --ink-soft: #425466;
  --muted: #697386;
  --line: #d9e2ec;
  --paper: #ffffff;
  --page: #f6f9fc;
  --blue: #635bff;
  --cyan: #00d4ff;
  --mint: #32d583;
  --pink: #f74780;
  --amber: #ffb84d;
  --shadow: 0 24px 70px rgba(50, 50, 93, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  min-width: 320px;
}

body,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border-radius: 999px;
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  padding: 0 2px;
  font-weight: 760;
  cursor: pointer;
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease;
}

.nav-toggle-icon span:first-child {
  top: 5px;
}

.nav-toggle-icon span:last-child {
  top: 12px;
}

.site-header.nav-open .nav-toggle-icon span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-icon span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.site-header.scrolled .nav-toggle {
  background: transparent;
}

.brand,
.site-nav,
.hero-actions,
.final-actions,
.hero-metrics,
.code-tabs {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 18px rgba(10, 37, 64, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.site-header.scrolled .brand-mark {
  background: rgba(10, 37, 64, 0.08);
}

.site-nav {
  gap: 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-header.scrolled .site-nav {
  color: var(--ink-soft);
}

.site-nav a,
.text-link {
  transition: color 160ms ease;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--blue);
}

.header-cta {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 8px 16px;
  font-weight: 720;
}

.site-header.scrolled .header-cta {
  background: var(--ink);
}

.section-band {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 760px;
  padding: 148px 0 96px;
  background: #0a2540;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 170px;
  background: var(--page);
  clip-path: polygon(0 58%, 100% 10%, 100% 100%, 0 100%);
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  inset: -160px -12vw auto -12vw;
  height: 660px;
  transform: skewY(-11deg);
  transform-origin: 0 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 12%, transparent 12% 100%),
    linear-gradient(112deg, #00d4ff 0%, #635bff 34%, #f74780 67%, #ffb84d 100%);
  z-index: 0;
}

.hero-gradient::before,
.hero-gradient::after {
  content: "";
  position: absolute;
  inset: auto 8% 34px auto;
  width: 44%;
  height: 92px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-gradient::after {
  inset: 260px auto auto 18%;
  width: 30%;
  height: 70px;
  background: rgba(10, 37, 64, 0.16);
}

.hero-grid,
.section,
.final-cta,
.site-footer {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  padding-top: 20px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 5.15rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.22rem;
  line-height: 1.62;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 34px rgba(10, 37, 64, 0.22);
}

.hero .button-primary,
.final-cta .button-primary {
  background: #fff;
  color: var(--ink);
}

.button-colab {
  background: #f9ab00;
  color: #1a1a1a;
  box-shadow: 0 14px 30px rgba(249, 171, 0, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.feature-section .button-secondary,
.quickstart-section .button-secondary {
  color: var(--ink);
  background: #edf2f7;
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 12px;
  margin: 44px 0 0;
}

.hero-metrics div {
  min-width: 150px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
}

.hero-metrics dt {
  font-size: 1.42rem;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.product-preview {
  transform: translateY(18px);
}

.chart-window {
  position: relative;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  background: #f7fafc;
  border-bottom: 1px solid rgba(66, 84, 102, 0.12);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.window-bar span:nth-child(2) {
  background: #ffbd2e;
}

.window-bar span:nth-child(3) {
  background: #28c840;
}

.window-bar strong {
  margin-left: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.market-visual {
  position: relative;
  height: 355px;
  margin: 16px;
  border-radius: 12px;
  background:
    linear-gradient(rgba(99, 91, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 91, 255, 0.1) 1px, transparent 1px),
    linear-gradient(145deg, #ffffff 0%, #eff6ff 54%, #f7fbff 100%);
  background-size: 100% 58px, 58px 100%, 100% 100%;
  overflow: hidden;
}

.price-line {
  position: absolute;
  left: 8%;
  right: 7%;
  top: 46%;
  height: 130px;
  border-top: 4px solid var(--blue);
  border-right: 4px solid var(--blue);
  transform: skewY(-14deg);
  opacity: 0.86;
}

.latency-lane {
  position: absolute;
  left: 10%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.lane-a {
  top: 34%;
}

.lane-b {
  top: 68%;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
}

.tick-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(10, 37, 64, 0.18);
}

.dot-a {
  top: 31%;
  left: 22%;
  background: var(--cyan);
}

.dot-b {
  top: 52%;
  left: 56%;
  background: var(--blue);
}

.dot-c {
  top: 66%;
  left: 78%;
  background: var(--pink);
}

.axis-label,
.order-pill {
  position: absolute;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 760;
}

.axis-label {
  background: rgba(10, 37, 64, 0.08);
  color: var(--ink-soft);
}

.label-left {
  top: 18px;
  left: 18px;
}

.label-right {
  right: 18px;
  bottom: 18px;
}

.order-pill {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.18);
}

.order-a {
  top: 112px;
  right: 36px;
}

.order-b {
  left: 38px;
  bottom: 66px;
  background: var(--pink);
}

.terminal-card {
  margin: 0 16px 16px;
  padding: 18px;
  border-radius: 12px;
  background: #0a2540;
  color: #d6e5f7;
}

.terminal-row {
  display: flex;
  gap: 10px;
  min-width: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

.terminal-row span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.prompt {
  color: var(--mint);
}

.muted {
  color: #9fb6cc;
}

.terminal-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

.terminal-stats span {
  color: var(--cyan);
}

.section {
  padding: 92px 0;
}

.problem-section {
  padding: 28px 0 70px;
}

.comparison-grid,
.performance-grid {
  display: grid;
  gap: 18px;
}

.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-card,
.performance-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(10, 37, 64, 0.06);
}

.comparison-card {
  padding: 28px;
}

.comparison-card ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.comparison-card li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  line-height: 1.58;
}

.comparison-card li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
}

.comparison-card.after li::before {
  background: var(--mint);
}

.comparison-label {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff1f4;
  color: var(--pink);
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: uppercase;
}

.after .comparison-label {
  background: #eafbf2;
  color: #027a48;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading p:not(.eyebrow),
.split-copy p,
.roadmap-grid p,
.feature-card p,
.install-panel p,
.performance-grid p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(10, 37, 64, 0.06);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 820;
}

.feature-card p {
  margin: 14px 0 0;
}

.split-section,
.quickstart-layout,
.roadmap-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 56px;
  align-items: center;
}

.split-copy p {
  margin: 24px 0 0;
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset 0 0 0 4px #d7f9e7;
}

.architecture-panel {
  padding: 26px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(99, 91, 255, 0.12), rgba(0, 212, 255, 0.08)),
    var(--paper);
  box-shadow: var(--shadow);
}

.flow-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.flow-row span {
  color: var(--muted);
}

.flow-row.accent {
  background: var(--ink);
  color: #fff;
}

.flow-row.accent span {
  color: #9fb6cc;
}

.flow-arrow {
  width: 2px;
  height: 38px;
  margin: 0 auto;
  background: linear-gradient(var(--cyan), var(--blue));
}

.quickstart-section {
  padding-top: 116px;
}

.compact {
  margin-bottom: 36px;
}

.quickstart-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: stretch;
}

.code-panel,
.install-panel {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.code-panel {
  overflow: hidden;
  background: #06182b;
}

.code-tabs {
  gap: 4px;
  padding: 12px;
  background: #0a2540;
}

.code-tab {
  min-width: 76px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9fb6cc;
  padding: 8px 12px;
  font-weight: 760;
  cursor: pointer;
}

.code-tab.active {
  background: #fff;
  color: var(--ink);
}

.code-block {
  display: none;
  min-height: 532px;
  margin: 0;
  padding: 24px;
  color: #d6e5f7;
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}

.code-block.active {
  display: block;
}

.install-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--paper);
}

.install-panel p {
  margin: 0;
}

.command-list {
  display: grid;
  gap: 10px;
}

.command-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
}

.command-list code {
  display: block;
  padding: 12px 58px 12px 12px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #9fb6cc;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 760;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.command-item .copy-btn {
  top: 8px;
  right: 8px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--blue);
}

.full-width {
  width: 100%;
}

.text-link {
  color: var(--blue);
  font-weight: 760;
}

.roadmap-section {
  align-items: start;
}

.performance-section {
  padding-top: 70px;
}

.performance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.performance-grid article {
  padding: 24px;
}

.performance-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.performance-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.performance-grid p {
  margin: 14px 0 0;
}

.roadmap-grid {
  display: grid;
  gap: 16px;
}

.roadmap-grid article {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.roadmap-grid p {
  margin: 12px 0 0;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
  padding: 58px;
  border-radius: 22px;
  background:
    linear-gradient(112deg, rgba(0, 212, 255, 0.78), rgba(99, 91, 255, 0.88) 46%, rgba(247, 71, 128, 0.86)),
    var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.final-cta .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.final-cta h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.final-cta .button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 34px 0 54px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer div,
.footer-links {
  display: flex;
  gap: 14px;
}

.site-footer div {
  flex-direction: column;
}

.site-footer div span:first-child {
  color: var(--ink);
  font-weight: 760;
}

.footer-links {
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-soft);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--blue);
}

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.not-found {
  width: min(620px, calc(100% - 40px));
  padding: 48px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.not-found h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .site-header.nav-open {
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
    backdrop-filter: blur(16px);
  }

  .site-header.nav-open .brand-mark {
    background: rgba(10, 37, 64, 0.08);
  }

  .site-header.nav-open .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: 0 18px 44px rgba(10, 37, 64, 0.14);
  }

  .site-header.nav-open .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .site-header.nav-open .site-nav a:hover {
    background: #edf2f7;
  }

  .hero {
    padding-top: 132px;
  }

  .hero-grid,
  .split-section,
  .quickstart-layout,
  .roadmap-section {
    grid-template-columns: 1fr;
  }

  .performance-grid {
    grid-template-columns: 1fr;
  }

  .product-preview {
    transform: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 20px, 560px);
    margin-top: 10px;
  }

  .brand span:last-child {
    max-width: 168px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-cta {
    padding: 8px 13px;
  }

  .hero {
    min-height: auto;
    padding: 118px 0 80px;
  }

  .hero::after {
    height: 100px;
  }

  .hero-grid,
  .section,
  .final-cta,
  .site-footer {
    width: min(100% - 28px, 560px);
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.55rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .button {
    width: 100%;
  }

  .hero-metrics,
  .hero-actions,
  .final-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-metrics {
    display: none;
  }

  .hero-metrics div {
    width: 100%;
  }

  .market-visual {
    height: 300px;
    margin: 10px;
  }

  .terminal-card {
    margin: 0 10px 10px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .section {
    padding: 68px 0;
  }

  .problem-section {
    padding: 12px 0 52px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .flow-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .code-tabs {
    overflow-x: auto;
  }

  .code-block {
    min-height: 0;
    max-height: 610px;
    font-size: 0.78rem;
    padding-right: 70px;
  }

  .install-panel,
  .architecture-panel {
    padding: 18px;
  }

  .final-cta {
    padding: 30px 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 12px;
  }

  .header-cta {
    display: none;
  }

  .brand span:last-child {
    max-width: 184px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e2eaf4;
    --ink-soft: #a0b2c6;
    --muted: #8ca2b8;
    --line: #1e3045;
    --paper: #12233a;
    --page: #0d1b2a;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32), 0 8px 24px rgba(0, 0, 0, 0.22);
  }

  .site-header.scrolled,
  .site-header.nav-open,
  .site-header.nav-open .site-nav,
  .command-list .copy-btn {
    background: rgba(18, 35, 58, 0.94);
  }

  .site-header.scrolled .header-cta {
    background: #e2eaf4;
    color: #0a2540;
  }

  .site-header.scrolled .nav-toggle {
    background: transparent;
  }

  .chart-window,
  .window-bar,
  .market-visual {
    background-color: #e9f1fb;
  }

  .command-item {
    background: #0d1b2a;
  }

  .comparison-label {
    background: rgba(247, 71, 128, 0.16);
  }

  .after .comparison-label {
    background: rgba(50, 213, 131, 0.14);
    color: #32d583;
  }
}
