/* MiniMax — "The Studio in the Dark"
   Art direction: near-black ink stage, paper type, one spark accent,
   display serif (Fraunces) against a clipped grotesk (Space Grotesk). */

:root {
  --ink: #0b0b0e;
  --ink-2: #121218;
  --ink-3: #1a1a22;
  --paper: #f4f1ea;
  --paper-dim: #b9b6ad;
  --mute: #8a887f;
  --line: rgba(244, 241, 234, 0.12);
  --spark: #d7ff3e;
  --iris: #8e9bff;
  --ember: #ff8a4d;
  --rose: #ff5ca2;
  --mint: #52f2c4;
  --font-display: "Fraunces", "Georgia", serif;
  --font-ui: "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "Menlo", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 72px;
}

/* ---------- Fonts (vendored, offline) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--spark); color: var(--ink); }

img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--spark); color: var(--ink);
  padding: 10px 18px; border-radius: 8px; font-weight: 600;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }

:focus-visible {
  outline: 2px solid var(--spark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Film grain — generated SVG turbulence, data URI, no external request */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--spark);
  margin-bottom: 22px;
}
.eyebrow::before { content: "● "; color: var(--spark); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 28px;
}
.section-title em, .hero-title em, .cta-title em, .panel-text h3 em {
  font-style: italic;
  font-weight: 420;
  color: var(--spark);
}
.section-lede {
  max-width: 56ch;
  color: var(--paper-dim);
  font-size: 1.1rem;
  margin-bottom: 56px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease-spring), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  will-change: transform;
}
.btn-primary {
  background: var(--spark); color: var(--ink);
  box-shadow: 0 0 0 0 rgba(215, 255, 62, 0);
}
.btn-primary:hover { box-shadow: 0 0 34px -4px rgba(215, 255, 62, 0.55); }
.btn-primary:active { transform: scale(0.96); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--paper);
  background: rgba(244, 241, 234, 0.02);
}
.btn-ghost:hover { border-color: var(--paper); background: rgba(244, 241, 234, 0.07); }
.btn-ghost:active { transform: scale(0.96); }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 11, 14, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; color: var(--paper); transition: transform 0.5s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(180deg); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 144;
}
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--paper-dim); font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--paper); background: rgba(244, 241, 234, 0.07); }
.nav-links a.active { color: var(--ink); background: var(--spark); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9.2vw, 7.4rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
  max-width: 14ch;
  margin-bottom: 30px;
  text-wrap: balance;
}
.swap-wrap { white-space: nowrap; }
.swap {
  display: inline-block;
  min-width: 4.6ch;
  color: var(--spark);
  transition: opacity 0.3s, transform 0.3s var(--ease-out), filter 0.3s;
}
.swap.out { opacity: 0; transform: translateY(0.3em) rotate(2deg); filter: blur(6px); }
.hero-sub {
  max-width: 46ch;
  color: var(--paper-dim);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin-bottom: 40px;
}
.hero-sub strong { color: var(--paper); font-weight: 600; }

.prompt-bar {
  display: flex; align-items: center; gap: 10px;
  max-width: 620px;
  background: rgba(18, 18, 24, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.prompt-bar:focus-within {
  border-color: var(--spark);
  box-shadow: 0 0 40px -10px rgba(215, 255, 62, 0.4);
}
.prompt-caret { font-family: var(--font-mono); color: var(--spark); font-size: 1.1rem; }
.prompt-bar input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.prompt-bar input::placeholder { color: var(--mute); }

.sense-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--paper-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease-spring), background 0.2s;
}
.chip i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c, var(--spark));
  box-shadow: 0 0 10px var(--c, var(--spark));
}
.chip:hover {
  color: var(--paper);
  border-color: var(--paper);
  transform: translateY(-2px);
  background: rgba(244, 241, 234, 0.05);
}
.chip:active { transform: translateY(0) scale(0.96); }

.hero-foot { position: relative; z-index: 2; padding-bottom: 34px; }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.stat dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}
.stat dd {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 560;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.product-card {
  grid-column: span 2;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), border-color 0.3s, box-shadow 0.45s;
}
.product-card.card-wide { grid-column: span 4; }
.product-card:hover, .product-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--hue-c, var(--spark));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 50px -18px var(--hue-c, var(--spark));
}
.product-card[data-hue="iris"] { --hue-c: var(--iris); }
.product-card[data-hue="ember"] { --hue-c: var(--ember); }
.product-card[data-hue="rose"] { --hue-c: var(--rose); }
.product-card[data-hue="mint"] { --hue-c: var(--mint); }
.product-card[data-hue="spark"] { --hue-c: var(--spark); }
.card-canvas {
  width: 100%;
  height: 180px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.card-body { padding: 26px 26px 30px; }
.card-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hue-c, var(--spark));
  margin-bottom: 12px;
}
.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 560;
  line-height: 1.15;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 144;
}
.card-copy { color: var(--paper-dim); font-size: 0.95rem; margin-bottom: 18px; }
.card-facts { display: grid; gap: 7px; margin-bottom: 20px; }
.card-facts li {
  font-size: 0.88rem;
  color: var(--mute);
  padding-left: 18px;
  position: relative;
}
.card-facts li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--hue-c, var(--spark));
}
.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--paper);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.card-link i {
  font-style: normal;
  color: var(--hue-c, var(--spark));
  transition: transform 0.3s var(--ease-spring);
}
.product-card:hover .card-link i { transform: translateX(6px); }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 20px 0;
  background: var(--ink-2);
}
.marquee-track {
  display: flex; align-items: center; gap: 38px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 440;
  white-space: nowrap;
  color: var(--paper-dim);
  font-variation-settings: "opsz" 144;
}
.marquee-track i { color: var(--spark); font-style: normal; font-size: 1rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Creators / tabs ---------- */
.creators { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%); }
.tabs {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-top: 20px;
}
.tab-list {
  display: flex; flex-direction: column; gap: 4px;
  border-left: 1px solid var(--line);
}
.tab-list [role="tab"] {
  text-align: left;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--mute);
  border-left: 2px solid transparent;
  margin-left: -1.5px;
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
  font-variation-settings: "opsz" 144;
}
.tab-list [role="tab"]:hover { color: var(--paper); transform: translateX(4px); }
.tab-list [role="tab"][aria-selected="true"] {
  color: var(--spark);
  border-left-color: var(--spark);
  font-style: italic;
}
.tab-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: stretch;
  min-height: 420px;
}
.tab-panel[hidden] { display: none; }
.panel-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 540;
  line-height: 1.1;
  margin-bottom: 18px;
  font-variation-settings: "opsz" 144;
}
.panel-text p { color: var(--paper-dim); margin-bottom: 22px; }
.tick-list { display: grid; gap: 10px; }
.tick-list li { padding-left: 26px; position: relative; color: var(--paper); font-size: 0.95rem; }
.tick-list li::before {
  content: "↳";
  position: absolute; left: 0;
  color: var(--spark);
}
.panel-canvas {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--ink);
}

/* ---------- Developers ---------- */
.devs-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.dev-facts { display: grid; gap: 14px; margin-bottom: 34px; }
.dev-facts li {
  padding-left: 22px; position: relative;
  color: var(--paper-dim);
}
.dev-facts li::before { content: "/"; position: absolute; left: 0; color: var(--spark); font-family: var(--font-mono); }
.dev-facts strong { color: var(--paper); }
.dev-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.code-window {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0e0e13;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.code-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.code-tabs { display: flex; gap: 4px; margin-left: 8px; flex: 1; overflow-x: auto; }
.code-tabs [role="tab"] {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--mute);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.code-tabs [role="tab"]:hover { color: var(--paper); }
.code-tabs [role="tab"][aria-selected="true"] {
  color: var(--spark);
  background: rgba(215, 255, 62, 0.09);
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--paper-dim);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { color: var(--paper); border-color: var(--paper-dim); }
.copy-btn.done { color: var(--spark); border-color: var(--spark); }
.code-body {
  padding: 26px 26px 30px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.75;
  color: #cfd3e6;
  min-height: 340px;
  tab-size: 2;
}
.tok-k { color: #c792ea; }  /* keyword */
.tok-s { color: #d7ff3e; }  /* string */
.tok-f { color: #82aaff; }  /* function */
.tok-c { color: #5b5f77; font-style: italic; } /* comment */
.tok-n { color: #ff8a4d; }  /* number */
.tok-p { color: #89ddff; }  /* property */
.code-note {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--mute);
  background: var(--ink-2);
}

/* ---------- Community ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.quote-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  background: var(--ink-2);
  display: flex; flex-direction: column; gap: 24px;
  transition: transform 0.45s var(--ease-out), border-color 0.3s;
}
.quote-card:hover, .quote-card:focus-visible {
  transform: translateY(-5px) rotate(-0.4deg);
  border-color: var(--paper-dim);
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 460;
  line-height: 1.45;
  font-variation-settings: "opsz" 144;
}
.quote-card figcaption { margin-top: auto; }
.quote-card strong { display: block; font-size: 0.95rem; }
.quote-card span { color: var(--mute); font-size: 0.85rem; font-family: var(--font-mono); }

.release-track {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 32px;
  background: linear-gradient(90deg, rgba(215, 255, 62, 0.05), transparent 40%);
}
.release-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--spark);
  margin-bottom: 18px;
}
.release-list { display: grid; gap: 14px; }
.release-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--paper-dim);
}
.release-list time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--mute); padding-top: 3px; }

/* ---------- CTA ---------- */
.cta { text-align: center; overflow: hidden; }
.cta-inner { position: relative; z-index: 2; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 8rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 30px;
}
.cta .section-lede { margin-inline: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 70px;
  background: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
}
.footer-brand p { color: var(--mute); margin-top: 18px; font-size: 0.9rem; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
  font-weight: 500;
}
.footer-col a { color: var(--paper-dim); font-size: 0.92rem; width: fit-content; position: relative; }
.footer-col a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--spark);
  transition: width 0.3s var(--ease-out);
}
.footer-col a:hover { color: var(--paper); }
.footer-col a:hover::after { width: 100%; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 26px;
  color: var(--mute);
  font-size: 0.84rem;
}
.to-top {
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease-spring);
}
.to-top:hover { color: var(--spark); border-color: var(--spark); transform: translateY(-2px); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card, .product-card.card-wide { grid-column: span 1; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list {
    flex-direction: row; overflow-x: auto;
    border-left: 0; border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }
  .tab-list [role="tab"] {
    white-space: nowrap;
    border-left: 0; border-bottom: 2px solid transparent;
    margin-left: 0; padding: 10px 16px;
    font-size: 1.1rem;
  }
  .tab-list [role="tab"][aria-selected="true"] { border-bottom-color: var(--spark); }
  .devs-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 6px;
    margin-left: auto; padding: 10px;
  }
  .nav-toggle span {
    width: 24px; height: 2px; background: var(--paper);
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
  }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    background: rgba(11, 11, 14, 0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px 30px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease-out);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { display: block; padding: 14px 10px; font-size: 1.1rem; }
  .nav-links a.active { display: inline-block; padding-inline: 18px; margin-left: -8px; }
  .nav-cta { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .tab-panel { grid-template-columns: 1fr; min-height: 0; }
  .panel-canvas { min-height: 240px; }
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 18px; }
  .prompt-bar { flex-wrap: wrap; border-radius: 22px; padding: 12px 14px; }
  .prompt-bar .btn { width: 100%; }
  .release-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer-base { flex-direction: column; text-align: center; }
  .code-body { font-size: 0.76rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .swap { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
