/* =============================================================================
   Verde Optimal — shared stylesheet
   Retro-futuristic cyber-terminal. Brand accent tokens are verbatim from
   brand_assets/brand.md. Two deliberate departures from the guidelines: the dark
   ramp (--vo-void, --vo-surface-*) is a warm re-tint of brand "Dark Void"
   #000000, and body copy is set in Work Sans rather than brand-spec Montserrat —
   a warm humanist sans that softens the terminal tone. Roboto Mono still carries
   every heading, label and control. See the implementation notes in
   brand_assets/brand.md. Do not invent other colours or typefaces.
   ========================================================================== */

:root {
  /* --- Brand palette -------------------------------------------------------- */
  --vo-green:   #00ED04;   /* Cyber Green  — primary accent, CTAs, links       */
  --vo-lime:    #00FF04;   /* Electric Lime — hover brighten                   */
  --vo-signal:  #48FF00;   /* Signal Green — glow / active                     */
  --vo-void:    #1C1914;   /* Warm grey-brown — re-tint of brand Dark Void #000000 */
  --vo-white:   #FFFFFF;   /* body text on dark                               */
  --vo-slate:   #A19797;   /* Slate Grey — muted / secondary text             */
  /* Slate lifted toward white for body-sized secondary copy on the lighter
     filled surfaces (#33302B), where raw Slate Grey only just clears WCAG AA.
     ~8:1 on a card, still a clear step below pure-white headings/primary. */
  --vo-slate-lift: color-mix(in srgb, var(--vo-white) 48%, var(--vo-slate));

  /* --- Derived surfaces -------------------------------------------------------
         One warm shade for every filled surface: cards, panels, content blocks
         and the filled band all sit at #33302B — a deeper, near-neutral grey
         with only a trace of warmth, sitting a clear tone above the darker
         grey-brown void, backed by their hairline + glow. ----------------- */
  --vo-surface-1: #33302B; /* every filled surface                             */
  --vo-surface-2: #33302B; /* alias, kept so existing gradients resolve flat   */
  --vo-hairline:  rgba(0, 237, 4, 0.14);
  --vo-hairline-strong: rgba(0, 237, 4, 0.30);
  --vo-green-wash: rgba(0, 237, 4, 0.06);
  --vo-divider: linear-gradient(90deg, transparent 0%, rgba(0, 237, 4, 0.28) 18%, rgba(0, 237, 4, 0.28) 82%, transparent 100%);

  /* --- Filled band (the one full-bleed section with a background). Same
         #33302B as the cards; its border-block + green top line and the
         surrounding warm void are what set it apart as a distinct zone. ----- */
  --vo-charcoal:    #33302B;  /* the filled band background                    */
  --vo-charcoal-hi: #33302B;  /* card sitting on the band (same shade)         */

  /* --- Glow system ------------------------------------------------------- */
  --glow-sm: 0 0 0 1px rgba(0, 237, 4, 0.18), 0 4px 20px -6px rgba(0, 237, 4, 0.28);
  --glow-md: 0 0 0 1px rgba(0, 237, 4, 0.22), 0 8px 34px -8px rgba(0, 237, 4, 0.40),
             0 2px 10px -4px rgba(0, 237, 4, 0.25);
  --glow-lg: 0 0 0 1px rgba(0, 237, 4, 0.28), 0 18px 60px -12px rgba(0, 237, 4, 0.50),
             0 6px 22px -8px rgba(0, 237, 4, 0.30);

  /* --- Spacing scale (intentional, not random) -------------------------- */
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  --radius-pill: 999px;
  --radius-lg: 18px;
  --radius-md: 12px;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --shell-max: 76rem;
}

/* =============================================================================
   Reset / base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--vo-void);
  color: var(--vo-white);
  font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: normal; /* humanist face is text-fitted — no tracking crutch */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Atmosphere: layered radial gradients + grain. Fixed so it sits behind
   everything and never scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 40% at 50% -8%, rgba(0, 237, 4, 0.10), transparent 70%),
    radial-gradient(48% 45% at 8% 108%, rgba(72, 255, 0, 0.07), transparent 72%),
    radial-gradient(40% 30% at 100% 50%, rgba(0, 237, 4, 0.045), transparent 70%),
    linear-gradient(180deg, var(--vo-void) 0%, #1C191400 40%), /* alpha-00 stop kept in sync with --vo-void */
    var(--vo-void);
}

/* Particle field. Lives inside the page header (.hero) only, so the glyph
   field sits behind the page title and nowhere else. Absolutely positioned to
   fill the hero box; the mask feathers it top and bottom so it dissolves into
   the header rather than hard-cutting against the nav or the first section. */
.bg-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 68%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 68%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  .bg-particles { display: none; }
}

/* Grain overlay: separate fixed element, layered above the atmosphere. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Lifted off pure black, the warm void lets `overlay` grain read; kept low so
     large flat areas (hero, terms) don't shimmer. */
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

::selection {
  background: var(--vo-green);
  color: #000;
}

/* =============================================================================
   Typography helpers
   ========================================================================== */

.font-mono { font-family: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; }

h1, h2, h3, h4 {
  font-family: "Roboto Mono", ui-monospace, Menlo, monospace;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.16;
  margin: 0;
  text-wrap: balance;
}

/* The display headline keeps the brand's uppercase treatment; everything
   below it reads in sentence case for a warmer, less shouty feel. */
.display {
  font-size: clamp(2.2rem, 5.7vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.h-section {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.h-card {
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}

p { margin: 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: color-mix(in srgb, var(--vo-white) 88%, var(--vo-slate));
  max-width: 46ch;
}

/* Secondary body copy. Lifted well off Slate Grey toward white for legibility
   on the lighter grey surfaces — still a clear step below the pure-white
   headings and primary copy. */
.muted { color: color-mix(in srgb, var(--vo-white) 55%, var(--vo-slate)); }

.measure { max-width: 62ch; }

/* Section label: a small mono tag in Cyber Green — kept from the terminal
   language, minus the command-line prompt and snake_case. */
.eyebrow {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vo-green);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.caret::after {
  content: "";
  display: inline-block;
  width: 0.6ch;
  height: 1.05em;
  margin-left: 0.15em;
  translate: 0 0.16em;
  background: var(--vo-green);
  box-shadow: 0 0 10px rgba(0, 237, 4, 0.8);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Visually hidden but accessible — the typewriter's screen-reader twin. */
.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;
}

/* Hero typewriter caret */
.type-caret {
  display: inline-block;
  width: 0.5ch;
  height: 0.92em;
  margin-left: 0.1em;
  translate: 0 0.12em;
  background: currentColor;
  animation: blink 0.9s steps(1) infinite;
}

.type-caret--done {
  opacity: 0;
  transition: opacity 0.4s var(--ease-spring);
}

@media (prefers-reduced-motion: reduce) {
  .type-caret { display: none; }
}

/* =============================================================================
   Layout shell
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(2rem, 3.5vw, 3.25rem); }
.section--tight { padding-block: clamp(1.75rem, 3vw, 2.75rem); }

/* Section break: a single faint, centre-fading hairline. Used both as the
   standalone <hr> after the page header and, via ::before, between every pair
   of consecutive content sections so each break reads clearly. */
.rule {
  border: 0;
  height: 1px;
  max-width: var(--shell-max);
  margin-block: 0;
  margin-inline: auto;
  background: var(--vo-divider);
}

main > section + section::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--vo-divider);
  margin-top: calc(-1 * clamp(2rem, 3.5vw, 3.25rem));
  margin-bottom: clamp(2rem, 3.5vw, 3.25rem);
}

/* The filled band already frames itself with its own border-block + green top
   line (it keeps its own ::before), and the section that follows it is set off
   by that same border, so it doesn't need the extra hairline above it. */
main > section.pricing-band + section::before { content: none; }

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

/* =============================================================================
   Pricing band — the one full-bleed section carrying a background. Same #1a160f
   surface as the cards; the border-block, green top line and the warm-void
   sections above and below are what read it as a distinct zone.
   ========================================================================== */

.pricing-band {
  position: relative;
  background: var(--vo-surface-1);
  border-block: 1px solid var(--vo-hairline-strong);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  margin-block: var(--space-xl);
}

.pricing-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 237, 4, 0.5), transparent);
}

.pricing__lead {
  margin-top: var(--space-sm);
  max-width: 54ch;
  color: var(--vo-slate-lift);
  font-size: 1.02rem;
}

.pricing__grid {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 760px) {
  .pricing__grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

.pricing__list {
  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.pricing__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--vo-white) 90%, var(--vo-slate));
}

.pricing__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vo-green);
}

/* "What every build includes" — a wider two-column checklist under the grid. */
.pricing__included { margin-top: var(--space-lg); }
.pricing__included .h-card { margin-bottom: var(--space-2xs); }

@media (min-width: 620px) {
  .pricing__list--cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-lg);
  }
}

.pricing__note {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--vo-slate-lift);
}

/* Sits on the filled band at the same #0d0f0d, so it borrows the standard card
   treatment — hairline border + green top line — to read as its own surface. */
.pricing__care {
  position: relative;
  overflow: hidden;
  background: var(--vo-surface-1);
  border: 1px solid var(--vo-hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.4vw, 1.7rem);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 48px -30px rgba(0, 0, 0, 0.7);
}

.pricing__care::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 237, 4, 0.45), transparent);
  opacity: 0.6;
}

.pricing__care .h-card { margin-top: 0.35rem; }

.pricing__price {
  font-family: "Roboto Mono", ui-monospace, Menlo, monospace;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  color: var(--vo-green);
}

.pricing__price span {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.pricing > .btn {
  margin-top: var(--space-md);
}

/* =============================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s var(--ease-spring),
              border-color 0.3s var(--ease-spring);
  border-bottom: 1px solid transparent;
}

.site-header[data-scrolled="true"] {
  background: rgba(28, 25, 20, 0.94); /* warm void, matches --vo-void */
  border-bottom-color: var(--vo-hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 1.05rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--vo-white);
  border-radius: var(--radius-md);
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  filter: drop-shadow(0 0 8px rgba(0, 237, 4, 0.55));
  transition: transform 0.4s var(--ease-spring);
}

.brand:hover .brand__mark { transform: translateY(-1px) scale(1.04); }

.brand__word {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.92rem;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: "Roboto Mono", monospace;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vo-slate);
  text-decoration: none;
  padding: 0.4rem 0.15rem;
  position: relative;
  transition: color 0.25s var(--ease-spring);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 1px;
  background: var(--vo-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 0 8px rgba(0, 237, 4, 0.7);
}

.nav__link:hover,
.nav__link:focus-visible { color: var(--vo-white); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--vo-green); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); opacity: 0.5; }

.nav__cta { display: inline-flex; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--vo-hairline);
  border-radius: var(--radius-md);
  background: var(--vo-surface-1);
  color: var(--vo-green);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.25s var(--ease-spring), background-color 0.25s var(--ease-spring);
}

.nav__toggle:hover { border-color: var(--vo-hairline-strong); }
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* =============================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-fg: #000;
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.3s var(--ease-spring),
              background-color 0.25s var(--ease-spring), color 0.25s var(--ease-spring),
              border-color 0.25s var(--ease-spring), opacity 0.25s var(--ease-spring);
}

.btn:focus-visible {
  outline: 2px solid var(--vo-signal);
  outline-offset: 3px;
}

.btn--primary {
  color: var(--btn-fg);
  background: linear-gradient(180deg, #05a600 0%, var(--vo-green) 48%, var(--vo-signal) 100%);
  box-shadow: 0 0 0 1px rgba(0, 237, 4, 0.35), 0 8px 22px -12px rgba(0, 237, 4, 0.6);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 237, 4, 0.5), 0 14px 34px -14px rgba(0, 237, 4, 0.7);
  background: linear-gradient(180deg, var(--vo-green) 0%, var(--vo-lime) 50%, var(--vo-signal) 100%);
}

.btn--primary:active { transform: translateY(0) scale(0.985); box-shadow: 0 0 0 1px rgba(0, 237, 4, 0.4); }

.btn--ghost {
  color: var(--vo-green);
  background: rgba(0, 237, 4, 0.04);
  border-color: var(--vo-hairline-strong);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  color: var(--vo-signal);
  border-color: var(--vo-signal);
  background: rgba(0, 237, 4, 0.09);
  box-shadow: var(--glow-sm);
}

.btn--ghost:active { transform: translateY(0) scale(0.985); }

.btn--block { width: 100%; }

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.4;
  filter: grayscale(0.4);
}

/* Animated border: a comet of light tracing the pill's edge, just outside
   the button itself so it reads as a halo rather than fighting the fill.
   The angle is swept via a typed custom property (not a transform rotate)
   because rotating the already-masked ring as a rigid shape misaligns a
   pill's straight edges with the button's own edges at non-zero angles. */
@property --btn-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.btn--primary,
.btn--ghost { position: relative; }

.btn--primary::before,
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--btn-border-angle), transparent 0%, transparent 82%, var(--vo-signal) 92%, var(--vo-lime) 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  -webkit-mask-clip: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  mask-clip: content-box, border-box;
  mask-composite: exclude;
  pointer-events: none;
  animation: btn-border-spin 4.5s linear infinite;
}

@keyframes btn-border-spin {
  to { --btn-border-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary::before,
  .btn--ghost::before { animation: none; }
}

/* Inline text link */
.link {
  color: var(--vo-green);
  text-decoration: none;
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: gap 0.25s var(--ease-spring), color 0.25s var(--ease-spring);
}

.link svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease-spring); }
.link:hover { color: var(--vo-signal); gap: 0.8em; }
.link:hover svg { transform: translateX(2px); }
.link:focus-visible { outline: 2px solid var(--vo-signal); outline-offset: 4px; border-radius: 4px; }

/* =============================================================================
   Cards / panels
   ========================================================================== */

.panel {
  background: linear-gradient(180deg, var(--vo-surface-2), var(--vo-surface-1));
  border: 1px solid var(--vo-hairline);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 237, 4, 0.5), transparent);
}

.card {
  background: linear-gradient(180deg, var(--vo-surface-2), var(--vo-surface-1));
  border: 1px solid var(--vo-hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.6vw, 1.85rem);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring),
              border-color 0.35s var(--ease-spring);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 237, 4, 0.45), transparent);
  opacity: 0.6;
}

.card--interactive:hover {
  transform: translateY(-4px);
  border-color: var(--vo-hairline-strong);
  box-shadow: var(--glow-md);
}

.card__index {
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--vo-green);
  opacity: 0.7;
}

.card__icon {
  width: 40px;
  height: 40px;
  color: var(--vo-green);
  margin-bottom: var(--space-sm);
}

.card__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "Roboto Mono", monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--vo-hairline-strong);
  color: var(--vo-green);
  background: rgba(0, 237, 4, 0.05);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vo-green);
  box-shadow: 0 0 8px var(--vo-green);
  animation: pulse 2s var(--ease-spring) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.card--locked {
  opacity: 0.62;
}

.card--locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 9px,
    rgba(0, 237, 4, 0.03) 9px,
    rgba(0, 237, 4, 0.03) 18px
  );
  pointer-events: none;
}

/* =============================================================================
   Grid utilities
   ========================================================================== */

.grid { display: grid; gap: var(--space-md); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.stack > * + * { margin-top: var(--space-sm); }
.stack-lg > * + * { margin-top: var(--space-md); }

/* Two-column split: a short aside column + a wider content column. */
.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: var(--space-md); }
}


/* =============================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden; /* clips the particle field to the page header */
  padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(1.75rem, 3.5vw, 2.75rem);
}

/* Hero is centred (the one centred block on the site) so it sits balanced in
   the full width rather than hugging the left with dead space on the right. */
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.hero__inner .lede { max-width: 52ch; margin-inline: auto; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

/* =============================================================================
   Steps (how it works) — numbered circular timeline
   ========================================================================== */

.steps-timeline { display: flex; flex-direction: column; gap: var(--space-xl); }

.steps-timeline__row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
  padding-inline: var(--space-2xs);
}

.step-node__circle {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--vo-surface-2), var(--vo-surface-1));
  border: 1.5px solid var(--vo-hairline-strong);
  box-shadow: var(--glow-sm);
}

.step-node__num {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--vo-white);
}

.step-node__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--vo-lime), var(--vo-green));
  color: #000;
  border: 2px solid var(--vo-void);
  box-shadow: 0 0 0 1px var(--vo-hairline-strong);
}

.step-node__badge svg { width: 1.05rem; height: 1.05rem; stroke-width: 2; }

.step-node__title {
  margin-top: var(--space-sm);
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-size: 0.98rem;
}

.step-node__desc {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  max-width: 17ch;
}

.step-connector {
  flex: 0 1 4.5rem;
  min-width: 1.25rem;
  height: 2px;
  margin-top: 2.75rem; /* vertically centres on the circle */
  align-self: flex-start;
  background: linear-gradient(90deg, var(--vo-hairline-strong), var(--vo-green), var(--vo-hairline-strong));
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.step-connector--bridge { display: none; }

.step-connector__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--vo-signal);
  box-shadow: 0 0 6px var(--vo-signal);
  opacity: 0.25;
  transform: scale(0.55);
  animation: step-dot-pulse 1.6s var(--ease-spring) infinite;
  animation-delay: calc(var(--i, 0) * 0.22s);
}

@keyframes step-dot-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.55); }
  45% { opacity: 1; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .step-connector__dot { animation: none; opacity: 0.7; transform: scale(0.85); }
}

@media (max-width: 760px) {
  .steps-timeline { gap: var(--space-md); }

  .steps-timeline__row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }

  .step-node {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .step-node__circle { width: 3.75rem; height: 3.75rem; }
  .step-node__num { font-size: 1.05rem; }
  .step-node__title { margin-top: 0; }
  .step-node__desc { max-width: none; }

  .step-connector,
  .step-connector--bridge {
    flex: none;
    flex-direction: column;
    width: 2px;
    height: 1.75rem;
    margin: 0 0 0 1.85rem; /* aligns under the mobile circle's centre */
    background: linear-gradient(180deg, var(--vo-hairline-strong), var(--vo-green), var(--vo-hairline-strong));
  }

  .step-connector--bridge { display: flex; }
}

/* =============================================================================
   FAQ — native <details> list, brand-styled, no JS
   ========================================================================== */

.faq {
  max-width: 72ch;
  border-top: 1px solid var(--vo-hairline);
}

.faq__item { border-bottom: 1px solid var(--vo-hairline); }

.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  line-height: 1.4;
  color: var(--vo-white);
  transition: color 0.2s var(--ease-spring);
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "+";
  flex: none;
  font-family: "Roboto Mono", monospace;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--vo-green);
  transition: transform 0.3s var(--ease-spring);
}

.faq__item[open] .faq__q::after { transform: rotate(45deg); }

.faq__q:hover { color: var(--vo-green); }

.faq__q:focus-visible {
  outline: 2px solid var(--vo-signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.faq__a {
  padding: 0 0 var(--space-md);
  max-width: 64ch;
}

.faq__a p {
  color: var(--vo-slate-lift);
  font-size: 0.95rem;
}

.faq__a p + p { margin-top: 0.6rem; }

@media (prefers-reduced-motion: reduce) {
  .faq__q::after { transition: none; }
}

/* =============================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--vo-hairline-strong);
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(0, 237, 4, 0.12), transparent 70%),
    linear-gradient(180deg, var(--vo-surface-2), var(--vo-surface-1));
  padding: clamp(1.9rem, 3.5vw, 2.75rem);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vo-green), transparent);
}

.cta-band__inner {
  max-width: 40rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* =============================================================================
   Portfolio
   ========================================================================== */

.project {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--vo-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--vo-surface-1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring),
              border-color 0.35s var(--ease-spring);
}

.project:hover {
  transform: translateY(-4px);
  border-color: var(--vo-hairline-strong);
  box-shadow: var(--glow-md);
}

.project:focus-visible { outline: 2px solid var(--vo-signal); outline-offset: 3px; }

.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0E0B08; /* warm, between void and surface */
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.05);
  transition: transform 0.5s var(--ease-spring);
}

.project:hover .project__media img { transform: scale(1.04); }

.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 55%);
}

.project__tint {
  position: absolute;
  inset: 0;
  background: var(--vo-green);
  mix-blend-mode: multiply;
  opacity: 0.22;
}

.project__body { padding: 1.35rem 1.4rem 1.55rem; }

.project__tag {
  font-family: "Roboto Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vo-slate-lift);
}

.project__title {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin: 0.35rem 0 0.5rem;
}

/* Terminal empty-state panel */
.terminal {
  border: 1px solid var(--vo-hairline);
  border-radius: var(--radius-lg);
  background: var(--vo-surface-1);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--vo-hairline);
  background: rgba(0, 237, 4, 0.03);
}

.terminal__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--vo-hairline-strong);
}

.terminal__title {
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vo-slate);
  margin-left: 0.4rem;
}

.terminal__body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.9;
}

.terminal__body .out { color: var(--vo-slate); }
.terminal__body .ok { color: var(--vo-green); }

/* =============================================================================
   Forms
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: 0.45rem; }

.field label {
  font-family: "Roboto Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vo-slate-lift);
}

.field__opt {
  color: var(--vo-slate);
  letter-spacing: 0.08em;
}

.field input,
.field textarea {
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--vo-white);
  background: #100D09; /* warm recessed well, below the panel it sits in */
  border: 1px solid var(--vo-hairline);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  transition: border-color 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring),
              background-color 0.25s var(--ease-spring);
  width: 100%;
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(161, 151, 151, 0.62); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--vo-green);
  background: #141009; /* lifts slightly on focus */
  box-shadow: 0 0 0 3px rgba(0, 237, 4, 0.14);
}

/* Inline validation — set by nav.js before a blocked submit. */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: rgba(255, 107, 107, 0.65);
}

.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.16);
}

.field-error {
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #ff6b6b;
}

.field-error::before {
  content: "> ";
}

/* Honeypot — visually and semantically hidden but reachable by bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-family: "Roboto Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--vo-hairline);
}

.form-status[data-state="success"] {
  color: var(--vo-green);
  border-color: var(--vo-hairline-strong);
  background: rgba(0, 237, 4, 0.06);
}

.form-status[data-state="error"] {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.06);
}

/* =============================================================================
   Prose (about / terms)
   ========================================================================== */

.prose {
  max-width: 68ch;
  color: color-mix(in srgb, var(--vo-white) 90%, var(--vo-slate));
}

.prose p + p { margin-top: var(--space-sm); }
.prose strong { font-weight: 600; color: var(--vo-white); }

.legal { counter-reset: clause; max-width: 72ch; }

.legal h2 {
  font-size: 1rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xs);
  color: var(--vo-white);
}

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

.legal p + p { margin-top: 0.6rem; }

.legal h2::before {
  counter-increment: clause;
  content: counter(clause) ". ";
  color: var(--vo-green);
}

.legal h3 {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--vo-white);
  margin-top: var(--space-md);
  margin-bottom: var(--space-2xs);
}

.legal p, .legal li {
  color: var(--vo-slate-lift);
  font-size: 0.95rem;
}

.legal ul { padding-left: 1.2rem; margin: var(--space-2xs) 0; }
.legal li { margin-block: 0.3rem; }

/* Numbered sub-clause: hanging mono number in its own column. */
.legal .clause {
  display: grid;
  grid-template-columns: 2.7rem 1fr;
  column-gap: 0.4rem;
  margin-top: var(--space-sm);
}

.legal .clause > .n {
  font-family: "Roboto Mono", monospace;
  font-size: 0.95rem;
  color: var(--vo-green);
}

.legal .clause > div > * + * { margin-top: 0.55rem; }
.legal .clause ul { margin: 0.4rem 0 0; }

@media (max-width: 520px) {
  .legal .clause { grid-template-columns: 1fr; row-gap: 0.15rem; }
}

.note {
  border: 1px solid var(--vo-hairline-strong);
  border-left-width: 3px;
  border-radius: var(--radius-md);
  background: rgba(0, 237, 4, 0.04);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--vo-white) 82%, var(--vo-slate));
}

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

/* =============================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--vo-hairline);
  margin-top: var(--space-xl);
  padding-block: var(--space-lg) var(--space-md);
  background: linear-gradient(180deg, transparent, rgba(0, 237, 4, 0.03));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

.footer__brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: var(--space-sm); }
.footer__brand img { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(0,237,4,0.5)); }
.footer__brand span {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  white-space: nowrap;
}

.footer__social {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: flex;
  gap: 0.6rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--vo-hairline);
  background: rgba(255, 255, 255, 0.015);
  color: var(--vo-slate);
  transition:
    color 0.2s var(--ease-spring),
    border-color 0.2s var(--ease-spring),
    background-color 0.2s var(--ease-spring),
    transform 0.2s var(--ease-spring);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
}

.footer__social a:hover,
.footer__social a:focus-visible {
  color: var(--vo-green);
  border-color: var(--vo-hairline-strong);
  background: var(--vo-green-wash);
  transform: translateY(-2px);
}

.footer__social a:active {
  transform: translateY(0);
}

.footer__col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--vo-slate);
  margin-bottom: var(--space-xs);
}

.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li + li { margin-top: 0.55rem; }

.footer__col a {
  color: color-mix(in srgb, var(--vo-white) 78%, var(--vo-slate));
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  transition: color 0.2s var(--ease-spring), transform 0.2s var(--ease-spring);
}

.footer__col a:hover,
.footer__col a:focus-visible { color: var(--vo-green); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--vo-hairline);
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vo-slate);
}

/* Footer scroll reveal. Scoped to html.js (set by nav.js) so the footer is
   fully visible by default if JS never runs; JS then adds .footer-in via
   IntersectionObserver as each column scrolls into view. */
.js .footer__grid > *,
.js .footer__base {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
}

.js .footer__grid > *:nth-child(2) { transition-delay: 0.08s; }
.js .footer__grid > *:nth-child(3) { transition-delay: 0.16s; }

.js .footer__grid > *.footer-in,
.js .footer__base.footer-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .footer__grid > *,
  .js .footer__base { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =============================================================================
   Skip link + focus
   ========================================================================== */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--vo-green);
  color: #000;
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top 0.2s var(--ease-spring);
}

.skip-link:focus { top: 1rem; }

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

/* =============================================================================
   Load reveal (staggered). JS adds .is-ready to <body>.
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

body.is-ready .reveal {
  animation: reveal 0.8s var(--ease-spring) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Below-fold reveal. CSS-only so it never depends on scroll events or an
   IntersectionObserver (which would leave content hidden in a no-scroll capture).
   All .rise elements animate in shortly after the DOM is ready. */
.rise {
  opacity: 0;
  transform: translateY(22px);
}

body.is-ready .rise {
  animation: reveal 0.7s var(--ease-spring) forwards;
  animation-delay: var(--reveal-delay, 0.05s);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .rise {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .caret::after, .badge::before { animation: none; }
}

/* =============================================================================
   Mobile nav
   ========================================================================== */

@media (max-width: 800px) {
  .nav__toggle { display: inline-flex; }

  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    background: rgba(28, 25, 20, 0.99); /* warm void, matches --vo-void */
    border-left: 1px solid var(--vo-hairline);
    padding: 5.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-spring);
    z-index: 40;
  }

  .nav__menu[data-open="true"] { transform: translateX(0); }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .nav__link { font-size: 1rem; }
  .nav__cta { width: 100%; }
  .nav__cta .btn { width: 100%; font-size: 0.76rem; padding-inline: 1rem; }

  .nav__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 5, 0.5); /* warm dim */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-spring);
    z-index: 30;
  }

  .nav__backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }
}

@media (min-width: 801px) {
  .nav__backdrop { display: none; }
}
