@font-face {
  font-family: Fraunces;
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080c0a;
  --bg-elev: #0e1512;
  --bg-panel: #121c18;
  --bg-hover: #18241e;
  --line: rgba(228, 193, 92, 0.14);
  --line-strong: #2a3d33;
  --text: #f3f1ea;
  --muted: #9aa79f;
  --green: #3ddc84;
  --green-text: #6be7a4;
  --green-dim: rgba(61, 220, 132, 0.14);
  --gold: #e4c15c;
  --gold-soft: #f1d98a;
  --gold-dim: rgba(228, 193, 92, 0.14);
  --ink: #10241a;
  --danger: #ff9b8a;
  --danger-dim: rgba(255, 155, 138, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --nav: rgba(8, 12, 10, 0.78);
  --glow: rgba(61, 220, 132, 0.16);
  --kbd-bg: #0a100d;
  --code-kw: #e4c15c;
  --code-fn: #6be7a4;
  --code-str: #f3d7a0;
  --code-cmt: #7d8c84;
  --code-num: #9ad4ff;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f3eb;
  --bg-elev: #fffcf6;
  --bg-panel: #ffffff;
  --bg-hover: #f3eee3;
  --line: #e4ddd0;
  --line-strong: #cfc6b6;
  --text: #142018;
  --muted: #4e5c55;
  --green: #0c7a40;
  --green-text: #0b6b38;
  --green-dim: rgba(12, 122, 64, 0.1);
  --gold: #8a6410;
  --gold-soft: #6f520c;
  --gold-dim: rgba(138, 100, 16, 0.12);
  --ink: #10241a;
  --danger: #b42318;
  --danger-dim: rgba(180, 35, 24, 0.08);
  --shadow: 0 18px 40px rgba(20, 32, 24, 0.08);
  --nav: rgba(246, 243, 235, 0.84);
  --glow: rgba(12, 122, 64, 0.1);
  --kbd-bg: #fbfaf6;
  --code-kw: #8a6410;
  --code-fn: #0b6b38;
  --code-str: #8a4b12;
  --code-cmt: #6b776f;
  --code-num: #165a8c;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -10%, var(--glow), transparent 58%),
    radial-gradient(700px 480px at 100% 8%, var(--gold-dim), transparent 50%),
    radial-gradient(800px 500px at 80% 100%, rgba(61, 220, 132, 0.06), transparent 55%),
    linear-gradient(to right, color-mix(in srgb, var(--line-strong) 35%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line-strong) 35%, transparent) 1px, transparent 1px);
  background-size: auto, auto, auto, 72px 72px, 72px 72px;
  background-position: center top, center top, center bottom, 0 0, 0 0;
  mask-image: radial-gradient(1200px 800px at 50% 0%, #000 30%, transparent 88%);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(900px 520px at 12% -10%, var(--glow), transparent 58%),
    radial-gradient(700px 480px at 100% 8%, var(--gold-dim), transparent 50%),
    linear-gradient(to right, rgba(20, 32, 24, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 32, 24, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); text-underline-offset: 0.16em; }
a:hover { color: var(--gold-soft); }
code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9em;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.55rem 0.9rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: var(--nav);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}
.brand img, .brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
}
.brand-name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-name span {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.2rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.github-link .stars {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
}
.github-link .stars[hidden] { display: none; }
.github-link .stars svg { width: 11px; height: 11px; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--bg-hover); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .icon-sun { display: none; }
[data-theme="light"] .icon-btn .icon-sun { display: block; }
[data-theme="light"] .icon-btn .icon-moon { display: none; }

/* ---- Hero ---- */
.hero {
  padding: 4.6rem 0 3.4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero .command { width: 100%; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.28rem 0.7rem 0.28rem 0.35rem;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}
.badge-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--green-dim);
  color: var(--green-text);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
}
.badge-note { color: var(--muted); }

.hero h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 580;
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
  font-variation-settings: "SOFT" 18, "WONK" 0, "opsz" 72;
}
.hero h1 em {
  font-style: italic;
  font-weight: 520;
  color: var(--gold);
  letter-spacing: -0.03em;
}

.lede {
  margin: 1.2rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
  text-wrap: pretty;
}
.lede code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9em;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.05em 0.35em;
  border-radius: 5px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.05rem;
  border-radius: 11px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 560;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: #10241a;
}
.btn-primary:hover { background: var(--gold-soft); color: #10241a; }
.btn-secondary {
  background: var(--bg-panel);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--text); }
.btn[disabled], .btn:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.command {
  margin-top: 1.35rem;
  display: flex;
  align-items: stretch;
  width: min(100%, 36.5rem);
  background: var(--kbd-bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.command pre {
  margin: 0;
  padding: 0.85rem 1rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
}
.command .prompt { color: var(--green-text); user-select: none; }
.command .copy-btn {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0 0.95rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 560;
  white-space: nowrap;
}
.command .copy-btn:hover { color: var(--text); background: var(--bg-hover); }
.command .copy-btn[data-copied="true"] { color: var(--green-text); }

/* Hero code card */
.window {
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
}
.window-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.window-dots {
  display: flex;
  gap: 0.3rem;
}
.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.window-dots i:nth-child(1) { background: #e3a3a3; }
.window-dots i:nth-child(2) { background: var(--gold); }
.window-dots i:nth-child(3) { background: var(--green); }
[data-theme="light"] .window-dots i:nth-child(1) { background: #d47a7a; }

.window pre,
.hl {
  margin: 0;
  padding: 1.05rem 1.15rem 1.2rem;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  background: var(--kbd-bg);
  color: var(--text);
}
.tok-kw { color: var(--code-kw); font-weight: 500; }
.tok-fn { color: var(--code-fn); }
.tok-str { color: var(--code-str); }
.tok-cmt { color: var(--code-cmt); font-style: italic; }
.tok-num { color: var(--code-num); }

.hero-card .window-link {
  font-size: 0.78rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.hero-card .window-link:hover { color: var(--gold-soft); }

/* ---- Sections ---- */
section { padding: 4.25rem 0; scroll-margin-top: 5.5rem; }
section > .wrap > .section-head,
.section-head {
  margin-bottom: 1.8rem;
  max-width: 40rem;
}
.kicker {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 580;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.section-head p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.feature {
  padding: 1.2rem 1.15rem 1.3rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 100%;
}
.feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: var(--green-dim);
  color: var(--green-text);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.compare .window pre { min-height: 16rem; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tab {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-weight: 550;
  font-size: 0.9rem;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #10241a;
}

/* Playground */
.playground {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--green-dim) 55%, transparent), transparent 28%);
  border-block: 1px solid var(--line);
}
.play-shell {
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.play-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.play-toolbar label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 550;
}
.play-toolbar select {
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  min-width: 10rem;
}
.play-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}
.play-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.play-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.play-pane:last-child { border-right: 0; }
.play-pane h3,
.play-output h3 {
  margin: 0;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
#playground-source {
  flex: 1;
  min-height: 22rem;
  width: 100%;
  resize: vertical;
  border: 0;
  background: var(--kbd-bg);
  padding: 1rem 1.1rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text);
}
#playground-python {
  flex: 1;
  min-height: 22rem;
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--kbd-bg);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.play-output {
  border-top: 1px solid var(--line);
}
#playground-output {
  margin: 0;
  min-height: 7.5rem;
  padding: 1rem 1.1rem;
  background: var(--kbd-bg);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
#playground-output.is-error { color: var(--danger); background: var(--danger-dim); }
#playground-output.is-empty { color: var(--muted); }
.play-status {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.play-status[data-state="loading"],
.play-status[data-state="running"] { color: var(--gold); }
.play-status[data-state="error"] { color: var(--danger); }
.play-status[data-state="ok"] { color: var(--green-text); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.3rem 1.2rem 1.4rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 500;
}
.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.step p, .step pre { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step pre {
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  background: var(--kbd-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* Tools */
.tool-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  padding: 1.6rem;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.tool-card h3 {
  margin: 0 0 0.5rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
}
.tool-card p { margin: 0 0 1rem; color: var(--muted); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tool-card .command { width: 100%; margin-top: 0; box-shadow: none; }

/* Docs table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-panel);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
th, td {
  text-align: left;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 620;
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
}
tr:last-child td { border-bottom: 0; }
td code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9em;
  color: var(--gold);
}
.docs-note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 2.4rem 0 2.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-grid,
  .compare,
  .features,
  .steps,
  .play-grid,
  .tool-card {
    grid-template-columns: 1fr;
  }
  .features { grid-template-columns: 1fr 1fr; }
  .play-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  #playground-source, #playground-python { min-height: 16rem; }
  .hero { padding-top: 3rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    right: 0;
    padding: 0.7rem 1rem 1rem;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 0.7rem 0.8rem; color: var(--text); }
  .theme-toggle { align-self: flex-start; margin-top: 0.25rem; }
  .features, .steps { grid-template-columns: 1fr; }
  .command { width: 100%; }
  .play-actions { margin-left: 0; }
  .site-footer .wrap { flex-direction: column; }
  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 3.4rem);
    text-wrap: wrap;
  }
  .hero { padding-top: 2.4rem; padding-bottom: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover { transform: none; }
}
