/*
 * Phast landing page. Ordered the way the page renders: tokens, base, shared
 * utilities, one block per section, then motion and the responsive layer.
 */

/* ─────────────────────────────  TOKENS  ───────────────────────────── */

:root {
  /* Surfaces, darkest first. --bg is repainted by main.js as the page scrolls. */
  --bg:            #030304;
  --bg-deep:       #020203;
  --surface:       #08080b;
  --surface-raised:#0b0b0f;
  --surface-violet:#130f1c;
  --surface-tile:  #1b1527;

  /* Hairlines, in the order they get darker. */
  --line-faint:    #101014;
  --line:          #17171c;
  --line-strong:   #23232c;
  --line-violet:   #2c2440;
  --line-violet-hi:#4a3d6b;

  /* Text, brightest first. */
  --text:          #f4f4f5;
  --text-bright:   #e4e4e7;
  --text-soft:     #cfcfd4;
  --text-muted:    #a1a1aa;
  --text-dim:      #9a9aa4;
  --text-faint:    #797982;
  --text-ghost:    #52525b;

  --purple:        #a05cff;
  --purple-soft:   #b98cff;
  --purple-tint:   #c39bff;
  --green:         #6ee34a;
  --green-tint:    #8ee86a;
  --cyan:          #7fd7ff;

  --accent-gradient: linear-gradient(120deg, var(--purple), var(--green));

  /* The hairline a pane of glass carries: top catch-light and inner rules. */
  --glass-rule: rgba(255, 255, 255, 0.07);

  --font-sans:    Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', var(--font-sans);
  --font-mono:    'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --page:      1280px;
  --page-pad:  40px;
  /* Height of the sticky nav. Anything that has to sit clear of it reads this. */
  --nav-h:     69px;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 28px;
}

/* ──────────────────────────────  BASE  ────────────────────────────── */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The sticky nav would otherwise sit on top of whatever an anchor jumps to. */
  scroll-padding-top: calc(var(--nav-h) + 20px);
  /* The hero orbs are wider than a phone; clip, not hidden, so .cli can still pin. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}

/* Static fallback; main.js replaces it with a scroll-interpolated colour. */
body {
  background-image: linear-gradient(180deg, #030304 0%, #050609 45%, #1c1830 100%);
  background-attachment: fixed;
}

/* ────────────────────────────  AMBIENT  ───────────────────────────── */

/*
 * A field of soft light behind the page, travelling slower than the content in
 * front of it. Fixed and clipped to the viewport, with the field inside it as
 * tall as the document and pulled upward by main.js at a fraction of the
 * scroll. The orbs are placed by hand in the markup.
 */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* main.js sets the height and the offset; without it the field sits still. */
  height: 100%;
  will-change: transform;
}

/*
 * Not discs: squashed by `--squash`, tilted by `--spin`, and lit by two offset
 * ellipses, so the silhouette is lopsided and no two are alike. Centred by
 * translate, which is carrying the tilt anyway.
 */
/* Per-orb brightness is `opacity` in the markup; the alphas here are shared. */
.ambient__orb {
  position: absolute;
  width: var(--orb);
  height: calc(var(--orb) * var(--squash, 0.72));
  transform: translate(-50%, -50%) rotate(var(--spin, 0deg));
}

/*
 * Gradients rather than a blur filter, to keep a moving layer cheap. Both
 * ellipses are sized so centre plus radius stays inside the box on both axes:
 * a gradient still carrying colour at the edge of its box gets cut square,
 * which is what the default `farthest-corner` sizing does on a non-square box.
 */
.ambient__orb--purple {
  background:
    radial-gradient(ellipse 34% 38% at 38% 42%, rgba(160, 92, 255, 0.16), rgba(160, 92, 255, 0)),
    radial-gradient(ellipse 32% 36% at 66% 60%, rgba(160, 92, 255, 0.12), rgba(160, 92, 255, 0));
}

.ambient__orb--green {
  background:
    radial-gradient(ellipse 30% 40% at 42% 36%, rgba(110, 227, 74, 0.11), rgba(110, 227, 74, 0)),
    radial-gradient(ellipse 34% 30% at 64% 66%, rgba(110, 227, 74, 0.08), rgba(110, 227, 74, 0));
}

/* Everything the reader looks at sits in front of the field. */
main,
.nav,
.footer,
.tag { position: relative; z-index: 1; }

img { max-width: 100%; }

a {
  color: var(--purple-soft);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover { color: #d4bcff; }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--text-soft);
}

::selection { background: rgba(160, 92, 255, 0.35); }

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

/* ───────────────────────────  UTILITIES  ──────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transition: top .2s ease;
}

.skip-link:focus { top: 12px; color: var(--bg); }

/*
 * A garment tag on the edge of the page, pinned to the viewport. The rotation
 * is on the inner span, which keeps this box upright.
 */
.tag {
  position: fixed;
  left: 0;
  /* Flush against the underside of the nav, so the two travel together. */
  top: var(--nav-h);
  z-index: 40;
  /* Stated, not inferred: WebKit does not count the sideways line box of the
     vertical text, leaving a strip only as wide as the padding. */
  width: calc(1.3em + 20px);
  /* The extra bottom padding is the notch depth cut by the swallowtail. */
  padding: 16px 10px 30px;
  /* The one colour outside the purple/green system, so it reads as a stamp.
     Deep enough for the white label to pass AA (4.6:1); #ff4d00 managed 3.3. */
  background: #d63f00;
  font-size: 13px;
  /* Pinned too, so the width above stays the width the text actually needs. */
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  pointer-events: none;
  /* Hangs from the nav like a flag, with a notch cut out of the free end. */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 14px), 0 100%);
}

.tag span {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn--light {
  padding: 9px 17px;
  font-size: 14px;
  background: #fff;
  color: var(--bg);
}

.btn--light:hover { background: var(--text-bright); color: var(--bg); }

.btn--outline {
  border: 1px solid #2a2a34;
  color: var(--text);
}

.btn--outline:hover { border-color: var(--line-violet-hi); color: var(--text); }

.btn--gradient {
  padding: 14px 22px;
  background: var(--accent-gradient);
  color: var(--bg);
}

.btn--gradient:hover { color: var(--bg); filter: brightness(1.08); }

/* Recedes behind the heading it labels, and behind the lede under it. */
.eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.link-arrow {
  display: inline-block;
  margin-top: 36px;
  font-size: 15px;
  font-weight: 600;
}

/* ─────────────────────────────  GLASS  ────────────────────────────── */

/*
 * Every window is a pane over the ambient field: no border, a fill barely
 * there, and a backdrop blur. The inset hairline along the top is the one edge
 * any of them keeps, and it stops a pane dissolving into the page.
 */
.panel__body,
.term,
.code,
.bench {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  box-shadow: inset 0 1px 0 var(--glass-rule);
  overflow: hidden;
}

/* ─────────────────────────  SECTION SHELL  ────────────────────────── */

.section {
  max-width: var(--page);
  margin: 0 auto;
  padding: 108px var(--page-pad) 40px;
}

.section--narrow { max-width: 1080px; }

/*
 * One column: eyebrow, title and docblock start on the same edge and wrap at
 * the same width. The width is the docblock's longest hand-wrapped line.
 */
.section__head {
  max-width: 600px;
  margin: 0 auto 52px;
  text-align: left;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/*
 * Set as a PHP docblock. The lines are wrapped by hand, and a line too long
 * for the screen hangs under its own text rather than under the asterisk.
 */
.section__lede {
  /* Fills the head rather than shrinking to its own text. */
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  color: rgb(121, 169, 120);
}

/* Nothing inside a comment is coloured apart from it, so neither is this. */
.section__lede code {
  font-size: inherit;
  color: inherit;
}

.lede__open,
.lede__line,
.lede__close { display: block; }

/*
 * The asterisks are typed into the markup; only their column is set here.
 * A 3ch indent with the first line pulled 2ch left puts them in column one.
 */
.lede__line {
  padding-left: 3ch;
  text-indent: -2ch;
}

.lede__close { padding-left: 1ch; }

/* A closing aside under a section's exhibit. Same width and margin as the head. */
.section__note {
  max-width: 600px;
  margin: 32px auto 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-faint);
}

.section__note code { color: var(--text-soft); }

/* ───────────────────────────────  NAV  ────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 6, 8, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 16px var(--page-pad);
}

.nav__left  { display: flex; align-items: center; gap: 44px; }
.nav__right { display: flex; align-items: center; gap: 14px; }

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav__links a { color: var(--text-muted); }
.nav__links a:hover { color: var(--text); }

.nav__ghost {
  font-size: 14.5px;
  font-weight: 500;
  color: #d4d4d8;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #000;
  border: 1px solid #1c1c22;
}

/*
 * The gradient is clipped to the glyphs and so reaches only as far as the
 * element's background area, which the synthesised italic overhangs. The
 * padding widens that area; the negative margin gives the space back.
 */
.brand__mark span {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 19px;
  line-height: 1;
  padding-right: 5px;
  margin-right: -5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #fff;
}

/* ──────────────────────────────  HERO  ────────────────────────────── */

.hero {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 92px var(--page-pad) 110px;
  text-align: center;
}

.hero__glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  max-width: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(20px);
}

.hero__orb--purple {
  left: 8%;
  top: 12%;
  background: radial-gradient(circle, rgba(160, 92, 255, 0.42), transparent 62%);
  animation: drift 14s ease-in-out infinite;
}

.hero__orb--green {
  right: 6%;
  top: 26%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(110, 227, 74, 0.34), transparent 62%);
  animation: drift 16s ease-in-out infinite reverse;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.hero__title {
  margin-top: 30px;
  max-width: 900px;
  font-family: var(--font-display);
  font-weight: 800;
  /* The floor fits "PHP dependencies," on a 360px phone. */
  font-size: clamp(32px, 8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero__lede {
  margin-top: 26px;
  max-width: 620px;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--text-muted);
}

.hero__lede code { color: var(--text-bright); }

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  max-width: 100%;
}

/* The install one-liner, with its copy button. */
/* Stretch, so the divider runs full height; the padding is on the command. */
.command {
  display: flex;
  align-items: stretch;
  gap: 12px;
  max-width: 100%;
  padding: 0 0 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 15px;
}

.command__prompt {
  align-self: center;
  color: var(--green);
}

.command__text {
  padding: 13px 0;
  color: var(--text-bright);
  font-size: inherit;
  overflow-x: auto;
  white-space: nowrap;
  /* Firefox needs an explicit basis before a flex child will shrink and scroll. */
  min-width: 0;
  scrollbar-width: none;
}

.command__text::-webkit-scrollbar { display: none; }

/* Fixed square, so the command does not shift when the glyph swaps on copy. */
.command__copy {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: none;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1;
  color: var(--text-faint);
  cursor: pointer;
  transition: color .2s ease;
}

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

/* ─────────────────────  HERO PANEL AND TERMINALS  ─────────────────── */

.panel {
  position: relative;
  width: 100%;
  max-width: 940px;
  margin-top: 68px;
}


.panel__body {
  position: relative;
  text-align: left;
}

.panel__split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}

/* Without this a <pre> of output widens the page instead of scrolling. */
.panel__split > *,
.term__body,
.cli__grid > *,
.command,
.command__text { min-width: 0; }

.panel__split .term__body { border-right: 1px solid var(--glass-rule); }

.term { width: 100%; }

.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--glass-rule);
}

.term__dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.term__dot--red   { background: #ff5f56; }
.term__dot--amber { background: #ffbd2e; }
.term__dot--green { background: #27c93f; }

.term__title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-ghost);
}

.term__title--accent { color: var(--green); }

.term__body {
  margin: 0;
  padding: 26px 26px 30px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-dim);
  overflow-x: auto;
}

.term__cmd    { color: var(--text-bright); }
.term__caret  { color: var(--green); }
.term__ok     { color: var(--cyan); }
.term__dim    { color: var(--text-dim); }
.term__done   { color: var(--text); }
.term__done b { color: var(--green); font-weight: 600; }
.term__err    { color: #ff8a80; }
.term__pkg    { color: var(--cyan); }
.term__ver    { color: #d7c26b; }
.term__id     { color: var(--purple-tint); }
.term__sev    { color: #ffbd2e; }
/* Critical prints red and bold rather than amber, so it carries here too. */
.term__sev--critical { color: #ff5f55; font-weight: 700; }

.term__cursor {
  display: inline-block;
  width: 9px;
  height: 16px;
  margin-left: 6px;
  background: var(--green);
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}

/* The three headline numbers beside the hero terminal. No wash of its own. */
.stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  margin: 0;
  padding: 26px;
}

.stat + .stat { border-top: 1px solid var(--line); padding-top: 22px; }

.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
}

.stat__label {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

/* ─────────────────────────  COMPAT STRIP  ─────────────────────────── */

.compat {
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}

.compat__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 26px var(--page-pad);
  font-size: 14px;
  font-weight: 500;
  color: #d4d4d8;
}

.compat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ────────────────────────────  FEATURES  ──────────────────────────── */

.features {
  position: relative;
  padding: 48px;
  border: 1px solid #2a2440;
  border-radius: var(--radius-lg);
  background: var(--surface-violet);
}

.features__mascot {
  position: absolute;
  top: -74px;
  right: 46px;
  pointer-events: none;
  z-index: 2;
}

.features__mascot img {
  display: block;
  width: 118px;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5));
}

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

.feature {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line-violet);
  border-radius: 18px;
  background: var(--surface-tile);
  transition: border-color .2s ease, background-color .2s ease;
}

.feature:hover {
  border-color: var(--line-violet-hi);
  background: #221a33;
}

/* The category chip, half-overlapping the card's top edge. */
.feature__tag {
  position: absolute;
  top: -10px;
  left: 22px;
  padding: 3px 10px;
  border: 1px solid var(--line-violet);
  border-radius: 7px;
  background: var(--surface-tile);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature__tag--purple { color: var(--purple-tint); }
.feature__tag--green  { color: var(--green-tint); }

.feature h3 {
  margin: 2px 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

.feature code { font-size: 13px; }

/* ───────────────────────────  BENCHMARKS  ─────────────────────────── */

/*
 * The tabs are the card's head rather than a control floating above it, so the
 * two read as a single window and the comparison stays Phast against Composer.
 */
.bench {
  max-width: 720px;
  margin: 56px auto 0;
}

.bench__tabs {
  position: relative;
  display: flex;
  border-bottom: 1px solid var(--glass-rule);
}

/*
 * The indicator travels rather than blinking. A pseudo-element driven by two
 * properties main.js measures off the selected tab, so it stays out of the
 * tablist's children and out of the accessibility tree.
 */
.bench__tabs::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--bench-slider-w, 0);
  height: 2px;
  transform: translateX(var(--bench-slider-x, 0));
  background: var(--accent-gradient);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1),
              width .35s cubic-bezier(.4, 0, .2, 1);
}

/* Set for the first placement only, so the indicator does not fly in on load. */
.bench__tabs.is-instant::after { transition: none; }

/* A zero basis rather than the default, so the four share the width evenly. */
.bench__tab {
  flex: 1 1 0;
  padding: 17px 16px;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-faint);
  cursor: pointer;
  transition: color .25s ease;
}

.bench__tab:hover { color: var(--text-muted); }

.bench__tab.is-active { color: var(--text); }

/*
 * One panel, not three swapped over each other. Changing the numbers in place
 * is the whole transition, so nothing is ever blank or doubled.
 */
.bench__card { padding: 32px; }

.bench__note {
  display: block;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  /* Faint, not ghost: it says how to read the bars, so it has to pass AA. */
  color: var(--text-faint);
}

.bar + .bar { margin-top: 24px; }

.bar__label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 14px;
}

.bar__who { font-weight: 700; }
.bar__who--muted { font-weight: 600; color: var(--text-muted); }

.bar__time {
  font-family: var(--font-mono);
  color: var(--text-faint);
}

.bar__time--fast { color: var(--green); font-weight: 600; }

.bar__track {
  height: 18px;
  border-radius: 999px;
  background: var(--line-faint);
  overflow: hidden;
}

/* Both bars carry the accent, so length is the only thing separating them. */
.bar__fill {
  height: 100%;
  border-radius: 999px;
  /* Each bar runs the full ramp across its own length, not across the track. */
  background: var(--accent-gradient);
}

/*
 * No transition on the width: main.js runs the bars frame by frame so both
 * grow at one rate. The widths in the markup are where the two runs end up.
 */

.bench__factor {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
}

/* ───────────────────────────  CODE BLOCKS  ────────────────────────── */

/* A file rather than a terminal: the .term shell, titled with a filename. */
.code {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.code__name {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--glass-rule);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

.code__name::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--line-violet-hi);
}

.code--accent .code__name { color: var(--text-bright); }
.code--accent .code__name::before { background: var(--green); }

.code__body {
  margin: 0;
  padding: 22px 24px 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-soft);
  overflow-x: auto;
}

/* Syntax tokens, shared by the TOML and JSON samples. */
.tok-sec  { color: var(--purple-tint); }
.tok-str  { color: var(--green-tint); }
.tok-key  { color: var(--cyan); }
.tok-com  { color: var(--text-ghost); }
.tok-punc { color: var(--text-ghost); }

/* Two panels with a marker between them. */
.split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.split__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  white-space: nowrap;
}

.split__arrow span:first-child {
  font-size: 22px;
  color: var(--purple-soft);
}

.split .code--muted { opacity: 0.72; }

/* ────────────────────────  DIAGNOSTICS SECTION  ───────────────────── */

.diag {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: start;
}

.hints {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hint {
  padding: 16px 18px;
  border: 1px solid var(--line-faint);
  border-left: 2px solid var(--line-violet-hi);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, #0a0a0e, #060608);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

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

/* ────────────────────────  WORKSPACES SECTION  ────────────────────── */

.workspace {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.workspace__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.workspace__fact h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.workspace__fact p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.tree { color: var(--text-dim); }
.tree b { color: var(--text-bright); font-weight: 500; }
.tree i { color: var(--text-ghost); font-style: normal; }

/* ──────────────────────────────  FAQ  ─────────────────────────────── */

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
  max-width: 1080px;
  margin: 0 auto;
}

.faq__item h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq__item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.faq__item code { font-size: 13.5px; }

.faq__item + .faq__item { padding-top: 0; }

/* ──────────────────────────  CLI SHOWCASE  ────────────────────────── */

/*
 * A tall section with a pinned viewport: scrolling the extra height advances
 * the selected command. That height is main.js's room to scrub, and below the
 * tablet breakpoint it goes and the tabs work by click alone.
 */
.cli {
  position: relative;
  height: 380vh;
}

.cli__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 72px var(--page-pad);
}

.cli__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cli__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 64px;
  align-items: center;
}

.cli__copy {
  position: relative;
  height: 224px;
}

.cli__pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease;
}

.cli__pane.is-active { opacity: 1; transform: translateY(0); }

.cli__cmd {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--green);
}

.cli__pane h3 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cli__pane p {
  max-width: 400px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}


.cli__tabs {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.cli__tab {
  position: relative;
  padding: 12px 0 12px 18px;
  border: 0;
  background: none;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: left;
  color: var(--text-faint);
  cursor: pointer;
  transition: color .3s ease;
}

.cli__tab.is-active { color: var(--text); }

.cli__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line-strong);
}

/* Scrubbed by main.js: scaleY tracks progress through that tab's slice. */
.cli__rail--fill {
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top;
}


.cli__screens {
  position: relative;
  height: 450px;
}

.cli__screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}

.cli__screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cli__screen .term__body {
  padding: 28px 28px 32px;
  font-size: 14.5px;
  line-height: 2;
}

/* ──────────────────────────────  CTA  ─────────────────────────────── */

.cta-section { padding-bottom: 108px; }

.cta__wrap {
  position: relative;
  padding: 4px;
}

.cta__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 680px;
  height: 680px;
  max-width: 110%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 92, 255, 0.22), rgba(160, 92, 255, 0.08) 46%, transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

/*
 * Borderless like every other pane, but with a fill of its own rather than the
 * near-transparent one: there is no ambient light behind this stretch to pick up.
 */
.cta {
  position: relative;
  padding: 84px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 30, 40, 0.55), rgba(12, 12, 18, 0.42));
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 var(--glass-rule),
    0 40px 90px -50px rgba(0, 0, 0, 0.8);
  transition: transform .45s ease, box-shadow .45s ease;
}

/* The bright seam along the top edge that sells the glass. */
.cta__highlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

/* Follows the pointer; positioned by main.js. */
.cta__spot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.cta__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.cta p {
  margin-top: 18px;
  max-width: 525px;
  font-size: 19px;
  color: var(--text-soft);
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ─────────────────────────────  FOOTER  ───────────────────────────── */

.footer {
  border-top: 1px solid var(--line-faint);
  background: var(--bg-deep);
}

.footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  /* The bottom value is the gap before the wordmark, stated here because the
     meta row that used to provide it is commented out. */
  padding: 128px var(--page-pad) 125px;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer__brand p {
  margin-top: 18px;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-faint);
}

.footer__brand .brand { margin-bottom: 18px; }

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #1e1e26;
  border-radius: var(--radius-sm);
  transition: border-color .2s ease;
}

.footer__social a:hover { border-color: #333340; }

.footer__title {
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #b6b6bf;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15.5px;
}

.footer__col a { color: var(--text-dim); }
.footer__col a:hover { color: var(--text-bright); }

.footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 72px;
  padding: 44px 0 40px;
  border-top: 1px solid var(--line-faint);
  font-size: 13px;
  color: var(--text-ghost);
}

/*
 * The oversized wordmark closing the page, flush to both window edges. Height
 * follows from the viewBox, so the word scales with the window; the aspect is
 * true ink cut above the baseline. It is a <path> rather than text because
 * engines synthesise the italic differently. See the README before changing it.
 */
.footer__wordmark {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

/* ─────────────────────────────  MOTION  ───────────────────────────── */

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

@keyframes drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(24px, -18px); }
  100% { transform: translate(0, 0); }
}

/* ──────────────────────────  RESPONSIVE  ──────────────────────────── */

@media (max-width: 1080px) {
  :root { --page-pad: 28px; }

  .nav__links { display: none; }

  /* Too little width to give up a strip of it to a label. */
  .tag { display: none; }

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

  .faq { gap: 20px 32px; }

  /* The exhibits stack, so the arrow between the manifests turns to point down. */
  .split { grid-template-columns: 1fr; gap: 16px; }
  .split__arrow { flex-direction: row; gap: 12px; }
  .split__arrow span:first-child { transform: rotate(90deg); }

  .diag,
  .workspace { grid-template-columns: 1fr; }

  .workspace__facts { grid-template-columns: 1fr; gap: 24px; }

  .features { padding: 40px 28px; }

  /* Below this width the tabs are the only control, so the height goes. */
  .cli { height: auto; }

  .cli__sticky {
    position: static;
    min-height: 0;
    padding: 108px var(--page-pad) 40px;
  }

  .cli__grid { grid-template-columns: 1fr; gap: 36px; }

  .cli__copy { height: auto; }

  .cli__pane { position: relative; inset: auto; }
  .cli__pane:not(.is-active) { display: none; }

  .cli__screens { height: auto; }

  .cli__screen { position: relative; inset: auto; }
  .cli__screen:not(.is-active) { display: none; }

  .footer__cols { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__inner { padding-top: 88px; }
}

@media (max-width: 760px) {
  .hero { padding: 64px var(--page-pad) 72px; }

  .panel { margin-top: 44px; }
  .panel__split { grid-template-columns: 1fr; }
  .panel__split .term__body { border-right: 0; border-bottom: 1px solid var(--glass-rule); }

  .stats { flex-direction: row; flex-wrap: wrap; gap: 18px; }
  .stat { flex: 1 1 120px; }
  .stat + .stat { border-top: 0; padding-top: 0; }
  .stat__value { font-size: 32px; }

  .section { padding: 72px var(--page-pad) 24px; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .command { font-size: 13px; }

  .compat__inner { gap: 20px 24px; font-size: 13px; }

  .features { padding: 32px 20px; }
  .features__mascot { right: 16px; top: -58px; }
  .features__mascot img { width: 84px; }

  .features__grid,
  .faq { grid-template-columns: 1fr; }

  .bench__card { padding: 24px; }

  .bench__tab { flex: 1 1 auto; padding: 9px 4px; font-size: 13px; }

  .cta { padding: 56px 24px; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { justify-content: center; }

  .footer__cols { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__inner { padding-top: 64px; }
  .footer__meta { margin-top: 48px; }
}

@media (max-width: 359px) {
  .bench__tab { white-space: normal; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
