/* ==========================================================================
   CMB Project — "Aurora Signal"
   --------------------------------------------------------------------------
   Hand-written stylesheet, loaded BEFORE the Tailwind CDN script.

   Why both:
   The brief asks for the Tailwind v3 CDN. The Play CDN is a JavaScript
   program — it compiles the stylesheet in the browser at runtime. With
   JavaScript disabled, or if the CDN is slow, blocked or down, a
   Tailwind-only page renders as unstyled black-on-white text. That is a
   landing-page-quality failure, and it is exactly the sort of thing an ad
   reviewer's stripped-down browser sees.

   So the page is fully styled by this file on its own, and Tailwind layers
   utilities on top. Load order matters: Tailwind injects its <style> after
   this file, so its utilities win equal-specificity ties. Every rule here is
   a single element or single class selector for that reason.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  --void: #05070f;
  --deep: #0a0f1c;
  --panel: #0e1526;
  --panel-2: #131c30;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.3);

  --ink: #eef2f8;
  --ink-2: #c3cede;
  --ink-3: #9aa9bf;

  --indigo: #6366f1;
  --indigo-bright: #818cf8;
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --violet: #a78bfa;

  --focus: #67e8f9;

  --radius: 18px;
  --radius-sm: 12px;
  --shell: 1200px;

  --font-sans: "Segoe UI", ui-sans-serif, system-ui, -apple-system,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "SFMono-Regular",
    Menlo, Consolas, monospace;
}

/* --- Reset -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--void);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* The UA rule for [hidden] is the lowest possible specificity, so any class
   that sets a display beats it and the element ships visible. That is how a
   dead control reaches production. !important is correct here. */
[hidden] {
  display: none !important;
}

/* --- Page background: aurora + grid ------------------------------------- */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(80rem 42rem at 12% -12%, rgba(99, 102, 241, 0.26), transparent 62%),
    radial-gradient(64rem 38rem at 92% 4%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(50rem 40rem at 50% 108%, rgba(167, 139, 250, 0.14), transparent 62%),
    var(--void);
}

.page-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 30%, transparent 100%);
}

/* --- Layout ------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(52px, 6.5vw, 88px);
}

.section-tight {
  padding-block: clamp(36px, 5vw, 60px);
}

/* Two adjacent tight sections stack both paddings and open a gap wider than
   a real section break. */
.section-tight + .section-tight {
  padding-top: 0;
}

.stack > * + * {
  margin-top: 1rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* A grid child defaults to min-width:auto, so one long unbreakable string
   (a URL, an email address) pushes the whole track wider than the viewport. */
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.split > * {
  min-width: 0;
}

.split {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}

/* --- Typography --------------------------------------------------------- */

h1, h2, h3, h4 {
  margin: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; }
h4 { font-size: 1.03rem; line-height: 1.35; }

p {
  margin: 0;
  color: var(--ink-2);
}

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--ink-2);
  max-width: 62ch;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 0.9rem;
  line-height: 1.6;
}

.tiny {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-3);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.01em;
}

a {
  color: var(--cyan-soft);
  text-decoration-color: rgba(103, 232, 249, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

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

/* Long identifiers, emails and URLs must break anywhere rather than push the
   layout. break-word alone will not break a single long token. */
.breakable {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow-tick {
  display: inline-block;
  width: 26px;
  height: 2px;
  flex: none;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

/* --- Surfaces: glass ---------------------------------------------------- */

.glass {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(10, 15, 28, 0.66);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

/* The hairline that gives every panel its "signal" edge. */
.glass::before {
  content: "";
  position: absolute;
  inset-inline: 18px;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.55), transparent);
  pointer-events: none;
}

.card {
  padding: 24px;
}

.card-hover {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .card-hover:hover {
    transform: none;
  }
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.3), rgba(34, 211, 238, 0.14));
  color: var(--cyan-soft);
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}

.btn-primary {
  /* The lighter indigo, not --indigo: dark label text on #6366f1 measures
     4.51:1, which passes AA with almost nothing to spare. --indigo-bright
     takes the worst point of the gradient to 6.76:1. */
  background: linear-gradient(120deg, var(--indigo-bright), var(--cyan));
  color: #04070e;
  box-shadow: 0 12px 30px -16px rgba(34, 211, 238, 0.85);
}

.btn-primary:hover {
  color: #04070e;
  box-shadow: 0 16px 36px -14px rgba(34, 211, 238, 0.95);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(103, 232, 249, 0.5);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Header ------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--cyan);
  color: #04070e;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 15, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  flex: none;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand-name {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1000px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(99, 102, 241, 0.2);
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.28);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* The mobile menu is a <details> element, so it opens and closes with no
   JavaScript at all. Nothing on this site depends on a script to be usable. */
.nav-mobile {
  margin-left: auto;
}

@media (min-width: 1000px) {
  .nav-mobile {
    display: none;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  list-style: none;
}

/* Both are needed: WebKit uses its own pseudo-element for the marker. */
.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-mobile[open] .nav-toggle {
  border-color: rgba(103, 232, 249, 0.5);
  color: #fff;
}

.nav-mobile-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  top: calc(100% + 1px);
  z-index: 60;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 9, 18, 0.98);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.95);
}

.nav-mobile-list {
  display: grid;
  gap: 2px;
  padding: 10px;
  list-style: none;
  margin: 0;
}

.nav-mobile-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav-mobile-list a:hover,
.nav-mobile-list a[aria-current="page"] {
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(54px, 8vw, 96px) clamp(36px, 4.5vw, 60px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 11px;
  border: 1px solid rgba(103, 232, 249, 0.26);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.09);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
  flex: none;
}

.hero h1 {
  margin-top: 22px;
  max-width: 17ch;
}

.hero-accent {
  background: linear-gradient(100deg, var(--cyan-soft), var(--indigo-bright) 60%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* A gradient-clipped heading is invisible if the clip is unsupported; the
   fallback colour has to be legible on its own. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-accent {
    color: var(--cyan-soft);
  }
}

.hero-art {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 11;
}

.hero-art .keyart {
  width: 100%;
  height: 100%;
}

.hero-art-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(4, 6, 13, 0.94), transparent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- Stat strip --------------------------------------------------------- */

.stat-strip {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

@media (min-width: 1000px) {
  .stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  padding: 22px;
  background: rgba(10, 15, 28, 0.78);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* --- Signal chain (the pipeline device) --------------------------------- */

.chain {
  display: grid;
  gap: 18px;
  counter-reset: chain;
}

@media (min-width: 900px) {
  .chain {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.chain-node {
  position: relative;
  padding: 24px;
}

/* The connecting line only makes sense on the horizontal layout. */
@media (min-width: 900px) {
  .chain-node::after {
    content: "";
    position: absolute;
    top: 46px;
    right: -16px;
    width: 16px;
    height: 1px;
    background: linear-gradient(90deg, rgba(103, 232, 249, 0.6), rgba(103, 232, 249, 0.1));
  }

  .chain-node:last-child::after {
    display: none;
  }
}

.chain-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  background: rgba(34, 211, 238, 0.1);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-soft);
}

.chain-name {
  margin-top: 14px;
}

.chain-lead {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 500;
}

/* --- Lists -------------------------------------------------------------- */

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink-2);
}

.ticks svg {
  margin-top: 4px;
  color: var(--cyan);
  width: 16px;
  height: 16px;
}

.crosses li svg {
  color: #fb7185;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.84rem;
  color: var(--ink-2);
}

.pill-live {
  border-color: rgba(103, 232, 249, 0.35);
  color: var(--cyan-soft);
}

/* --- Definition / identity plate ---------------------------------------- */

.plate {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.plate-row {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(10, 15, 28, 0.6);
}

.plate-row:first-child {
  border-top: 0;
}

@media (min-width: 620px) {
  .plate-row {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
  }
}

.plate-key {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.plate-value {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.plate-note {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* --- Notices ------------------------------------------------------------ */

.notice {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.06);
}

.notice-warn {
  border-left-color: #fbbf24;
  background: rgba(251, 191, 36, 0.07);
}

.notice-danger {
  border-left-color: #fb7185;
  background: rgba(251, 113, 133, 0.07);
}

/* --- Forms -------------------------------------------------------------- */

.field {
  display: grid;
  gap: 7px;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.field-req {
  color: var(--cyan);
  margin-left: 2px;
}

.field-hint {
  font-size: 0.83rem;
  color: var(--ink-3);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(4, 7, 15, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0.97rem;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 20px, calc(100% - 13px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.textarea {
  min-height: 190px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--cyan);
  outline: 2px solid rgba(103, 232, 249, 0.35);
  outline-offset: 1px;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: #fb7185;
}

.field-error {
  font-size: 0.85rem;
  color: #fda4af;
}

.check-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 620px) {
  .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.check:hover {
  border-color: var(--line-strong);
}

.check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--cyan);
}

.check-text {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.fieldset > legend {
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 9px;
}

/* Honeypot. Off-screen rather than display:none, because some autofill and
   accessibility tooling skips hidden inputs entirely. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Readiness meter ---------------------------------------------------- */

.meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  transition: width 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .meter-fill {
    transition: none;
  }
}

.meter-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.meter-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.meter-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.meter-list li[data-met="1"] {
  color: var(--ink-2);
}

.meter-list li[data-met="1"] .meter-dot {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.meter-dot {
  width: 9px;
  height: 9px;
  margin-left: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.meter-weight {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* --- Slate / titles ----------------------------------------------------- */

.title-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.title-art {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.title-art .keyart {
  width: 100%;
  height: 100%;
}

.title-body {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.empty-slate {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 5vw, 48px);
  text-align: left;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 13, 0.72);
}

.footer-grid {
  display: grid;
  gap: 34px;
  padding-block: clamp(40px, 6vw, 64px) 26px;
}

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

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-list a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-list a:hover {
  color: #fff;
  text-decoration: underline;
}

/* The compliance block. Deliberately the most prominent thing in the footer:
   an ad reviewer looking for advertiser identity should find it without
   scrolling past marketing copy. */
.identity-block {
  margin-top: 8px;
  padding: 20px 22px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.05);
}

.identity-line {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.identity-sep {
  color: var(--ink-3);
  padding-inline: 6px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px 34px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-3);
}

.cookie-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--ink-3);
}

/* --- Legal pages -------------------------------------------------------- */

.legal {
  max-width: 76ch;
}

.legal h2 {
  margin-top: 44px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.legal h3 {
  margin-top: 28px;
  font-size: 1.08rem;
}

.legal p,
.legal li {
  color: var(--ink-2);
}

.legal p + p,
.legal ul,
.legal ol,
.legal table {
  margin-top: 14px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.toc {
  padding: 20px 22px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  font-size: 0.93rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.035);
}

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

/* ==========================================================================
   MOTION
   --------------------------------------------------------------------------
   One rule governs everything below, and it is not negotiable:

     CONTENT MUST NEVER DEPEND ON AN ANIMATION RUNNING TO BE VISIBLE.

   A reveal whose resting state is opacity:0 vanishes completely whenever the
   animation does not run, and it fails in more ways than people expect:
   scripting disabled, IntersectionObserver never firing, requestAnimationFrame
   not ticking in a headless browser — which also defeats any timer failsafe,
   because most animation libraries tick from rAF. An ad reviewer's crawler is
   exactly that kind of browser, and a blank landing page is a rejected one.

   So: every reveal is a CSS keyframe with animation-fill-mode: both, nothing
   here is scroll-triggered by JavaScript, and the one scroll-linked effect
   (§7) animates transform only, which physically cannot hide anything.

   Everything in this section is switched off under prefers-reduced-motion.
   ========================================================================== */

/* --- 1. Entry reveal ----------------------------------------------------- */

.reveal {
  animation: reveal-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes reveal-in {
  from {
    opacity: 0.001;
    transform: translateY(16px) scale(0.994);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Stagger by position rather than by hand-placed classes, so a card added to a
   grid inherits the rhythm instead of arriving with a forgotten delay. */
.grid-2 > .reveal:nth-child(2),
.grid-3 > .reveal:nth-child(2),
.grid-4 > .reveal:nth-child(2),
.chain > .chain-node:nth-child(2) { animation-delay: 0.07s; }

.grid-3 > .reveal:nth-child(3),
.grid-4 > .reveal:nth-child(3),
.chain > .chain-node:nth-child(3) { animation-delay: 0.14s; }

.grid-4 > .reveal:nth-child(4),
.chain > .chain-node:nth-child(4) { animation-delay: 0.21s; }

.grid-3 > .reveal:nth-child(4),
.grid-3 > .reveal:nth-child(5) { animation-delay: 0.21s; }

.grid-3 > .reveal:nth-child(6),
.grid-4 > .reveal:nth-child(5) { animation-delay: 0.28s; }

.hero .split > .reveal:nth-child(2) { animation-delay: 0.12s; }

/* --- 2. Living background ------------------------------------------------ */

/* The aurora drifts. Transform and opacity only — both composite on the GPU,
   neither triggers layout, and the whole layer sits at z-index -1. */
.page-bg::after {
  content: "";
  position: absolute;
  inset: -30% -20%;
  background:
    radial-gradient(38rem 26rem at 22% 28%, rgba(34, 211, 238, 0.2), transparent 65%),
    radial-gradient(44rem 30rem at 74% 42%, rgba(99, 102, 241, 0.22), transparent 65%),
    radial-gradient(30rem 24rem at 52% 76%, rgba(167, 139, 250, 0.16), transparent 68%);
  filter: blur(14px);
  animation: aurora-drift 34s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes aurora-drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1);   opacity: 0.85; }
  50%  { transform: translate3d(4%, 3%, 0) scale(1.09);  opacity: 1; }
  100% { transform: translate3d(-2%, 5%, 0) scale(1.03); opacity: 0.78; }
}

/* The grid breathes very slightly, which stops the background reading as a
   static image on a long legal page. */
.page-grid {
  animation: grid-breathe 26s ease-in-out infinite alternate;
}

@keyframes grid-breathe {
  from { opacity: 0.75; background-position: 0 0; }
  to   { opacity: 1;    background-position: 34px 34px; }
}

/* --- 3. Hero ------------------------------------------------------------- */

/* The gradient in the headline slides. The text is painted either way: where
   background-clip:text is unsupported the @supports fallback above gives it a
   solid colour and this animation simply has nothing to move. */
.hero-accent {
  background-size: 220% 100%;
  animation: accent-slide 11s ease-in-out infinite alternate;
}

@keyframes accent-slide {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.hero-dot {
  animation: dot-pulse 2.6s ease-out infinite;
}

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

/* The generated key art drifts inside its frame. overflow:hidden on .hero-art
   means the scale never changes the box, so nothing reflows. */
.hero-art .keyart {
  animation: art-drift 30s ease-in-out infinite alternate;
  transform-origin: 52% 46%;
}

@keyframes art-drift {
  from { transform: scale(1.02) translate3d(-0.6%, 0, 0); }
  to   { transform: scale(1.07) translate3d(0.8%, -1%, 0); }
}

/* A thin light sweeps across the art frame every twelve seconds. */
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(103, 232, 249, 0.13) 48%, transparent 58%);
  background-size: 260% 100%;
  animation: sheen 12s ease-in-out infinite;
}

@keyframes sheen {
  0%, 62% { background-position: 160% 0; }
  100%    { background-position: -60% 0; }
}

/* --- 4. The signal chain ------------------------------------------------- */

/* A pulse runs along the connector between stages — the brand device, moving.
   The connector is decorative; unanimated it is still a line. */
@media (min-width: 900px) {
  .chain-node::after {
    background: linear-gradient(90deg, rgba(103, 232, 249, 0.15), rgba(103, 232, 249, 0.85), rgba(103, 232, 249, 0.15));
    background-size: 260% 100%;
    animation: chain-pulse 3.4s linear infinite;
  }

  .chain-node:nth-child(2)::after { animation-delay: 0.5s; }
  .chain-node:nth-child(3)::after { animation-delay: 1s; }
}

@keyframes chain-pulse {
  from { background-position: 160% 0; }
  to   { background-position: -60% 0; }
}

.chain-code {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.chain-node:hover .chain-code {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.1);
}

/* --- 5. Cards, buttons, links -------------------------------------------- */

.card-hover {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.32s ease,
              box-shadow 0.32s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 46px -30px rgba(0, 0, 0, 0.95),
              0 0 0 1px rgba(103, 232, 249, 0.14);
}

.card-icon {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease, color 0.35s ease;
}

.card-hover:hover .card-icon {
  transform: translateY(-2px) rotate(-4deg) scale(1.06);
  border-color: rgba(103, 232, 249, 0.5);
  color: #fff;
}

/* A sheen crosses the primary button on hover — decoration over a button that
   is fully functional without it. */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.42) 50%, transparent 60%);
  background-size: 250% 100%;
  background-position: 170% 0;
  transition: background-position 0.7s ease;
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  background-position: -70% 0;
}

.btn svg {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Nav links grow an underline rather than swapping colour abruptly. */
.nav-link {
  position: relative;
  transition: color 0.22s ease, background-color 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--indigo-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* The mobile panel drops in when <details> opens. It is in the DOM and laid
   out either way — the animation only affects how it arrives. */
.nav-mobile[open] .nav-mobile-panel {
  animation: panel-drop 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panel-drop {
  from { opacity: 0.001; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* Small lifts in dense content: a legal table then reads as an interface
   rather than a printout. */
.plate-row {
  transition: background-color 0.25s ease;
}

.plate-row:hover {
  background: rgba(34, 211, 238, 0.05);
}

.ticks li svg {
  transition: transform 0.25s ease;
}

.ticks li:hover svg {
  transform: scale(1.16);
}

/* --- 6. Meters, pills, tags ---------------------------------------------- */

/* The completeness bar fills smoothly and carries a travelling highlight, so a
   value that has not changed still reads as live. */
.meter-fill {
  position: relative;
  overflow: hidden;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.meter-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  background-size: 240% 100%;
  animation: sheen 3.6s linear infinite;
}

.meter-list li {
  transition: color 0.3s ease;
}

.meter-dot {
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.meter-list li[data-met="1"] .meter-dot {
  transform: scale(1.25);
}

.pill-live {
  animation: live-glow 3.2s ease-in-out infinite;
}

@keyframes live-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
  50%      { box-shadow: 0 0 14px -2px rgba(34, 211, 238, 0.35); }
}

.stat {
  transition: background-color 0.3s ease;
}

.stat:hover {
  background: rgba(19, 28, 48, 0.9);
}

.status-tag,
.pill {
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

/* --- 7. Scroll-linked motion (transform only) ---------------------------- */

/* Where the browser supports scroll-driven animations, panels settle as they
   enter the viewport. TRANSFORM ONLY, never opacity: an element outside the
   animation range must still be fully painted, and a scroll-driven opacity
   ramp is exactly what leaves content invisible to a crawler that never
   scrolls. */
@supports (animation-timeline: view()) {
  .section > .shell > .glass,
  .stat-strip {
    animation: settle linear both;
    animation-timeline: view();
    animation-range: entry 8% cover 26%;
  }

  @keyframes settle {
    from { transform: translateY(18px) scale(0.995); }
    to   { transform: none; }
  }
}

/* --- 8. Forms ------------------------------------------------------------ */

.input,
.select,
.textarea {
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  background: rgba(4, 7, 15, 0.9);
}

.check {
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.check:hover {
  transform: translateX(2px);
}

.field-error {
  animation: error-in 0.3s ease both;
}

@keyframes error-in {
  from { opacity: 0.001; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* An error notice flashes its edge once — noticed without a colour change that
   would fight the page. */
.notice-danger {
  animation: flash-edge 1.1s ease-out both;
}

@keyframes flash-edge {
  from { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.35); }
  to   { box-shadow: 0 0 0 12px rgba(251, 113, 133, 0); }
}

/* --- 9. Reduced motion --------------------------------------------------- */

/* Everything above is decoration. This removes all of it and leaves the
   layout, the colours and the content exactly as they were. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .page-bg::after,
  .page-grid,
  .hero-art .keyart,
  .hero-art::after,
  .meter-fill::after,
  .pill-live {
    animation: none !important;
  }

  .card-hover:hover,
  .check:hover,
  .pill:hover,
  .btn:hover {
    transform: none !important;
  }
}

/* --- Print -------------------------------------------------------------- */

@media print {
  .page-bg,
  .site-header,
  .nav-mobile,
  .btn-row {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .glass,
  .identity-block {
    border: 1px solid #999;
    background: none;
    box-shadow: none;
  }
}
