/* ==========================================================================
   CSVBeast website: layout, tokens and components.
   ========================================================================== */

/* ---------- Fonts (all SIL Open Font License, see /fonts) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Pixel Line";
  src: url("../fonts/GeistPixel-Line.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/Literata-opsz-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  --font-pixel: "Geist Pixel Line", "Geist Mono", ui-monospace, monospace;
  --font-heading: "Literata", Georgia, "Times New Roman", serif;
  --heading-weight: 300;

  --container: 80rem;
  --banner-h: 36px;
  --nav-h: 57px;
  --header-h: calc(var(--banner-h) + var(--nav-h));

  /* Palette */
  --zinc-950: #09090b;
  --zinc-900: #18181b;
  --zinc-800: #27272a;
  --zinc-700: #3f3f46;
  --zinc-600: #52525c;
  --zinc-500: #71717b;
  --zinc-400: #9f9fa9;
  --zinc-300: #d4d4d8;
  --zinc-200: #e4e4e7;
  --zinc-50: #fafafa;
  --brand: #735adc;
  --brand-bright: #9176ff;
  --brand-soft: #c3b4ff;
  --green: #05df72;
  --amber: #fdc700;
  --orange: #ff9f45;
  --red: #ff6467;

  /* Semantic (dark surface is the default) */
  --page: var(--zinc-950);
  --bg: var(--zinc-950);
  --fg: var(--zinc-50);
  --fg-2: rgb(250 250 250 / 0.8);
  --fg-3: rgb(250 250 250 / 0.5);
  --border: rgb(255 255 255 / 0.1);
  --line: rgb(250 250 250 / 0.2);
  --primary: var(--zinc-200);
  --on-primary: var(--zinc-900);
  --success: var(--green);
  --warning: var(--amber);
  --danger: var(--red);
  --code-bg: var(--zinc-900);
  --dots: rgb(250 250 250 / 0.25);
}

.surface-light {
  --bg: #ffffff;
  --fg: var(--zinc-950);
  --fg-2: var(--zinc-600);
  --fg-3: var(--zinc-500);
  --border: var(--zinc-300);
  --line: var(--zinc-300);
  --primary: var(--zinc-900);
  --on-primary: var(--zinc-50);
  --success: #009966;
  --dots: var(--zinc-400);
  background: var(--bg);
  color: var(--fg);
}
.surface-brand {
  --bg: var(--brand);
  --fg: #ffffff;
  --fg-2: rgb(255 255 255 / 0.8);
  --fg-3: rgb(255 255 255 / 0.7);
  --border: rgb(255 255 255 / 0.1);
  background: var(--bg);
  color: var(--fg);
}
.surface-raised { background: var(--zinc-900); }
.surface-raised-2 { background: var(--zinc-800); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border: 0 solid var(--border); }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h); /* links to #sections land below the sticky header */
}
body {
  min-height: 100vh;
  background: var(--page);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.pi { fill: currentColor; shape-rendering: crispEdges; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }
.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;
}

/* ---------- Layout primitives ---------- */
.section { position: relative; width: 100%; border-top-width: 1px; }
.section--flush { border-top-width: 0; }
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  border-inline-width: 1px;
}
.pad-x { padding-inline: 24px; }
.divider-lines {
  height: 64px;
  border-top-width: 1px;
  background-image: repeating-linear-gradient(to right, var(--border) 0, var(--border) 1px, transparent 1px, transparent 8px);
}

/* ---------- Type ---------- */
.heading {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  text-wrap: balance;
}
.h1 { font-size: 48px; line-height: 1; letter-spacing: -0.025em; }
.h2 { font-size: 36px; line-height: 40px; }
.h3 { font-size: 24px; line-height: 32px; }
.muted { color: var(--fg-2); }
.text-lg { font-size: 18px; line-height: 28px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-xs { font-size: 12px; line-height: 16px; }
.lead { color: var(--fg-2); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.mono { font-family: var(--font-mono); }

/* Section headers */
.sec-head { display: flex; flex-direction: column; gap: 16px; }
.sec-head--center { align-items: center; text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--primary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
  transition: box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 10px; height: 10px; flex: none; transition: transform 0.15s ease; }
.btn:hover svg { transform: translateX(2px); }
.btn:active { opacity: 0.75; }
.btn--outline { color: var(--fg); background: transparent; }
.btn--outline:hover { background: var(--primary); color: var(--on-primary); }
.btn--solid { background: var(--primary); color: var(--on-primary); }
.btn--solid:hover { box-shadow: 0 0 0 8px var(--border); }
.btn--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--brand:hover { box-shadow: 0 0 0 8px rgb(115 90 220 / 0.15); }
.btn--white { background: #fff; border-color: #fff; color: var(--zinc-900); }
.btn--white:hover { box-shadow: 0 0 0 8px rgb(255 255 255 / 0.15); }
.btn--block { width: 100%; }
.btn--sm { height: 32px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--zinc-900);
  color: var(--fg);
}
.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--banner-h);
  padding: 0 16px;
  background: var(--zinc-50);
  color: var(--zinc-900);
  border-bottom-width: 1px;
  font-size: 14px;
  line-height: 20px;
}
.announce__msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce__link {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.announce__link svg { width: 10px; height: 10px; transition: transform 0.15s ease; }
.announce:hover .announce__link svg { transform: translateX(2px); }

.nav { position: relative; height: var(--nav-h); border-bottom-width: 1px; }
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 24px;
  border-inline-width: 1px;
}
.nav__logo { display: flex; align-items: center; height: 100%; }
/* CSVBeast wordmark: the pixel beast plus "csvbeast" in Geist Mono, with "csv" dimmed.
   The mark is a 9 x 8 pixel grid, so its sizes are whole multiples (27 x 24 = 3px pixels). */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.logo__mark { width: 27px; height: 24px; flex: none; color: currentColor; shape-rendering: crispEdges; }
.logo__word {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.logo__dim { opacity: 0.55; }
.nav__menu { display: none; height: 100%; }
.nav__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: 100%;
  border-right-width: 1px;
}
.nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  padding: 0 28px;
  border-left-width: 1px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}
.nav__link svg { width: 12px; height: 12px; margin-left: 4px; position: relative; top: 1px; }
.nav__link:hover { background: var(--brand); color: #fff; }
.nav__link svg { transition: transform 0.2s ease; }

/* Dropdown panels */
.nav__item--menu { position: relative; }
.nav__panel {
  display: none;
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 60;
  width: 340px;
  padding: 4px;
  background: var(--zinc-900);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.35);
}
.nav__panel::before { content: ""; position: absolute; left: -1px; right: -1px; top: -8px; height: 8px; }
.nav__panel--wide { display: none; width: 673px; }
.nav__item--menu:hover .nav__panel,
.nav__item--menu.is-open .nav__panel { display: flex; }
.nav__item--menu:hover > .nav__link,
.nav__item--menu.is-open > .nav__link { background: var(--brand); color: #fff; }
.nav__item--menu:hover > .nav__link svg,
.nav__item--menu.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__col { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; padding: 16px; }
.nav__col + .nav__col { border-left-width: 1px; }
.nav__eyebrow { margin-bottom: 8px; }
.nav__entry { display: flex; gap: 8px; padding: 8px; }
.nav__entry:hover, .nav__entry:focus-visible { background: var(--zinc-800); outline: none; }
.nav__entry-icon { display: flex; align-items: flex-start; justify-content: center; width: 24px; height: 24px; flex: none; color: var(--fg-3); }
.nav__entry-icon svg { width: 16px; height: 16px; }
.nav__entry:hover .nav__entry-icon { color: var(--fg); }
.nav__entry-title { display: block; margin-bottom: 4px; font-family: var(--font-heading); font-size: 14px; line-height: 1; font-weight: 500; }
.nav__entry-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 16.5px;
  color: var(--fg-3);
}
.nav__actions { display: flex; align-items: center; gap: 16px; height: 100%; }
.nav__star {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  font-weight: 600;
  color: rgb(250 250 250 / 0.8);
}
.nav__star svg { width: 20px; height: 20px; margin-right: 8px; }
.nav__star:hover { color: var(--fg); }
.nav__auth { display: none; align-items: center; gap: 16px; height: 100%; }
.nav__login {
  display: inline-flex; align-items: center; height: 32px; padding: 0 10px;
  font-size: 14px; font-weight: 500; border: 1px solid transparent;
}
.nav__login:hover { background: rgb(250 250 250 / 0.1); }
.nav__signup {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
  font-size: 14px; font-weight: 500; border: 1px solid var(--fg);
}
.nav__signup svg { width: 10px; height: 10px; }
.nav__signup:hover { background: var(--fg); color: var(--zinc-950); }
.nav__burger { display: flex; align-items: center; height: 100%; }
.nav__burger svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  overflow-y: auto;
  background: var(--zinc-900);
  border-top-width: 1px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom-width: 1px;
  font-size: 16px;
  font-weight: 500;
}
.mobile-menu__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px; }
.mobile-menu__actions .btn { width: 100%; }
body.menu-open { overflow: hidden; }

@media (min-width: 1280px) {
  .nav__menu { display: flex; }
  .nav__auth { display: flex; }
  .nav__burger { display: none; }
  .nav__star { font-size: 14px; font-weight: 500; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero .container { display: grid; padding-top: var(--header-h); }
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 24px;
}
.hero__title { margin-bottom: 24px; }
.hero__lead { max-width: 32rem; margin-bottom: 40px; text-wrap: pretty; }
.hero__actions { display: flex; align-items: flex-start; gap: 16px; }
.hero__kicker { margin-bottom: 20px; color: var(--brand-soft); }

/* Pixel word with a small glitch */
.pixel-word {
  position: relative;
  display: inline-block;
  margin-block: -0.1em; /* keep the pixel font from growing the line box */
  font-family: var(--font-pixel);
  animation: glitch-shift 6s ease-in-out infinite, glitch-split 1.6s infinite;
}
.pixel-word::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgb(9 9 11 / 0.1);
  opacity: 0;
  animation: glitch-flicker 2.4s infinite;
}
@keyframes glitch-shift {
  0%, 91%, 100% { translate: 0; }
  92% { translate: -2px 0; }
  93.5% { translate: 2px 0; }
  95% { translate: -1px 0; }
  96.5% { translate: 1px 0; }
}
@keyframes glitch-split {
  0%   { text-shadow: 0.4px 0 1px rgb(0 30 255 / 0.5), -0.4px 0 1px rgb(255 2 80 / 0.3), 0 0 3px; }
  10%  { text-shadow: 2.4px 0 1px rgb(0 30 255 / 0.5), -2.4px 0 1px rgb(255 2 80 / 0.3), 0 0 3px; }
  20%  { text-shadow: 0.1px 0 1px rgb(0 30 255 / 0.5), -0.1px 0 1px rgb(255 2 80 / 0.3), 0 0 3px; }
  40%  { text-shadow: 1.2px 0 1px rgb(0 30 255 / 0.5), -1.2px 0 1px rgb(255 2 80 / 0.3), 0 0 3px; }
  60%  { text-shadow: 0.3px 0 1px rgb(0 30 255 / 0.5), -0.3px 0 1px rgb(255 2 80 / 0.3), 0 0 3px; }
  80%  { text-shadow: 1.8px 0 1px rgb(0 30 255 / 0.5), -1.8px 0 1px rgb(255 2 80 / 0.3), 0 0 3px; }
  100% { text-shadow: 0.4px 0 1px rgb(0 30 255 / 0.5), -0.4px 0 1px rgb(255 2 80 / 0.3), 0 0 3px; }
}
@keyframes glitch-flicker {
  0%, 100% { opacity: 0.3; }
  20% { opacity: 0.9; }
  35% { opacity: 0.2; }
  55% { opacity: 0.8; }
  70% { opacity: 0.1; }
  85% { opacity: 0.6; }
}

/* Tree panel */
.tree { display: flex; flex-direction: column; border-top-width: 1px; }
.tree__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 12px 24px;
  border-bottom-width: 1px;
}
.tree__body {
  --indent: 32px;
  position: relative;
  flex: 1;
  min-height: 440px;
  overflow: hidden;
  padding: 24px;
}
.tree__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, var(--border) 0, var(--border) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(to bottom, var(--border) 0, var(--border) 1px, transparent 1px, transparent 24px);
  background-position: -1px -1px;
  opacity: 0.25;
  -webkit-mask-image: linear-gradient(to right, #000 80%, transparent), linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 80%, transparent), linear-gradient(to bottom, #000 40%, transparent);
  mask-composite: intersect;
}
.tree__list { position: relative; }
.tree__row { position: relative; height: 56px; padding-left: calc(var(--indent) * var(--level, 0)); }
/* Connector lines: --x is the level whose vertical line this is */
.tl { position: absolute; width: 1px; background: var(--line); left: calc(var(--indent) * var(--x) + 23px); }
.tl-full { top: 0; bottom: 0; }
.tl-elbow { top: 0; height: 24px; }
.tl-stub { top: 48px; bottom: 0; }
.tl-h { top: 24px; height: 1px; width: calc(var(--indent) - 23px); }

/* Shared "item card" (mono, bordered row used in several illustrations) */
.item-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgb(250 250 250 / 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.item-card--tall { height: 48px; }
.item-card--compact { padding: 8px; }
.item-card--brand { border-color: var(--brand); background: rgb(115 90 220 / 0.2); }
.item-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; place-self: start;
}
.item-card__icon svg { width: 16px; height: 16px; color: var(--fg-3); }
.item-card__head {
  min-width: 0;
  margin-right: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.item-card__head--stack { display: block; }
.item-card__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-card__prefix { color: var(--fg-3); }
.item-card__title { font-weight: 600; }
.item-card__desc { flex: none; font-size: 12px; text-transform: uppercase; color: var(--fg-3); }
.item-card__head--stack .item-card__desc { margin-top: 2px; font-size: 0.85em; }
.item-card__desc .ok { color: var(--success); }
.item-card__dot {
  width: 6px; height: 6px; margin-right: 4px; border-radius: 999px;
  background: var(--fg-3); place-self: center;
}
.item-card__dot--ok { background: var(--success); box-shadow: 0 0 0 4px rgb(5 223 114 / 0.2); }
.item-card__dot--brand { background: var(--brand-bright); }
.item-card__dot--top { place-self: start; }

@media (min-width: 640px) {
  .tree__body { --indent: 40px; }
  .item-card--tall { font-size: 14px; line-height: 20px; }
}
@media (min-width: 768px) {
  .hero__copy { padding-inline: 32px; }
  .h1 { font-size: 72px; }
  .h2 { font-size: 48px; line-height: 48px; }
  .tree__head { padding-inline: 32px; }
  .tree__body { padding: 32px; }
}
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1fr 1fr; }
  .hero__copy { padding-block: 128px; }
  .tree { border-top-width: 0; border-left-width: 1px; }
}
@media (max-width: 639px) {
  .item-card__head:not(.item-card__head--stack) .item-card__desc { display: none; }
}

/* ==========================================================================
   Logo strip
   ========================================================================== */
.logos { border-bottom-width: 1px; }
.logos .container { border-top-width: 0; }
.logos__label { padding: 12px 24px; border-bottom-width: 1px; text-align: center; }
.logos__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 20px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  color: #fff;
}
.logos__item:nth-child(2n) { border-right-width: 0; }
.logos__item:nth-last-child(-n + 2) { border-bottom-width: 0; }
.ph-logo { display: inline-flex; align-items: center; gap: 8px; height: 23px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.ph-logo svg { width: 20px; height: 20px; flex: none; }
@media (min-width: 768px) {
  .logos__grid { grid-template-columns: repeat(5, 1fr); }
  .logos__item { min-height: 76px; }
  .logos__item:nth-child(2n) { border-right-width: 1px; }
  .logos__item:nth-child(5n) { border-right-width: 0; }
  .logos__item:nth-last-child(-n + 5) { border-bottom-width: 0; min-height: 75px; }
}

/* ==========================================================================
   Problem / comparison
   ========================================================================== */
.problem__head { max-width: 48rem; padding: 64px 0 32px; }
.compare { display: flex; flex-direction: column; }
.compare__col { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.compare__head { padding: 24px; border-top-width: 1px; }
.compare__fig { position: relative; flex: 1; padding: 24px; }
.compare__fig--neutral {
  background-color: #3a3a40;
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.22) 0.9px, transparent 1.2px);
  background-size: 4px 4px;
}
.compare__fig--brand { background: var(--brand); }

.window {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: var(--code-bg);
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 0 0 1px var(--code-bg);
  color: var(--zinc-50);
}
.window__dots { display: flex; gap: 8px; }
.window__dots span { width: 12px; height: 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.1); background: var(--zinc-700); }
.window__dots--colour span:nth-child(1) { background: #ff5f57; border-color: transparent; }
.window__dots--colour span:nth-child(2) { background: #febc2e; border-color: transparent; }
.window__dots--colour span:nth-child(3) { background: #28c840; border-color: transparent; }

.job {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0.5px solid rgb(255 255 255 / 0.1);
}
.job__icon { padding-top: 2px; }
.job__icon svg { width: 16px; height: 16px; }
.job__icon--bad { color: var(--danger); }
.job__icon--good { color: var(--green); }
.job__title { font-size: 14px; line-height: 19.25px; }
.job__sub { font-size: 12px; line-height: 16px; color: rgb(250 250 250 / 0.5); }
.job__sub a { text-decoration: underline; text-underline-offset: 2px; }
.badge {
  align-self: center;
  height: fit-content;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.badge--bad { color: var(--danger); background: rgb(255 100 103 / 0.08); }
.badge--good { color: var(--green); background: rgb(5 223 114 / 0.08); }
.alert {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--warning);
  background: rgb(253 199 0 / 0.08);
  color: var(--warning);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}
.alert svg { width: 16px; height: 16px; flex: none; }

.benefits { display: flex; flex-direction: column; }
.benefit { display: flex; flex: 1; flex-direction: column; gap: 16px; padding: 24px; }
.benefit + .benefit { border-top-width: 1px; }
.benefit__icon { width: 16px; height: 16px; color: var(--success); }
.benefit__title { font-size: 16px; line-height: 24px; margin-bottom: 2px; }
.benefit__text { font-size: 14px; line-height: 20px; color: var(--fg-3); }

@media (min-width: 768px) {
  .benefits { flex-direction: row; }
  .benefit { padding-inline: 32px; }
  .benefit + .benefit { border-top-width: 0; border-left-width: 1px; }
}
@media (min-width: 1024px) {
  .compare { flex-direction: row; }
  .compare__col + .compare__col { border-left-width: 1px; }
}

/* ==========================================================================
   Capabilities (2 x 2 feature grid)
   ========================================================================== */
.caps__head { max-width: 56rem; padding: 64px 0; }
.caps__head .lead { max-width: 36rem; }
.caps__grid { display: grid; }
.cap {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  overflow: hidden;
  padding: 24px;
  border-top-width: 1px;
}
.cap__art { display: flex; align-items: center; min-width: 0; }
.cap__title { margin-top: 32px; }
.cap__text { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--fg-2); }
@media (min-width: 768px) {
  .caps__head { padding-bottom: 48px; }
  .caps__grid { grid-template-columns: 1fr 1fr; }
  .cap { padding: 36px 32px; }
  .cap:nth-child(odd) { border-right-width: 1px; }
}

/* Product cards: the same grid, with a kicker above each title and a link below the text.
   Five subgrid rows, so kickers, titles and links line up across each pair of cards. */
.caps--products .cap { grid-row: span 5; }
.caps--products .cap__title { margin-top: 8px; }
.cap__kicker { margin-top: 32px; }
.cap__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  align-self: end;
  margin-top: 24px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--fg);
}
.cap__link svg { width: 10px; height: 10px; transition: transform 0.15s ease; }
.cap__link:hover svg { transform: translateX(2px); }

/* Art 1: blocks */
.blocks { display: grid; grid-template-columns: 24px 1fr; width: 100%; font-family: var(--font-mono); font-size: 12px; line-height: 16px; }
.blocks__parent, .blocks__child { grid-template-columns: 24px minmax(0, 1fr) auto; }
.blocks__parent { grid-column: 1 / -1; }
.blocks__child { grid-column: 2; }
.blocks__cells { display: flex; gap: 4px; }
.blocks__cell {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 30px; padding: 0 2px;
  border: 1px solid var(--line);
  font-size: 0.85em; font-weight: 500; white-space: nowrap;
}
.blocks__cell--shared { opacity: 0.55; border-style: dashed; }
.blocks__cell--changed { border-color: var(--success); color: var(--success); background: rgb(5 223 114 / 0.06); }
.blocks__gap { position: relative; grid-column: 1 / -1; height: 24px; }
.blocks__elbow { position: absolute; left: 11px; top: 0; width: 13px; height: 44px; border-left: 1px solid var(--fg-3); border-bottom: 1px solid var(--fg-3); }
.blocks__links { position: absolute; right: 8px; top: 0; bottom: 0; display: flex; gap: 4px; }
.blocks__links span { width: 52px; display: flex; justify-content: center; }
.blocks__links span::before { content: ""; width: 0; height: 100%; border-left: 1px dashed var(--fg-3); }
.blocks .item-card { padding: 8px; }
.cap__art { container-type: inline-size; }
@container (max-width: 520px) {
  .blocks .blocks__cells { grid-column: 1 / -1; justify-content: flex-end; margin-top: 8px; }
  .blocks .item-card__head { margin-right: 0; }
}

/* Art 2: compute card */
.compute {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  background: rgb(250 250 250 / 0.01);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
}
.compute__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compute__name { display: flex; align-items: center; gap: 8px; }
.compute__name svg { width: 14px; height: 14px; color: var(--fg-3); }
.toggle { display: flex; align-self: flex-end; border: 1px solid var(--line); background: rgb(250 250 250 / 0.05); }
.toggle button {
  display: flex; align-items: center; gap: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono); font-size: 12px; line-height: 16px;
  text-transform: uppercase; color: var(--fg-3);
}
.toggle button::before { content: ""; width: 4px; height: 4px; border-radius: 999px; background: currentColor; }
.toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 600; }
.compute__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: 160px; }
.meter {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid rgb(250 250 250 / 0.15);
  background: rgb(250 250 250 / 0.04);
}
.meter__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 4px; padding: 8px; text-transform: uppercase;
}
.meter__label { display: flex; align-items: center; gap: 6px; }
.meter__label svg { width: 12px; height: 12px; }
.meter__value { color: var(--orange); }
.meter__value small { font-size: inherit; color: var(--fg-3); }
.meter__chart {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  background-image: repeating-linear-gradient(to right, var(--border) 0, var(--border) 1px, transparent 1px, transparent 8px);
}
.meter__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; color: rgb(250 250 250 / 0.7); }
.compute.is-idle .meter__value { color: var(--fg-3); }

/* Art 3: terminal */
.wake { display: grid; grid-template-columns: 5fr 4fr; grid-template-rows: 1fr auto 1fr; width: 100%; height: 224px; }
.wake .window { grid-column: 1; grid-row: 1 / span 3; padding: 12px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; min-width: 0; overflow: hidden; }
.term__query { white-space: pre; }
.term__kw { color: var(--brand-soft); font-weight: 600; }
.term__cursor {
  display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px;
  background: rgb(250 250 250 / 0.5); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.term__table {
  overflow: hidden;
  font-family: var(--font-mono);
  color: var(--fg-2);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, rgb(0 0 0 / 0.5));
  mask-image: linear-gradient(to bottom, #000 50%, rgb(0 0 0 / 0.5));
}
.wake__link { grid-column: 2; width: 50%; height: 50%; border-right: 1px solid var(--fg-3); }
.wake__link--top { grid-row: 1; align-self: end; border-top: 1px solid var(--fg-3); }
.wake__link--bottom { grid-row: 3; align-self: start; border-bottom: 1px solid var(--fg-3); }
.wake__card { grid-column: 2; grid-row: 2; padding-left: 16px; }
.wake__card .item-card { padding: 8px; }

/* Art 4: marquee tags */
.tags {
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  width: 100%; height: 224px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee { --gap: 16px; --duration: 40s; display: flex; gap: var(--gap); overflow: hidden; }
.marquee__track {
  display: flex; flex: none; justify-content: space-around; gap: var(--gap);
  min-width: 100%;
  animation: marquee var(--duration) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
.tag {
  flex: none;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgb(24 24 27 / 0.4);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 15px;
  white-space: nowrap;
}

/* ==========================================================================
   Use cases (light)
   ========================================================================== */
.uses__head { max-width: 48rem; padding: 64px 0; }
.uses__head .lead { max-width: 28rem; }
.uses__grid { display: grid; }
.use {
  display: flex;
  flex-direction: column;
  min-height: 288px;
  padding: 24px;
  border-top-width: 1px;
  transition: background-color 0.15s ease;
}
.use__icon { width: 48px; height: 48px; color: var(--brand); }
.use__body { margin-top: auto; padding-top: 64px; }
.use__text { margin-top: 8px; color: var(--fg-3); }
.use:hover { background: var(--brand); }
.use:hover .use__icon, .use:hover .use__title, .use:hover .use__text { color: #fff; }
@media (min-width: 768px) {
  .uses__head { padding-bottom: 48px; }
  .uses__grid { grid-template-columns: repeat(3, 1fr); }
  .use { min-height: 344px; }
  .use + .use { border-left-width: 1px; }
}

/* ==========================================================================
   Paths (light): accordion + diagram
   ========================================================================== */
.paths__head { max-width: 56rem; padding: 64px 0; }
.paths__head .lead { max-width: 36rem; }
.paths__grid { display: grid; border-top-width: 1px; }
.accordion { display: flex; flex-direction: column; }
.acc + .acc { border-top-width: 1px; }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 25px 24px;
  list-style: none;
  cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc__label { display: block; margin-bottom: 8px; }
.acc__title { display: block; font-size: 18px; line-height: 28px; font-weight: 500; }
.acc__chev { width: 16px; height: 16px; flex: none; transition: transform 0.2s ease; }
.acc[open] .acc__chev { transform: rotate(180deg); }
.acc__body { padding: 0 24px 44px; }
.acc__list { display: flex; flex-direction: column; gap: 16px; padding-bottom: 48px; }
.acc__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 20px; }
.acc__list svg { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--success); }
.acc:last-child { border-bottom-width: 1px; }

.flow {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-top-width: 1px;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 0.75px 0.75px, var(--dots) 0.75px, transparent 0.8px);
  background-size: 18px 18px;
}
.flow__stage { position: absolute; left: 50%; top: 50%; width: 560px; height: 240px; transform: translate(-50%, -50%) scale(var(--flow-scale, 1)); }
.flow__node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font-mono);
}
.flow__node--db { left: 0; width: 560px; height: 64px; }
.flow__node--db:nth-child(1) { top: 0; }
.flow__node--db:nth-child(2) { top: 88px; }
.flow__icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; }
.flow__icon svg { width: 22px; height: 22px; }
.flow__title { display: block; font-size: 12px; line-height: 18px; font-weight: 600; text-transform: uppercase; }
.flow__sub { display: block; font-size: 10px; line-height: 15px; color: var(--fg-3); }
.flow__node--leaf { top: 200px; width: 176px; height: 40px; font-size: 12px; line-height: 16px; }
.flow__node--leaf:nth-child(3) { left: 0; }
.flow__node--leaf:nth-child(4) { left: 192px; }
.flow__node--leaf:nth-child(5) { left: 384px; }
.flow__leaf-dot { width: 12px; height: 12px; flex: none; border-radius: 999px; background: var(--success); box-shadow: 0 0 0 5px rgb(0 153 102 / 0.1); }
.flow__leaf-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-3); }
.flow__leaf-name b { color: var(--fg); font-weight: 600; }
.flow__edges { position: absolute; inset: 0; width: 560px; height: 240px; overflow: visible; }
.flow__edges path { fill: none; stroke: var(--zinc-500); stroke-width: 1px; stroke-dasharray: 3 5; }

@media (min-width: 768px) {
  .paths__head { padding-bottom: 48px; }
  .paths__grid { grid-template-columns: repeat(3, 1fr); }
  .accordion { min-height: 408px; border-right-width: 1px; }
  .acc:last-child { border-bottom-width: 0; }
  .flow { grid-column: span 2; height: auto; min-height: 100%; border-top-width: 0; }
}
@media (max-width: 680px) { .flow { --flow-scale: 0.6; } }

/* ==========================================================================
   Production / dashboard
   ========================================================================== */
.prod__inner { display: flex; flex-direction: column; gap: 32px; padding: 64px 24px 48px; }
.prod__head { display: flex; flex-direction: column; gap: 16px; max-width: 48rem; }
.prod__head .lead { max-width: 28rem; }
.prod__fig-wrap { border-top-width: 1px; }
.prod__fig {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 12px;
  background:
    radial-gradient(circle, rgb(255 255 255 / 0.28) 0.8px, transparent 1.3px) 0 0 / 5px 5px,
    linear-gradient(100deg, #4e57ef 0%, #6d74f2 22%, #5b8fd8 48%, #51b7c4 72%, #7ad3a7 100%);
}
.dash {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  padding: 16px;
  background: var(--code-bg);
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 0 0 1px var(--code-bg);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 15px;
  text-transform: uppercase;
  color: rgb(250 250 250 / 0.5);
  font-variant-numeric: tabular-nums;
}
.dash__status { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 8px; height: 12px; color: rgb(5 223 114 / 0.8); }
.dash__status::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.dash__grid { display: grid; flex: 1; gap: 16px; }
.dash__tile { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; padding: 12px; border: 0.5px solid rgb(255 255 255 / 0.1); }
.dash__tile-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dash__good { text-transform: none; color: rgb(5 223 114 / 0.8); }
.dash__val { text-transform: none; }
.dash__good, .dash__val { white-space: nowrap; } /* keep a time like "0.005 s" on one line */
.uptime { display: flex; gap: 1px; height: 32px; }
.uptime span { flex: 1; min-width: 0; background: rgb(5 223 114 / 0.75); }
.uptime span.warn { background: var(--warning); }
.latency { width: 100%; height: 40px; color: rgb(250 250 250 / 0.8); }
.conn { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.conn span { flex: 1; min-width: 0; background: var(--zinc-600); }
.through { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 16px; }
.through__bar { height: 6px; background: var(--zinc-600); }
.prod__feats { border-top-width: 1px; }
.prod__feat-grid { display: grid; }
.prod-feat { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 168px; padding: 24px; border-bottom-width: 1px; }
.prod-feat:last-child { border-bottom-width: 0; }
.prod-feat svg { width: 20px; height: 20px; color: var(--fg-2); }
.prod-feat__title { font-size: 16px; line-height: 24px; }
.prod-feat__text { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--fg-3); }

@media (min-width: 640px) {
  .prod__fig { padding: 24px; }
  .dash { gap: 24px; }
  .dash__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .dash__tile { padding: 16px; }
  .dash__tile--wide { grid-column: span 2; }
  .dash__status::before { width: 8px; height: 8px; }
  .uptime { gap: 2px; }
  .prod__feat-grid { grid-template-columns: 1fr 1fr; }
  .prod-feat:nth-child(odd) { border-right-width: 1px; }
  .prod-feat:nth-last-child(-n + 2) { border-bottom-width: 0; }
}
@media (min-width: 768px) {
  .prod .container { padding-inline: 64px; }
  .prod__inner { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-inline: 32px; border-inline-width: 1px; }
  .prod__fig { height: 488px; border-inline-width: 1px; }
  .prod__feat-grid { border-inline-width: 1px; }
}
@media (min-width: 1024px) {
  .uptime { gap: 4px; }
  .prod__feat-grid { grid-template-columns: repeat(4, 1fr); }
  .prod-feat { border-bottom-width: 0; }
  .prod-feat:nth-child(odd) { border-right-width: 0; }
  .prod-feat:not(:last-child) { border-right-width: 1px; }
}

/* ==========================================================================
   Worked example (charts)
   ========================================================================== */
.example .container { display: grid; }
.example__copy { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 64px 24px; }
.example__head { display: flex; flex-direction: column; gap: 24px; max-width: 48rem; }
.example__list { display: flex; flex-direction: column; gap: 24px; }
.example__list li { display: flex; align-items: flex-start; gap: 16px; }
.example__list svg { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--fg-3); }
.example__list li:last-child svg { color: var(--brand-bright); }
.example__note { font-size: 12px; line-height: 16px; color: var(--fg-3); }
.charts { display: grid; border-top-width: 1px; font-family: var(--font-mono); }
.chart { display: flex; flex-direction: column; min-width: 0; }
.chart__title { display: flex; align-items: center; justify-content: center; gap: 8px; height: 64px; font-size: 14px; font-weight: 500; text-transform: uppercase; }
.chart__title span { font-size: 12px; font-weight: 400; color: var(--zinc-400); }
.chart__plot {
  position: relative;
  flex: 1;
  min-height: 320px;
  box-shadow: inset 0 1px 0 var(--border);
  background-image: repeating-linear-gradient(to top, var(--border) 0, var(--border) 1px, transparent 1px, transparent calc(100% / 32));
}
.chart__bars { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: end; padding: 0 16px; }
.chart__bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart__label { margin-bottom: 8px; text-align: center; }
.chart__label b { display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--fg); }
.chart__label span { display: block; font-size: 10px; line-height: 14px; color: var(--fg-3); text-transform: uppercase; }
.chart__fill { width: 72%; background: var(--zinc-600); }
.chart__fill--brand { background: var(--brand); }
.chart__legend { display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; height: 56px; padding: 0 16px; }
.chart__legend p { font-size: 12px; font-weight: 500; color: var(--zinc-400); }
.chart__legend .logo { gap: 6px; }
.chart__legend .logo__mark { width: 18px; height: 16px; }
.chart__legend .logo__word { font-size: 15px; }

@media (min-width: 640px) {
  .charts { grid-template-columns: 1fr 1fr; }
  .chart + .chart { border-left-width: 1px; }
}
@media (min-width: 768px) {
  .example .container { grid-template-columns: 1fr 1fr; min-height: 550px; }
  .example__copy { padding-inline: 32px; }
  .charts { grid-template-columns: 1fr; border-top-width: 0; border-left-width: 1px; }
  .chart + .chart { border-left-width: 0; border-top-width: 1px; }
}
@media (min-width: 1024px) {
  .charts { grid-template-columns: 1fr 1fr; }
  .chart + .chart { border-top-width: 0; border-left-width: 1px; }
}

/* ==========================================================================
   Partners (brand)
   ========================================================================== */
.partners .container { display: grid; }
.partners__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 32px; padding: 64px 24px; }
.partners__head { display: flex; flex-direction: column; gap: 24px; max-width: 48rem; }
.partners__head .eyebrow { color: var(--fg-3); }
.partners__grid { display: grid; border-top-width: 1px; }
.partner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px;
  border-bottom-width: 1px;
}
.partner:last-child { border-bottom-width: 0; }
.partner svg { width: 32px; height: 32px; color: #fff; }
.partner__title { font-size: 16px; line-height: 24px; }
.partner__text { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--fg-2); }
@media (min-width: 640px) {
  .partners__grid { grid-template-columns: 1fr 1fr; }
  .partner:nth-child(odd) { border-right-width: 1px; }
  .partner:nth-last-child(2) { border-bottom-width: 0; }
}
@media (min-width: 768px) {
  .partners__copy { padding-inline: 32px; }
  .partner { padding: 32px; }
}
@media (min-width: 1024px) {
  .partners .container { grid-template-columns: 1fr 1fr; }
  .partners__grid { border-top-width: 0; border-left-width: 1px; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes__top { display: grid; grid-template-columns: 1fr; }
.quotes__head { display: flex; flex-direction: column; justify-content: center; padding: 64px 24px; }
.globe {
  position: relative;
  display: none;
  overflow: hidden;
  aspect-ratio: 10 / 7;
  background: var(--zinc-700);
}
.globe::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgb(255 255 255 / 0.35) 0.9px, transparent 1.3px) 0 0 / 7px 7px,
    radial-gradient(circle at 35% 30%, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.02) 70%);
  box-shadow: inset -24px -18px 48px rgb(0 0 0 / 0.35);
  animation: spin-dots 40s linear infinite;
}
@keyframes spin-dots { to { background-position: 140px 0, 0 0; } }
.quotes__grid { display: grid; }
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 240px;
  padding: 24px;
  border-top-width: 1px;
}
.quote blockquote { font-size: 16px; line-height: 26px; }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.quote__name { font-size: 14px; line-height: 20px; font-weight: 600; }
.quote__role { font-size: 12px; line-height: 16px; color: var(--fg-3); }
.quote__logo {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; flex: none;
  background: #fff; color: var(--zinc-900);
}
.quote__logo svg { width: 24px; height: 24px; }
@media (min-width: 640px) {
  .quotes__grid { grid-template-columns: 1fr 1fr; }
  .quote:nth-child(odd) { border-right-width: 1px; }
}
@media (min-width: 768px) {
  .quotes__top { grid-template-columns: repeat(3, 1fr); }
  .quotes__head { grid-column: span 2; padding-inline: 32px; border-right-width: 1px; }
  .globe { display: block; }
}
@media (min-width: 1024px) {
  .quotes__grid { grid-template-columns: repeat(4, 1fr); }
  .quote:nth-child(odd) { border-right-width: 0; }
  .quote:not(:nth-child(4n)) { border-right-width: 1px; }
}

/* ==========================================================================
   Call to action
   ========================================================================== */
.cta { display: grid; }
.cta__side { display: none; position: relative; overflow: hidden; }
.cta__pixels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  height: 100%;
  aspect-ratio: 1;
  flex: none;
}
.cta__side--left .cta__pixels { margin-left: -36px; }
.px { grid-column: var(--c); grid-row: var(--r); }
.px--w { background: #fff; }
.px--b { background: var(--brand); }
.px--o {
  background: transparent;
  box-shadow: inset 0 0 0 3px #fff;
}
.px--ob { background: transparent; box-shadow: inset 0 0 0 3px var(--brand); }
.cta__main { padding: 64px 24px; text-align: center; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 16px; margin-top: 32px; }
@media (min-width: 768px) {
  .cta__main { padding-block: 96px; }
}
@media (min-width: 1024px) {
  .cta { grid-template-columns: 1fr 56rem 1fr; }
  .cta__side { display: flex; }
  .cta__side--right { justify-content: flex-start; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-block-width: 1px; background: var(--zinc-900); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--container);
  margin-inline: auto;
  border-left-width: 1px;
}
.footer__brand {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  min-height: 208px;
  padding: 32px;
  border-right-width: 1px;
  border-bottom-width: 1px;
}
.footer__brand .logo__mark { width: 36px; height: 32px; }
.footer__brand .logo__word { font-size: 32px; }
.footer__brand .logo { gap: 12px; color: rgb(250 250 250 / 0.8); }
.footer__tagline { margin-top: 16px; font-family: var(--font-mono); font-size: 14px; line-height: 1; text-transform: uppercase; color: rgb(250 250 250 / 0.8); }
.footer__social { display: flex; gap: 32px; }
.footer__social a { position: relative; display: flex; color: rgb(250 250 250 / 0.8); }
.footer__social a::after { content: ""; position: absolute; inset: -8px; }
.footer__social a:hover { color: rgb(250 250 250 / 0.7); }
.footer__social svg { width: 16px; height: 16px; }
.footer__col { min-width: 0; border-right-width: 1px; border-bottom-width: 1px; }
.footer__col h2 {
  padding: 16px;
  border-bottom-width: 1px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
}
.footer__col ul { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; font-size: 14px; line-height: 1; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; color: rgb(250 250 250 / 0.7); }
.footer__copy {
  grid-column: 1 / -1;
  padding: 16px 32px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  color: rgb(250 250 250 / 0.8);
}
.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 16px 32px;
  border-right-width: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}
.footer__legal button { text-transform: uppercase; font-size: inherit; }
.footer__legal button:hover { text-decoration: underline; text-underline-offset: 4px; color: rgb(250 250 250 / 0.7); }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: span 1; min-height: 240px; }
}
@media (min-width: 1280px) {
  .footer__grid { grid-template-columns: 25rem repeat(5, minmax(0, 1fr)); grid-template-rows: 18.75rem auto; }
  .footer__brand { min-height: 0; }
  .footer__copy { grid-column: span 3; border-bottom-width: 0; line-height: 1; }
  .footer__legal { grid-column: span 3; justify-content: flex-end; padding-inline: 16px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
