::selection {
  background: rgba(228, 109, 47, 0.25);
  color: inherit;
}

:root {
  --bg: #f5ebd7;
  --bg-deep: #ead4b3;
  --surface: rgba(255, 250, 240, 0.74);
  --surface-strong: rgba(255, 249, 238, 0.92);
  --line: rgba(24, 49, 40, 0.12);
  --ink: #183128;
  --muted: #51655b;
  --accent: #e46d2f;
  --accent-dark: #b74e1b;
  --accent-soft: rgba(228, 109, 47, 0.12);
  --teal: #1d7a67;
  --gold: #d0a436;
  --code-bg: #10211b;
  --code-bg-soft: #162c24;
  --code-line: rgba(255, 249, 238, 0.06);
  --code-ink: #f7efdf;
  --code-muted: #90ab9e;
  --code-keyword: #ffb26e;
  --code-string: #9fe4bf;
  --code-number: #f4d56e;
  --code-type: #9ed2ff;
  --code-property: #f1d7a5;
  --code-function: #ffddc1;
  --code-comment: #6f8e81;
  --shadow: 0 24px 80px rgba(60, 37, 8, 0.16);
  --shadow-tight: 0 18px 38px rgba(24, 49, 40, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #f8efde;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(228, 109, 47, 0.16), transparent 22rem),
    radial-gradient(circle at 80% 10%, rgba(29, 122, 103, 0.16), transparent 26rem),
    linear-gradient(180deg, #f8efde 0%, #f2e1c3 100%);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

img {
  max-width: 100%;
}

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

button,
a.button {
  font: inherit;
}

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

:not(pre) > code {
  padding: 0.15em 0.4em;
  border-radius: 0.35em;
  background: rgba(24, 49, 40, 0.08);
  font-size: 0.88em;
}

.site-shell {
  position: relative;
  overflow: clip;
  min-height: 100vh;
}

.site-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
  opacity: 0.55;
}

.site-orb-a {
  top: -7rem;
  left: -5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(228, 109, 47, 0.22);
}

.site-orb-b {
  top: 18rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(29, 122, 103, 0.14);
}

.site-orb-c {
  bottom: 12rem;
  left: 55%;
  width: 16rem;
  height: 16rem;
  background: rgba(208, 164, 54, 0.12);
}

.hero,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar,
.hero-grid,
.stats,
.section,
.footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  background: rgba(248, 239, 222, 0.82);
  border-bottom: 1px solid rgba(24, 49, 40, 0.06);
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--ink), #295648);
  color: #fff6e9;
  box-shadow: var(--shadow-tight);
}

.brand-word {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.2rem;
}

.topbar-links {
  display: inline-flex;
  gap: 1.1rem;
  color: var(--muted);
}

.topbar-links a:hover {
  color: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.6rem;
  align-items: stretch;
  padding: 3rem 0 2rem;
}

.hero-copy,
.hero-terminal,
.stat-card,
.demo-panel,
.architecture-card,
.code-panel,
.fit-card {
  backdrop-filter: blur(10px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-terminal,
.demo-panel,
.code-panel {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 20ch;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

h2 {
  max-width: 22ch;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.lede,
.section-copy p,
.stat-card p,
.architecture-card p,
.fit-card li,
.footer-meta,
.hero-list {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.6rem 0 1.3rem;
}

.install-picker {
  margin: 1.4rem 0 1rem;
}

.install-tabs {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.install-tab {
  padding: 0.35rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0.35rem;
  transition: background 150ms ease, color 150ms ease;
}

.install-tab:hover {
  color: var(--ink);
  background: rgba(24, 49, 40, 0.04);
}

.install-tab.is-active {
  background: rgba(24, 49, 40, 0.08);
  color: var(--ink);
}

.install-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--code-bg);
}

.install-cmd code {
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
  color: var(--code-ink);
  font-size: 0.88rem;
}

.install-copy {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255, 249, 238, 0.15);
  border-radius: 0.35rem;
  background: transparent;
  color: var(--code-muted);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.install-copy:hover {
  color: var(--code-ink);
  border-color: rgba(255, 249, 238, 0.3);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button:focus-visible {
  outline: 2px solid rgba(29, 122, 103, 0.36);
  outline-offset: 2px;
}

.button[disabled] {
  opacity: 0.56;
  cursor: default;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: #fff8ee;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 250, 240, 0.66);
  border-color: rgba(24, 49, 40, 0.14);
}

.button-compact {
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}

.hero-list {
  margin: 0;
  padding-left: 1.15rem;
}

.hero-terminal {
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 28px 80px rgba(16, 33, 27, 0.3), 0 0 60px rgba(29, 122, 103, 0.08);
}

.hero-terminal .code-block {
  flex: 1;
}

.terminal-top {
  display: flex;
  gap: 0.45rem;
}

.terminal-top span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(24, 49, 40, 0.16);
}

.terminal-top span:nth-child(1) {
  background: rgba(228, 109, 47, 0.9);
}

.terminal-top span:nth-child(2) {
  background: rgba(208, 164, 54, 0.92);
}

.terminal-top span:nth-child(3) {
  background: rgba(29, 122, 103, 0.88);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem 0 0;
  align-items: stretch;
}

.stat-card,
.architecture-card,
.fit-card {
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  height: 100%;
}

.stats .stat-card:nth-child(1) {
  border-top: 3px solid var(--teal);
}

.stats .stat-card:nth-child(2) {
  border-top: 3px solid var(--accent);
}

.stats .stat-card:nth-child(3) {
  border-top: 3px solid var(--gold);
}

.stats .stat-card:nth-child(4) {
  border-top: 3px solid var(--ink);
}

.stat-value {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.85rem;
}

.section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 2rem;
  align-items: start;
  padding: 6rem 0 0;
}

.section-copy {
  position: sticky;
  top: 1.5rem;
}

.section-copy p {
  max-width: 34rem;
  margin-top: 1rem;
}

.demo-panel,
.code-panel {
  padding: 0;
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Crash recovery demo */

.crash-demo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.demo-section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 6rem 0 4rem;
}

.demo-section-copy {
  text-align: center;
  margin: 0 auto 2rem;
}

.demo-section-copy h2 {
  max-width: none;
}

.demo-section-copy p {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.crash-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.crash-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.5);
}

.crash-demo-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.crash-demo-bad {
  border-color: rgba(228, 109, 47, 0.22);
}

.crash-demo-good {
  border-color: rgba(29, 122, 103, 0.22);
}

.crash-outcome {
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--line);
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 400ms ease, color 400ms ease;
}

.crash-outcome.is-bad {
  background: rgba(228, 109, 47, 0.08);
  color: var(--accent);
}

.crash-outcome.is-good {
  background: rgba(29, 122, 103, 0.08);
  color: var(--teal);
}

.crash-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 400ms ease, color 400ms ease;
}

.crash-demo-badge::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  transition: background 400ms ease;
}

.crash-demo-badge.is-running {
  background: rgba(29, 122, 103, 0.12);
  color: var(--teal);
}

.crash-demo-badge.is-running::before {
  background: var(--teal);
  animation: pulse 1.2s ease-in-out infinite;
}

.crash-demo-badge.is-crashed {
  background: rgba(228, 109, 47, 0.14);
  color: var(--accent);
}

.crash-demo-badge.is-crashed::before {
  background: var(--accent);
}

.crash-demo-badge.is-recovering {
  background: rgba(208, 164, 54, 0.14);
  color: #a07a18;
}

.crash-demo-badge.is-recovering::before {
  background: var(--gold);
  animation: pulse 0.8s ease-in-out infinite;
}

.crash-demo-badge.is-complete {
  background: rgba(29, 122, 103, 0.12);
  color: var(--teal);
}

.crash-demo-badge.is-complete::before {
  background: var(--teal);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.crash-timeline {
  margin: 0;
  padding: 1rem 1.4rem;
  list-style: none;
  display: grid;
  gap: 0;
}

.crash-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(24, 49, 40, 0.06);
  transition: opacity 300ms ease;
}

.crash-step:last-child {
  border-bottom: none;
}

.crash-dot {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--muted);
  transition: background 400ms ease, box-shadow 400ms ease;
}

.crash-step.is-complete .crash-dot {
  background: var(--teal);
}

.crash-step.is-running .crash-dot {
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(29, 122, 103, 0.2);
  animation: pulse 1.2s ease-in-out infinite;
}

.crash-step.is-crashed .crash-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(228, 109, 47, 0.2);
}

.crash-step.is-pending .crash-dot {
  background: rgba(24, 49, 40, 0.18);
}

.crash-step.is-skipped .crash-dot {
  background: rgba(180, 50, 50, 0.5);
}

.crash-step-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 0.5rem;
}

.crash-step-name {
  font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
  font-size: 0.92rem;
  font-weight: 600;
}

.step-cost {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

.crash-step-status {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 300ms ease;
}

.crash-step.is-complete .crash-step-status {
  color: var(--teal);
}

.crash-step.is-crashed .crash-step-status {
  color: var(--accent);
  font-weight: 600;
}

.crash-step.is-skipped .crash-step-status {
  color: rgba(180, 50, 50, 0.7);
}

/* Hero terminal output */

.hero-output-bar {
  padding: 0.5rem 1.1rem;
  border-top: 1px solid rgba(255, 249, 238, 0.08);
  background: rgba(255, 250, 240, 0.03);
}

.hero-output-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--code-muted);
}

.hero-output {
  margin: 0;
  padding: 0.6rem 1.2rem 0.85rem;
  background: var(--code-bg);
  color: var(--code-muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  height: 7.2rem;
  overflow: hidden;
}

.hero-output .out-ts {
  color: rgba(255, 249, 238, 0.25);
}

.hero-output .out-ok {
  color: var(--code-string);
}

.hero-output .out-name {
  color: var(--code-keyword);
}

.hero-output .out-dim {
  color: rgba(255, 249, 238, 0.35);
}

.architecture-grid,
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.fit-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.fit-card-good {
  border-color: rgba(29, 122, 103, 0.22);
}

.fit-card-bad {
  border-color: rgba(228, 109, 47, 0.22);
}

.quickstart-section {
  position: relative;
  z-index: 0;
  padding-top: 5rem;
  padding-bottom: 5rem;
  scroll-margin-top: 4rem;
}

.quickstart-section::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: -2rem;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--code-bg);
  z-index: -1;
}

.qs-copy-btn {
  margin-top: 1.5rem;
}

.quickstart-section .eyebrow {
  color: var(--code-muted);
}

.quickstart-section h2 {
  color: var(--code-ink);
}

.quickstart-section .code-panel {
  background: rgba(255, 249, 238, 0.05);
  border-color: rgba(255, 249, 238, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.quickstart-section .code-shell-bar {
  background: rgba(255, 250, 240, 0.06);
  border-bottom-color: rgba(255, 249, 238, 0.08);
}

.quickstart-section .code-file {
  color: var(--code-muted);
}

.quickstart-section .code-badge {
  background: rgba(255, 249, 238, 0.1);
  color: var(--code-ink);
}

.quickstart-section .button-secondary {
  background: rgba(255, 249, 238, 0.08);
  border-color: rgba(255, 249, 238, 0.15);
  color: var(--code-ink);
}

.qs-steps {
  display: grid;
  gap: 1.25rem;
}

.qs-step {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 249, 238, 0.1);
  background: rgba(255, 249, 238, 0.04);
}

.qs-step-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(255, 249, 238, 0.06);
}

.qs-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(29, 122, 103, 0.2);
  color: var(--code-type);
  font-weight: 700;
  font-size: 0.88rem;
}

.qs-step-title {
  color: var(--code-ink);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.qs-step-desc {
  color: var(--code-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.qs-step-desc code {
  background: rgba(255, 249, 238, 0.1);
  color: var(--code-ink);
}

.qs-code {
  border-radius: 0;
}

.code-head {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.code-shell-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.8), rgba(245, 235, 215, 0.68));
  border-bottom: 1px solid var(--line);
}

.code-shell-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.code-file {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.26rem 0.58rem;
  border-radius: 999px;
  background: rgba(24, 49, 40, 0.08);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-block {
  margin: 0;
  overflow-x: auto;
  padding: 0.85rem 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    var(--code-bg);
  color: var(--code-ink);
  font-size: 0.94rem;
  line-height: 1.72;
  white-space: normal;
}

.code-block code {
  display: block;
  min-width: fit-content;
  white-space: normal;
}

.code-block.is-compact {
  padding: 0.7rem 0;
}

.code-block.is-compact code {
  min-width: 0;
}

.code-block.is-compact .code-line {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.code-block.is-compact .code-line-no {
  display: none;
}

.code-block.is-compact .code-line:nth-child(odd) {
  background: none;
}

.code-line {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  padding: 0 1.2rem;
  min-height: 1.72rem;
}

.code-line:nth-child(odd) {
  background: none;
}

.code-line-no {
  color: var(--code-comment);
  text-align: right;
  user-select: none;
}

.code-line-content {
  white-space: pre;
}

.token-keyword {
  color: var(--code-keyword);
}

.token-string {
  color: var(--code-string);
}

.token-number {
  color: var(--code-number);
}

.token-type {
  color: var(--code-type);
}

.token-property {
  color: var(--code-property);
}

.token-function {
  color: var(--code-function);
}

.token-comment {
  color: var(--code-comment);
}

.token-operator {
  color: var(--code-muted);
}

.footer {
  margin-top: 6rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  padding: 1.3rem 1.6rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer-meta {
  margin-top: 0.4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--teal);
  font-weight: 600;
  transition: opacity 180ms ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 650ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

.hero-copy {
  animation-delay: 80ms;
}

.hero-terminal {
  animation-delay: 160ms;
}

.stats .stat-card:nth-child(1) {
  animation-delay: 220ms;
}

.stats .stat-card:nth-child(2) {
  animation-delay: 280ms;
}

.stats .stat-card:nth-child(3) {
  animation-delay: 340ms;
}

.stats .stat-card:nth-child(4) {
  animation-delay: 400ms;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .section {
    grid-template-columns: 1fr;
  }

  .stats,
  .architecture-grid,
  .fit-grid {
    grid-template-columns: 1fr 1fr;
  }

  h1,
  h2 {
    max-width: none;
  }

  .section-copy {
    position: static;
  }
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .topbar-links,
  .hero-actions,
  .code-head,
  .code-shell-bar {
    width: 100%;
    flex-wrap: wrap;
  }

  .stats,
  .architecture-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-terminal,
  .code-panel {
    padding: 0;
  }

  .section {
    padding-top: 1.5rem;
    scroll-margin-top: -1rem;
  }

  .demo-section {
    padding: 1.5rem 0 2.5rem;
    scroll-margin-top: -1rem;
  }

  .quickstart-section {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    scroll-margin-top: -1rem;
  }

  .hero-copy {
    padding: 1.15rem;
    overflow: hidden;
  }

  .install-picker {
    margin-right: -0.25rem;
  }

  h1 {
    font-size: 1.75rem !important;
  }

  .lede {
    font-size: 0.95rem;
  }

  .footer {
    padding: 1.2rem;
  }

  .crash-compare {
    grid-template-columns: 1fr;
  }

  .crash-demo {
    border-radius: var(--radius-md);
  }

  .code-head,
  .code-shell-bar {
    padding: 1rem;
  }

  .code-line {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0 0.8rem;
  }

  .code-block {
    font-size: 0.82rem;
  }

  .qs-step-header {
    padding: 1rem;
  }

  .qs-step-title {
    font-size: 0.95rem;
  }

  .qs-step-desc {
    font-size: 0.82rem;
  }

  .install-picker {
    margin: 1rem 0 0.5rem;
  }

  .install-tabs {
    flex-wrap: wrap;
  }

  .install-cmd code {
    font-size: 0.8rem;
  }

  .hero-actions {
    margin: 1rem 0 0.8rem;
  }

  .button {
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
  }

  .fit-card {
    padding: 1.2rem;
  }

  .stat-card {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
