/* Fasti BPM landing page. Plain CSS, no build step. */

:root {
  color-scheme: light;
  --bg: #fcfbf8;
  --bg-alt: #f5f2eb;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --text: #141a26;
  --muted: #566074;
  --border: #e4ded1;
  --border-strong: #cfc7b6;
  --accent: #a8321f;
  --accent-hover: #8a2716;
  --accent-soft: #f8e6e1;
  --on-accent: #ffffff;
  --ok: #1c6a44;
  --ok-soft: #e0f1e7;
  --plan: #7a5a07;
  --plan-soft: #f9eecb;
  --ink: #101726;
  --ink-2: #18223a;
  --ink-text: #dfe5f0;
  --ink-muted: #8f9ab1;
  --ink-border: #2a3550;
  --glow: rgba(168, 50, 31, 0.1);
  --grid-line: rgba(20, 26, 38, 0.045);
  --header-bg: rgba(252, 251, 248, 0.82);
  --shadow-sm: 0 1px 2px rgba(20, 26, 38, 0.05);
  --shadow: 0 1px 2px rgba(20, 26, 38, 0.05), 0 12px 32px -8px rgba(20, 26, 38, 0.12);
  --shadow-lg: 0 2px 4px rgba(20, 26, 38, 0.06), 0 32px 64px -20px rgba(20, 26, 38, 0.28);
  --radius: 14px;
  --maxw: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c111b;
  --bg-alt: #111827;
  --surface: #161e2e;
  --surface-2: #1a2336;
  --text: #eef1f7;
  --muted: #a4aec2;
  --border: #263147;
  --border-strong: #36435e;
  --accent: #f08a73;
  --accent-hover: #f6a491;
  --accent-soft: #3a211d;
  --on-accent: #1a0d0a;
  --ok: #7fd3a6;
  --ok-soft: #153224;
  --plan: #e9c666;
  --plan-soft: #3a3013;
  --ink: #080c14;
  --ink-2: #121a2c;
  --glow: rgba(240, 138, 115, 0.12);
  --grid-line: rgba(255, 255, 255, 0.035);
  --header-bg: rgba(12, 17, 27, 0.8);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 32px 64px -20px rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c111b;
    --bg-alt: #111827;
    --surface: #161e2e;
    --surface-2: #1a2336;
    --text: #eef1f7;
    --muted: #a4aec2;
    --border: #263147;
    --border-strong: #36435e;
    --accent: #f08a73;
    --accent-hover: #f6a491;
    --accent-soft: #3a211d;
    --on-accent: #1a0d0a;
    --ok: #7fd3a6;
    --ok-soft: #153224;
    --plan: #e9c666;
    --plan-soft: #3a3013;
    --ink: #080c14;
    --ink-2: #121a2c;
    --glow: rgba(240, 138, 115, 0.12);
    --grid-line: rgba(255, 255, 255, 0.035);
    --header-bg: rgba(12, 17, 27, 0.8);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 32px 64px -20px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--accent-hover);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--on-accent);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

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

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 2px 6px;
  margin-left: 2px;
}

.nav {
  display: flex;
  gap: 2px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s, background-color 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.tool:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.tool svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: block;
}

:root[data-theme="dark"] .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}

.header-cta {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.menu {
  display: none;
  position: relative;
}

.menu summary {
  list-style: none;
}

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

.menu-panel {
  position: absolute;
  right: 0;
  top: 50px;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
}

.menu-panel a {
  color: var(--text);
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.menu-panel a:hover {
  background: var(--bg-alt);
}

@media (max-width: 940px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu {
    display: block;
  }
}

/* Buttons and badges */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 20px -8px var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-now {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge-plan {
  background: var(--plan-soft);
  color: var(--plan);
}

.badge-now::before,
.badge-plan::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow .badge {
  letter-spacing: 0.03em;
  text-transform: none;
}

/* Hero */

.hero {
  position: relative;
  padding: 76px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(60% 70% at 85% 10%, var(--glow), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 33em;
  margin-top: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
}

.soon {
  background: var(--plan-soft);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.93rem;
  line-height: 1.5;
  max-width: 36em;
  margin: 0 0 18px;
}

.origin {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  max-width: 36em;
}

/* Hero visual: an app-like window. The HTML ledger inside stays visible when
   the R2 image is unavailable. */

.window {
  background: var(--ink);
  color: var(--ink-text);
  border-radius: 18px;
  border: 1px solid var(--ink-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--ink-border);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4664;
}

.window-bar span {
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-bar b {
  margin-left: auto;
  font-weight: 700;
  color: #7fd3a6;
  white-space: nowrap;
}

.visual {
  position: relative;
  aspect-ratio: 3 / 2;
}

.visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 22px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.4vw, 0.86rem);
}

.ledger li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px dashed rgba(143, 154, 177, 0.28);
  padding-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
}

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

.ledger .e {
  color: #f3a08d;
}

.ledger .ok {
  margin-left: auto;
  color: #7fd3a6;
}

/* Facts strip */

.facts {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.facts dl > div {
  padding: 22px 24px;
  border-left: 1px solid var(--border);
}

.facts dl > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts dt {
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 1.02rem;
}

/* Sections */

.section {
  padding: 92px 0;
}

.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 44em;
  margin-bottom: 44px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.card-top h3 {
  margin: 0;
}

.phase {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.75;
}

/* Architecture figure */

.arch {
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.arch img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--ink-border);
  box-shadow: var(--shadow-lg);
}

.arch.no-media {
  grid-template-columns: minmax(0, 1fr);
}

.arch figcaption h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.modules {
  margin: 0;
  display: grid;
  gap: 12px;
}

.modules > div {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 16px;
}

.modules dt {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.modules dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}

.stats > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.stats dt {
  order: 2;
  color: var(--muted);
  font-size: 0.9rem;
}

.stats > div {
  display: flex;
  flex-direction: column;
}

.stats dd {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Tables */

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

caption {
  text-align: left;
  padding: 18px 20px 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

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

thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

tbody tr:hover {
  background: var(--surface-2);
}

td.num {
  font-family: var(--mono);
  white-space: nowrap;
  color: var(--muted);
}

td.new {
  color: var(--ok);
  font-weight: 700;
}

td.new::before {
  content: "→ ";
  opacity: 0.6;
  font-weight: 400;
}

.sub {
  margin: 56px 0 20px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.fixes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fixes li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.fixes h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.fixes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.kind {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 10px;
}

.note {
  margin: 28px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  background: var(--surface);
}

/* Roadmap */

.roadmap .card {
  position: relative;
  overflow: hidden;
}

.roadmap .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--border-strong);
}

.roadmap .card.is-now::before {
  background: var(--ok);
}

/* Contact */

.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(240, 138, 115, 0.22), transparent 60%),
    linear-gradient(135deg, #18223a, #0b101a);
  color: var(--ink-text);
  border: 1px solid var(--ink-border);
  border-radius: 24px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.contact h2 {
  color: #ffffff;
}

.contact p {
  color: var(--ink-text);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.contact .actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.contact .btn-primary {
  background: #f08a73;
  color: #1a0d0a;
  box-shadow: none;
}

.contact .btn-primary:hover {
  background: #f6a491;
}

.contact .mail {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.contact :focus-visible {
  outline-color: #ffffff;
}

/* Footer */

.site-footer {
  padding: 56px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.foot-grid .brand {
  margin-bottom: 12px;
}

.foot-grid h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 12px;
}

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

.foot-grid a:not(.brand) {
  color: var(--muted);
  text-decoration: none;
}

.foot-grid a:not(.brand):hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer p {
  margin: 0 0 8px;
  max-width: 72em;
}

.legal {
  font-size: 0.82rem;
}

/* Responsive */

@media (max-width: 980px) {
  .hero .wrap,
  .arch,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

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

  .hero .wrap {
    gap: 36px;
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .grid-3,
  .fixes {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts dl > div {
    padding: 16px 0 16px 16px;
  }

  .facts dl > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .facts dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .stats dd {
    font-size: 1.8rem;
  }

  .stats > div {
    padding: 16px;
  }

  .contact {
    padding: 34px 24px;
    border-radius: 20px;
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .brand small {
    display: none;
  }

  table {
    font-size: 0.88rem;
  }

  th,
  td {
    padding: 10px;
  }

  thead th {
    white-space: normal;
    letter-spacing: 0.02em;
  }

  caption {
    padding: 14px 10px 8px;
  }
}

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

  .btn,
  .card {
    transition: none;
  }

  .btn-primary:hover,
  .card:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .mock,
  .cta-row {
    display: none;
  }
}

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

.wrap.narrow {
  max-width: 820px;
}

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

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

/* ---------- Hero: centered copy above a product mock ---------- */

.hero {
  padding: 84px 0 64px;
}

.hero .wrap {
  display: block;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy .lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 38em;
}

.hero-copy .cta-row {
  justify-content: center;
  margin-bottom: 16px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 12px 5px 5px;
  margin-bottom: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 550;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}

a.pill:hover {
  border-color: var(--accent);
  color: var(--text);
}

.pill-tag {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.pill svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}

/* ---------- Product mock ---------- */

.mock {
  position: relative;
  max-width: 1040px;
  margin: 56px auto 0;
  background: var(--ink);
  color: var(--ink-text);
  border: 1px solid var(--ink-border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg), 0 0 0 6px var(--glow);
  overflow: hidden;
  font-size: 0.82rem;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--ink-border);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4664;
  flex: none;
}

.mock-url {
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-bar b {
  margin-left: auto;
  color: #7fd3a6;
  white-space: nowrap;
}

.mock-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 210px;
}

.mock-side,
.mock-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.02);
}

.mock-side {
  border-right: 1px solid var(--ink-border);
}

.mock-panel {
  border-left: 1px solid var(--ink-border);
}

.mock-h {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 8px 0 6px;
}

.mock-h:first-child {
  margin-top: 0;
}

.mock-item {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-text);
}

.mock-item.is-active {
  background: rgba(240, 138, 115, 0.16);
  color: #f6a491;
  font-weight: 650;
}

.mock-panel dl {
  margin: 0 0 6px;
  display: grid;
  gap: 2px;
}

.mock-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(143, 154, 177, 0.16);
}

.mock-panel dt {
  color: var(--ink-muted);
}

.mock-panel dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: right;
}

.mock-panel .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fd3a6;
  margin-right: 6px;
}

.mock-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 16px 0 0;
}

/* ---------- Bento ---------- */

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

.bento .card.span-2 {
  grid-column: span 2;
  background:
    radial-gradient(80% 120% at 100% 0%, var(--glow), transparent 60%),
    var(--surface);
}

.bento .card.span-2 h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.steps li + li::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 46px;
  width: 21px;
  border-top: 2px dashed var(--border-strong);
}

.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  margin-bottom: 16px;
}

.steps p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- Engine split and accordions ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.split .table-wrap {
  position: sticky;
  top: 92px;
}

.fix-groups .sub {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.fix-groups .acc + .sub {
  margin-top: 32px;
}

.acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.acc details + details {
  border-top: 1px solid var(--border);
}

.acc summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 44px 15px 18px;
  position: relative;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

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

.acc summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s;
}

.acc details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.acc summary:hover {
  background: var(--surface-2);
}

.acc summary:focus-visible {
  outline-offset: -3px;
}

.acc summary .kind {
  margin: 0;
  flex: none;
}

.acc details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq summary {
  padding-top: 19px;
  padding-bottom: 19px;
  font-size: 1.04rem;
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.timeline > li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.timeline > li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--border-strong);
}

.timeline > li.is-now::before {
  background: var(--ok);
}

.tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tl-head .phase {
  margin: 0;
}

.timeline h3 {
  margin-bottom: 14px;
}

.foot-grid .origin {
  font-size: 0.85rem;
}

/* ---------- Responsive for the blocks above ---------- */

@media (max-width: 980px) {
  .mock-body {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .mock-side {
    display: none;
  }

  .bento,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split .table-wrap {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 44px;
  }

  .pill {
    font-size: 0.8rem;
  }

  .mock {
    margin-top: 40px;
    border-radius: 14px;
  }

  .mock-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mock-panel,
  .mock-bar b {
    display: none;
  }

  .bento,
  .timeline,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento .card.span-2 {
    grid-column: span 1;
  }

  .steps li + li::before {
    display: none;
  }

  .acc summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- Mobile refinements ---------- */

.brand span {
  white-space: nowrap;
}

@media (max-width: 940px) {
  .site-header .header-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header .wrap {
    min-height: 60px;
    gap: 10px;
  }

  h1 {
    font-size: 2.35rem;
    letter-spacing: -0.03em;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero-copy .lede,
  .lede {
    font-size: 1.04rem;
    margin-top: 14px;
  }

  .section-head p {
    font-size: 1rem;
  }

  .pill {
    font-size: 0.76rem;
    gap: 8px;
    padding-right: 10px;
    margin-bottom: 20px;
    white-space: nowrap;
  }

  .pill > span:last-of-type {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pill svg {
    display: none;
  }

  .cta-row {
    margin: 24px 0 14px;
  }

  .btn {
    min-height: 46px;
  }

  .hero-note,
  .mock-caption {
    font-size: 0.8rem;
  }

  .mock {
    margin-top: 32px;
    box-shadow: var(--shadow);
  }

  .mock-bar {
    padding: 9px 12px;
  }

  .section {
    padding: 52px 0;
  }

  .grid,
  .bento,
  .steps,
  .timeline {
    gap: 12px;
  }

  .card,
  .steps li,
  .timeline > li {
    padding: 18px;
  }

  .card .ico,
  .step-n {
    float: left;
    width: 36px;
    height: 36px;
    margin: 0 12px 10px 0;
    border-radius: 10px;
  }

  .step-n {
    border-radius: 50%;
  }

  .card .ico svg {
    width: 19px;
    height: 19px;
  }

  .card .ico + h3,
  .step-n + h3 {
    min-height: 36px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }

  .bento .card.span-2 h3 {
    font-size: 1.12rem;
  }

  .card p,
  .steps p {
    clear: both;
    font-size: 0.94rem;
  }

  .arch {
    margin-top: 32px;
    gap: 24px;
  }

  .arch figcaption h3 {
    font-size: 1.25rem;
  }

  .stats {
    gap: 12px;
    margin-bottom: 20px;
  }

  .split {
    gap: 24px;
  }

  .contact h2 {
    font-size: 1.5rem;
  }

  .contact p {
    font-size: 0.98rem;
  }

  .site-footer {
    padding: 8px 0 36px;
  }

  .foot-grid {
    gap: 24px;
  }
}

/* ---------- Motion and the short page layout ---------- */

.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;
}

/* Entrance on load (hero) */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rise {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.r1 { animation-delay: 0.05s; }
.r2 { animation-delay: 0.15s; }
.r3 { animation-delay: 0.25s; }
.r4 { animation-delay: 0.35s; }
.r5 { animation-delay: 0.5s; }

/* Entrance on scroll. Only hidden when scripting is available. */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.grid .reveal:nth-child(2),
.counters .reveal:nth-child(2),
.track .reveal:nth-child(2),
.fix-cols .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3),
.counters .reveal:nth-child(3),
.track .reveal:nth-child(3) { transition-delay: 0.16s; }
.counters .reveal:nth-child(4),
.track .reveal:nth-child(4) { transition-delay: 0.24s; }
.track .reveal:nth-child(5) { transition-delay: 0.32s; }
.track .reveal:nth-child(6) { transition-delay: 0.4s; }

/* Hero background */

.hero {
  padding: 72px 0 40px;
}

.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.aurora i:first-child {
  top: -18%;
  right: -6%;
  background: radial-gradient(circle, rgba(240, 138, 115, 0.55), transparent 65%);
  animation: drift-a 16s ease-in-out infinite alternate;
}

.aurora i:last-child {
  top: 8%;
  left: -10%;
  background: radial-gradient(circle, rgba(92, 120, 220, 0.35), transparent 65%);
  animation: drift-b 20s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate(-9vw, 7vw) scale(1.15);
  }
}

@keyframes drift-b {
  to {
    transform: translate(8vw, 5vw) scale(0.9);
  }
}

.hero h1 em {
  background: linear-gradient(100deg, #e2492d, #f6a491 45%, #e2492d 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s linear infinite;
}

@keyframes sheen {
  to {
    background-position: -200% 0;
  }
}

.btn-primary svg {
  transition: transform 0.2s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

/* Product mock with a live process */

.mock {
  max-width: 920px;
}

.mock-bar b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fd3a6;
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(127, 211, 166, 0.6);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(127, 211, 166, 0);
  }
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  background: linear-gradient(135deg, #18213a, #0b101a);
}

.flow {
  display: block;
  width: 100%;
  height: auto;
  padding: 22px 6px 22px 22px;
}

.flow .edges path {
  fill: none;
  stroke: #46526f;
  stroke-width: 2;
}

.flow .trail {
  fill: none;
  stroke: #f08a73;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.flow .node {
  fill: #0f1626;
  stroke-width: 3;
}

.flow .start {
  stroke: #7fd3a6;
}

.flow .end {
  stroke: #f08a73;
  stroke-width: 5;
}

.flow .task rect {
  fill: #1f2a44;
  stroke: #c9d1e3;
  stroke-width: 1.8;
}

.flow .task path {
  fill: none;
  stroke: #7d89a3;
  stroke-width: 4;
  stroke-linecap: round;
}

.flow .gate path:first-child {
  fill: #1f2a44;
  stroke: #f08a73;
  stroke-width: 2.4;
}

.flow .gate path:last-child {
  fill: none;
  stroke: #f08a73;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.flow .token {
  fill: #ffffff;
  filter: drop-shadow(0 0 6px #f08a73);
}

/* Each step lights up as the token reaches it (6s loop). */

@keyframes lit {
  0%,
  100% {
    stroke: #c9d1e3;
    fill: #1f2a44;
  }
  6%,
  60% {
    stroke: #f6a491;
    fill: #3a2622;
  }
}

.flow .task rect {
  animation: lit 6s linear infinite;
}

.flow .t1 rect { animation-delay: 0.3s; }
.flow .t2 rect { animation-delay: 1.9s; }
.flow .t3 rect { animation: none; opacity: 0.55; }

.stage .ledger {
  height: auto;
  padding: 22px 22px 22px 10px;
  gap: 9px;
  font-size: 0.78rem;
}

@keyframes log {
  0% {
    opacity: 0;
    transform: translateX(-8px);
  }
  5%,
  88% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

.stage .ledger li {
  animation: log 6s ease-out infinite both;
}

.stage .l1 { animation-delay: 0.1s; }
.stage .l2 { animation-delay: 0.7s; }
.stage .l3 { animation-delay: 1.7s; }
.stage .l4 { animation-delay: 2.9s; }
.stage .l5 { animation-delay: 3.5s; }
.stage .l6 { animation-delay: 4.3s; }

/* Numbers band */

.numbers {
  padding: 36px 0 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.counters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  text-align: center;
}

.counters dd {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.counters dt {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.counters > div {
  display: flex;
  flex-direction: column;
}

.numbers-note {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Cards with an accent edge on hover */

.card.glow {
  position: relative;
  overflow: hidden;
}

.card.glow::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.card.glow:hover::after {
  transform: scaleX(1);
}

.card.glow .ico {
  transition: transform 0.25s ease;
}

.card.glow:hover .ico {
  transform: scale(1.08) rotate(-4deg);
}

.section-head.center h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

/* Upgrade marquee */

.marquee {
  overflow: hidden;
  padding: 4px 0 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: slide 36s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
}

.chip b {
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
}

.chip i {
  font-style: normal;
  opacity: 0.6;
}

.chip em {
  font-style: normal;
  font-weight: 700;
  color: var(--ok);
}

.fix-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.fix-cols .sub {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.fix-cols .note {
  margin-top: 16px;
  font-size: 0.84rem;
}

/* Roadmap track */

.track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  position: relative;
}

.track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
  background: linear-gradient(90deg, var(--ok), var(--border-strong) 22%, var(--border-strong) 80%, var(--ok));
}

.track li {
  position: relative;
  padding: 30px 14px 0 0;
}

.track .dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--border-strong);
}

.track .is-now .dot {
  border-color: var(--ok);
  animation: pulse 1.8s ease-out infinite;
}

.track h3 {
  margin: 12px 0 6px;
  font-size: 1.02rem;
}

.track p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Contact and footer */

.contact {
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(240, 138, 115, 0.28), transparent 60%),
    linear-gradient(135deg, #18213a, #0b101a);
  background-size: 160% 160%, auto;
  animation: glowmove 12s ease-in-out infinite alternate;
}

@keyframes glowmove {
  to {
    background-position: 100% 100%, 0 0;
  }
}

.site-footer {
  padding: 40px 0 36px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.foot-row .brand {
  margin-right: 0;
}

.foot-row .origin {
  margin: 0 auto 0 0;
  font-size: 0.85rem;
}

.foot-row a:not(.brand) {
  color: var(--muted);
}

@media (max-width: 980px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow {
    padding: 18px 14px 4px;
  }

  .stage .ledger {
    padding: 8px 18px 18px;
  }

  .track {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-left: 4px;
  }

  .track::before {
    left: 11px;
    right: auto;
    top: 4px;
    bottom: 4px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--ok), var(--border-strong) 20%, var(--border-strong) 80%, var(--ok));
  }

  .track li {
    padding: 0 0 22px 40px;
  }

  .track li:last-child {
    padding-bottom: 0;
  }

  .track h3 {
    margin-top: 8px;
  }

  .fix-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 0 28px;
  }

  .counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .numbers {
    padding: 28px 0 22px;
  }

  .stage .ledger {
    font-size: 0.72rem;
    gap: 7px;
  }

  .stage .ledger li {
    padding-bottom: 7px;
  }

  .chip {
    padding: 9px 14px;
    font-size: 0.8rem;
  }

  .marquee {
    padding-bottom: 26px;
  }

  .foot-row .origin {
    flex-basis: 100%;
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .aurora i,
  .hero h1 em,
  .live,
  .flow .task rect,
  .stage .ledger li,
  .marquee-track,
  .track .is-now .dot,
  .contact {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee {
    overflow-x: auto;
  }
}
