/* Baritone Bedrock website. Plain CSS, no build step (GitHub Pages). */

:root {
  --bg: #0b1016;
  --bg-2: #0f1620;
  --bg-3: #141d29;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e8eef5;
  --muted: #8b98a9;
  --dim: #5d6a7b;

  /* Baritone's render colors */
  --red: #ff4d57;     /* colorCurrentPath */
  --green: #45e07a;   /* colorGoalBox */
  --blue: #4d7dff;    /* colorBestPathSoFar */
  --cyan: #2fd8e8;    /* colorSelection */
  --magenta: #e04dff; /* colorNextPath */
  --gold: #ffcc33;
  --violet: #9b7bff;
  --orange: #ff9b3d;
  --pink: #ff6fb1;
  --lime: #b6f03c;

  --grass: #5fa83a;
  --grass-dark: #3f7a24;
  --dirt: #8a5a35;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --container: 1160px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Pixelify Sans", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code, .inline { font-family: var(--mono); font-size: 0.88em; }
code.inline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 0.08em 0.4em;
  border-radius: 5px;
  color: #cfe3f3;
}
::selection { background: rgba(69, 224, 122, 0.35); }
.pixel { font-family: var(--pixel); font-weight: 700; letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--green); color: #04110a; padding: 8px 14px; }
.skip:focus { left: 12px; top: 12px; }

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

/* ------------------------------------------------------------------ buttons */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); color: var(--text);
  cursor: pointer; text-decoration: none !important;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--sm { --h: 38px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn--primary {
  background: linear-gradient(180deg, #5df08f, #2fc463);
  color: #062312;
  box-shadow: 0 0 0 1px rgba(69, 224, 122, 0.4), 0 10px 30px rgba(69, 224, 122, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(69, 224, 122, 0.6), 0 16px 40px rgba(69, 224, 122, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 16, 22, 0.72); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 500 18px var(--pixel); text-decoration: none !important; }
.brand b { color: var(--green); font-weight: 700; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav__toggle { display: none; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 20% 40%, rgba(11, 16, 22, 0.92), rgba(11, 16, 22, 0.35) 60%, transparent 80%),
    linear-gradient(180deg, rgba(11, 16, 22, 0.2) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.hero__content { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; padding: 120px 0 90px; max-width: var(--container); }
.hero__content > * { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px var(--mono); color: #bfe9cf;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(69, 224, 122, 0.08); border: 1px solid rgba(69, 224, 122, 0.25);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(69, 224, 122, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(69, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(69, 224, 122, 0); } }
.hero__title { margin: 22px 0 18px; font-size: clamp(56px, 9vw, 112px); line-height: 0.92; display: flex; flex-direction: column; }
.hero__title .pixel { text-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); }
.hero__title-accent {
  background: linear-gradient(90deg, var(--green), var(--cyan) 60%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shine 8s linear infinite;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35));
  text-shadow: none !important;
}
@keyframes shine { to { background-position: -200% 0; } }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: #c4cfdc; max-width: 560px; }
.hero__lead a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__chat {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 34px;
  padding: 10px 16px; min-width: 320px;
  background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px;
  font: 500 17px var(--pixel); color: #fff; backdrop-filter: blur(4px);
}
.chat-prefix { color: var(--dim); }
.caret { display: inline-block; width: 9px; height: 1.05em; margin-left: 2px; background: currentColor; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrolly 1.8s var(--ease) infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ------------------------------------------------------------------ stats */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 clamp(36px, 4vw, 52px)/1 var(--pixel); color: var(--text); }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; position: relative; }
.kicker { font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--green); margin-bottom: 14px; }
.section h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.section__lead { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* ------------------------------------------------------------------ features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  --accent: var(--green);
  position: relative; padding: 28px 26px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.card__icon svg { width: 24px; height: 24px; shape-rendering: crispEdges; }
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card > code {
  align-self: flex-start; margin-top: 6px;
  padding: 6px 10px; border-radius: 6px; font-size: 13px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); color: color-mix(in srgb, var(--accent) 70%, white);
}

/* ------------------------------------------------------------------ demo */
.tag { font: 600 0.82em var(--mono); padding: 1px 8px; border-radius: 5px; white-space: nowrap; }
.tag--steve { background: rgba(47, 216, 232, 0.15); color: var(--cyan); }
.tag--goal { background: rgba(69, 224, 122, 0.15); color: var(--green); }
.demo {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2); background: #0a0f15; box-shadow: var(--shadow);
}
.demo__toolbar { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.demo__group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tool {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  color: var(--muted); font: 500 14px var(--font); cursor: pointer; transition: all 0.2s;
}
.tool:hover { color: var(--text); border-color: var(--line-2); }
.tool.is-active { color: var(--text); border-color: rgba(69, 224, 122, 0.5); background: rgba(69, 224, 122, 0.08); }
.sw { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
.sw--stone { background: #7d8590; }
.sw--water { background: #3f76e4; }
.sw--lava { background: #f2701c; }
.sw--grass { background: var(--grass); }
.switch { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font: 500 13.5px var(--mono); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 36px; height: 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.12); position: relative; transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.demo__stage { position: relative; aspect-ratio: 2 / 1; background: #0c131b; touch-action: none; }
.demo__stage canvas { width: 100%; height: 100%; cursor: crosshair; image-rendering: pixelated; }
.demo__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.demo__stats div { padding: 14px 18px; border-right: 1px solid var(--line); }
.demo__stats div:last-child { border-right: 0; }
.demo__stats span { display: block; color: var(--dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.demo__stats b { font: 600 20px var(--mono); }
.demo__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 18px 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.lg { display: inline-block; width: 12px; height: 12px; margin-right: 7px; border-radius: 3px; vertical-align: -1px; }
.lg--open { background: rgba(77, 125, 255, 0.55); }
.lg--closed { background: rgba(77, 125, 255, 0.18); }
.lg--best { background: var(--blue); height: 4px; vertical-align: 3px; }
.lg--path { background: var(--red); height: 4px; vertical-align: 3px; }
.lg--break { background: transparent; box-shadow: inset 0 0 0 2px var(--red); }

/* ------------------------------------------------------------------ gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.shot {
  position: relative; grid-column: span 4; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--bg-3); cursor: zoom-in;
  aspect-ratio: 16 / 9; padding: 0; color: inherit; text-align: left;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.shot--wide { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.shot:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.shot:hover img, .shot:hover video { transform: scale(1.04); }
.shot__cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  font-size: 14px; color: #dbe5ef;
}
.shot__cap b { display: block; font: 600 16px var(--font); color: #fff; }
.shot__cap code { color: var(--green); }
.shot__badge { position: absolute; top: 12px; left: 12px; font: 600 11px var(--mono); letter-spacing: 0.1em; padding: 4px 8px; border-radius: 5px; background: rgba(255, 77, 87, 0.9); color: #fff; }
.gallery__empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; border: 1px dashed var(--line-2); border-radius: var(--radius); }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(3, 6, 9, 0.92); display: grid; place-items: center; padding: 4vmin; backdrop-filter: blur(6px); animation: fade 0.25s; }
.lightbox[hidden] { display: none; }
.lightbox__body { max-width: min(1400px, 100%); max-height: 100%; }
.lightbox__body img, .lightbox__body video { max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox__body p { margin-top: 12px; color: var(--muted); text-align: center; }
.lightbox__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 26px; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }

/* ------------------------------------------------------------------ commands */
.commands { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; position: relative; }
.commands .section__lead { margin-bottom: 26px; }
.commands h2 { margin-top: 0; }
.cmdlist { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 4px; }
.cmdlist li { display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.cmdlist code { color: var(--green); min-width: 220px; font-size: 14px; }
.cmdlist span { color: var(--muted); font-size: 15px; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; transition: margin 0.2s; }
.link-arrow:hover::after { margin-left: 4px; }

.mc-chat {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  background: url("../img/chat-bg.svg") center / cover, linear-gradient(160deg, #3a6ea5, #8cc4e8 55%, #5fa83a 56%, #3f7a24);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  font: 500 16px/1.35 var(--pixel);
}
.mc-chat__log { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.mc-line { background: rgba(0, 0, 0, 0.5); color: #fff; padding: 2px 8px; align-self: flex-start; max-width: 100%; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35); animation: chatin 0.3s var(--ease); }
.mc-line .p { color: #d16cff; }
.mc-line .g { color: #9df29d; }
.mc-line .y { color: #ffe066; }
.mc-line .gray { color: #c9c9c9; }
@keyframes chatin { from { opacity: 0; transform: translateY(6px); } }
.mc-chat__input { background: rgba(0, 0, 0, 0.62); color: #fff; padding: 6px 10px; min-height: 34px; display: flex; align-items: center; }

/* ------------------------------------------------------------------ pipeline */
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; position: relative; }
.pipeline::before {
  content: ""; position: absolute; top: 32px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green), var(--red));
  opacity: 0.5;
}
.pipeline li { position: relative; padding: 0 6px; text-align: center; }
.pipeline b {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line-2);
  font: 700 26px var(--pixel); color: var(--green); position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.pipeline h3 { font-size: 19px; margin-bottom: 8px; }
.pipeline p { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ install */
.install .section__head { margin-bottom: 40px; }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}
.step__n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; font: 700 20px var(--pixel); color: #062312; background: var(--green); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2); }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--muted); overflow-wrap: anywhere; }
.callout { display: flex; gap: 14px; align-items: flex-start; max-width: 860px; margin: 22px auto 0; padding: 16px 20px; border-radius: var(--radius); border: 1px solid rgba(255, 204, 51, 0.3); background: rgba(255, 204, 51, 0.06); color: #f4e3b0; }
.callout svg { flex: none; color: var(--gold); margin-top: 1px; }

/* ------------------------------------------------------------------ faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 28px var(--font); color: var(--green); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); animation: fade 0.35s; }

/* ------------------------------------------------------------------ cta + footer */
.cta { padding: 110px 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 50% 100%, rgba(69, 224, 122, 0.18), transparent 70%);
}
.cta__inner { text-align: center; }
.cta h2 { font-size: clamp(34px, 5vw, 60px); }
.cta p { color: var(--muted); margin-top: 14px; font-size: 18px; }
.cta .hero__cta { justify-content: center; }
.footer { border-top: 1px solid var(--line); padding: 44px 0 40px; background: #080c11; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer__inner nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__inner nav a { color: var(--muted); font-size: 14.5px; }
.footer__inner nav a:hover { color: var(--text); }
.footer .brand { margin-bottom: 8px; }
.footer__legal { grid-column: 1 / -1; font-size: 13px; color: var(--dim); }

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .commands { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .pipeline::before { display: none; }
  .shot, .shot--wide { grid-column: span 6; grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .nav__links, .nav__gh { display: none; }
  .nav__toggle {
    display: grid; gap: 6px; margin-left: auto; width: 42px; height: 42px; place-content: center;
    border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, 0.04); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 2px; background: #fff; transition: transform 0.3s; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav.is-open { background: rgba(11, 16, 22, 0.96); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    padding: 10px 16px 18px; background: rgba(11, 16, 22, 0.96); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links a { padding: 12px; font-size: 16px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .shot, .shot--wide { grid-column: 1 / -1; }
  .demo__stage { aspect-ratio: 4 / 3; }
  .demo__stats { grid-template-columns: repeat(2, 1fr); }
  .demo__stats div:nth-child(2) { border-right: 0; }
  .demo__stats div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .cmdlist li { flex-direction: column; gap: 2px; }
  .cmdlist code { min-width: 0; }
  .hero__chat { min-width: 0; width: 100%; font-size: 15px; }
  .footer__inner { grid-template-columns: 1fr; }
  .mc-chat { font-size: 13.5px; }
}

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

/* Guides are useful as static HTML, without canvas or animation scripts. */
.guide-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.guide-content > * { min-width: 0; }
.guide-content p, .guide-content li { overflow-wrap: anywhere; }
.guide-content h2 { font-size: clamp(27px, 4vw, 42px); }
.guide-content h3 { margin-top: 10px; }
.guide-content p, .guide-content li { color: var(--muted); }
.guide-content strong { color: var(--text); }
.guide-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.guide-main { padding: 130px 0 72px; }
.guide-main article { max-width: 900px; margin-inline: auto; }
.guide-main h1 { font-size: clamp(36px, 6vw, 64px); }
.guide-main pre { padding: 20px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; overflow-x: auto; }
.table-wrap { overflow-x: auto; }
.guide-main table { border-collapse: collapse; width: 100%; min-width: 520px; }
.guide-main th, .guide-main td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line-2); }
.guide-main td { color: var(--muted); }
.guide-main ul, .guide-main ol { padding-left: 24px; }
.guide-main li + li { margin-top: 12px; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 20px 0; }
