/* ============================================================
   DALTA - terminal / IDE language
   Fixed left rail, phosphor green on near black, mono type,
   hard corners and a scanline wash.
   ============================================================ */

:root {
  --bg: #060809;
  --panel: #0b100e;
  --panel2: #0f1613;
  --text: #e8f0e8;
  --muted: #86988e;
  --muted2: #5d7066;
  --line: rgba(184, 255, 46, 0.16);
  --line-soft: rgba(184, 255, 46, 0.08);
  --lime: #b8ff2e;
  --pink: #ff2fa8;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", SFMono-Regular, "SF Mono", Menlo,
    Consolas, "Liberation Mono", monospace;
  --rail: 236px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

::selection {
  background: var(--lime);
  color: #060809;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 300;
  background: var(--lime);
  color: #060809;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.skip:focus {
  left: 10px;
}

.scan {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.022) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* ---------------- rail ---------------- */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 22px;
  background: linear-gradient(180deg, #080b0a, #060809);
  border-right: 1px solid var(--line);
}

.rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--lime) 6%, transparent),
    transparent 30%
  );
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo-mark {
  width: 26px;
  height: 26px;
  color: var(--lime);
  flex-shrink: 0;
}

.logo span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo em {
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted2);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}

.rail-nav a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.rail-nav a:hover {
  color: var(--text);
  background: rgba(184, 255, 46, 0.04);
}

.rail-nav a.on {
  color: var(--lime);
  border-color: var(--line);
  background: rgba(184, 255, 46, 0.06);
}

.rail-nav a.on::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--lime);
  margin-right: -4px;
  box-shadow: 0 0 8px var(--lime);
}

.nav-n {
  font-size: 0.62rem;
  color: var(--muted2);
  letter-spacing: 0.1em;
}

.rail-nav a.on .nav-n {
  color: var(--lime);
}

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
}

.led-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.led {
  width: 7px;
  height: 7px;
  background: var(--lime);
  box-shadow: 0 0 9px var(--lime);
  animation: blink 2.2s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.rail-btn {
  display: none;
}

/* ---------------- layout ---------------- */

main,
.foot {
  margin-left: var(--rail);
}

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

.sect-in,
.hero-grid,
.phead-in,
.foot-in,
.band-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 34px;
}

.hero-grid > *,
.sect-in > *,
.split > *,
.build > *,
.steps > *,
.vault > *,
.stats > *,
.foot-in > * {
  min-width: 0;
}

.sect-head {
  max-width: 640px;
  margin-bottom: 38px;
}

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}

.kicker::before {
  content: "// ";
  color: var(--pink);
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 62ch;
}

.sect-head h2 {
  margin-bottom: 12px;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--lime);
  border-radius: 2px;
  background: var(--lime);
  color: #060809;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.35rem;
  cursor: pointer;
  transition: transform 0.14s, background 0.16s, color 0.16s,
    box-shadow 0.18s;
  white-space: nowrap;
}

.btn .ico {
  width: 16px;
  height: 16px;
}

.btn:hover {
  background: transparent;
  color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime) inset, 0 0 24px -6px var(--lime);
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 1.02rem 1.6rem;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--lime);
  color: #060809;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.dl {
  position: relative;
  min-width: 220px;
}

.dl .spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(6, 8, 9, 0.3);
  border-top-color: #060809;
  animation: spin 0.7s linear infinite;
}

.dl .dl-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl[data-state="loading"] {
  cursor: progress;
  opacity: 0.9;
}

.dl[data-state="loading"] .spinner {
  display: inline-block;
}

.dl[data-state="loading"] .ico {
  display: none;
}

.dl[data-state="error"] {
  background: var(--pink);
  border-color: var(--pink);
  color: #060809;
  animation: shake 0.4s ease;
}

.dl[data-state="error"] .ico {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
}

.lnk {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.16s, border-color 0.16s;
}

.lnk span {
  color: var(--pink);
}

.lnk:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin: 26px 0;
}

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

.hero {
  position: relative;
  padding: 76px 0 66px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -180px 0 auto;
  height: 620px;
  background: radial-gradient(
      520px 300px at 12% 20%,
      rgba(184, 255, 46, 0.14),
      transparent 70%
    ),
    radial-gradient(
      460px 280px at 88% 0%,
      rgba(255, 47, 168, 0.12),
      transparent 72%
    );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 11px;
  margin-bottom: 22px;
}

.tag i {
  width: 6px;
  height: 6px;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.grn {
  color: var(--lime);
  text-shadow: 0 0 30px rgba(184, 255, 46, 0.35);
}

.hero .lead {
  margin-bottom: 4px;
  max-width: 48ch;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
}

.facts li::before {
  content: "[";
  color: var(--pink);
}

.facts li::after {
  content: "]";
  color: var(--pink);
}

/* terminal */

.term {
  border: 1px solid var(--line);
  background: #080c0a;
  box-shadow: 0 40px 80px -40px #000, 0 0 60px -30px rgba(184, 255, 46, 0.5);
  position: relative;
}

.term::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    400px 200px at 80% 0%,
    rgba(184, 255, 46, 0.08),
    transparent 70%
  );
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted2);
}

.dots {
  display: inline-flex;
  gap: 5px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a342d;
}

.dots i:first-child {
  background: var(--pink);
}

.dots i:nth-child(2) {
  background: #ffd166;
}

.dots i:nth-child(3) {
  background: var(--lime);
}

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

.term-state {
  margin-left: auto;
  color: var(--lime);
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.term-body {
  margin: 0;
  padding: 18px 18px 22px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: #a9bcaf;
  overflow-x: auto;
  white-space: pre;
}

.term-body .p {
  color: var(--lime);
}

.term-body .c {
  color: #d7e6db;
}

.term-body .ok {
  color: var(--pink);
}

.caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--lime);
  vertical-align: -2px;
  animation: blink 1.1s steps(2, start) infinite;
}

.term-foot {
  display: flex;
  gap: 18px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
}

.term-foot span:last-child {
  margin-left: auto;
  color: var(--lime);
}

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

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(184, 255, 46, 0.025);
}

.band-in {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
  overflow-x: auto;
}

.band-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  white-space: nowrap;
}

.band ul {
  display: flex;
  gap: 26px;
  flex-wrap: nowrap;
}

.band li {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
  white-space: nowrap;
}

.band li::before {
  content: "/ ";
  color: var(--line);
}

/* ---------------- manifest ---------------- */

.manifest {
  border-top: 1px solid var(--line);
}

.m-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s, padding-left 0.18s;
}

.m-row:hover {
  background: rgba(184, 255, 46, 0.03);
  padding-left: 14px;
}

.m-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--pink);
  padding-top: 4px;
}

.m-copy h3 {
  margin-bottom: 6px;
}

.m-copy p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 62ch;
}

.m-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
  border: 1px solid var(--line-soft);
  padding: 3px 8px;
  white-space: nowrap;
}

/* ---------------- vault ---------------- */

.vault {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.v-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.v-cell .ico {
  width: 22px;
  height: 22px;
  color: var(--lime);
  margin-bottom: 6px;
}

.v-cell b {
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.v-cell span {
  font-size: 0.8rem;
  color: var(--muted2);
}

.v-cell:hover {
  border-color: var(--lime);
  background: rgba(184, 255, 46, 0.05);
  transform: translateY(-2px);
}

.more {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

.more span {
  color: var(--pink);
}

/* ---------------- stats ---------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.stat {
  padding: 26px 20px;
  border-right: 1px solid var(--line-soft);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
  color: var(--lime);
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
}

/* ---------------- faq ---------------- */

.faqs {
  border-top: 1px solid var(--line);
}

.faq {
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--pink);
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.faq[open] summary {
  color: var(--lime);
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  padding: 0 40px 18px 4px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 78ch;
}

/* ---------------- end cta ---------------- */

.endcta {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(184, 255, 46, 0.07), transparent 60%),
    var(--panel);
  padding: 46px 40px;
  overflow: hidden;
}

.endcta::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border: 1px solid var(--line);
  transform: rotate(45deg);
  pointer-events: none;
}

.endcta h2 {
  margin-bottom: 12px;
  max-width: 22ch;
}

.endcta p {
  color: var(--muted);
  max-width: 52ch;
}

.endcta .acts {
  margin-bottom: 0;
}

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

.phead {
  padding: 64px 0 20px;
  border-bottom: 1px solid var(--line-soft);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 24px;
}

.crumb a {
  color: var(--lime);
}

.crumb b {
  color: var(--text);
  font-weight: 500;
}

.phead h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-bottom: 16px;
  max-width: 24ch;
}

.phead .lead {
  margin-bottom: 22px;
}

/* ---------------- build / download ---------------- */

.build {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 16px;
}

.build-main {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(184, 255, 46, 0.07), transparent 55%),
    var(--panel);
  padding: 30px;
}

.build-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.chip-ver,
.chip-live,
.chip-os {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line);
}

.chip-ver {
  color: var(--text);
}

.chip-live {
  color: var(--lime);
  border-color: rgba(184, 255, 46, 0.4);
}

.chip-os {
  color: var(--muted2);
}

.build-main h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 10px;
}

.build-main p {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 44ch;
}

.build-main .dl {
  margin-top: 24px;
}

.spec {
  margin: 0;
  border: 1px solid var(--line-soft);
  background: #080b0a;
  padding: 24px;
}

.spec div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.spec div:last-child {
  border-bottom: 0;
}

.spec dt {
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
}

.spec dd {
  margin: 0;
  text-align: right;
  color: var(--text);
  word-break: break-all;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.step {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: 24px;
}

.step-n {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--pink);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.88rem;
}

.reqs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.req {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.req b {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
}

.req span {
  font-size: 0.9rem;
  color: var(--muted);
}

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(184, 255, 46, 0.03);
}

.note b {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-right: 10px;
}

/* ---------------- guide ---------------- */

.guide {
  border-top: 1px solid var(--line);
}

.g-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.g-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--pink);
  letter-spacing: 0.1em;
  padding-top: 3px;
}

.g-row h3 {
  margin-bottom: 8px;
}

.g-row p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 74ch;
}

.g-row .tip {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted2);
}

.g-row .tip b {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-right: 8px;
}

/* ---------------- split + code ---------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.split h2 {
  margin-bottom: 12px;
}

.ticks {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.ticks li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.ticks li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-family: var(--mono);
}

.codecard {
  border: 1px solid var(--line);
  background: #080c0a;
  overflow: hidden;
}

.codecard-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted2);
}

.codecard-tag {
  color: var(--lime);
  text-transform: uppercase;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.code {
  margin: 0;
  padding: 18px;
  font-family: var(--mono);
  font-size: 0.77rem;
  line-height: 1.85;
  color: #b8c9bd;
  overflow-x: auto;
  tab-size: 2;
}

.code .c {
  color: #5f7268;
  font-style: italic;
}

.code .k {
  color: var(--pink);
}

.code .s {
  color: #d7ffa1;
}

.code .n {
  color: #ffd166;
}

.code .f {
  color: var(--lime);
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.88rem;
}

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

thead th {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
  background: rgba(184, 255, 46, 0.03);
  font-weight: 600;
}

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

td b {
  font-weight: 600;
  color: var(--text);
}

td.num {
  font-family: var(--mono);
  color: var(--lime);
  white-space: nowrap;
}

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

.foot {
  border-top: 1px solid var(--line);
  background: #070a09;
  padding: 40px 0;
}

.foot-in {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px 40px;
  align-items: start;
}

.logo-sm strong,
.logo-sm span {
  font-size: 0.9rem;
}

.foot-brand p {
  color: var(--muted2);
  font-size: 0.82rem;
  margin-top: 12px;
  max-width: 32ch;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot-links a {
  color: var(--muted);
}

.foot-links a:hover {
  color: var(--lime);
}

.foot-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--muted2);
}

/* ---------------- 404 + shared ---------------- */

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 34px;
}

.nf {
  text-align: center;
  padding: 90px 0 100px;
}

.code404 {
  font-family: var(--mono);
  font-size: clamp(4.5rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--lime);
  text-shadow: 0 0 40px rgba(184, 255, 46, 0.3);
  margin-bottom: 18px;
}

.nf h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.nf p {
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* ---------------- reveal ---------------- */

[data-reveal] {
  opacity: 1;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 980px) {
  :root {
    --rail: 0px;
  }

  .rail {
    inset: 0 0 auto 0;
    width: auto;
    height: 58px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 8, 9, 0.94);
    backdrop-filter: blur(12px);
  }

  .logo em {
    display: none;
  }

  .rail-foot {
    display: none;
  }

  .rail-btn {
    display: inline-flex;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: var(--lime);
    background: transparent;
    border: 1px solid var(--line);
    padding: 7px 12px;
    cursor: pointer;
  }

  .rail-nav {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px;
    background: #080b0a;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .rail-nav.open {
    display: flex;
  }

  main,
  .foot {
    margin-left: 0;
  }

  main {
    padding-top: 58px;
  }

  .hero-grid,
  .split,
  .build {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .vault {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .sect {
    padding: 56px 0;
  }
}

@media (max-width: 620px) {
  .sect-in,
  .hero-grid,
  .phead-in,
  .foot-in,
  .band-in,
  .wrap {
    padding: 0 20px;
  }

  .vault,
  .reqs {
    grid-template-columns: 1fr;
  }

  .m-row {
    grid-template-columns: 40px 1fr;
  }

  .m-tag {
    display: none;
  }

  .foot-in {
    grid-template-columns: 1fr;
  }

  .btn,
  .dl {
    width: 100%;
  }

  .acts {
    gap: 14px;
  }

  .endcta {
    padding: 32px 22px;
  }

  .g-row {
    grid-template-columns: 40px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal],
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
