/* AnchorShield — institutional dark ZK-terminal design system */

:root {
  /* surfaces */
  --bg: #0a0e17;
  --bg-2: #0c111c;
  --surface: #111726;
  --surface-2: #151c2d;
  --elevated: #1a2234;
  --line: #232d42;
  --line-2: #303c56;

  /* text */
  --text: #f3f6fb;
  --muted: #9aa7bd;
  --faint: #67748d;

  /* brand + semantic */
  --brand: #f5a524;
  --brand-press: #e2951a;
  --brand-soft: rgba(245, 165, 36, 0.12);
  --on-brand: #0a0e17;
  --ok: #2dd4a7;
  --ok-soft: rgba(45, 212, 167, 0.13);
  --alert: #f4566b;
  --alert-soft: rgba(244, 86, 107, 0.13);

  /* type */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.025) inset,
    0 24px 50px -32px rgba(0, 0, 0, 0.85);
  --maxw: 1160px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* background texture */
.bg-grid,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}
.bg-glow {
  background:
    radial-gradient(60% 40% at 78% 8%, rgba(245, 165, 36, 0.12), transparent 60%),
    radial-gradient(50% 38% at 12% 4%, rgba(45, 212, 167, 0.1), transparent 62%);
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -56px;
  z-index: 1000;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 13px 20px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.12s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn-icon {
  width: 18px;
  height: 18px;
}
.btn-sm {
  padding: 10px 16px;
  min-height: 40px;
  font-size: 0.875rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 26px -14px rgba(245, 165, 36, 0.7);
}
.btn-primary:hover {
  background: #ffb734;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--elevated);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: #ffd596;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--muted);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--text);
}
.btn:active {
  transform: translateY(0) scale(0.985);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10, 14, 23, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--brand);
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-text span {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color 0.16s ease, background 0.16s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.net-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.net-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(45, 212, 167, 0.5);
  animation: pulse 2.4s infinite;
}

/* ---------- shell / layout ---------- */
.shell {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(16px, 4vw, 40px) 80px;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 104px);
}

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/* allow grid/flex children to shrink below intrinsic content width */
.hero-copy,
.hero-panel,
.console-main,
.wallet-panel,
.flow-card,
.auditor,
.failure,
.table-wrap {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.grad {
  background: linear-gradient(100deg, var(--brand) 8%, #ffd27a 55%, var(--ok));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.66;
  max-width: 54ch;
  margin: 0 0 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero-stats dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-stats dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--text);
}
.hero-stats .unit {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
}

.hero-panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.panel-head {
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.panel-head .eyebrow {
  margin: 0;
}
.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pipeline li {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 14px 0;
}
.pipeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 50px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(var(--line-2), transparent);
}
.pipe-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--brand-soft);
  color: var(--brand);
}
.pipe-ico[data-tone="ok"] {
  background: var(--ok-soft);
  color: var(--ok);
}
.pipe-ico svg {
  width: 20px;
  height: 20px;
}
.pipeline strong {
  display: block;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.pipeline p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- ticker ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  margin-block: -16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track {
  display: inline-flex;
  gap: 44px;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.ticker-track i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

/* ---------- proof console ---------- */
.console {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.7fr);
  gap: 20px;
}
.console-main {
  padding: 24px;
}
.console-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.console-h {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}
.pill.success {
  color: var(--ok);
  border-color: rgba(45, 212, 167, 0.4);
  background: var(--ok-soft);
}
.pill.success::before {
  background: var(--ok);
}
.pill.error {
  color: var(--alert);
  border-color: rgba(244, 86, 107, 0.4);
  background: var(--alert-soft);
}
.pill.error::before {
  background: var(--alert);
}
.meter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.meter {
  background: var(--bg-2);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.meter span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.meter strong {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 600;
}
.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.log-head .eyebrow {
  margin: 0;
  color: var(--faint);
}
.log-dots {
  display: inline-flex;
  gap: 6px;
}
.log-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}
.proof-log {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--ok);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  min-height: 132px;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.console-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.wallet-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wallet-panel .eyebrow {
  margin: 0 0 4px;
}
.wallet-state {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
}
.wallet-addr {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
}
.wallet-note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.wallet-note p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--faint);
  line-height: 1.55;
}

/* ---------- section headings ---------- */
.section-heading {
  max-width: 60ch;
  margin-bottom: 26px;
}
.section-heading h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

/* ---------- flow cards ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.flow-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.flow-card.active {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--brand-soft);
}
.flow-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flow-index {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.tag-brand {
  color: var(--brand);
  background: var(--brand-soft);
}
.tag-ok {
  color: var(--ok);
  background: var(--ok-soft);
}
.flow-card h3 {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 600;
  margin: 0;
}
.flow-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.58;
}
.kv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 4px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.kv div {
  background: var(--bg-2);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kv dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.kv dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}
.flow-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}
.text-link,
.mono-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.16s ease;
}
.mono-link {
  font-family: var(--mono);
}
.text-link:hover,
.mono-link:hover {
  color: var(--brand);
}
.ext {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

/* ---------- event table ---------- */
.table-wrap {
  overflow-x: auto;
}
.event-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.event-table th,
.event-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.event-table thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--bg-2);
}
.event-table tbody tr:last-child td {
  border-bottom: none;
}
.event-table tbody tr {
  transition: background 0.16s ease;
}
.event-table tbody tr:hover {
  background: var(--surface-2);
}
.ta-r {
  text-align: right !important;
}

/* ---------- split: auditor + failure ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
}
.auditor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.stat {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.stat span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.stat strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}
.hash {
  font-family: var(--mono) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--muted);
}

.failure-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.failure-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.failure-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.failure-list strong {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
}

/* semantic text states (set by app.js) */
.success {
  color: var(--ok);
}
.error {
  color: var(--alert);
}
.pending {
  color: var(--faint);
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px clamp(16px, 4vw, 40px) 32px;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand {
  margin-bottom: 14px;
  color: var(--brand);
}
.footer-brand .brand strong {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--text);
}
.footer-brand p {
  margin: 0;
  max-width: 38ch;
  color: var(--faint);
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-h {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 3px;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.16s ease;
  width: fit-content;
}
.footer-col a:hover {
  color: var(--brand);
}
.footer-flat {
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-base {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--faint);
}

/* ---------- animations ---------- */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 212, 167, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(45, 212, 167, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 167, 0);
  }
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    display: none;
  }
  .console {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .topbar-actions {
    margin-left: auto;
  }
  .flow-grid {
    grid-template-columns: 1fr;
  }
  .meter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.6rem);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track {
    animation: none;
    transform: none;
  }
}

/* ===================================================================
   multi-page additions (landing + console + onchain + auditor)
   =================================================================== */

.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

.inline-code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  word-break: break-word;
}

/* sub-page hero */
.page-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 68ch;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
}
.page-hero .lede {
  margin: 0;
  max-width: 62ch;
}

/* landing: how-it-works steps (horizontal) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--brand-soft);
  color: var(--brand);
}
.step-ico[data-tone="ok"] {
  background: var(--ok-soft);
  color: var(--ok);
}
.step-ico svg {
  width: 22px;
  height: 22px;
}
.step h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
.step h3::before {
  counter-increment: step;
  content: "0" counter(step) " — ";
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  letter-spacing: 0.08em;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* landing: value props */
.props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.prop {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.prop-ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--brand);
  margin-bottom: 4px;
}
.prop-ico svg {
  width: 19px;
  height: 19px;
}
.prop h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0;
}
.prop p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* landing: live teaser strip */
.teaser {
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(80% 120% at 0% 0%, var(--brand-soft), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.teaser-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 14px 0 0;
}
.teaser-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.teaser-stats dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.teaser-stats dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
}

/* onchain: contracts grid */
.contracts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.contract {
  background: var(--surface);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.16s ease;
}
.contract:hover {
  background: var(--surface-2);
}
.contract .c-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contract .c-name strong {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
}
.contract .c-name span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
}

/* generic centered CTA block */
.cta-band {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(32px, 5vw, 56px);
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}
.cta-band p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 1024px) {
  .props {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .contracts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .props {
    grid-template-columns: 1fr;
  }
}
