/* NuclearLang site. Dark: the Chernobyl palette of the editors (extensions/vscode/themes); light by the system's
   preference. Code is highlighted at build time by shiki with both themes (--shiki-light / --shiki-dark). The
   motion (fade and rise) is the npm package motion, run by the Nuclear view Reveal; this file only says where a
   block starts before it moves, and nothing moves for a reader who asks for less motion. */
:root {
  --bg: #f6f9f3;
  --bg-deep: #ecf1e7;
  --surface: #ffffff;
  --surface-2: #f2f6ee;
  --border: #d6dfcf;
  --fg: #17200f;
  --muted: #5a6955;
  --primary: #3d7a00;
  --accent: #2f6400;
  --cyan: #00838f;
  --amber: #a86b00;
  --violet: #6a3fb5;
  --error: #c62828;
  --code-bg: #f1f5ed;
  --glow: rgb(61 122 0 / 18%);
  --radius: 14px;
  --mono: ui-monospace, 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070a06;
    --bg-deep: #050704;
    --surface: #0e130c;
    --surface-2: #121a0f;
    --border: #233021;
    --fg: #dbe7d2;
    --muted: #8b9c86;
    --primary: #a7ff00;
    --accent: #64ff00;
    --cyan: #2fe0f0;
    --amber: #ffd600;
    --violet: #b98cff;
    --error: #ff4b4b;
    --code-bg: #0b100a;
    --glow: rgb(167 255 0 / 22%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
.muted { color: var(--muted); }
.error { color: var(--error); }
.center { text-align: center; padding: 64px 16px; }

/* where a moving block starts (Reveal moves it); with less motion, or no scripts, it is simply there */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .rise, .reveal { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  height: 60px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--fg); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.logo { color: var(--primary); text-shadow: 0 0 14px var(--glow); }
.links { display: flex; gap: 6px; }
.links a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--fg); background: var(--surface-2); text-decoration: none; }
.links a.active { color: var(--primary); background: var(--surface-2); }
.github { margin-left: auto; color: var(--muted); font-weight: 600; }

/* search */
.search { position: relative; }
.search input {
  width: 240px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--fg); font: inherit; font-size: 14px;
}
.search input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.results {
  position: absolute; top: 40px; left: 0; width: 360px; max-height: 60vh; overflow: auto; margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgb(0 0 0 / 25%);
}
.results a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--fg); }
.results a:hover { background: var(--bg-deep); text-decoration: none; }

/* documentation frame */
.frame { display: grid; grid-template-columns: 270px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.sidebar {
  position: sticky; top: 60px; height: calc(100vh - 60px); overflow: auto; padding: 24px 16px 48px 24px;
  border-right: 1px solid var(--border);
}
.group h4 { margin: 18px 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.group ul { list-style: none; margin: 0; padding: 0; }
.group a { display: block; padding: 3px 8px; border-radius: 6px; color: var(--fg); font-size: 14.5px; }
.group a:hover { background: var(--bg-deep); text-decoration: none; }
.group a.active { color: var(--primary); background: var(--bg-deep); font-weight: 600; }
.content { min-width: 0; padding: 32px 40px 80px; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
.outline { position: sticky; top: 84px; align-self: start; font-size: 13.5px; }
.outline h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.outline ul { list-style: none; margin: 0 0 16px; padding: 0; }
.outline li { padding: 2px 0; }
.outline .level-3 { padding-left: 12px; }
.outline a { color: var(--muted); }
.outline a:hover { color: var(--fg); }
.edit { font-size: 13px; }
.missing { padding: 64px 24px; text-align: center; }

/* the rendered markdown */
.markdown { max-width: 860px; }
.markdown h1 { font-size: 2.1em; line-height: 1.2; margin: 0 0 .6em; }
.markdown h2 { margin-top: 2em; padding-top: .6em; border-top: 1px solid var(--border); }
.markdown h3 { margin-top: 1.6em; }
.markdown code { font: .88em/1.5 var(--mono); padding: .12em .35em; border-radius: 5px; background: var(--code-bg); }
.markdown pre code { padding: 0; background: none; }
.markdown table { display: block; overflow: auto; border-collapse: collapse; margin: 1.2em 0; font-size: 14.5px; }
.markdown th, .markdown td { padding: 7px 12px; border: 1px solid var(--border); vertical-align: top; }
.markdown th { background: var(--bg-deep); text-align: left; }
.markdown blockquote { margin: 1em 0; padding: .4em 1em; border-left: 4px solid var(--primary); background: var(--bg-deep); }
.markdown img { max-width: 100%; }

/* highlighted code (shiki, both themes) */
.shiki {
  overflow: auto; margin: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background-color: var(--code-bg) !important; font: 13.5px/1.6 var(--mono);
}
.markdown .shiki { margin: 1.2em 0; }
.shiki span { color: var(--shiki-light); }
@media (prefers-color-scheme: dark) {
  .shiki span { color: var(--shiki-dark); }
}

/* the wide pages: the home page, the tools, the platforms */
.wide .page { max-width: 1180px; margin: 0 auto; padding: 0 24px 72px; }
.wide { position: relative; isolation: isolate; min-height: 100vh; background:
  radial-gradient(ellipse 80% 50% at 50% -10%, var(--glow), transparent 70%),
  linear-gradient(var(--bg), var(--bg)); }
.wide::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

/* hero */
.hero { position: relative; max-width: 920px; margin: 0 auto; padding: 96px 0 56px; text-align: center; }
.glow {
  position: absolute; inset: 40px 10% auto; height: 260px; z-index: -1; filter: blur(70px); opacity: .7;
  background: radial-gradient(circle at 30% 50%, var(--primary), transparent 60%), radial-gradient(circle at 70% 50%, var(--cyan), transparent 60%);
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(.9); opacity: .45; } to { transform: scale(1.1); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .glow { animation: none; } }
.logo.big { margin: 0; font-size: 72px; line-height: 1; text-shadow: 0 0 40px var(--primary); }
.hero h1 { margin: 14px 0 6px; font-size: clamp(44px, 8vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
.lead {
  margin: 0; font-size: clamp(22px, 3.4vw, 30px); font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { max-width: 720px; margin: 18px auto 30px; font-size: 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 18px 0; }
.targets { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.targets small, .editors small { color: var(--muted); font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.targets .logos { justify-content: center; gap: 10px; }
.agents { margin-top: 22px; }
.chip { padding: 3px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font: 13px var(--mono); background: var(--surface); }

/* the logos of the integrations, next to their names */
.logos { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.integration {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 9px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); color: var(--fg); font: 600 13px var(--mono); line-height: 1.4;
  transition: border-color .2s, transform .2s;
}
.integration img { width: 16px; height: 16px; flex: none; }
.integration:hover { border-color: var(--primary); transform: translateY(-1px); }
.targets .integration { padding: 8px 18px 8px 13px; gap: 9px; font-size: 15px; }
.targets .integration img { width: 24px; height: 24px; }
.card .logos { margin: 4px 0 2px; }
.card .integration { padding: 2px 10px 2px 7px; font-size: 12px; }
.page-hero .logos { margin-top: 18px; }

/* the icons (lucide, coloured by their file for each theme) */
.icon {
  width: 40px; height: 40px; padding: 8px; margin: 0 0 12px; border: 1px solid var(--border); border-radius: 11px;
  background: color-mix(in srgb, var(--primary) 9%, var(--surface)); box-shadow: 0 0 18px var(--glow);
}
.card .icon, .page-hero .icon { display: block; }
.hook-icon { width: 60px; height: 60px; padding: 5px; border-radius: 16px; }
.editors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 22px; }
.editors small { margin-right: 4px; }
.editors .integration { padding: 7px 16px 7px 11px; gap: 9px; font-size: 14px; color: var(--fg); }
.editors .integration img { width: 22px; height: 22px; }
.editors .integration:hover { text-decoration: none; }
.icon.big { width: 56px; height: 56px; padding: 12px; border-radius: 15px; margin-bottom: 14px; }
.tab { display: inline-flex; align-items: center; gap: 6px; }
.tab img { width: 14px; height: 14px; }
.button {
  display: inline-block; padding: 10px 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--fg); font-weight: 650; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.button:hover { border-color: var(--primary); text-decoration: none; box-shadow: 0 0 0 4px var(--glow); }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--primary); border-color: var(--primary); color: var(--bg-deep); }
.button.primary:hover { box-shadow: 0 0 24px var(--glow), 0 0 0 4px var(--glow); }
.page-hero { max-width: 860px; padding: 64px 0 32px; }
.page-hero h1 { margin: 6px 0; font-size: clamp(38px, 6vw, 58px); line-height: 1.05; letter-spacing: -.03em; }
.page-hero .lead { font-size: 22px; }
.page-hero .tagline { margin: 14px 0 0; }
.page-hero .actions { justify-content: flex-start; }
.eyebrow { color: var(--primary); font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .1em; }

/* the hooks */
.hooks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 24px 0 8px; }
.hook {
  position: relative; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); overflow: hidden;
}
.hook::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: .7;
}
.hook h3 { margin: 0 0 6px; font-size: 17.5px; }
.hook p { margin: 0; color: var(--muted); font-size: 15px; }

/* the blocks of the home page and of the pages */
.block { margin: 72px 0 0; }
.block h2 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.02em; line-height: 1.15; }
.block-text { max-width: 760px; margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pane { min-width: 0; }
.pane-title { margin: 0 0 6px; color: var(--muted); font: 600 12.5px var(--mono); letter-spacing: .04em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.pill {
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer;
}
.pill:hover { color: var(--fg); text-decoration: none; border-color: var(--primary); }
.pill.active { color: var(--bg-deep); background: var(--primary); border-color: var(--primary); }

/* code in tabs */
.code-tabs.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tab {
  padding: 4px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  color: var(--muted); font: 600 13px var(--mono); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.tab.active { color: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 3px var(--glow); }
.code .shiki { max-height: 520px; }

/* the agent's fix */
.diagnostics { list-style: none; margin: 14px 0 18px; padding: 0; }
.diagnostics li { margin: 4px 0; font-size: 15px; transition: opacity .3s; }
.diagnostics li.done { opacity: .45; text-decoration: line-through; }
.diag-code { padding: 1px 8px; border-radius: 6px; background: color-mix(in srgb, var(--error) 16%, transparent); color: var(--error); font: 600 13px var(--mono); }
.ok { margin: 0; padding: 16px 18px; border: 1px solid var(--primary); border-radius: var(--radius); background: var(--code-bg); color: var(--primary); font: 14px var(--mono); }

/* the terminal */
.terminal { border: 1px solid var(--border); border-radius: var(--radius); background: var(--code-bg); overflow: hidden; box-shadow: 0 18px 48px rgb(0 0 0 / 22%); }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.amber { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title { margin-left: 8px; color: var(--muted); font: 12.5px var(--mono); }
.terminal-body { max-height: 420px; overflow: auto; padding: 12px 16px; }
.terminal-step pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 13px/1.6 var(--mono); }
.terminal-step .prompt { color: var(--primary); }
.terminal-step .output { margin: 2px 0 12px; color: var(--muted); }
.terminal-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }
.terminal-actions .button { padding: 6px 14px; font-size: 14px; }

/* the measured numbers */
.stats { display: grid; gap: 12px; }
.stat { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat strong { display: block; font-size: 40px; line-height: 1; letter-spacing: -.03em; color: var(--primary); }
.stat span { color: var(--muted); font-size: 14.5px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 0 0 20px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  display: block; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  color: var(--fg); transition: border-color .2s, box-shadow .25s, transform .25s;
}
a.card:hover, .card:hover { border-color: var(--primary); box-shadow: 0 0 0 4px var(--glow), 0 18px 40px rgb(0 0 0 / 18%); transform: translateY(-2px); text-decoration: none; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card h3 a { color: var(--fg); }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.card .tagline { margin: 0; color: var(--fg); font-weight: 600; font-size: 15px; }
.card small { color: var(--primary); font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.card-links { display: flex; gap: 16px; margin-top: 14px; font-weight: 650; }
.platform-mobile { border-top: 3px solid var(--cyan); }
.platform-backend { border-top: 3px solid var(--primary); }
.platform-web { border-top: 3px solid var(--violet); }

/* C4: one level of a platform */
.c4 { margin: 40px 0 0; padding: 26px; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.c4-head h3 { margin: 4px 0; font-size: 24px; letter-spacing: -.015em; }
.c4-head p { margin: 0 0 18px; max-width: 820px; color: var(--muted); }
.c4-level { color: var(--primary); font: 700 12.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.c4-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.c4-box { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.c4-box small { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.c4-box strong { font-size: 16px; }
.c4-box span { color: var(--muted); font-size: 14px; }
.kind-person { border-color: var(--cyan); }
.kind-person small { color: var(--cyan); }
.kind-system { border-color: var(--primary); box-shadow: 0 0 0 3px var(--glow); }
.kind-system small { color: var(--primary); }
.kind-container small { color: var(--amber); }
.kind-component small { color: var(--violet); }
.kind-external { border-style: dashed; }
.c4-flows { display: grid; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; }
.c4-flows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.arrow { color: var(--primary); font-weight: 800; }
.flow-text { color: var(--muted); }
.c4 .code-tabs { margin-top: 6px; }

/* the onboarding */
.platform-tabs { margin: 28px 0 0; }
.stepper { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; padding: 0; list-style: none; }
.stepper button {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer;
}
.stepper .number { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font: 700 12px var(--mono); }
.stepper .current button { color: var(--fg); border-color: var(--primary); box-shadow: 0 0 0 3px var(--glow); }
.stepper .current .number { background: var(--primary); color: var(--bg-deep); }
.stepper .done .number { background: color-mix(in srgb, var(--primary) 30%, transparent); color: var(--primary); }
.step-card { padding: 24px; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.step-card h2 { margin: 0 0 4px; }
.step-card p { margin: 0 0 16px; color: var(--muted); }
.step-card + .actions { justify-content: flex-start; }

/* what to ask an agent */
.prompts { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.prompts li {
  position: relative; padding: 14px 18px 14px 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  font: 14.5px/1.5 var(--mono); color: var(--fg);
}
.prompts li::before { content: '›'; position: absolute; left: 18px; top: 12px; color: var(--primary); font: 800 18px var(--mono); }
.page-hero .pills { margin-top: 18px; }

/* the index of documents */
.doc-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.doc-index a { display: block; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--fg); font-weight: 600; }
.doc-index a::after { content: ' →'; color: var(--primary); }
.doc-index a:hover { border-color: var(--primary); text-decoration: none; }
.siblings { display: flex; flex-wrap: wrap; gap: 8px; margin: 56px 0 0; }

/* install: a card with its animated mark, a tab per system and what to run next */
.install-card {
  position: relative; margin: 40px 0 0; padding: 28px; border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(ellipse 50% 90% at 0% 0%, var(--glow), transparent 70%), var(--surface); overflow: hidden;
}
.install-card::after { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--primary), var(--cyan), transparent); }
.install-head { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; }
.install-head h2 { margin: 0 0 4px; font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.02em; }
.install-head p { margin: 0; color: var(--muted); max-width: 680px; }
.install-mark { flex: none; width: 72px; height: 72px; padding: 6px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); box-shadow: 0 0 24px var(--glow); }
.install-card .shiki { font-size: 15px; }
.install-next { margin-top: 10px; }
.install-next .shiki { font-size: 13.5px; }
.footer { padding: 32px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; text-align: center; }

/* narrow screens: the menu and the outline go away, the links scroll, the panes stack */
@media (max-width: 1100px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .outline { display: none; }
}
@media (max-width: 860px) {
  .split, .code-tabs.compare { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { flex-wrap: wrap; gap: 0 12px; height: auto; padding: 8px 16px; }
  .links { order: 3; width: 100%; overflow-x: auto; padding: 6px 0 2px; }
  .links a { flex: none; }
  .search input { width: 100%; }
  .search { flex: 1; min-width: 0; }
  .github { display: none; }
  .content { padding: 24px 16px 64px; }
  .wide .page { padding: 0 16px 64px; }
  .hero { padding: 64px 0 40px; }
  .c4 { padding: 18px; }
  .block { margin-top: 56px; }
}

/* the editor block: a tab per part of the extension, then the part: its text beside its screenshots or marks */
.modules { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.module {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 650; font-size: 14.5px; cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.module:hover { color: var(--fg); border-color: var(--primary); }
.module.active { color: var(--fg); border-color: var(--primary); box-shadow: 0 0 0 3px var(--glow); }
.module-icon { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.module-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: center; padding: 28px;
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(ellipse 60% 80% at 100% 0%, var(--glow), transparent 70%), var(--surface);
}
.feature-text h3 { margin: 6px 0 12px; font-size: clamp(22px, 2.8vw, 28px); letter-spacing: -.015em; line-height: 1.2; }
.points { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.points li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--glow); }
.feature-text .logos { margin: 16px 0 0; }
.art { display: block; width: 150px; height: 150px; margin: 18px 0 0; }
.more { display: block; margin-top: 18px; font-weight: 700; }
.module-media { min-width: 0; }
.module-media .pills { margin-bottom: 12px; }
.module-media.marks { display: flex; justify-content: center; gap: 36px; padding: 24px 0; }
.mark { display: grid; justify-items: center; gap: 10px; color: var(--muted); font: 600 13px var(--mono); }
.module-media.marks img { width: 120px; height: 120px; filter: drop-shadow(0 0 22px var(--glow)); }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; margin: 0; padding: 0; list-style: none; }
.keys li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 14.5px; }
.keys li:has(.kbd:only-child), .keys li { min-width: 0; }
.kbd {
  flex: none; padding: 2px 9px; border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 7px;
  background: var(--surface); color: var(--primary); font: 600 12.5px var(--mono); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}

/* a screenshot in an editor's window, with numbered callouts */
.shot { margin: 0; min-width: 0; }
.shot-window {
  position: relative; border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); overflow: hidden;
  background: #121516; box-shadow: 0 0 0 1px rgb(167 255 0 / 6%), 0 30px 70px rgb(0 0 0 / 45%), 0 0 60px var(--glow);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform .5s ease;
}
.shot-window:hover { transform: none; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1b1f20; border-bottom: 1px solid #2a2f30; }
.shot-title { margin-left: 8px; color: #9aa59a; font: 12.5px var(--mono); }
.shot-stage { position: relative; }
.shot-stage img { display: block; width: 100%; height: auto; }
.shot-open { display: block; cursor: zoom-in; }
.spot { position: absolute; transform: translate(-12px, -50%); display: flex; align-items: center; gap: 6px; pointer-events: none; }
.spot-number {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #a7ff00; color: #070a06;
  font: 800 12px var(--mono); box-shadow: 0 0 0 4px rgb(167 255 0 / 25%), 0 0 18px rgb(167 255 0 / 60%);
  animation: ping 2.4s ease-out infinite;
}
.spot-label {
  padding: 3px 9px; border-radius: 7px; background: rgb(7 10 6 / 88%); border: 1px solid rgb(167 255 0 / 45%); color: #dbe7d2;
  font: 600 12px var(--sans); white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s;
}
.spot.active .spot-label, .shot-stage:hover .spot-label { opacity: 1; transform: none; }
.spot.active .spot-number { transform: scale(1.25); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(167 255 0 / 55%), 0 0 18px rgb(167 255 0 / 60%); } 70%, 100% { box-shadow: 0 0 0 12px rgb(167 255 0 / 0%), 0 0 18px rgb(167 255 0 / 60%); } }
@media (prefers-reduced-motion: reduce) { .spot-number { animation: none; } .shot-window { transform: none !important; } }
.shot-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0 0 0 4px; list-style: none; counter-reset: spot; font-size: 14px; color: var(--muted); }
.shot-legend li { counter-increment: spot; cursor: default; transition: color .2s; }
.shot-legend li::before { content: counter(spot); display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 6px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 22%, transparent); color: var(--primary); font: 700 11px var(--mono); }
.shot-legend li.active, .shot-legend li:hover { color: var(--fg); }
@media (max-width: 860px) {
  .module-panel { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 18px; }
  .shot-window { transform: none; }
  .art { display: none; }
  .spot-label { display: none; }
}

/* tablets: two columns where three do not fit, the panels stacked, comfortable targets */
@media (max-width: 1024px) {
  .hooks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .art { display: none; }
  .shot-window { transform: none; }
}
/* phones: one column, the tab rows scroll sideways, nothing wider than the screen */
@media (max-width: 640px) {
  .hooks, .cards.tools, .cards.three { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 22px; }
  .tagline { font-size: 16.5px; }
  .actions .button { flex: 1 1 auto; text-align: center; }
  .targets .logos { gap: 8px; }
  .targets .integration { padding: 6px 13px 6px 10px; font-size: 13.5px; }
  .targets .integration img { width: 20px; height: 20px; }
  .modules, .pills, .tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .modules::-webkit-scrollbar, .pills::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  .module, .pill, .tab { flex: none; }
  .module-panel { padding: 16px; border-radius: var(--radius); }
  .keys { grid-template-columns: minmax(0, 1fr); }
  .shot-legend { font-size: 13px; }
  .spot-number { width: 20px; height: 20px; font-size: 11px; }
  .module-media.marks { gap: 20px; }
  .module-media.marks img { width: 88px; height: 88px; }
  .block h2 { font-size: 26px; }
  .install-card { padding: 18px; }
  .install-head { align-items: flex-start; }
  .install-mark { width: 56px; height: 56px; }
  .install-card .shiki { font-size: 13px; }
  .stat strong { font-size: 34px; }
  .code .shiki, .shiki { font-size: 12.5px; padding: 12px 14px; }
}
