/* ==========================================================================
   Capto — one design system for every page.

   Load order on every page:
     capto.css  → tokens, chrome, marketing surfaces   (this file)
     vis.css    → the small product mockups in bento cards
     demos.css  → the fake desktop and the demo engine's surfaces

   demos.css and vis.css load last and win on specificity. They own a set of
   generic class names (.info-card, .card-icon, .chip, .row, .pip, .key*),
   so marketing components here are namespaced to avoid them.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Surfaces, furthest back to nearest. */
  --void: #060608;
  --base: #08080b;
  --sunken: #050507;
  --panel: #0d0d11;
  --raised: #131318;
  --overlay: #1a1a21;

  /* Translucent controls. */
  --fill-1: rgba(255, 255, 255, 0.04);
  --fill-2: rgba(255, 255, 255, 0.07);
  --fill-3: rgba(255, 255, 255, 0.11);

  /* Hairlines. */
  --edge-1: rgba(255, 255, 255, 0.06);
  --edge-2: rgba(255, 255, 255, 0.1);
  --edge-3: rgba(255, 255, 255, 0.17);

  /* Text ramp. */
  --fg: rgba(255, 255, 255, 0.97);
  --fg-2: rgba(255, 255, 255, 0.66);
  --fg-3: rgba(255, 255, 255, 0.46);
  --fg-4: rgba(255, 255, 255, 0.3);

  /* Brand. One blue, one violet for gradient interest. Nothing else. */
  --accent: #0a84ff;
  --accent-bright: #3f9dff;
  --accent-deep: #0060df;
  --accent-soft: rgba(10, 132, 255, 0.14);
  --accent-ring: rgba(10, 132, 255, 0.5);
  --violet: #7c5cff;
  --ok: #30d158;
  --warn: #ffd426;
  --bad: #ff453a;

  /* Radii. */
  --r-1: 6px;
  --r-2: 9px;
  --r-3: 12px;
  --r-4: 16px;
  --r-5: 22px;
  --r-6: 30px;
  --r-pill: 999px;

  /* Motion. */
  --t-1: 110ms;
  --t-2: 170ms;
  --t-3: 240ms;
  --t-4: 340ms;
  --t-5: 520ms;
  --t-6: 760ms;
  --e-std: cubic-bezier(0.32, 0.72, 0, 1);
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-spring: cubic-bezier(0.34, 1.4, 0.4, 1);

  /* Layout. */
  --gutter: 24px;
  --page: min(1200px, calc(100vw - (var(--gutter) * 2)));
  --page-wide: min(1400px, calc(100vw - (var(--gutter) * 2)));
  --page-prose: min(720px, calc(100vw - (var(--gutter) * 2)));

  /* Type. */
  --font: Inter, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, Consolas, monospace;
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }
}

/* Legacy aliases. demos.css and vis.css read these names and only these.
   Renaming one silently unstyles part of the fake desktop. */
:root {
  --line: var(--edge-2);
  --hair: inset 0 0 0 0.5px var(--edge-2);
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 20px 56px rgba(0, 0, 0, 0.5);
  --ink: var(--fg);
  --muted: var(--fg-2);
  --faint: var(--fg-3);
  --ghost: var(--fg-4);
  --live: var(--ok);
  --a3: #64d2ff;
  --ease: var(--e-std);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: var(--e-spring);
  --font-mono: var(--mono);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--base);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--base);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--base), 0 0 0 4px var(--accent-ring);
  border-radius: var(--r-2);
}

::selection {
  background: rgba(10, 132, 255, 0.32);
}

code,
kbd,
samp {
  font-family: var(--mono);
  font-size: 0.9em;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: var(--r-2);
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: var(--page);
  margin-inline: auto;
}

.wrap-wide {
  width: var(--page-wide);
  margin-inline: auto;
}

.wrap-prose {
  width: var(--page-prose);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(64px, 7vw, 104px);
}

.section-tight {
  padding-block: clamp(40px, 4.5vw, 64px);
}

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

.section-sunken {
  background: var(--sunken);
}

/* A hairline grid that fades out downward. Purely decorative. */
.grid-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(var(--edge-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--edge-1) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 10%, transparent 72%);
}

/* Wide, soft aurora. Replaces the old vertical laser. */
.aurora {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: -18% 0 auto;
  height: 940px;
  background:
    radial-gradient(52% 40% at 50% 26%, rgba(10, 132, 255, 0.36), transparent 66%),
    radial-gradient(34% 32% at 20% 20%, rgba(124, 92, 255, 0.24), transparent 70%),
    radial-gradient(38% 28% at 80% 16%, rgba(0, 184, 255, 0.18), transparent 72%),
    radial-gradient(80% 50% at 50% 0%, rgba(10, 132, 255, 0.14), transparent 70%);
  filter: blur(30px);
}

.aurora-bottom {
  inset: auto -10% -30%;
  height: 700px;
  background: radial-gradient(50% 50% at 50% 80%, rgba(10, 132, 255, 0.2), transparent 70%);
}

.rel {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   4. Type
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.eyebrow-plain::before {
  display: none;
}

.display {
  margin: 0;
  font-size: clamp(42px, 6.6vw, 92px);
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.title {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 640;
  letter-spacing: -0.038em;
  line-height: 1.04;
  text-wrap: balance;
}

.title-sm {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 640;
  letter-spacing: -0.032em;
  line-height: 1.12;
}

.dim {
  color: var(--fg-3);
}

.grad {
  background: linear-gradient(96deg, #fff 8%, #a9c8ff 52%, #6aa6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  color: var(--fg-2);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.62;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.lede-sm {
  font-size: 15px;
  line-height: 1.62;
  color: var(--fg-2);
  margin: 0;
}

.section-head {
  max-width: 760px;
}

.section-head .lede {
  margin-top: 20px;
}

.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px 64px;
  align-items: end;
  max-width: none;
}

.section-head-split .lede {
  margin-top: 0;
  padding-bottom: 6px;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head-center .eyebrow {
  justify-content: center;
}

@media (max-width: 860px) {
  .section-head-split {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding-inline: 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 590;
  letter-spacing: -0.012em;
  white-space: nowrap;
  transition: background var(--t-2) var(--e-std), border-color var(--t-2) var(--e-std),
    color var(--t-2) var(--e-std), box-shadow var(--t-3) var(--e-std),
    transform var(--t-2) var(--e-spring);
}

.btn:hover {
  transform: translateY(-1.5px);
}

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

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: currentColor;
}

.btn-lg {
  min-height: 50px;
  padding-inline: 26px;
  font-size: 15px;
}

.btn-sm {
  min-height: 34px;
  padding-inline: 14px;
  font-size: 13px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent) 60%, var(--accent-deep));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 8px 26px -8px rgba(10, 132, 255, 0.75);
}

.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 12px 34px -8px rgba(10, 132, 255, 0.9);
}

.btn-snow {
  background: #fff;
  color: #08080b;
  box-shadow: 0 8px 28px -10px rgba(255, 255, 255, 0.5);
}

.btn-snow:hover {
  background: #eef1f6;
}

.btn-ghost {
  border-color: var(--edge-2);
  background: var(--fill-1);
  color: var(--fg);
  backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  border-color: var(--edge-3);
  background: var(--fill-2);
}

.btn-quiet {
  color: var(--fg-2);
  padding-inline: 12px;
}

.btn-quiet:hover {
  color: var(--fg);
  background: var(--fill-1);
}

.btn-arrow {
  transition: transform var(--t-3) var(--e-out);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.actions-center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   6. Small parts
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding-inline: 11px;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-pill);
  background: var(--fill-1);
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 540;
  letter-spacing: -0.01em;
}

.tag-accent {
  border-color: rgba(10, 132, 255, 0.34);
  background: var(--accent-soft);
  color: #9fcaff;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.16);
}

/* Keycaps. `.key` avoids demos.css, which owns every `.key*` name it uses
   inside the fake desktop — but not `.key` on its own in marketing copy. */
.keys {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.keys b {
  color: var(--fg-4);
  font-weight: 500;
  font-size: 11px;
}

.cap {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 7px;
  border: 1px solid var(--edge-2);
  border-bottom-color: rgba(0, 0, 0, 0.55);
  border-radius: var(--r-1);
  background: linear-gradient(180deg, var(--fill-2), var(--fill-1));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 2px 0 -1px rgba(0, 0, 0, 0.5);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.cap-lg {
  min-width: 32px;
  height: 32px;
  font-size: 12.5px;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--edge-1);
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background var(--t-3), border-color var(--t-3), backdrop-filter var(--t-3);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  border-bottom-color: var(--edge-1);
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(20px) saturate(150%);
}

.header-inner {
  width: var(--page-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 660;
  letter-spacing: -0.028em;
}

/* The app icon is a black tile on a black header, so it needs its own rim. */
.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--edge-3), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.brand-version {
  margin-left: 2px;
  color: var(--fg-4);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 2px 6px;
  border: 1px solid var(--edge-1);
  border-radius: var(--r-1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.site-nav a {
  padding: 8px 13px;
  border-radius: var(--r-2);
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 510;
  letter-spacing: -0.012em;
  transition: color var(--t-2), background var(--t-2);
}

.site-nav a:hover {
  color: var(--fg);
  background: var(--fill-1);
}

.site-nav a[aria-current="page"] {
  color: var(--fg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-2);
  background: var(--fill-1);
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform var(--t-3) var(--e-std), opacity var(--t-2);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform var(--t-3) var(--e-std);
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }

  /* A solid sheet, not a translucent one: it sits directly over the hero
     headline, and even 4% show-through reads as a rendering fault. */
  .site-nav {
    position: fixed;
    z-index: 99;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--edge-1);
    background: var(--base);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t-3) var(--e-out), opacity var(--t-3), visibility var(--t-3);
  }

  .site-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--edge-1);
    font-size: 17px;
    font-weight: 540;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  body.nav-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  body.nav-open {
    overflow: hidden;
  }

  .header-actions .btn-ghost {
    display: none;
  }
}

@media (max-width: 520px) {
  .header-actions .btn span.long {
    display: none;
  }

  .brand-version {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(120px, 13vw, 168px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin-inline: auto;
  text-align: center;
}

.hero-inner .lede {
  max-width: 620px;
  margin: 24px auto 0;
}

.hero-inner .actions {
  justify-content: center;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 22px;
  color: var(--fg-3);
  font-size: 13px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

/* Interior page mast. Same furniture as the hero, less of it. */
.mast {
  position: relative;
  overflow: hidden;
  padding-top: clamp(112px, 12vw, 152px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.mast .wrap,
.mast .wrap-prose {
  position: relative;
  z-index: 1;
}

.mast .display,
.mast .title {
  max-width: 22ch;
}

.mast .lede {
  max-width: 60ch;
  margin-top: 24px;
}

.mast .actions {
  margin-top: 32px;
}

/* Announcement pill above the headline. */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 6px 0 14px;
  margin-bottom: 26px;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  color: var(--fg-2);
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: border-color var(--t-2), background var(--t-2);
}

.hero-pill:hover {
  border-color: var(--edge-3);
  background: var(--fill-2);
}

.hero-pill b {
  color: var(--fg);
  font-weight: 570;
}

.hero-pill i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--fill-2);
  font-style: normal;
  font-size: 11px;
  color: var(--fg-2);
}

/* --------------------------------------------------------------------------
   9. Demo host chrome
   -------------------------------------------------------------------------- */
.app-shell {
  position: relative;
  container-type: inline-size;
}

.app-shell.is-inline {
  margin-inline: 0;
}

.app-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-5);
  background: var(--sunken);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 70px -30px rgba(0, 0, 0, 0.95),
    0 60px 160px -60px rgba(10, 132, 255, 0.35);
}

.app-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--edge-3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* The hero window sits on a bezel with a light rim. */
.hero-stage {
  position: relative;
  z-index: 1;
  width: var(--page-wide);
  margin: clamp(40px, 5vw, 70px) auto 0;
}

.hero-stage .app-frame {
  border-radius: clamp(14px, 1.6vw, 24px);
}

.hero-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8% -4% -14%;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 45%, rgba(10, 132, 255, 0.22), transparent 70%);
  filter: blur(60px);
}

.demo-dock {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.demo-dock-center {
  justify-content: center;
}

.dock-play {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-pill);
  background: var(--fill-1);
  color: var(--fg);
  transition: background var(--t-2), border-color var(--t-2), transform var(--t-3) var(--e-spring);
}

.dock-play:hover {
  border-color: var(--edge-3);
  background: var(--fill-2);
  transform: scale(1.08);
}

.dock-play svg {
  width: 13px;
  height: 13px;
}

.demo-pills {
  display: flex;
  flex: 1;
  gap: 6px;
  min-width: 0;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.demo-dock-center .demo-pills {
  flex: 0 1 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-pills::-webkit-scrollbar {
  display: none;
}

.demo-pills button {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding-inline: 14px;
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-pill);
  background: var(--fill-1);
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 540;
  letter-spacing: -0.012em;
  transition: color var(--t-2), background var(--t-2), border-color var(--t-2),
    transform var(--t-2) var(--e-spring);
}

.demo-pills button svg {
  width: 13px;
  height: 13px;
  position: relative;
}

.demo-pills button span,
.demo-pills button svg {
  position: relative;
  z-index: 1;
}

.demo-pills button:hover {
  color: var(--fg);
  border-color: var(--edge-3);
  transform: translateY(-1px);
}

.demo-pills button.is-on {
  background: #fff;
  border-color: #fff;
  color: #08080b;
  box-shadow: 0 6px 18px -8px rgba(255, 255, 255, 0.6);
}

/* --t is the scene's progress, written by the demo engine each frame. */
.demo-pills button .pill-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: 0 50%;
  transform: scaleX(var(--t, 0));
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.demo-note {
  margin-top: 14px;
  color: var(--fg-3);
  font-size: 13px;
  text-align: center;
}

/* Caption under the hero stage. JS rewrites it as the tour advances. */
.scene-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 40px;
  align-items: baseline;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--edge-1);
}

.scene-caption h2 {
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.2;
  transition: opacity var(--t-3);
}

.scene-caption p {
  color: var(--fg-3);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 56ch;
}

@media (max-width: 760px) {
  .scene-caption {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.demo-note .cap {
  margin-inline: 2px;
}

/* --------------------------------------------------------------------------
   10. Stat strip
   -------------------------------------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--edge-1);
  border-radius: var(--r-4);
  background: var(--panel);
  overflow: hidden;
}

.stat-strip > div {
  padding: 26px 28px;
  border-right: 1px solid var(--edge-1);
}

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

.stat-strip dt {
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-strip dd {
  margin: 8px 0 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.stat-strip p {
  margin-top: 6px;
  color: var(--fg-3);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip > div:nth-child(2n) {
    border-right: 0;
  }

  .stat-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--edge-1);
  }
}

@media (max-width: 480px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--edge-1);
    padding: 20px 22px;
  }

  .stat-strip > div:last-child {
    border-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   11. Mode grid (capture modes with shortcuts)
   -------------------------------------------------------------------------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--edge-1);
  border-radius: var(--r-4);
  background: var(--panel);
  transition: border-color var(--t-3), background var(--t-3), transform var(--t-3) var(--e-out);
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 132, 255, 0.7), transparent);
  opacity: 0;
  transition: opacity var(--t-3);
}

.mode-card:hover {
  border-color: var(--edge-2);
  background: var(--raised);
  transform: translateY(-3px);
}

.mode-card:hover::before {
  opacity: 1;
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-2);
  background: linear-gradient(180deg, var(--fill-2), transparent);
  color: var(--accent-bright);
}

.mode-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mode-card p {
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.55;
}

.mode-card .keys {
  margin-top: auto;
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   12. Alternating feature rows
   -------------------------------------------------------------------------- */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* Reversing the visual order has to move the wide column too, or the demo
   lands in the narrow one and its container-relative units bottom out. */
.duo.is-reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.duo.is-reverse .duo-copy {
  order: 2;
}

.duo-copy .title-sm,
.duo-copy .title {
  margin-bottom: 18px;
}

.duo-copy .lede {
  max-width: 46ch;
}

@media (max-width: 940px) {
  .duo {
    grid-template-columns: 1fr;
  }

  .duo.is-reverse .duo-copy {
    order: 0;
  }
}

.check-list {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.check-list svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 3.5px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-list b {
  color: var(--fg);
  font-weight: 600;
}

.spec-list {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border: 1px solid var(--edge-1);
  border-radius: var(--r-3);
  overflow: hidden;
}

.spec-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--edge-1);
  background: var(--panel);
  font-size: 13.5px;
}

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

.spec-list span {
  color: var(--fg-2);
}

/* --------------------------------------------------------------------------
   13. Bento
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

/* A [data-reveal] wrapper has no definite height, so a card using height:100%
   collapses to zero. Grid display stretches the card to the row instead. */
.bento > [data-reveal],
.trio > [data-reveal] {
  display: grid;
}

.bento .is-double {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento .is-double {
    grid-column: span 1;
  }
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--edge-1);
  border-radius: var(--r-5);
  background: var(--panel);
  transition: border-color var(--t-3);
}

.bento-card:hover {
  border-color: var(--edge-2);
}

.bento-glow {
  position: absolute;
  z-index: 0;
  width: 340px;
  height: 240px;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.bento-glow.at-tl {
  top: -120px;
  left: -80px;
  background: rgba(10, 132, 255, 0.45);
}

.bento-glow.at-tr {
  top: -120px;
  right: -80px;
  background: rgba(124, 92, 255, 0.4);
}

/* .vis mockups are position:absolute; inset:0, so this has to be the
   positioned box with a real height or they collapse to nothing. */
.bento-visual {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 216px;
}

@media (min-width: 1024px) {
  .bento-visual {
    min-height: 256px;
  }
}

.bento-caption {
  position: relative;
  z-index: 1;
  padding: 24px 26px 26px;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.6;
}

.bento-caption b {
  display: block;
  margin-bottom: 6px;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bento-caption code {
  padding: 2px 5px;
  border-radius: var(--r-1);
  background: var(--fill-2);
  color: var(--fg-2);
  font-size: 12.5px;
}

/* Three short cards. */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .trio {
    grid-template-columns: 1fr;
  }
}

.brief-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--edge-1);
  border-radius: var(--r-4);
  background: var(--panel);
}

.brief-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.brief-card p {
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.6;
}

.brief-card .note {
  margin-top: auto;
  padding-top: 8px;
  color: var(--fg-4);
  font-size: 13px;
}

.brief-card code {
  padding: 2px 6px;
  border-radius: var(--r-1);
  background: var(--fill-2);
  color: var(--accent-bright);
  font-size: 12px;
}

.brief-card .note a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   14. Privacy / local-first panel
   -------------------------------------------------------------------------- */
.local-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-6);
  background: linear-gradient(160deg, var(--raised), var(--panel) 55%, var(--sunken));
  padding: clamp(32px, 4.5vw, 60px);
}

.local-panel::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(50% 50% at 30% 60%, rgba(10, 132, 255, 0.2), transparent 70%);
  filter: blur(40px);
}

.local-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 42px;
}

.local-grid h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.local-grid h3 svg {
  width: 17px;
  height: 17px;
  color: var(--accent-bright);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.local-grid p {
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   15. Shortcut table + keyboard
   -------------------------------------------------------------------------- */
.shortcut-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

@media (max-width: 1000px) {
  .shortcut-layout {
    grid-template-columns: 1fr;
  }
}

.shortcut-table {
  width: 100%;
  border: 1px solid var(--edge-1);
  border-radius: var(--r-4);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--panel);
}

.shortcut-table caption {
  padding: 16px 20px;
  border-bottom: 1px solid var(--edge-1);
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.shortcut-table th {
  padding: 12px 20px;
  border-bottom: 1px solid var(--edge-1);
  color: var(--fg-4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.shortcut-table td {
  padding: 11px 20px;
  border-bottom: 1px solid var(--edge-1);
  font-size: 14px;
  vertical-align: middle;
}

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

.shortcut-table tbody tr {
  transition: background var(--t-2);
}

.shortcut-table tbody tr:hover,
.shortcut-table tbody tr.is-lit {
  background: var(--fill-1);
}

.shortcut-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.shortcut-table .row-note {
  display: block;
  margin-top: 2px;
  color: var(--fg-4);
  font-size: 12.5px;
}

.keyboard {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--edge-1);
  border-radius: var(--r-4);
  background: var(--panel);
}

.keyboard-row {
  display: flex;
  gap: 6px;
}

.keyboard-row > span {
  display: grid;
  flex: 1 1 0;
  place-items: center;
  height: 34px;
  border: 1px solid var(--edge-1);
  border-radius: var(--r-1);
  background: var(--fill-1);
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 11px;
  transition: background var(--t-2), color var(--t-2), border-color var(--t-2),
    box-shadow var(--t-2), transform var(--t-2);
}

.keyboard-row > span[data-w="wide"] {
  flex: 1.7 1 0;
}

.keyboard-row > span[data-w="xwide"] {
  flex: 5 1 0;
}

.keyboard-row > span.is-lit {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent-ring), 0 0 22px -4px var(--accent);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0;
  border: 1px solid var(--edge-1);
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--panel);
}

.faq details {
  border-bottom: 1px solid var(--edge-1);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -0.018em;
  transition: background var(--t-2), color var(--t-2);
}

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

.faq summary:hover {
  background: var(--fill-1);
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.6px solid var(--fg-3);
  border-bottom: 1.6px solid var(--fg-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t-3) var(--e-out);
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq-body {
  padding: 0 22px 22px;
  max-width: 76ch;
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-body p + p {
  margin-top: 12px;
}

.faq-body a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-body code {
  padding: 2px 5px;
  border-radius: var(--r-1);
  background: var(--fill-2);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   17. Download surfaces
   -------------------------------------------------------------------------- */
.dl-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-5);
  background: linear-gradient(150deg, var(--raised), var(--panel));
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

.dl-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-3);
  background: linear-gradient(180deg, var(--fill-2), transparent);
  color: var(--accent-bright);
}

.dl-mark svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.dl-card dt {
  color: var(--fg-4);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dl-card dd {
  margin: 5px 0 0;
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.028em;
}

.dl-card dd.sub {
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--fg-3);
}

@media (max-width: 720px) {
  .dl-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dl-card .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.fact-card {
  padding: 22px;
  border: 1px solid var(--edge-1);
  border-radius: var(--r-4);
  background: var(--panel);
}

.fact-card h3 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fact-card dl {
  display: grid;
  gap: 0;
}

.fact-card .fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--edge-1);
  font-size: 13.5px;
}

.fact-card .fact-row:last-child {
  border-bottom: 0;
}

.fact-card .fact-row dt {
  color: var(--fg-3);
}

.fact-card .fact-row dd {
  margin: 0;
  font-weight: 550;
  text-align: right;
}

.fact-card ol {
  display: grid;
  gap: 11px;
  counter-reset: step;
}

/* Absolute marker, not a grid column: inline children of the item would
   otherwise each become their own grid item and stack. */
.fact-card ol li {
  position: relative;
  padding-left: 32px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.55;
}

.fact-card ol li b {
  color: var(--fg);
  font-weight: 600;
  white-space: nowrap;
}

.fact-card ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--fill-2);
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 11px;
}

.hash {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--edge-1);
  border-radius: var(--r-3);
  background: var(--sunken);
}

.hash code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  color: var(--fg-3);
  font-size: 12px;
  white-space: nowrap;
  scrollbar-width: none;
}

.hash code::-webkit-scrollbar {
  display: none;
}

/* --------------------------------------------------------------------------
   18. Prose (privacy and other long-form pages)
   -------------------------------------------------------------------------- */
.prose {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  margin-top: 52px;
  color: var(--fg);
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.028em;
  line-height: 1.2;
}

.prose h3 {
  margin-top: 32px;
  color: var(--fg);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose ul {
  display: grid;
  gap: 10px;
  padding-left: 2px;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.prose a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose code {
  padding: 2px 6px;
  border-radius: var(--r-1);
  background: var(--fill-2);
  color: var(--fg);
  font-size: 13.5px;
}

.prose .callout {
  padding: 20px 22px;
  border: 1px solid var(--edge-2);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-3);
  background: var(--panel);
  color: var(--fg-2);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   19. Closing CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--edge-1);
  padding-block: clamp(80px, 10vw, 140px);
  text-align: center;
}

.cta .lede {
  margin: 22px auto 0;
  max-width: 52ch;
}

.cta .actions {
  justify-content: center;
  margin-top: 34px;
}

.cta-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 62% at 50% 108%, rgba(10, 132, 255, 0.34), transparent 70%),
    radial-gradient(30% 40% at 18% 100%, rgba(124, 92, 255, 0.2), transparent 72%),
    radial-gradient(30% 40% at 82% 100%, rgba(0, 184, 255, 0.16), transparent 72%);
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--edge-1);
  background: var(--sunken);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 16px;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  margin-bottom: 16px;
  color: var(--fg-4);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 11px;
}

.footer-col a {
  color: var(--fg-2);
  font-size: 14px;
  transition: color var(--t-2);
}

.footer-col a:hover {
  color: var(--fg);
}

.footer-col span {
  color: var(--fg-4);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 56px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--edge-1);
  color: var(--fg-4);
  font-size: 13px;
}

.footer-wordmark {
  position: relative;
  z-index: 0;
  margin-top: -8px;
  padding-bottom: 6px;
  color: transparent;
  font-size: clamp(70px, 19vw, 260px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.78;
  text-align: center;
  pointer-events: none;
  user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 78%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   21. Reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity var(--t-6) var(--e-out), translate var(--t-6) var(--e-out);
}

[data-reveal][data-shown="true"] {
  opacity: 1;
  translate: none;
}

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

  [data-reveal] {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .btn:hover,
  .mode-card:hover,
  .demo-pills button:hover,
  .dock-play:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   22. 404
   -------------------------------------------------------------------------- */
.notfound {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 78vh;
  padding-top: 68px;
  text-align: center;
}

.notfound .code {
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
}
