/* vagejs.com: dark, blueprint-like, code-first. Tokens from the VAGE JS mark. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #05070e;
  --panel: #0a0d19;
  --panel-2: #0e1222;
  --line: rgb(165 180 252 / 0.14);
  --line-strong: rgb(165 180 252 / 0.32);
  --ink: #eef0fa;
  --muted: #959cb8;
  --accent: #a5b4fc;
  --indigo: #4f46e5;
  --amber: #f5b700;
  --ok: #86efac;
  --err: #fca5a5;
  --warn: #fcd34d;
  --pale: #e8ecff;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(60rem 32rem at 50% -8rem, rgb(79 70 229 / 0.28), transparent 70%),
    var(--bg);
  background-repeat: no-repeat; /* the glow appears once, at the top */
  color: var(--ink);
  font: 1rem/1.65 var(--body);
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 0.6em;
}
.accent {
  color: var(--accent);
}
/* Even line lengths, no single-word orphans in big headings */
h1,
.section-title,
.lede,
.section-text {
  text-wrap: balance;
}
/* Anchored headings clear the floating nav. */
[id] {
  scroll-margin-top: 6rem;
}

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

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--panel);
  padding: 0.5rem 0.75rem;
}

main,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Nav: a floating, bordered bar */

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 10;
  max-width: var(--max);
  margin: 0.75rem auto 0;
  padding-inline: var(--gutter);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(10 13 25 / 0.72);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}
.mark {
  width: 2.2rem;
  height: 2.2rem;
  /* soft glow so the mark reads on the dark background */
  filter: drop-shadow(0 0 6px rgb(139 147 255 / 0.55)) drop-shadow(0 0 2px rgb(255 201 51 / 0.35));
}
.wordmark {
  font: 700 1.65rem/1 var(--display);
  letter-spacing: -0.05em;
}
.wordmark span,
.brand-js {
  color: var(--accent);
}
/* One flex item, so flex gaps never split the name */
.brand-name {
  white-space: nowrap;
}
.nav-bar nav {
  display: flex;
  gap: 0.25rem;
  margin: 0 auto;
}
.nav-bar nav a {
  font: 0.8rem var(--mono);
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}
.nav-bar nav a:hover,
.nav-bar nav a[aria-current="page"] {
  color: var(--ink);
  background: rgb(165 180 252 / 0.08);
}
.nav-actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 500 0.8rem var(--mono);
  padding: 0.6rem 1rem;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn-primary {
  background: var(--pale);
  color: #0b0e1a;
}
.btn-primary:hover {
  background: #fff;
}
.btn-ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover {
  background: rgb(165 180 252 / 0.08);
}

@media (max-width: 52rem) {
  .nav-bar {
    flex-wrap: wrap;
  }
  .nav-bar nav {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-actions .btn-ghost {
    display: none;
  }
}

/* Hero: the create command is the centerpiece */

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3rem, 6vw, 5rem);
}
/* Geometric checks: a faint checkerboard grid that fades out around the headline */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(46rem, 100%);
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgb(165 180 252 / 0.075) 1px, transparent 1px) 50% 0 / 56px 56px,
    linear-gradient(90deg, rgb(165 180 252 / 0.075) 1px, transparent 1px) 50% 0 / 56px 56px,
    repeating-conic-gradient(rgb(129 140 248 / 0.05) 0 25%, transparent 0 50%) 50% 0 / 112px 112px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 32%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 55% 60% at 50% 32%, #000 25%, transparent 78%);
}
.kicker {
  display: inline-flex;
  gap: 0.5rem;
  font: 0.78rem var(--mono);
  color: var(--accent);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(79 70 229 / 0.12);
  margin-bottom: 1.75rem;
}
.kicker:hover {
  border-color: var(--accent);
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
}
.lede {
  max-width: 46rem;
  margin: 0 auto 2.75rem;
  font-size: 1.12rem;
  color: var(--muted);
}

@media (max-width: 40rem) {
  .lede {
    font-size: 1rem;
  }
}

.command {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-radius: var(--radius);
  overflow-x: auto;
  text-align: left;
}
.command code {
  white-space: nowrap;
  user-select: all;
  cursor: text;
}
.command .prompt {
  color: var(--amber);
  font-family: var(--mono);
  font-weight: 700;
}
.command-lg {
  padding: 1.1rem 1.5rem;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  box-shadow:
    0 0 0 6px rgb(79 70 229 / 0.07),
    0 20px 70px -20px rgb(79 70 229 / 0.75);
}
.command-lg code::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 0.25em;
  vertical-align: -0.18em;
  background: var(--amber);
  opacity: 0.85;
}
@media (prefers-reduced-motion: no-preference) {
  .command-lg code::after {
    animation: blink 1.1s steps(1) infinite;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.command-lg:hover {
  border-color: var(--accent);
}
.command-md {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}
.hint {
  margin: 1rem 0 2rem;
  font: 0.75rem var(--mono);
  color: var(--muted);
}
.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* The terminal that runs the command */

.run,
.panel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  text-align: left;
}
.run {
  max-width: 46rem;
  margin: 3.5rem auto 0;
  box-shadow: 0 40px 120px -40px rgb(79 70 229 / 0.55);
}
/* Console windows: traffic lights, centered title, gradient top edge */
.run figcaption,
.panel figcaption {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(165 180 252 / 0.07), rgb(165 180 252 / 0.02));
  font: 500 0.75rem var(--mono);
  color: #b7bdd6;
}
.lights {
  position: absolute;
  left: 1rem;
  display: inline-flex;
  gap: 0.45rem;
}
.lights i {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.25);
}
.lights i:nth-child(2) {
  background: #febc2e;
}
.lights i:nth-child(3) {
  background: #28c840;
}
.run,
.panel {
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(160deg, rgb(165 180 252 / 0.55), rgb(79 70 229 / 0.18) 40%, rgb(165 180 252 / 0.08)) border-box;
  border: 1px solid transparent;
}
.run-lines {
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.25rem 1.3rem;
  font: 0.85rem/1.75 var(--mono);
  overflow-x: auto;
}
.run-lines li {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.run-lines .run-cmd {
  color: var(--ink);
  margin-top: 0.4rem;
}
.run-lines .run-cmd:first-child {
  margin-top: 0;
}
.run-lines .run-ok {
  color: var(--ok);
}
.run-lines {
  background: radial-gradient(36rem 14rem at 50% 0%, rgb(79 70 229 / 0.1), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .run-lines li {
    animation: line 0.3s ease-out both;
    animation-delay: calc(0.6s + var(--i) * 0.16s);
  }
}
@keyframes line {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}

/* Honest strip: names, not logos */

.strip {
  border-block: 1px solid var(--line);
  padding-block: 1.6rem;
  text-align: center;
}
.strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2rem;
}
.strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 500 0.95rem var(--display);
  color: rgb(238 240 250 / 0.72);
  transition: color 0.2s;
}
.strip li:hover {
  color: var(--ink);
}
.brand-logo {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  transition: color 0.2s;
}
.strip li:hover .brand-logo {
  color: var(--brand);
}

/* Section titles */

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

/* Lifecycle: steps along an orbit line */

.lifecycle {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.lifecycle::before {
  /* the orbit */
  content: "";
  position: absolute;
  top: 12rem;
  left: -62rem;
  width: 70rem;
  height: 70rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 120px rgb(79 70 229 / 0.08);
  pointer-events: none;
}
.lifecycle > .section-title {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  gap: clamp(3.5rem, 7vw, 6rem);
  border-left: 1px solid var(--line);
  position: relative;
}
.step {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .step {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3.5rem;
  }
}
.step > * {
  min-width: 0;
}
.step-copy {
  position: relative;
}
.node {
  position: absolute;
  left: calc(-1 * clamp(1.25rem, 4vw, 3rem) - 0.42rem);
  top: 1.65rem; /* level with the middle of the 65px tile */
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  box-shadow: 0 0 14px rgb(165 180 252 / 0.6);
}
.step h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: 1.25rem 0 0.4rem;
}
.subtitle {
  margin: 0 0 1.2rem;
  font: 400 clamp(1.1rem, 1.8vw, 1.3rem)/1.35 var(--display);
  color: var(--accent);
}
.points {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  color: var(--muted);
}
.points li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.45rem;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.36rem;
  height: 0.36rem;
  background: var(--accent);
  border-radius: 1px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}
.chip {
  font: 0.75rem var(--mono);
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.chip:hover {
  border-color: var(--accent);
  background: rgb(165 180 252 / 0.06);
}

/* Code panels */

.panel {
  box-shadow:
    0 30px 90px -40px rgb(79 70 229 / 0.85),
    0 0 0 1px rgb(0 0 0 / 0.4);
}
.panel pre {
  margin: 0;
  padding: 1.1rem 1.25rem 1.25rem;
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--ink);
}
.panel-file pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #eef0fa;
}
/* Syntax colors (pastels tuned for the navy panels) */
.s-prompt { color: #f5b700; font-weight: 700; }
.s-bin { color: #7dd3fc; font-weight: 600; }
.s-sub { color: #c4b5fd; font-weight: 600; }
.s-pkg { color: #c4b5fd; }
.s-flag { color: #f0abfc; }
.s-arg { color: #eef0fa; }
.s-op { color: #7c84a3; }
.s-url { color: #93c5fd; text-decoration: underline; text-decoration-color: rgb(147 197 253 / 0.35); text-underline-offset: 0.18em; }
.s-str { color: #fdba74; }
.s-code { color: #6ee7b7; }
.s-route { color: #67e8f9; }
.s-arrow { color: #a5b4fc; }
.s-file { color: #86efac; }
.s-rule { color: #f0abfc; }
.s-dim { color: #7c84a3; }
.s-msg { color: #d5d9ea; }
.s-ink { color: #eef0fa; }
.s-strong { font-weight: 700; }
.s-bullet { color: #f5b700; }
.s-sha { color: #c4b5fd; font-weight: 600; }
.s-ok,
.s-ok-line { color: #86efac; }
.s-error-text { color: #fca5a5; font-weight: 600; }
.s-warning-text { color: #fcd34d; font-weight: 600; }
.s-badge {
  display: inline-block;
  min-width: 3.4em;
  margin-right: 0.1em;
  padding: 0 0.4em;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
}
.s-error { color: #fecaca; background: rgb(239 68 68 / 0.22); }
.s-warning { color: #fde68a; background: rgb(245 183 0 / 0.18); }
.s-key { color: #c4b5fd; }
.s-value { color: #fdba74; }
.s-hash { color: #7c84a3; }
.s-heading { color: #a5b4fc; font-weight: 700; }
.ln {
  display: inline-block;
  width: 1.6em;
  margin-right: 1em;
  text-align: right;
  color: rgb(124 132 163 / 0.55);
  user-select: none;
}

.panel-terminal pre {
  color: #c6cbe0;
  white-space: pre-wrap; /* wrap long output lines instead of clipping them */
  overflow-wrap: anywhere;
}

/* Agents */

.feature {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 60rem) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}
.feature > * {
  min-width: 0;
}
.feature-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

/* Safety */

.safety {
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}
.safety .section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 44rem) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cards li {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(14 18 34 / 0.9), rgb(10 13 25 / 0.6));
  transition: border-color 0.2s;
}
.cards li:hover {
  border-color: var(--line-strong);
}
.cards h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Why, and the closing call to action */

.why {
  margin: 0 auto;
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}
.cta {
  text-align: center;
  padding-block: clamp(4rem, 9vw, 7rem) 2rem;
  border-top: 1px solid var(--line);
  background: radial-gradient(40rem 18rem at 50% 70%, rgb(79 70 229 / 0.18), transparent 70%);
}
.cta .command {
  margin-bottom: 1.75rem;
}

/* Footer: links, then the centered "Powered by" badge */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-block: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  font: 0.78rem/1.8 var(--mono);
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.1rem;
}
.footer-links a:hover {
  color: var(--ink);
}
.powered {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--muted);
  text-decoration: none;
  box-shadow: 0 10px 40px -18px rgb(79 70 229 / 0.8);
  transition: border-color 0.15s;
}
.powered:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.powered .mark {
  width: 1.35rem;
  height: 1.35rem;
}
.powered .wordmark {
  font-size: 1.05rem;
  color: var(--ink);
}
.legal {
  margin: 0;
}

/* Prose (docs, blog, inner pages) */

.prose {
  max-width: 70ch;
}
.prose h2 {
  font-size: 1.7rem;
  margin-top: 2.2em;
}
.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.8em;
}
.prose p,
.prose li {
  color: #c9cde0;
}
.prose li + li {
  margin-top: 0.35em;
}
.prose strong {
  color: var(--ink);
}
.prose :not(pre) > code {
  background: rgb(165 180 252 / 0.1);
  color: var(--ink);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  font-size: 0.85em;
}
.prose .code-panel {
  margin: 1.5rem 0;
  box-shadow: 0 24px 70px -40px rgb(79 70 229 / 0.8);
}
.prose .code-panel pre {
  font-size: 0.82rem;
}
.prose table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  font-size: 0.92rem;
}
.prose th,
.prose td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose tr:last-child > td {
  border-bottom: 0;
}
.prose th {
  font: 500 0.72rem var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.prose td code {
  white-space: nowrap;
}
@media (max-width: 40rem) {
  .prose table {
    display: block;
    overflow-x: auto;
  }
  .prose th,
  .prose td {
    padding: 0.65rem 0.7rem;
  }
}
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgb(79 70 229 / 0.08);
}
.prose blockquote p {
  margin: 0;
}
/* A linked logo in prose (partners, sponsors) becomes a card like the home page */
.prose a:has(> img) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.prose a:has(> img):hover {
  border-color: var(--line-strong);
}
/* Author photo on the About page: a round portrait beside the bio */
.prose .avatar {
  float: left;
  width: 160px;
  height: 160px;
  margin: 0.35rem 1.75rem 1rem 0;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  box-shadow: 0 0 0 6px rgb(79 70 229 / 0.12), 0 20px 50px -20px rgb(79 70 229 / 0.6);
  object-fit: cover;
}
.prose h2 {
  clear: both;
}
@media (max-width: 34rem) {
  .prose .avatar {
    float: none;
    display: block;
    margin: 0.5rem auto 1.5rem;
  }
}
.byline {
  font: 0.8rem var(--mono);
  color: var(--muted) !important;
}

/* Inner page header: the home hero's type and checker grid, smaller */

.page-head {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgb(165 180 252 / 0.075) 1px, transparent 1px) 50% 0 / 56px 56px,
    linear-gradient(90deg, rgb(165 180 252 / 0.075) 1px, transparent 1px) 50% 0 / 56px 56px,
    repeating-conic-gradient(rgb(129 140 248 / 0.05) 0 25%, transparent 0 50%) 50% 0 / 112px 112px;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 75% at 50% 40%, #000 20%, transparent 75%);
}
.page-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
.page-lede {
  margin: 0;
  max-width: 44rem;
  font-size: 1.1rem;
  color: var(--muted);
  text-wrap: balance;
}
.page-head .byline {
  margin: 1.25rem 0 0;
}
/* Prose pages center like the home page; docs keep the header left beside the sidebar */
.page .page-head {
  text-align: center;
}
.page .page-lede {
  margin-inline: auto;
}
.page .prose {
  margin: 0 auto;
}
.page-wide .prose {
  max-width: 66rem;
}
.docs-main .page-head {
  padding-top: 1.5rem;
}
.docs-main .page-head::before {
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 30%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 30% 30%, #000 15%, transparent 75%);
}
.docs-main .prose {
  max-width: 72ch;
}

/* Previous / next */

.pager {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}
@media (min-width: 40rem) {
  .pager {
    grid-template-columns: 1fr 1fr;
  }
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.pager a:hover {
  border-color: var(--accent);
}
.pager span {
  font: 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.pager-next {
  grid-column: -2;
  text-align: right;
}

/* Blog index cards */

.post-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 48rem;
  display: grid;
  gap: 1rem;
}
.post-card {
  display: block;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(14 18 34 / 0.9), rgb(10 13 25 / 0.6));
  color: var(--ink);
  text-decoration: none;
}
.post-card:hover {
  border-color: var(--line-strong);
}
.post-card time {
  font: 0.75rem var(--mono);
  color: var(--muted);
}
.post-card h2 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 500;
}
.post-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.post-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 500 0.85rem var(--display);
  color: var(--accent);
}

.cta-band {
  margin-top: clamp(3rem, 7vw, 5rem);
}

/* Docs */

.docs {
  display: grid;
  gap: 2rem;
  padding-top: 2rem;
}
.docs > * {
  min-width: 0;
}
@media (min-width: 56rem) {
  .docs {
    grid-template-columns: 14rem 1fr;
    gap: 3.5rem;
  }
  .docs-nav {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}
.docs-nav-title {
  font: 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 1.5rem 0 0.75rem;
}
.docs-nav-title + ol + .docs-nav-title {
  margin-top: 2rem;
}
.docs-nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--line);
}
.docs-nav a {
  display: block;
  padding: 0.4rem 0.9rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
}
.docs-nav a:hover {
  color: var(--ink);
}
.docs-nav a[aria-current="page"] {
  color: var(--ink);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgb(165 180 252 / 0.1), transparent);
}

/* Icons */

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
/* Feature icons: at least 65 × 65 px */
.tile {
  display: block;
  width: 65px;
  height: 65px;
  min-width: 65px;
  min-height: 65px;
  padding: 12px; /* glyph ≈ 41px inside the 65px tile */
  border-radius: 16px;
  color: var(--accent);
  background: radial-gradient(circle at 30% 20%, rgb(165 180 252 / 0.16), rgb(79 70 229 / 0.08));
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 12px 32px -14px rgb(79 70 229 / 0.8);
}
.cards .tile {
  margin-bottom: 1.25rem;
}
.tile-quiet {
  color: var(--muted);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-icon {
  width: 1rem;
  height: 1rem;
}
.btn-lg {
  font-size: 0.85rem;
  padding: 0.8rem 1.25rem;
}

/* Sponsored by */

.sponsors {
  text-align: center;
  padding-block: clamp(4rem, 9vw, 6.5rem) 1rem;
  border-top: 1px solid var(--line);
}
.sponsors-text {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}
/* Centered whatever the count: one partner or many logos */
.sponsor-grid {
  list-style: none;
  margin: 0 auto 2.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 66rem;
}
.sponsor-grid > li {
  flex: 0 1 15.5rem;
}
.sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 10rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
}
.sponsor img {
  max-width: 70%;
  max-height: 3rem;
  object-fit: contain;
}
.sponsor-text {
  cursor: default;
}
.sponsor-name {
  font: 500 1.05rem var(--display);
  color: var(--ink);
}
.sponsor-open {
  border-style: dashed;
  border-color: var(--line-strong);
  color: var(--muted);
  font: 0.8rem var(--mono);
  background: transparent;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}
.sponsor-open:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: rgb(165 180 252 / 0.05);
}
.sponsor-open:hover .tile-quiet {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* What is VAGE JS */

.what,
.perf,
.features {
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}
.what .section-title,
.perf .section-title,
.features .section-title {
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}
.trio {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 52rem) {
  .trio {
    grid-template-columns: repeat(3, 1fr);
  }
}
.trio li {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(14 18 34 / 0.9), rgb(10 13 25 / 0.6));
}
.trio .tile {
  margin-bottom: 1.25rem;
}
.trio h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.trio p {
  margin: 0;
  color: var(--muted);
}

/* Performance */

.section-text {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}
.perf-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
.perf-grid > * {
  min-width: 0;
}
.scores {
  --g: 96px;
  margin: 0;
  padding: 1.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
@media (max-width: 40rem) {
  .scores {
    --g: 76px;
    gap: 1.25rem 1.5rem;
  }
}
/* Lighthouse report colors: pass #0c6, average #fa3, fail #f33 */
.lh-pass {
  --lh: #0c6;
}
.lh-average {
  --lh: #fa3;
}
.lh-fail {
  --lh: #f33;
}
.lh-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(var(--g) * 1.3);
}
.lh-score:has(.lh-fraction) {
  width: auto;
}
.lh-gauge {
  position: relative;
  width: var(--g);
  height: var(--g);
}
.lh-gauge svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke-linecap: round;
}
.lh-gauge-base {
  fill: var(--lh);
  stroke: var(--lh);
  opacity: 0.1;
}
.lh-gauge-arc {
  fill: none;
  stroke: var(--lh);
}
@media (prefers-reduced-motion: no-preference) {
  .lh-gauge-arc {
    animation: load-gauge 1s ease both 250ms;
  }
}
@keyframes load-gauge {
  from {
    stroke-dasharray: 0 352;
  }
}
.lh-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: calc(var(--g) * 0.34 + 1.3px) var(--mono);
  color: var(--lh);
}
.lh-fraction {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--g);
  box-sizing: border-box;
  min-width: calc(var(--g) * 1.5);
  padding: 0 calc(var(--g) * 0.2);
  margin-block: 0;
  font: calc(var(--g) * 0.3) var(--mono);
  color: var(--lh);
  background: linear-gradient(rgb(0 204 102 / 0.1), rgb(0 204 102 / 0.1)) center / 100% 60% no-repeat;
  border-radius: calc(var(--g) / 2);
}
.lh-dot {
  width: calc(var(--g) * 0.21);
  height: calc(var(--g) * 0.21);
  margin-right: calc(var(--g) * 0.15);
  border-radius: 50%;
  background: var(--lh);
}
.lh-label {
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.metrics {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.metrics th,
.metrics td {
  padding: 0.8rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 40rem) {
  .metrics th,
  .metrics td {
    padding: 0.7rem 0.6rem;
  }
}
.metrics tbody tr:last-child > * {
  border-bottom: 0;
}
.metrics thead th {
  font: 500 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.metrics tbody th {
  font-weight: 500;
  color: var(--ink);
}
.metrics td {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.metrics td:nth-child(2) {
  color: var(--ok);
  font-weight: 600;
}
.cell-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.45rem;
  vertical-align: -0.15em;
}
.footnote {
  margin: 1.5rem auto 0;
  max-width: 60rem;
  text-align: center;
  font: 0.75rem/1.7 var(--mono);
  color: var(--muted);
}

/* Flexibility */

.flex .points {
  margin-bottom: 1.75rem;
}
.hosts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hosts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: 500 0.85rem var(--display);
  color: var(--ink);
}
.hosts .brand-logo {
  width: 1.25rem;
  height: 1.25rem;
}

/* Fully featured */

.feature-grid {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 40rem) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 80rem) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.feature-grid a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(14 18 34 / 0.9), rgb(10 13 25 / 0.6));
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.feature-grid a:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 50px -30px rgb(79 70 229 / 0.9);
}
@media (prefers-reduced-motion: no-preference) {
  .feature-grid a:hover {
    transform: translateY(-2px);
  }
}
.feature-grid .tile {
  margin-bottom: 1.1rem;
}
.feature-grid h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
}
.feature-grid p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: 0.75rem var(--mono);
  color: var(--accent);
}

/* Partner agencies reuse the sponsor styles */

.partners {
  padding-bottom: clamp(3rem, 6vw, 4rem);
}

/* FAQ: native accordion (details/summary), answers stay in the HTML */

.faq {
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}
.faq .section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(14 18 34 / 0.9), rgb(10 13 25 / 0.6));
  transition: border-color 0.2s;
}
.faq-item:hover,
.faq-item[open] {
  border-color: var(--line-strong);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 500;
}
.faq-icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-item p {
  margin: 0;
  padding: 0 1.4rem 1.3rem;
  color: var(--muted);
}

/* Hero benefits: a quiet row of checks under the buttons */

.benefits {
  list-style: none;
  margin: 2.75rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
}
.benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: 500 0.9rem var(--display);
  color: var(--muted);
  white-space: nowrap;
}
.benefit-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--ok);
}
