@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0a0f18;
  --panel: #101725;
  --panel-2: #131d2d;
  --text: #ecf2ff;
  --muted: #a7b4c9;
  --line: #21314b;
  --accent: #6ee7c8;
  --accent-2: #7ab6ff;
  --accent-3: #ff8b8b;
  --warning: #ffcc66;
  --success: #8ee28f;
  --max: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background:
  radial-gradient(circle at top, rgba(51, 90, 151, 0.44), transparent 24%),
  radial-gradient(circle at 85% 12%, rgba(110, 231, 200, 0.14), transparent 18%),
  linear-gradient(180deg, #0c1322, var(--bg) 46%);
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
pre, code { font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace; }
img, svg { max-width: 100%; height: auto; }

.site-header, .site-footer { width: 100%; }
.header-inner, .footer-inner, .page-shell { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.brand-mark {
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  filter: drop-shadow(0 0 10px rgba(46, 166, 255, 0.14));
  transition: transform 180ms ease, filter 180ms ease;
}

.brand-wordmark {
  display: inline-block;
  color: #f4f8ff;
}

.brand:hover .brand-mark {
  transform: scale(1.04);
  filter: drop-shadow(0 0 14px rgba(110, 231, 200, 0.18));
}
.site-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; min-width: 0; }
.nav-link, .header-cta { display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 0.95rem; border-radius: 999px; border: 1px solid transparent; color: var(--muted); text-align: center; }
.nav-link:hover, .header-cta:hover { border-color: var(--line); color: var(--text); }
.nav-link.active { background: rgba(110, 231, 200, 0.12); color: var(--text); }
.header-cta { background: var(--accent); color: #07131a; font-weight: 700; }

.page-shell { padding: 2rem 0 5rem; }
.hero, .section, .callout { margin-bottom: 1.75rem; }
.hero { padding: 3rem; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(160deg, rgba(110, 231, 200, 0.12), rgba(122, 182, 255, 0.12) 55%, rgba(16, 23, 37, 0.92)); }
.hero.compact { padding: 2.4rem; }
.eyebrow { margin: 0 0 0.8rem; color: var(--accent); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.8vw, 4.65rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  max-width: 16ch;
  text-wrap: balance;
}
h2 { margin-top: 0; font-size: clamp(1.4rem, 2vw, 2rem); }
h3 { margin-top: 0; font-size: 1.05rem; }
.lead { max-width: 54rem; color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.4rem 0 1.15rem; }
.button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; padding: 0.9rem 1.15rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); text-align: center; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #07131a; font-weight: 700; }
.button:hover { border-color: rgba(122, 182, 255, 0.6); background: rgba(122, 182, 255, 0.08); }
.button.primary:hover { background: #8af0d6; border-color: #8af0d6; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 0.8rem; padding: 0; margin: 0; list-style: none; color: var(--muted); }
.trust-strip li { padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); }
.section { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16, 23, 37, 0.78); }
.section-note { color: var(--muted); margin-bottom: 0; }
.callout { padding: 1.8rem; border: 1px solid rgba(110, 231, 200, 0.25); border-radius: var(--radius); background: rgba(110, 231, 200, 0.08); }
.card-grid { display: grid; gap: 1rem; }
.card-grid.three-up { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card-grid.two-up { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card, .prompt-card { padding: 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.card p, .prompt-card p, .card li, .prompt-card li { color: var(--muted); line-height: 1.6; }
.prompt-card pre, .formula { overflow-x: auto; padding: 0.95rem; border-radius: 14px; border: 1px solid var(--line); background: #0b1320; white-space: pre-wrap; }
.step-list, .bullet-list { margin: 0; padding-left: 1.25rem; color: var(--muted); line-height: 1.75; }
.warning { border-color: rgba(255, 204, 102, 0.35); }
.success { border-color: rgba(142, 226, 143, 0.35); }

.learn-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(122, 182, 255, 0.32), transparent 34%),
    radial-gradient(circle at 8% 18%, rgba(110, 231, 200, 0.18), transparent 24%),
    linear-gradient(150deg, rgba(11, 18, 29, 0.94), rgba(19, 33, 52, 0.94) 52%, rgba(9, 14, 22, 0.98));
  box-shadow:
    0 28px 80px rgba(5, 8, 15, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.learn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 82%);
  pointer-events: none;
}

.learn-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 1.05fr);
  gap: 1.5rem;
  align-items: center;
}

.learn-hero-copy {
  display: grid;
  gap: 1rem;
}

.learn-hero h1 {
  max-width: 10ch;
}

.learn-hero .lead {
  margin: 0;
  max-width: 35rem;
}

.learn-hero-strip {
  margin-top: 0;
}

.learn-hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.learn-hero-visual {
  display: grid;
  gap: 1.15rem;
}

.learn-hero-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.lane-card {
  position: relative;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(122, 182, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(17, 27, 43, 0.95), rgba(8, 14, 24, 0.98)),
    #09111c;
  box-shadow:
    0 20px 44px rgba(3, 7, 12, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lane-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.15rem;
  width: 1px;
  height: 1.15rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(122, 182, 255, 0.72), rgba(110, 231, 200, 0.22));
}

.lane-card-b {
  margin-top: 1.5rem;
}

.lane-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.lane-card-label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lane-card-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lane-card-time {
  flex: none;
  padding: 0.32rem 0.64rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe8ff;
  font-size: 0.8rem;
}

.lane-card-meta {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.lane-card-meta code {
  color: var(--text);
  font-size: 0.78rem;
  word-break: break-all;
}

.lane-window {
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 12, 20, 0.64);
}

.lane-window-topbar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.lane-window-topbar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.lane-window-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.82rem;
}

.lane-window-tab {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
}

.lane-window-tab.is-live {
  color: var(--text);
  border-color: rgba(110, 231, 200, 0.28);
  background: rgba(110, 231, 200, 0.12);
}

.lane-log {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lane-log li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: #ebf2ff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.lane-log-time {
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(122, 182, 255, 0.14);
  color: #dbe8ff;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.learn-hero-merge {
  position: relative;
  margin: 0 1.7rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(110, 231, 200, 0.25);
  background:
    linear-gradient(180deg, rgba(110, 231, 200, 0.12), rgba(122, 182, 255, 0.08)),
    rgba(10, 18, 28, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.learn-hero-merge::before {
  content: "";
  position: absolute;
  top: -1.15rem;
  left: 2.6rem;
  right: 2.6rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(122, 182, 255, 0.28), rgba(110, 231, 200, 0.76), rgba(122, 182, 255, 0.28));
}

.merge-kicker {
  display: inline-flex;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 200, 0.28);
  background: rgba(110, 231, 200, 0.1);
  color: #dff9eb;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.learn-merge-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0 0.85rem;
}

.merge-chip {
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #eef4ff;
  font-size: 0.8rem;
}

.learn-hero-merge p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}


.learn-architecture {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(110, 231, 200, 0.09), transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(122, 182, 255, 0.12), transparent 28%),
    rgba(14, 20, 31, 0.84);
  box-shadow:
    0 18px 44px rgba(4, 7, 12, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.learn-architecture::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
  pointer-events: none;
}

.storage-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.9fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.15rem;
}

.storage-strip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12%;
  right: 12%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(110, 231, 200, 0.16), rgba(122, 182, 255, 0.56), rgba(110, 231, 200, 0.16));
  pointer-events: none;
}

.storage-card {
  position: relative;
  z-index: 1;
  --storage-accent: rgba(110, 231, 200, 0.28);
  --storage-fill: rgba(110, 231, 200, 0.1);
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid var(--storage-accent);
  background:
    linear-gradient(180deg, rgba(16, 24, 38, 0.94), rgba(9, 14, 22, 0.98)),
    #0b1320;
  box-shadow:
    0 18px 38px rgba(3, 7, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.storage-bridge {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  align-content: center;
  padding: 1rem 0.9rem;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(13, 20, 31, 0.8), rgba(9, 14, 22, 0.92)),
    #0b1320;
  box-shadow:
    0 18px 38px rgba(3, 7, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.storage-card-content {
  --storage-accent: rgba(122, 182, 255, 0.3);
  --storage-fill: rgba(122, 182, 255, 0.12);
}

.storage-card-top {
  display: flex;
  gap: 0.95rem;
  align-items: center;
}

.storage-card-copy {
  display: grid;
  gap: 0.5rem;
}

.storage-card h3,
.storage-bridge-title,
.storage-bridge-note {
  margin: 0;
}

.storage-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.storage-db-icon {
  position: relative;
  flex: none;
  width: 4.1rem;
  height: 4.5rem;
}

.storage-db-icon::before,
.storage-db-icon::after,
.storage-db-body::before,
.storage-db-body::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  right: 0.34rem;
  height: 0.74rem;
  border-radius: 999px;
  border: 1px solid var(--storage-accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), var(--storage-fill));
}

.storage-db-icon::before {
  top: 0.14rem;
}

.storage-db-icon::after {
  bottom: 0.14rem;
}

.storage-db-body {
  position: absolute;
  inset: 0.48rem 0.34rem;
  border-left: 1px solid var(--storage-accent);
  border-right: 1px solid var(--storage-accent);
  background: linear-gradient(180deg, var(--storage-fill), rgba(7, 12, 20, 0.08));
}

.storage-db-body::before {
  top: 0.65rem;
}

.storage-db-body::after {
  top: 2.06rem;
}

.storage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.storage-tag,
.storage-chip {
  display: inline-flex;
  justify-content: center;
  padding: 0.38rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #eef4ff;
  font-size: 0.78rem;
}

.storage-bridge-title {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
}

.storage-bridge-stack {
  display: grid;
  gap: 0.55rem;
}

.storage-chip-plan {
  border-color: rgba(110, 231, 200, 0.2);
  background: rgba(110, 231, 200, 0.08);
}

.storage-chip-code {
  border-color: rgba(122, 182, 255, 0.2);
  background: rgba(122, 182, 255, 0.08);
}

.storage-chip-payload {
  border-color: rgba(255, 255, 255, 0.1);
}

.storage-bridge-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

.learn-architecture-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  gap: 1rem 1.5rem;
  align-items: end;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.learn-architecture-head .section-note {
  margin: 0;
}

.learn-architecture-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.8fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.learn-architecture-map::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 11%;
  right: 11%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(110, 231, 200, 0.2), rgba(122, 182, 255, 0.72), rgba(110, 231, 200, 0.2));
  pointer-events: none;
}

.model-rail,
.model-spine,
.model-boundary-card {
  position: relative;
  z-index: 1;
}

.model-rail {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(16, 24, 38, 0.94), rgba(9, 14, 22, 0.98)),
    #0b1320;
  box-shadow:
    0 18px 38px rgba(3, 7, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.model-rail-plan {
  border: 1px solid rgba(110, 231, 200, 0.24);
}

.model-rail-code {
  border: 1px solid rgba(122, 182, 255, 0.24);
}

.model-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #e7f0ff;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-kicker-center {
  justify-self: center;
}

.model-rail h3,
.model-spine p,
.model-boundary-card p {
  margin: 0;
}

.model-list {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-list li {
  position: relative;
  display: grid;
  gap: 0.28rem;
  padding: 0.82rem 0.9rem 0.85rem 2.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.model-list li strong {
  color: var(--text);
  font-size: 0.93rem;
}

.model-list li span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

.model-step {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: rgba(122, 182, 255, 0.14);
  color: #eaf2ff;
  font-size: 0.76rem;
  font-weight: 700;
}

.model-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.model-note code {
  color: var(--text);
}

.model-spine {
  align-self: center;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  padding: 1rem 0.8rem;
}

.model-spine-stack {
  display: grid;
  gap: 0.58rem;
  width: 100%;
}

.model-chip {
  display: inline-flex;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 182, 255, 0.16);
  background: rgba(122, 182, 255, 0.08);
  color: #eef4ff;
  font-size: 0.79rem;
}

.model-spine p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.58;
  text-align: center;
}

.model-boundary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.model-boundary-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(110, 231, 200, 0.18);
  background: rgba(110, 231, 200, 0.05);
}

.model-boundary-card-shared {
  border-color: rgba(122, 182, 255, 0.2);
  background: rgba(122, 182, 255, 0.06);
}

.model-boundary-card p {
  margin-top: 0.7rem;
  color: var(--muted);
  line-height: 1.6;
}


.site-footer { border-top: 1px solid var(--line); background: rgba(7, 12, 20, 0.55); }
.footer-inner { display: flex; gap: 1rem; justify-content: space-between; align-items: start; padding: 1.5rem 0 2.25rem; }
.footer-inner p { margin: 0.55rem 0 0; color: var(--muted); max-width: 34rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); }
.footer-links a { min-width: 0; }

.footer-brand {
  display: grid;
  gap: 0.2rem;
}

.brand-footer {
  width: fit-content;
}

.brand-footer .brand-mark {
  width: 1.86rem;
  height: 1.86rem;
}

.hero-simulator {
  --scene-panel-height: 31rem;
  --scene-stage-height: calc(var(--scene-panel-height) + 4rem);
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  background:
    radial-gradient(circle at top right, rgba(122, 182, 255, 0.34), transparent 34%),
    radial-gradient(circle at bottom left, rgba(110, 231, 200, 0.18), transparent 28%),
    linear-gradient(155deg, rgba(11, 19, 32, 0.9), rgba(18, 39, 59, 0.94) 55%, rgba(9, 14, 22, 0.98));
  box-shadow:
    0 28px 80px rgba(5, 8, 15, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-simulator h1 {
  font-size: clamp(2.6rem, 4.35vw, 4.2rem);
  max-width: none;
}

.hero-simulator .hero-title {
  display: grid;
  gap: 0.18em;
  max-width: 16ch;
}

.hero-title-line {
  display: block;
}

.hero-title-line-accent {
  padding-left: 0;
  color: #dff8ff;
}

.hero-simulator::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), transparent 78%);
  pointer-events: none;
}

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.hero-head > div,
.scene-controls,
.hero-actions,
.signal-card,
.route-strip {
  animation: rise-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.scene-controls { animation-delay: 210ms; }
.hero-actions { animation-delay: 280ms; }
.signal-card:nth-child(1) { animation-delay: 320ms; }
.signal-card:nth-child(2) { animation-delay: 390ms; }
.signal-card:nth-child(3) { animation-delay: 460ms; }
.signal-card:nth-child(4) { animation-delay: 530ms; }
.signal-card:nth-child(5) { animation-delay: 600ms; }
.route-strip { animation-delay: 680ms; }

.scene-stage {
  position: relative;
  block-size: var(--scene-stage-height);
  min-height: var(--scene-stage-height);
}

.scene-stage::before {
  content: "";
  position: absolute;
  inset: 8% 16% auto 4%;
  height: 11rem;
  background: radial-gradient(circle, rgba(122, 182, 255, 0.16), transparent 64%);
  filter: blur(28px);
  opacity: 0.8;
  pointer-events: none;
  animation: stage-glow 9s ease-in-out infinite;
}

.scenario-card {
  position: absolute;
  inset: 0;
  padding: 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(122, 182, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(13, 20, 32, 0.78), rgba(8, 13, 23, 0.9)),
    rgba(8, 14, 24, 0.8);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scenario-card.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: scene-fade 220ms ease;
}

.scenario-card.is-active .console-panel,
.scenario-card.is-active .surface-panel {
  animation: panel-float 8s ease-in-out infinite;
}

.scenario-card.is-active .surface-panel {
  animation-delay: 300ms;
}

.scenario-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.scenario-chrome-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.scenario-label,
.scenario-path,
.console-tab,
.signal-kicker,
.surface-panel-title span:last-child,
.telegram-title span:last-child {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.scenario-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.console-panel,
.surface-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  block-size: var(--scene-panel-height);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.console-panel {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(122, 182, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(17, 27, 43, 0.98), rgba(7, 13, 24, 0.98)),
    #09111c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 40px rgba(3, 7, 12, 0.32);
}

.console-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(122, 182, 255, 0.1), transparent);
  transform: translateY(-120%);
  pointer-events: none;
  animation: console-scan 4.8s linear infinite;
}

.console-topbar {
  display: flex;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem 0;
}

.console-topbar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.console-filebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.console-tab {
  color: var(--muted);
  font-size: 0.85rem;
}

.console-tab.is-live {
  border-color: rgba(110, 231, 200, 0.32);
  background: linear-gradient(180deg, rgba(110, 231, 200, 0.14), rgba(110, 231, 200, 0.07));
  color: var(--text);
}

.console-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 0.9rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-chip {
  padding: 0.33rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.progress-chip.is-done {
  color: #dff9eb;
  border-color: rgba(110, 231, 200, 0.28);
  background: rgba(110, 231, 200, 0.11);
}

.progress-chip.is-live {
  color: #eef4ff;
  border-color: rgba(122, 182, 255, 0.3);
  background: rgba(122, 182, 255, 0.12);
}

.progress-chip.is-target {
  color: #fff0ea;
  border-color: rgba(255, 139, 139, 0.3);
  background: rgba(255, 139, 139, 0.12);
}

.scenario-card.is-active .progress-chip,
.scenario-card.is-active .console-block,
.scenario-card.is-active .console-result,
.scenario-card.is-active .surface-thread .message {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-step 560ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.scenario-card.is-active .progress-chip:nth-child(1) { animation-delay: 90ms; }
.scenario-card.is-active .progress-chip:nth-child(2) { animation-delay: 160ms; }
.scenario-card.is-active .progress-chip:nth-child(3) { animation-delay: 230ms; }
.scenario-card.is-active .progress-chip:nth-child(4) { animation-delay: 300ms; }
.scenario-card.is-active .progress-chip:nth-child(5) { animation-delay: 370ms; }
.scenario-card.is-active .console-block:nth-child(1) { animation-delay: 280ms; }
.scenario-card.is-active .console-block:nth-child(2) { animation-delay: 430ms; }
.scenario-card.is-active .console-block:nth-child(3) { animation-delay: 580ms; }
.scenario-card.is-active .console-result { animation-delay: 730ms; }
.scenario-card.is-active .surface-thread .message:nth-child(1) { animation-delay: 360ms; }
.scenario-card.is-active .surface-thread .message:nth-child(2) { animation-delay: 500ms; }
.scenario-card.is-active .surface-thread .message:nth-child(3) { animation-delay: 640ms; }
.scenario-card.is-active .surface-thread .message:nth-child(4) { animation-delay: 780ms; }

.console-body {
  display: grid;
  flex: 1 1 auto;
  gap: 0.85rem;
  align-content: start;
  grid-auto-rows: max-content;
  padding: 1rem 0.56rem 4.2rem 0.9rem;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 182, 255, 0.5) rgba(255, 255, 255, 0.04);
}

.console-body::-webkit-scrollbar {
  width: 0.38rem;
}

.console-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.console-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(122, 182, 255, 0.82), rgba(110, 231, 200, 0.64));
  border-radius: 999px;
}

.console-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(122, 182, 255, 0.94), rgba(110, 231, 200, 0.78));
}

.console-block {
  position: relative;
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.console-block:last-of-type:not(.console-block-ritual) {
  border-color: rgba(255, 139, 139, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 139, 139, 0.08);
}

.console-block-ritual {
  border-color: rgba(122, 182, 255, 0.16);
  background: linear-gradient(180deg, rgba(122, 182, 255, 0.09), rgba(255, 255, 255, 0.025));
}

.console-block-ritual::before {
  background: linear-gradient(180deg, rgba(122, 182, 255, 0.95), rgba(110, 231, 200, 0.32));
}

.console-block-ritual .console-kicker {
  color: var(--accent-2);
}

.console-block::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  bottom: 0.95rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(110, 231, 200, 0.95), rgba(122, 182, 255, 0.25));
}

.console-kicker {
  margin: 0 0 0.5rem 0.75rem;
  color: var(--accent);
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-block pre {
  margin: 0;
  overflow-x: auto;
  padding: 0 0 0 0.75rem;
  border: 0;
  background: transparent;
  white-space: pre-wrap;
  word-break: break-word;
  color: #ecf5ff;
  line-height: 1.7;
}

.console-result {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: calc(100% - 1.8rem);
  width: fit-content;
  margin: 0;
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 200, 0.22);
  background: rgba(110, 231, 200, 0.1);
  color: #ebfff4;
  font-size: 0.88rem;
  box-shadow: 0 0 0 1px rgba(110, 231, 200, 0.05);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.console-result.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.console-result::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(142, 226, 143, 0.4);
  animation: status-pulse 1.9s ease-in-out infinite;
}

.surface-panel {
  padding: 0.9rem;
  background:
    linear-gradient(180deg, rgba(20, 30, 46, 0.96), rgba(11, 18, 29, 0.98)),
    var(--panel-2);
}

.surface-panel-vscode {
  background:
    radial-gradient(circle at top, rgba(122, 182, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(16, 24, 38, 0.96), rgba(16, 27, 43, 0.98)),
    var(--panel-2);
}

.surface-panel-codex {
  background:
    radial-gradient(circle at top left, rgba(110, 231, 200, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(122, 182, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(12, 22, 35, 0.97), rgba(13, 24, 39, 0.99)),
    var(--panel-2);
}

.surface-panel-title,
.telegram-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.surface-thread {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.8rem;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 182, 255, 0.5) rgba(255, 255, 255, 0.04);
}

.surface-thread > :first-child {
  margin-top: auto;
}

.surface-thread::-webkit-scrollbar {
  width: 0.38rem;
}

.surface-thread::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.surface-thread::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(122, 182, 255, 0.82), rgba(110, 231, 200, 0.64));
  border-radius: 999px;
}

.surface-thread::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(122, 182, 255, 0.94), rgba(110, 231, 200, 0.78));
}

.message {
  max-width: 100%;
  height: fit-content;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow-wrap: anywhere;
}

.message.developer {
  background: linear-gradient(180deg, rgba(122, 182, 255, 0.18), rgba(122, 182, 255, 0.12));
  border-color: rgba(122, 182, 255, 0.18);
}

.message.agent {
  background: linear-gradient(180deg, rgba(110, 231, 200, 0.14), rgba(110, 231, 200, 0.08));
  border-color: rgba(110, 231, 200, 0.16);
}

.message-author {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: var(--warning);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.typing-bubble {
  width: fit-content;
  min-width: 5.2rem;
  align-self: start;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.typing-dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  opacity: 0.28;
  animation: typing-bounce 1s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.typing-dots span:nth-child(3) {
  animation-delay: 240ms;
}

p.is-typing::after,
code.is-typing::after,
.console-result.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.58ch;
  height: 1em;
  margin-left: 0.08rem;
  vertical-align: -0.1em;
  background: currentColor;
  animation: cursor-blink 1s steps(1) infinite;
}

.surface-panel-telegram {
  background:
    radial-gradient(circle at top, rgba(86, 159, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(11, 32, 50, 0.98), rgba(8, 21, 34, 0.99)),
    #0d1f31;
}

.telegram-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0.42rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(122, 182, 255, 0.16), transparent 36%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 12px, transparent 12px, transparent 24px),
    rgba(5, 15, 26, 0.32);
}

.surface-thread-telegram .message {
  max-width: 90%;
}

.surface-thread-telegram .message.developer {
  margin-left: auto;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(160deg, rgba(75, 135, 255, 0.95), rgba(62, 106, 216, 0.92));
  border-color: transparent;
}

.surface-thread-telegram .message.developer .message-author,
.surface-thread-telegram .message.developer p {
  color: #f7fbff;
}

.surface-thread-telegram .message.agent {
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.08);
}

.scene-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 0.95rem;
}

.scene-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0;
}

.scene-hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.scene-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  padding: 0.3rem 0.48rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.scene-toggle.is-active {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.scene-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.scene-dot.is-active {
  width: 1.9rem;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
}

.scene-toggle-label {
  color: var(--muted);
  font-size: 0.83rem;
}

.scene-toggle.is-active .scene-toggle-label {
  color: var(--text);
}

.scene-playback-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.35rem;
  padding: 0.46rem 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.scene-playback-toggle:hover {
  border-color: rgba(122, 182, 255, 0.4);
  background: rgba(122, 182, 255, 0.08);
}

.scene-playback-toggle.is-paused {
  border-color: rgba(110, 231, 200, 0.34);
  background: rgba(110, 231, 200, 0.12);
  color: #eafff7;
}

.hero-actions {
  margin-top: 1.15rem;
  margin-bottom: 0;
}

.signal-strip,
.route-strip {
  background: linear-gradient(180deg, rgba(12, 18, 28, 0.92), rgba(10, 16, 25, 0.84));
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.95rem;
}

.signal-card {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.signal-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.signal-kicker {
  color: var(--accent);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.015em;
  text-transform: none;
}

@keyframes scene-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-step {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes console-scan {
  0% {
    transform: translateY(-120%);
  }

  100% {
    transform: translateY(120%);
  }
}

@keyframes stage-glow {
  0%,
  100% {
    transform: translateX(0) translateY(0);
    opacity: 0.72;
  }

  50% {
    transform: translateX(24px) translateY(10px);
    opacity: 1;
  }
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(142, 226, 143, 0.18);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(142, 226, 143, 0);
  }
}

@keyframes typing-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.28;
  }

  40% {
    transform: translateY(-4px);
    opacity: 0.92;
  }
}

@keyframes cursor-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes hero-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(110, 231, 200, 0.12);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(110, 231, 200, 0);
  }
}

@media (max-width: 1080px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem 1rem;
  }

  .site-nav {
    grid-column: 1 / -1;
  }

  .header-cta {
    justify-self: start;
  }
}

@media (max-width: 940px) {
  .page-shell {
    padding: 1.5rem 0 4rem;
  }

  .learn-hero-layout {
    grid-template-columns: 1fr;
  }

  .learn-hero h1 {
    max-width: 12ch;
  }

  .learn-architecture-head,
  .storage-strip,
  .learn-architecture-map,
  .model-boundary {
    grid-template-columns: 1fr;
  }

  .storage-strip::before,
  .learn-architecture-map::before {
    display: none;
  }

  .model-spine {
    padding: 0.25rem 0 0.4rem;
  }

  .model-spine-stack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-simulator {
    --scene-panel-height: 24rem;
    --scene-stage-height: calc((var(--scene-panel-height) * 2) + 6.25rem);
  }

  .hero-head,
  .scenario-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-head {
    gap: 1rem;
  }

  .scenario-layout {
    gap: 0.85rem;
  }

}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner {
    width: min(var(--max), calc(100% - 1.25rem));
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .page-shell {
    width: min(var(--max), calc(100% - 1.25rem));
    padding: 1.2rem 0 3.5rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .nav-link,
  .header-cta,
  .button-row .button {
    width: 100%;
  }

  .footer-inner {
    gap: 1.25rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.95rem;
  }

  .hero {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .hero.compact,
  .section,
  .callout {
    padding: 1.2rem;
  }

  .storage-card-top {
    align-items: start;
  }

  .hero-head {
    align-items: start;
  }

  .signal-grid,
  .card-grid.three-up,
  .card-grid.two-up {
    grid-template-columns: 1fr;
  }

  .learn-hero-lanes {
    grid-template-columns: 1fr;
  }

  .lane-card-b {
    margin-top: 0;
  }

  .learn-hero-merge {
    margin: 0;
  }

  .learn-architecture-map::before {
    display: none;
  }

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

  h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 10vw, 3.2rem);
  }

  .hero-simulator {
    --scene-panel-height: 22rem;
    --scene-stage-height: calc((var(--scene-panel-height) * 2) + 5.75rem);
    padding: 1rem;
  }

  .hero-simulator .hero-title {
    max-width: 12ch;
  }

  .hero-title-line-accent {
    padding-left: 0;
  }

  .scene-stage::before {
    inset: 4% 10% auto 0;
    height: 7rem;
    filter: blur(24px);
  }

  .scenario-card {
    padding: 0.78rem;
    border-radius: 20px;
  }

  .scene-controls {
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.55rem;
  }

  .scenario-chrome {
    align-items: flex-start;
    gap: 0.7rem;
  }

  .scenario-chrome-actions {
    width: 100%;
    gap: 0.55rem;
    justify-content: flex-end;
  }

  .scene-hint {
    width: 100%;
  }

  .scene-toggle {
    flex: 1 1 calc(33.333% - 0.55rem);
    justify-content: center;
    padding: 0.42rem 0.52rem;
  }

  .scene-toggle-label {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .console-filebar,
  .console-progress,
  .console-body {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .console-topbar {
    padding: 0.7rem 0.75rem 0;
  }

  .console-block {
    padding: 0.85rem;
  }

  .console-block::before {
    left: 0.72rem;
    top: 0.85rem;
    bottom: 0.85rem;
  }

  .console-kicker,
  .console-block pre {
    margin-left: 0.62rem;
    padding-left: 0;
  }

  .surface-panel {
    padding: 0.75rem;
  }

  .surface-thread {
    gap: 0.65rem;
  }

  .surface-thread-telegram .message {
    max-width: 100%;
  }

  .message {
    padding: 0.72rem 0.78rem;
  }

  .lane-card::after {
    height: 0.9rem;
    bottom: -0.9rem;
  }

  .learn-hero-merge::before {
    top: -0.9rem;
    left: 1.15rem;
    right: 1.15rem;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }
}

@media (max-width: 520px) {
  .site-nav,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .trust-strip li {
    width: 100%;
  }

  .lane-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .lane-log li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .learn-merge-flow {
    display: grid;
  }

  .console-filebar {
    gap: 0.4rem;
  }

  .progress-chip {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
