:root {
  --bg: #040706;
  --bg-2: #070c0a;
  --panel: #0a110d;
  --panel-2: #0d1611;
  --ink: #eaf4ee;
  --dim: #a9bab0;
  --muted: #7e9187;
  --green: #39ff88;
  --lime: #8dff4f;
  --amber: #ffc76b;
  --line: rgba(57, 255, 136, 0.16);
  --line-strong: rgba(57, 255, 136, 0.34);
  --line-soft: rgba(234, 244, 238, 0.08);
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--green);
  color: #02150a;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

code,
pre {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

.wrap {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 60px 0;
}

.error-inner {
  max-width: 640px;
}

.error-title {
  font-size: clamp(56px, 12vw, 110px);
}

.error-lede {
  margin: 18px 0 28px;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 11px;
  letter-spacing: 0.06em;
}

.mt-18 {
  margin-top: 18px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

/* ---------- backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% 8%, rgba(57, 255, 136, 0.12), transparent 62%),
    radial-gradient(700px 500px at 6% 40%, rgba(57, 255, 136, 0.05), transparent 60%),
    linear-gradient(180deg, #040706, #040706);
}

.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 136, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 136, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(900px 700px at 70% 20%, #000 0%, transparent 78%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    rgba(0, 0, 0, 0.35) 3px 4px
  );
  mix-blend-mode: multiply;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled,
.site-header.solid {
  border-bottom-color: var(--line-soft);
  background: rgba(4, 7, 6, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.brand img {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
}

.brand span {
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: 18px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--green);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.lang-switch a {
  padding: 6px 8px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: color 160ms ease, border-color 160ms ease;
}

.lang-switch a[aria-current="true"] {
  border-color: var(--line);
  color: var(--green);
}

.lang-switch a:hover {
  border-color: var(--line);
  color: var(--ink);
}

.version-chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.gitlab-link {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gitlab-link:hover {
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(4, 7, 6, 0.6);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 16px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
}

.mobile-menu {
  display: none;
}

/* ---------- shared ---------- */

main {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green));
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--solid {
  border-color: var(--green);
  background: var(--green);
  color: #02150a;
}

.button--solid:hover {
  background: var(--lime);
  border-color: var(--lime);
}

.button--ghost {
  background: rgba(4, 7, 6, 0.45);
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.button--small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 10px;
}

.text-link {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--lime);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: calc(84px + clamp(40px, 7vw, 90px)) 0 clamp(70px, 9vw, 120px);
}

.hero-scene {
  position: relative;
}

.hero-shot {
  display: none;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

.hero h1 .line > span {
  display: block;
  animation: hero-line 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 .line:nth-child(2) > span {
  animation-delay: 100ms;
}

@keyframes hero-line {
  from {
    transform: translateY(108%);
  }
  to {
    transform: none;
  }
}

@media (min-width: 1200px) and (min-height: 760px) and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .hero-scene {
    height: 200vh;
  }

  .hero {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 0;
  }

  .hero-copy {
    transform: translate3d(0, calc(var(--p, 0) * -4vh), 0);
    will-change: transform;
  }

  .boot-panel {
    opacity: calc(1 - var(--p, 0) * 2.8);
    transform: translate3d(0, calc(var(--p, 0) * -8vh), 0) scale(calc(1 - var(--p, 0) * 0.08));
    will-change: transform, opacity;
  }

  .hero-shot {
    position: absolute;
    top: 50%;
    right: var(--pad);
    z-index: 3;
    display: block;
    width: min(42vw, 680px);
    margin: 0;
    border: 1px solid var(--line);
    background: #030604;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
    opacity: calc((var(--p, 0) - 0.34) * 2.4);
    transform: translate3d(0, calc(-50% + (1 - var(--p, 0)) * 20vh), 0) scale(calc(0.9 + var(--p, 0) * 0.1));
    pointer-events: none;
    will-change: transform, opacity;
  }

  .hero-shot img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.hero-copy {
  padding-top: clamp(0px, 2.4vw, 34px);
  min-width: 0;
}

.hero h1 {
  font-size: clamp(44px, 6.2vw, 88px);
}

.hero h1 em {
  color: var(--green);
  font-style: normal;
  text-shadow: 0 0 44px rgba(57, 255, 136, 0.28);
}

.hero-sub {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--dim);
  font-size: clamp(16px, 1.3vw, 19px);
}

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

.boot-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(57, 255, 136, 0.06), transparent 55%),
    var(--panel);
  min-width: 0;
  max-width: 560px;
}

.boot-panel::before,
.boot-panel::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--green);
  border-style: solid;
  opacity: 0.7;
}

.boot-panel::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.boot-panel::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.boot-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boot-bar span:last-child {
  color: var(--green);
}

.boot-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 12px;
  background:
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(0, 0, 0, 0.22) 3px 4px),
    radial-gradient(360px 260px at 30% 0%, rgba(57, 255, 136, 0.08), transparent 70%),
    #030604;
  box-shadow: inset 0 0 70px rgba(57, 255, 136, 0.04);
}

.boot-leds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.boot-leds b {
  color: var(--amber);
  font-weight: 400;
}

.boot-log {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  color: #cfe3d7;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
}

.boot-log li {
  opacity: 1;
  transform: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.boot-log.is-booting li {
  opacity: 0;
  transform: translateY(3px);
}

.boot-log li.is-on {
  opacity: 1;
  transform: none;
}

.boot-log .ok {
  color: var(--green);
}

.boot-log .off {
  color: var(--amber);
}

.boot-divider {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.boot-login {
  color: var(--ink);
}

.boot-label {
  display: inline-block;
  min-width: 96px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.boot-dots {
  color: var(--green);
  letter-spacing: 0.18em;
}

.boot-progress {
  margin-top: auto;
  padding-top: 18px;
}

.boot-progress::before {
  content: "";
  display: block;
  height: 3px;
  background: rgba(57, 255, 136, 0.12);
  overflow: hidden;
}

.boot-progress i {
  display: block;
  width: 0;
  height: 3px;
  margin-top: -3px;
  background: linear-gradient(90deg, var(--green), var(--lime));
  transition: width 1.6s linear;
}

.boot-panel.is-ready .boot-progress i {
  width: 100%;
}

.boot-ready {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 300ms ease;
}

.boot-panel.is-ready .boot-ready {
  opacity: 1;
}

.boot-cursor {
  width: 8px;
  height: 13px;
  background: var(--green);
  animation: boot-blink 1s steps(1) infinite;
}

.boot-net {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px 2px;
  border-top: 1px solid var(--line-soft);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.boot-net-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 199, 107, 0.5);
}

@keyframes boot-blink {
  50% {
    opacity: 0;
  }
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(4, 7, 6, 0.6);
}

.ticker-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 12px 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- sections ---------- */

.section {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--line-soft);
}

.section--flush {
  border-bottom: 0;
}

.section--tight {
  padding-top: 28px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-index {
  margin-bottom: 10px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(30px, 4.2vw, 54px);
}

.section-lede {
  max-width: 480px;
  margin: 0;
  color: var(--dim);
  font-size: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  padding: 26px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 17, 13, 0.6);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

/* Bento: the AI helper leads, the rest support it. */
.feature--lead {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  grid-row: span 2;
  border-color: var(--line-strong);
  background:
    radial-gradient(520px 320px at 18% 0%, rgba(57, 255, 136, 0.12), transparent 70%),
    rgba(10, 17, 13, 0.78);
}

.feature:hover {
  border-color: var(--line-strong);
  background: rgba(57, 255, 136, 0.035);
  transform: translateY(-2px);
}

.feature-num {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.feature h3 {
  margin: 26px 0 10px;
  font-size: 21px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.feature--lead h3 {
  margin-top: auto;
  padding-top: clamp(40px, 5vw, 72px);
  font-size: clamp(32px, 3.6vw, 46px);
}

.feature--lead p {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- real UI showcase ---------- */

.section--showcase {
  padding-top: clamp(64px, 8vw, 112px);
}

.showcase-head {
  max-width: 760px;
}

.showcase-head h2 {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.03em;
}

.showcase-ui {
  margin-left: 8px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.showcase-lede {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--dim);
  font-size: clamp(15px, 1.25vw, 18px);
}

.showcase-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
  margin-top: clamp(36px, 5vw, 64px);
}

.shot {
  margin: 0;
}

.shot--lead {
  grid-column: 1 / -1;
}

.shot-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #030604;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  transition: border-color 200ms ease;
}

.shot:hover .shot-frame {
  border-color: var(--line-strong);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-index {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.shot figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.shot figcaption b {
  color: var(--ink);
  font-weight: 500;
}

.shot--lead figcaption {
  max-width: 780px;
  font-size: 14px;
}

.showcase-more {
  margin-top: clamp(48px, 6vw, 84px);
}

.showcase-more-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.showcase-more-head h3 {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.showcase-more-head span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.shot-mini {
  margin: 0;
}

.shot-mini .shot-frame {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.shot-mini figcaption {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.shot-mini b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 500;
}

@supports (animation-timeline: view()) {
  @media (min-width: 1021px) and (prefers-reduced-motion: no-preference) {
    .shot--agent,
    .shot--chat {
      animation: shot-drift 1ms linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }

    .shot--agent {
      --shot-shift: 26px;
    }

    .shot--chat {
      --shot-shift: -18px;
    }

    @keyframes shot-drift {
      from {
        transform: translateY(calc(var(--shot-shift) * -1));
      }
      to {
        transform: translateY(var(--shot-shift));
      }
    }
  }
}

@media (max-width: 1020px) {
  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .showcase-stage {
    grid-template-columns: 1fr;
  }

  .shot--lead {
    grid-column: auto;
  }

  .showcase-head h2 {
    font-size: clamp(36px, 9vw, 56px);
  }
}

@media (max-width: 560px) {
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .shot figcaption {
    font-size: 12px;
  }
}

/* ---------- terminal ---------- */

.terminal {
  border: 1px solid var(--line);
  background: #030604;
  box-shadow: inset 0 0 80px rgba(57, 255, 136, 0.03);
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terminal-bar span:last-child {
  color: var(--green);
}

.terminal pre {
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  overflow-x: auto;
  color: #cfe3d7;
  font-size: clamp(12px, 1.1vw, 13px);
  line-height: 1.8;
}

.terminal .p {
  color: var(--green);
}

.terminal .c {
  color: var(--muted);
}

.terminal .ok {
  color: var(--lime);
}

/* ---------- split / safety ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

@media (min-width: 1021px) {
  #local .split > div:first-child {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

.points {
  display: grid;
  gap: 10px;
}

.point {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}

.point:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.point-num {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.point h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.point p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.note {
  padding: 16px 18px;
  border-left: 2px solid var(--amber);
  background: rgba(255, 199, 107, 0.05);
  color: var(--dim);
  font-size: 13px;
  line-height: 1.65;
}

.note strong {
  color: var(--amber);
  font-weight: 500;
}

/* ---------- download band ---------- */

.dl-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 240px at 90% 20%, rgba(57, 255, 136, 0.12), transparent 70%),
    var(--panel);
}

.dl-band h2 {
  font-size: clamp(26px, 3.4vw, 42px);
}

.dl-band p {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 14px;
}

.dl-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- page head ---------- */

.page-head {
  padding: calc(84px + clamp(36px, 6vw, 70px)) 0 clamp(30px, 5vw, 56px);
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a:hover {
  color: var(--green);
}

.page-head h1 {
  font-size: clamp(38px, 5.4vw, 70px);
}

.page-head .lede {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--dim);
  font-size: clamp(15px, 1.25vw, 18px);
}

.page-head + .section {
  padding-top: clamp(20px, 3vw, 36px);
}

/* ---------- error page ---------- */

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.error-inner {
  max-width: 640px;
}

.error-title {
  font-size: clamp(56px, 14vw, 120px);
}

.error-lede {
  margin: 18px 0 28px;
}

/* ---------- download cards ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.dl-card--primary {
  border-color: var(--line-strong);
  background:
    linear-gradient(170deg, rgba(57, 255, 136, 0.07), transparent 60%),
    var(--panel);
}

.dl-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dl-card-top b {
  color: var(--green);
  font-weight: 400;
}

.dl-card h2 {
  margin: 26px 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.dl-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dl-card .button {
  margin-top: auto;
  width: 100%;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.hash-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(3, 6, 4, 0.7);
}

.hash-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.hash-row:last-child {
  border-bottom: 0;
}

.hash-row span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.hash-row code {
  overflow-wrap: anywhere;
  color: #cfe3d7;
  font-size: 11px;
  line-height: 1.5;
}

.copy {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.copy:hover {
  background: rgba(57, 255, 136, 0.08);
}

.copy.is-done {
  border-color: var(--green);
  background: rgba(57, 255, 136, 0.12);
}

/* ---------- prose ---------- */

.prose {
  max-width: 680px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 48px 0 16px;
  font-size: clamp(24px, 2.6vw, 34px);
}

.prose h3 {
  margin: 32px 0 10px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: var(--dim);
  font-size: 15px;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: var(--green);
  border-bottom: 1px solid var(--line);
}

.prose a:hover {
  border-bottom-color: var(--green);
}

.prose code {
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  background: rgba(57, 255, 136, 0.05);
  color: var(--lime);
  font-size: 0.88em;
}

.prose pre {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  background: #030604;
  overflow-x: auto;
  color: #cfe3d7;
  font-size: 12px;
  line-height: 1.7;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

/* ---------- release notes ---------- */

.release {
  padding: 30px 0;
  border-top: 1px solid var(--line-soft);
}

.release:first-of-type {
  border-top: 0;
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: 18px;
}

.release h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.release time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release h3 {
  margin: 20px 0 8px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.release ul {
  margin: 0;
  padding-left: 18px;
}

.release li {
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.65;
}

.release li strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  color: var(--dim);
}

tr:last-child td {
  border-bottom: 0;
}

td b {
  color: var(--ink);
  font-weight: 500;
}

td a {
  color: var(--green);
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 46px 0 28px;
  border-top: 1px solid var(--line-soft);
  background: #030504;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.6fr));
  gap: 30px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
}

.footer-brand strong {
  display: block;
  letter-spacing: 0.2em;
  font-size: 14px;
}

.footer-brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.footer-col h3 {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-bottom a {
  color: var(--dim);
}

.footer-bottom a:hover {
  color: var(--green);
}

/* ---------- og mode ---------- */

body.og .site-header,
body.og .site-footer,
body.og .ticker,
body.og .hero-actions,
body.og .section,
body.og .dl-band {
  display: none;
}

body.og .hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 70px 0;
}

body.og .hero-sub {
  max-width: 470px;
}

body.og .boot-progress i {
  width: 100%;
  transition: none;
}

body.og .boot-ready {
  opacity: 1;
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .site-nav,
  .gitlab-link {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 90px var(--pad);
    background: rgba(4, 7, 6, 0.97);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  .mobile-menu a {
    font-size: clamp(30px, 7vw, 48px);
    letter-spacing: -0.03em;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .mobile-menu {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .features,
  .dl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature--lead {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .feature--lead h3 {
    padding-top: 0;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .dl-band {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header .lang-switch {
    display: none;
  }

  .hero {
    padding-top: calc(76px + 34px);
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 56px);
    line-height: 1.1;
  }

  .hero-actions .button {
    width: 100%;
  }

  .features,
  .dl-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-lede {
    margin-top: 16px;
  }

  .hash-row {
    grid-template-columns: 1fr auto;
  }

  .hash-row span {
    grid-column: 1 / -1;
  }

  .dl-band {
    padding: 22px;
  }

  .dl-band .actions .button {
    width: 100%;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .dl-band {
      animation: band-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    @keyframes band-in {
      from {
        clip-path: inset(14% 10% 14% 10%);
        opacity: 0.4;
      }
      to {
        clip-path: inset(0);
        opacity: 1;
      }
    }
  }
}

@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;
  }
}
