@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-2: #0a1020;
  --text: #eef6ff;
  --muted: #9fb0c5;
  --muted-2: #71839b;
  --card: rgba(12, 18, 30, 0.78);
  --card-strong: rgba(14, 22, 36, 0.92);
  --line: rgba(154, 178, 205, 0.18);
  --line-strong: rgba(154, 178, 205, 0.3);
  --accent: #c8ff42;
  --accent-rgb: 200, 255, 66;
  --accent-2: #3ee3ff;
  --accent-2-rgb: 62, 227, 255;
  --accent-3: #ff7a59;
  --glow: rgba(200, 255, 66, 0.24);
  --shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
  --radius: 28px;
  /* Arcade watermark. One asset, three intensities — loud enough to read as a
     pattern on the closing CTA, barely there everywhere else. */
  --doodle: url("assets/doodles.svg");
  --doodle-tile: 420px 420px;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Display face, and only that. Space Grotesk is drawn for hero sizes; below
     roughly 22px its counters close up and it reads worse than the body face —
     the same conclusion the admin console reached, which is why everything
     small on this page is IBM Plex Sans regardless of how bold it looks. */
  --font-display: "Space Grotesk", var(--font-body);
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--accent-rgb), 0.22), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(var(--accent-2-rgb), 0.16), transparent 30rem),
    linear-gradient(180deg, #05070c 0%, #070b14 48%, #05070c 100%);
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 42px, 42px 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #071018;
  font-weight: 800;
}

.skip-link:focus {
  left: 12px;
}

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

.wrap {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 7, 12, 0.68);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #081017;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 34px rgba(var(--accent-rgb), 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Docs and Sign in: a developer evaluating the product needs both, but neither
   should compete with the paid CTA, so they stay text-weight. */
.nav-quiet {
  padding: 8px 4px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.mobile-menu {
  display: grid;
  gap: 6px;
  padding: 14px clamp(14px, 5vw, 22px) 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(6, 9, 16, 0.96);
  backdrop-filter: blur(18px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-menu a:active {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu .button {
  margin-top: 6px;
  width: 100%;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #071018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 46px rgba(var(--accent-rgb), 0.22);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

/* The page had no keyboard focus indicator at all outside the form fields —
   every nav link, tab and CTA was invisible to anyone tabbing through. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.button:focus-visible,
.nav-cta:focus-visible,
.tab:focus-visible,
.code-tab:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 60px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -18% -38% -18%;
  height: 440px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 62%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 1.04fr);
  gap: 46px;
  /* Was `center`, which left the taller column dictating a block of dead space
     opposite it. Both columns now start at the same optical line. */
  align-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.07);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.9);
}

.hero h1 {
  margin: 18px 0 18px;
  /* 12ch at 6rem forced the headline into six lines and pushed the value
     proposition, the CTAs and the proof row below the fold. */
  max-width: 17ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(120deg, #fff 0%, var(--accent) 44%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  /* 1.72 was set for a smaller type size; at 17–19px it opens the lines far
     enough that the eye loses the return sweep. */
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 28px 0 24px;
}

/* Third, lowest-commitment path out of the hero. Developers who will not press
   "Preorder" on a first visit still want to see the API. */
.link-cta {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.link-cta:hover {
  border-bottom-color: currentColor;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.proof-pill {
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.proof-pill strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.proof-pill span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 16px;
}

/* ---------- Code card ---------- */
.code-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(6, 10, 18, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(var(--accent-2-rgb), 0.1);
  overflow: hidden;
}

.code-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 6, 12, 0.5);
}

.code-tab {
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.code-tab.active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.28);
}

.code-block {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: #d7e3f4;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.code-block[hidden] {
  display: none;
}

.code-block code {
  font: inherit;
}

.c-cm { color: var(--muted-2); }
.c-tag { color: var(--accent-2); }
.c-at { color: var(--accent); }
.c-st { color: #ffd9a0; }
.c-kw { color: #ff7a59; font-weight: 700; }
.c-fn { color: var(--accent); font-weight: 700; }

/* ---------- Product window mock ---------- */
.product-window {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(9, 14, 24, 0.82);
  box-shadow: var(--shadow), 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}

.product-window::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.52), rgba(var(--accent-2-rgb), 0.28), transparent 52%);
  filter: blur(24px);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(3, 6, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.window-dots span:nth-child(1) { background: #ff6b6b; }
.window-dots span:nth-child(2) { background: #ffd166; }
.window-dots span:nth-child(3) { background: #06d6a0; }

.window-title {
  color: var(--muted);
  font-size: 0.86rem;
}

.dashboard-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  margin-top: 12px;
  min-height: 200px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.95), rgba(6, 10, 18, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-mock--large {
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
  margin-top: 0;
}

.mock-row {
  display: contents;
}

.mock-stat {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-stat span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.mock-stat strong {
  font-size: 1.25rem;
  color: #fff;
}

/* Was a flat gradient block, which read as an unfinished placeholder rather
   than as a dashboard. It now carries an actual retention curve. */
.mock-chart {
  grid-column: 1 / -1;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--accent-2-rgb), 0.08), rgba(var(--accent-rgb), 0.04));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dashboard-mock--large .mock-chart {
  height: 120px;
}

.floating-card {
  position: absolute;
  right: -18px;
  /* Sat squarely on the dashboard mock's chart and took a bite out of it. Drops
     clear of the chart now and only overlaps the window's bottom padding, so it
     still reads as floating without hiding anything. */
  bottom: -70px;
  width: min(232px, 52%);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
}

.floating-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.floating-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.05em;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 16px;
  text-align: center;
}

.trust-label {
  color: var(--muted-2);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-chip {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 24px 40px;
  /* `end` baseline-aligned the deck against a heading of unpredictable height,
     so the paragraph floated at a different offset in every section. */
  align-items: start;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.7);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

/* Sub-page header. The use-case pages used to open with an unstyled h1 at the
   browser's default size, which made them look like a different site. */
.page-head {
  padding: 116px 0 8px;
}

.page-head h1 {
  margin: 12px 0 16px;
  max-width: 20ch;
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.page-head .section-copy {
  max-width: 62ch;
  font-size: 1.08rem;
}

.page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: start;
  margin-top: 34px;
}

.page-aside {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

/* Both sit inside .section, whose h2 rule is a display-scale headline. These
   are sub-headings, so they have to out-specify it. */
.section .page-aside h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.section .page-subhead {
  margin: 34px 0 14px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.aside-cta {
  width: 100%;
  margin-top: 20px;
}

.aside-link {
  margin: 12px 0 0;
  text-align: center;
}

/* Sub-pages stack sections without the hairline rules the home page uses to
   separate its much longer blocks. */
.section--flush {
  border-top: 0;
  padding-top: 0;
}

.footer-base a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-base a:hover {
  color: var(--text);
}

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

.section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.06;
  text-wrap: balance;
}

/* At the previous size the browser was free to break inside hyphenated words
   ("self-/serve"), which reads as a typo in a 3.4rem headline. */
.section h2,
.hero h1 {
  hyphens: none;
}

.section-copy {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.65;
}

/* Figures line up column to column and stop shifting when a counter animates —
   same rule the admin console applies to its stat cards. */
.proof-pill strong,
.mock-stat strong,
.amount,
.floating-card strong,
.reward-card strong {
  font-variant-numeric: tabular-nums;
}

/* ---------- Bento feature grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.1), transparent 46%),
    var(--card);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.7), transparent);
}

.bento-card--accent {
  background:
    radial-gradient(circle at top right, rgba(var(--accent-2-rgb), 0.16), transparent 48%),
    var(--card-strong);
  border-color: rgba(var(--accent-2-rgb), 0.28);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 15px;
  color: #081017;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
  font-size: 1.1rem;
}

.bento-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.bento-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.bento-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

/* ---------- Product showcase ---------- */
.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}

.showcase-copy {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.showcase-copy h3 {
  margin: 0 0 14px;
  font-size: 1.9rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.check-list li::before {
  /* Escape, not the literal glyph: the stylesheet is served as text/css with
     no charset, so a raw UTF-8 ✓ decodes as "âœ“" wherever the browser falls
     back to windows-1252. */
  content: "\2713";
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 900;
}

.showcase-shot {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(9, 14, 24, 0.6);
}

/* ---------- Demo ---------- */
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.demo-panel,
.side-panel,
.price-card,
.faq-item,
.workflow-card,
.shipped-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 18, 30, 0.76);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.22);
}

.demo-panel {
  padding: 18px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab.active {
  color: #071018;
  background: var(--accent);
  border-color: transparent;
  font-weight: 900;
}

.demo-screen {
  position: relative;
  min-height: 420px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 24% 12%, rgba(var(--accent-rgb), 0.18), transparent 34%),
    linear-gradient(180deg, rgba(4, 8, 16, 0.96), rgba(8, 13, 23, 0.96));
  overflow: hidden;
}

/* Same tile, a third of the strength — enough to read as a cabinet screen
   without competing with the board tiles. */
.demo-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--doodle);
  background-size: 300px 300px;
  opacity: 0.05;
}

.demo-screen > * {
  position: relative;
  z-index: 1;
}

.demo-screen h3 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.demo-screen p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.reward-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.reward-card div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.reward-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.reward-card strong {
  font-size: 1.24rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.game-tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: #081017;
}

.side-panel {
  padding: 22px;
}

.side-panel h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.side-panel .side-panel-split {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.event-list,
.card-list,
.pricing-list,
.faq-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-list li,
.card-list li,
.pricing-list li,
.faq-list li {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.5;
}

.event-list strong,
.card-list strong,
.faq-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

/* ---------- Workflow / use cases ---------- */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#use-cases .workflow,
.workflow--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-card {
  padding: 20px;
}

.workflow-card--link {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.workflow-card--link:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.card-link {
  margin-top: 16px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.step {
  display: inline-grid;
  /* The use-case cards are flex columns, so an inline-grid child stretched to
     the full card width and the little "SaaS" badge rendered as a lime bar. */
  align-self: start;
  justify-self: start;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: #071018;
  background: var(--accent);
  font-weight: 900;
  font-size: 0.92rem;
}

.workflow-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- What's shipped ---------- */
.shipped-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shipped-card {
  padding: 22px;
}

.shipped-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-2-rgb), 0.32);
  color: var(--accent-2);
  background: rgba(var(--accent-2-rgb), 0.08);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shipped-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.shipped-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.shipped-card code,
.faq-item code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
}

.price-card.highlight {
  border-color: rgba(var(--accent-rgb), 0.58);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.18), 0 24px 90px rgba(var(--accent-rgb), 0.12);
}

/* Taken out of flow: in the document flow the badge pushed the highlighted
   plan's name, price and features one row lower than its neighbours, so no two
   cards could be compared line by line. */
.price-card .tag {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #071018;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-card h3 {
  margin: 0 0 6px;
  padding-right: 96px;
  font-size: 1.24rem;
}

.plan-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.amount {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 2.7rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.amount span {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
}

/* Every feature in its own bordered box turned the plan into a stack of
   look-alike buttons and buried the real one at the bottom. */
.price-card .pricing-list {
  gap: 0;
  margin-bottom: 22px;
}

.price-card .pricing-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.price-card .pricing-list li:last-child {
  border-bottom: 0;
}

.pricing-list li::before {
  /* Escape, not the literal glyph: the stylesheet is served as text/css with
     no charset, so a raw UTF-8 ✓ decodes as "âœ“" wherever the browser falls
     back to windows-1252. */
  content: "\2713";
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 900;
}

.price-cta {
  width: 100%;
  /* Bottom-aligns the three CTAs regardless of how many features each plan
     lists. */
  margin-top: auto;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  /* Without this, expanding one answer inflates its whole grid row and the
     card beside it grows a matching block of empty space. */
  align-items: start;
}

.faq-item {
  padding: 18px 20px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 20%, rgba(var(--accent-rgb), 0.22), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(var(--accent-2-rgb), 0.18), transparent 30%),
    rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

/* The arcade watermark lands here on purpose: it is the one place on the page
   where the product's subject matter (games) should be felt rather than read,
   and it is the last thing a visitor sees before the CTA. Painted as a layer
   under the content so the copy keeps full contrast. */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--doodle);
  background-size: var(--doodle-tile);
  background-repeat: repeat;
  opacity: 0.14;
  mask-image: radial-gradient(circle at 78% 42%, #000 8%, rgba(0, 0, 0, 0.35) 46%, transparent 76%);
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  max-width: 760px;
  margin: 0 0 10px;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.footer {
  padding: 56px 0 48px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 38ch;
  color: var(--muted-2);
  line-height: 1.6;
  font-size: 0.92rem;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-title {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  color: var(--muted-2);
  font-size: 0.9rem;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(2, 4, 9, 0.74);
  backdrop-filter: blur(14px);
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(560px, 100%);
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: #0a111d;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.modal-card h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.modal-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.form {
  display: grid;
  gap: 14px;
}

/* Placeholders were doing the labelling, which disappears the moment someone
   starts typing — and takes the field's meaning with it. */
.field {
  display: grid;
  gap: 6px;
}

.field > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.form .small {
  margin: 0;
}

.form-note {
  color: var(--muted-2);
}

[data-form-status]:empty {
  display: none;
}

[data-form-status] {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
}

[data-form-status][data-state="error"] {
  border-color: rgba(255, 122, 89, 0.4);
  background: rgba(255, 122, 89, 0.1);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.68);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.small {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid,
  .product-showcase,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .bento,
  .pricing-grid,
  .shipped-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workflow,
  #use-cases .workflow,
  .workflow--three {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 64px;
  }

  .nav-links,
  /* Docs and Sign in move into the mobile menu; left in the bar they pushed the
     Preorder button and the hamburger off the right edge. */
  .nav-quiet {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 48px 0 44px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .trust-strip {
    margin-top: 36px;
  }

  .section {
    padding: 60px 0;
  }

  .section-head,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .bento,
  .pricing-grid,
  .shipped-grid,
  .workflow,
  #use-cases .workflow,
  .workflow--three,
  .faq-grid,
  .reward-card {
    grid-template-columns: 1fr;
  }

  .game-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band {
    padding: 24px;
  }

  /* At the desktop tile size a phone-width card shows a single glyph, which
     reads as a stray icon rather than as a pattern. */
  .cta-band::before {
    background-size: 260px 260px;
    opacity: 0.1;
    mask-image: none;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .product-window {
    padding: 8px;
    border-radius: 22px;
  }

  .demo-screen {
    min-height: auto;
    padding: 16px;
  }

  .game-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-base {
    flex-direction: column;
    gap: 8px;
  }
}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button:hover,
  .bento-card:hover,
  .workflow-card--link:hover {
    transform: none;
  }
}
