/* ==========================================================================
   Dopra landing site
   HTML + CSS only. No JavaScript, no frameworks, no build step.
   Design: monochrome/editorial, near-black canvas, near-white primary,
   lime used sparingly as a single accent. Fine hairlines, mono metadata.
   ========================================================================== */

/* Tokens ------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #17171a;
  --surface-3: #1e1e22;
  --text: #ededee;
  --heading: #fafafa;
  --muted: #a0a0a8;
  --faint: #6f6f77;
  --line: #202023;
  --line-2: #2c2c31;

  --accent: #818cf8;                       /* water indigo accent (links, marks, slugs) */
  --accent-ink: #ffffff;
  --accent-dim: rgba(99, 102, 241, 0.15);
  --accent-line: rgba(99, 102, 241, 0.34);

  --brand: #6366f1;                        /* droplet logo */
  --brand-btn: #4f46e5;                    /* primary button */
  --brand-btn-h: #6366f1;

  --solid: #fafafa;                        /* neutral solid (mockup chips) */
  --solid-ink: #0a0a0b;

  --radius-sm: 7px;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1160px;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --header-h: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg: #fbfbfa;
    --surface: #ffffff;
    --surface-2: #f6f6f4;
    --surface-3: #eeeeea;
    --text: #2a2a30;
    --heading: #0e0e11;
    --muted: #55555e;
    --faint: #86868f;
    --line: #e7e7e3;
    --line-2: #d9d9d3;

    --accent: #4f46e5;                      /* water indigo for text on light */
    --accent-ink: #ffffff;
    --accent-dim: rgba(79, 70, 229, 0.10);
    --accent-line: rgba(79, 70, 229, 0.26);

    --brand: #4f46e5;
    --brand-btn: #4f46e5;
    --brand-btn-h: #4338ca;

    --solid: #101013;
    --solid-ink: #fafafa;
  }
}

/* Base --------------------------------------------------------------------- */
*,
*::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-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

code, kbd { font-family: var(--font-mono); font-size: 0.88em; }

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

::selection { background: var(--accent-dim); color: var(--heading); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  color: var(--heading);
  border: 1px solid var(--line-2);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; text-decoration: none; }

/* Layout ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  padding-block: clamp(60px, 8.5vw, 112px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.section--tight { padding-block: clamp(44px, 6vw, 76px); }

.section-head { max-width: 640px; margin-bottom: clamp(34px, 4.5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
  font-weight: 620;
}
.section-title + .section-lede { margin-top: 16px; }

.section-lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 58ch;
}
.section-head--center .section-lede { margin-inline: auto; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  --_gap: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--_gap);
  font: inherit;
  font-weight: 550;
  font-size: 0.94rem;
  line-height: 1;
  padding: 12px 19px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--brand-btn); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); background: var(--brand-btn-h); box-shadow: 0 12px 28px -14px rgba(79,70,229,0.7); }

.btn-line { background: transparent; color: var(--heading); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--faint); background: var(--surface-2); }

.btn-ghost { background: var(--surface-2); color: var(--heading); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--line-2); }

.btn-lg { padding: 14px 24px; font-size: 0.98rem; }

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Small technical chips/tags ---------------------------------------------- */
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
/* Frosted blur lives on a pseudo-element, not the header itself, so the header
   box never clips the absolutely-positioned mobile menu. */
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: color-mix(in srgb, var(--bg) 66%, transparent); }
  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: 26px; flex: none; color: var(--brand); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}
.primary-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 450;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.primary-nav a:hover { color: var(--heading); background: var(--surface-2); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 9px 15px; }

/* CSS-only disclosure menu (native <details>) */
.nav-toggle { display: none; position: relative; }
.nav-toggle > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--heading);
  cursor: pointer;
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle > summary .icon-close { display: none; }
.nav-toggle[open] > summary .icon-open { display: none; }
.nav-toggle[open] > summary .icon-close { display: block; }

.mobile-nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, calc(100vw - 28px));
  max-height: calc(100vh - var(--header-h) - 22px);
  max-height: calc(100dvh - var(--header-h) - 22px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,0.7);
  padding: 10px;
  display: grid;
  gap: 2px;
}
.mobile-nav a {
  color: var(--text);
  font-weight: 450;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover { background: var(--surface-2); text-decoration: none; }
.mobile-nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 4px; }
.mobile-nav .btn { width: 100%; margin-top: 2px; }

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 108px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% -6%, #000 42%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% -6%, #000 42%, transparent 100%);
  opacity: 0.6;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: 4%; right: -6%;
  width: min(480px, 48vw); aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-dim), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.3rem, 5.6vw, 3.7rem);
  font-weight: 640;
  letter-spacing: -0.038em;
  margin-top: 22px;
}
.hero-title .accent { color: var(--accent); }

.hero-lede {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  max-width: 50ch;
  margin-top: 22px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-meta {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-meta b { color: var(--muted); font-weight: 500; }

/* Product mockup ----------------------------------------------------------- */
.mockup {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7), 0 0 0 1px var(--line);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-3); border: 1px solid var(--line-2);
}
.mockup-url {
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}
.mockup-url svg { width: 12px; height: 12px; color: var(--faint); }

.mockup-body { padding: clamp(18px, 2.6vw, 26px); }

.dropzone {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--accent-dim), transparent 60%),
    var(--surface-2);
  padding: clamp(26px, 4vw, 40px) 20px;
  text-align: center;
}
.drop-icon {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--brand-btn);
  color: #fff;
}
.drop-icon svg { width: 22px; height: 22px; }
.dropzone-title { color: var(--heading); font-weight: 550; font-size: 1rem; }
.dropzone-sub { color: var(--faint); font-size: 0.83rem; margin-top: 5px; }
.dropzone .fake-btn {
  display: inline-flex;
  margin-top: 16px;
  padding: 9px 17px;
  border-radius: var(--radius-sm);
  background: var(--solid);
  color: var(--solid-ink);
  font-weight: 550;
  font-size: 0.86rem;
}

.result-card {
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 14px;
}
.result-head { display: flex; align-items: center; gap: 11px; }
.file-ico {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.file-ico svg { width: 17px; height: 17px; }
.result-name { color: var(--heading); font-weight: 550; font-size: 0.88rem; }
.result-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; color: var(--muted); margin-top: 2px;
}
.result-status .check { color: var(--accent); display: inline-flex; }
.result-status .check svg { width: 13px; height: 13px; }
.result-size { margin-left: auto; font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint); }

.progress { height: 5px; border-radius: 99px; background: var(--surface-3); margin: 13px 0; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 99px; }

.result-link {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.result-link .url {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.result-link .url .slug { color: var(--accent); }
.result-link .copy {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 550; color: var(--solid-ink);
  background: var(--solid);
  border-radius: 6px; padding: 7px 11px;
}
.result-link .copy svg { width: 13px; height: 13px; }

/* Manifest strip ----------------------------------------------------------- */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip .container {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap;
  padding-block: 15px;
}
.strip-item {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 22px;
}
.strip-item + .strip-item::before {
  content: "";
  position: absolute; left: -1px; top: 50%;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--line-2); transform: translateY(-50%);
}

/* Features spec list ------------------------------------------------------- */
.spec-list { border-top: 1px solid var(--line); }
.spec-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 320px);
  gap: 24px;
  align-items: start;
  padding: 26px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}
.spec-row:hover { background: var(--surface); }
.spec-idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 5px;
}
.spec-main h3 { font-size: 1.14rem; font-weight: 560; margin-bottom: 7px; }
.spec-main p { color: var(--muted); font-size: 0.95rem; max-width: 50ch; }
.spec-aside {
  display: flex; flex-wrap: wrap; gap: 7px;
  justify-content: flex-end; align-items: flex-start;
  padding-top: 4px;
}
.spec-aside .url {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 7px; padding: 7px 11px;
}
.spec-aside .url .slug { color: var(--accent); }

/* How it works ------------------------------------------------------------- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.flow-step {
  padding: clamp(26px, 3vw, 36px);
  border-right: 1px solid var(--line);
}
.flow-step:last-child { border-right: 0; }
.flow-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.flow-step h3 { font-size: 1.2rem; font-weight: 560; margin: 16px 0 9px; }
.flow-step p { color: var(--muted); font-size: 0.95rem; }
.flow-step .step-url {
  display: inline-block; margin-top: 15px;
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 7px; padding: 7px 11px;
}
.flow-step .step-url .slug { color: var(--accent); }

/* Architecture ------------------------------------------------------------- */
.arch-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(22px, 3.5vw, 40px);
  align-items: stretch;
}
.arch-diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; justify-content: center;
}
.arch-node {
  width: 100%; max-width: 300px; text-align: center;
  padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--heading); font-weight: 550; font-size: 0.95rem;
}
.arch-node .node-sub {
  display: block; font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 400; color: var(--faint); margin-top: 3px;
}
.arch-node.is-accent { border-color: var(--accent-line); background: var(--accent-dim); }
.arch-arrow { color: var(--faint); line-height: 0; }
.arch-arrow svg { width: 18px; height: 18px; }

.terminal-preview {
  background: #060607;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 30px 60px -36px rgba(0,0,0,0.8);
}
@media (prefers-color-scheme: light) {
  .terminal-preview { background: #0e0e11; border-color: #26262b; }
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px; border-bottom: 1px solid #1b1b1f; background: #0f0f12;
}
.terminal-bar .tdot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar .tdot.r { background: #ff5f57; }
.terminal-bar .tdot.y { background: #febc2e; }
.terminal-bar .tdot.g { background: #28c840; }
.terminal-bar .tlabel { margin-left: 8px; font-size: 0.76rem; color: #6f6f77; }

.terminal-body {
  padding: 20px clamp(18px, 3vw, 26px);
  font-size: 0.86rem; line-height: 1.95; color: #c9cbd0; overflow-x: auto;
}
.terminal-body .prompt { color: var(--accent); margin-right: 8px; }
.terminal-body .cmd { color: #fafafa; }
.terminal-body .key { color: #74747c; display: inline-block; min-width: 92px; }
.terminal-body .val { color: #ededee; }
.terminal-body .ok { color: var(--accent); }
.terminal-body .comment { color: #4c4c54; }

.arch-points {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 11px; margin-top: 22px;
}
.arch-points li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 0.93rem; }
.arch-points svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }

/* Self-host ---------------------------------------------------------------- */
.deploy-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; counter-reset: deploy;
}
.deploy-step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.deploy-step::before {
  counter-increment: deploy;
  content: counter(deploy, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: var(--accent);
}
.deploy-step h3 { font-size: 1rem; font-weight: 560; margin: 11px 0 6px; }
.deploy-step p { color: var(--muted); font-size: 0.89rem; }
.deploy-step code { color: var(--accent); }
.deploy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Showcase ----------------------------------------------------------------- */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.showcase-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.showcase-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.showcase-win {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.showcase-topbar {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.showcase-topbar span { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); }
.showcase-canvas { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.showcase-canvas .row { height: 9px; border-radius: 4px; background: var(--surface-3); }
.showcase-canvas .row.w-40 { width: 40%; }
.showcase-canvas .row.w-60 { width: 60%; }
.showcase-canvas .row.w-80 { width: 80%; }
.showcase-canvas .row.accent { background: var(--accent); opacity: 0.75; }
.showcase-canvas .fill {
  flex: 1; border-radius: 8px; border: 1px dashed var(--line-2);
  display: grid; place-items: center;
  color: var(--faint); font-family: var(--font-mono); font-size: 0.72rem;
}
.showcase-card .caption { padding: 15px 17px; }
.showcase-card .caption h3 { font-size: 0.98rem; font-weight: 560; margin-bottom: 3px; }
.showcase-card .caption p { color: var(--muted); font-size: 0.86rem; }

/* Open source -------------------------------------------------------------- */
.oss-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 52px); align-items: center;
}
.oss-links { display: grid; gap: 10px; }
.oss-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
  color: var(--heading);
  transition: border-color 0.2s ease, transform 0.14s ease;
}
.oss-link:hover { text-decoration: none; border-color: var(--line-2); transform: translateX(3px); }
.oss-ico {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--surface-2); color: var(--heading); border: 1px solid var(--line);
}
.oss-ico svg { width: 18px; height: 18px; }
.oss-meta strong { display: block; font-size: 0.96rem; font-weight: 560; }
.oss-meta span { color: var(--muted); font-size: 0.84rem; }
.oss-link .arrow { margin-left: auto; color: var(--faint); font-family: var(--font-mono); }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.credit-note {
  margin-top: 28px; padding: 18px 20px;
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: var(--radius); background: var(--surface);
  color: var(--muted); font-size: 0.9rem;
}
.credit-note strong { color: var(--heading); font-weight: 560; }

/* Support ------------------------------------------------------------------ */
.support-card {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 58px);
  text-align: center;
  background:
    radial-gradient(120% 130% at 50% -20%, var(--accent-dim), transparent 55%),
    var(--surface);
}
.support-card .section-lede { margin-inline: auto; margin-bottom: 28px; }
.support-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.support-buttons .btn { min-width: 168px; }
.support-note { margin-top: 22px; color: var(--faint); font-size: 0.84rem; }

/* FAQ ---------------------------------------------------------------------- */
.faq-list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 4px;
  color: var(--heading); font-weight: 550; font-size: 1.04rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-plus {
  margin-left: auto; flex: none; width: 15px; height: 15px;
  color: var(--muted); transition: transform 0.2s ease, color 0.2s ease;
}
.faq-item[open] summary .faq-plus { transform: rotate(45deg); color: var(--accent); }
.faq-answer { padding: 0 4px 22px; color: var(--muted); font-size: 0.95rem; max-width: 68ch; }

/* CTA band ----------------------------------------------------------------- */
.cta-band { border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 120%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 120%, #000 40%, transparent 100%);
  opacity: 0.6; pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; text-align: center; padding-block: clamp(56px, 8vw, 100px); }
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 640; letter-spacing: -0.04em; }
.cta-inner p { color: var(--muted); margin: 16px auto 0; max-width: 46ch; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Footer ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: clamp(46px, 6vw, 70px) 30px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 34px; }
.footer-brand .brand { margin-bottom: 13px; }
.footer-brand .tagline { font-family: var(--font-mono); color: var(--accent); font-size: 0.86rem; margin-bottom: 11px; letter-spacing: 0.02em; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--faint); margin-bottom: 15px; font-weight: 500; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--heading); text-decoration: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: clamp(34px, 5vw, 54px); padding-top: 22px;
  border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem;
}
.footer-bottom .footer-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom .footer-badges a { color: var(--faint); }
.footer-bottom .footer-badges a:hover { color: var(--heading); text-decoration: none; }

/* Legal / 404 -------------------------------------------------------------- */
.page-hero { padding-block: clamp(46px, 7vw, 82px) clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); font-weight: 640; }
.page-hero p { color: var(--muted); margin-top: 13px; max-width: 60ch; }

.legal { padding-block: clamp(40px, 6vw, 70px); }
.legal-body { max-width: 740px; }
.legal-body h2 { font-size: 1.28rem; font-weight: 560; margin: 38px 0 12px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); margin-bottom: 12px; }
.legal-body ul { list-style: disc; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--faint); margin-bottom: 28px; }
.callout {
  padding: 18px 20px; border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: var(--radius); background: var(--surface); margin: 22px 0;
}
.callout p { color: var(--text); margin: 0; }

.notfound { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.notfound .code { font-family: var(--font-mono); font-size: clamp(4.5rem, 16vw, 8rem); font-weight: 700; line-height: 1; color: var(--heading); letter-spacing: -0.04em; }
.notfound .code span { color: var(--accent); }
.notfound h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; margin-top: 12px; }
.notfound p { color: var(--muted); margin: 14px auto 0; max-width: 42ch; }
.notfound .cta-actions { margin-top: 30px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .primary-nav, .header-actions { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-inner { gap: 12px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .arch-grid { grid-template-columns: 1fr; }
  .oss-grid { grid-template-columns: 1fr; }
  .deploy-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .spec-row { grid-template-columns: 34px minmax(0, 1fr); gap: 14px 16px; }
  .spec-aside { grid-column: 2; justify-content: flex-start; }
  .arch-points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .deploy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .support-buttons .btn, .hero-actions .btn { width: 100%; }
}

/* Reduced motion ----------------------------------------------------------- */
@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;
  }
}
