:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #edf2f7;
  --ink: #101828;
  --muted: #5b667a;
  --line: #d9e2ef;
  --primary: #143cff;
  --accent: #00b894;
  --accent-2: #f5a524;
  --danger: #d92d20;
  --navy: #07111f;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 8px;
  --max: 1180px;
  --head: "Space Grotesk", "Sora", Inter, system-ui, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root:not([data-theme="light"]),
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b12;
  --surface: #0c1320;
  --surface-2: #111c2d;
  --ink: #eef4ff;
  --muted: #9ba8bb;
  --line: #213049;
  --primary: #7aa2ff;
  --accent: #2de0a5;
  --accent-2: #ffd166;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

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

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

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

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: 0;
}

.brand svg {
  width: 154px;
  height: 34px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo {
  display: block;
  width: 185px;
  height: 40px;
  object-fit: contain;
}

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

.nav a,
.mega-trigger {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav a:hover,
.mega-trigger:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.mega {
  position: relative;
}

.mega-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  width: min(720px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  translate: 0 -6px;
  transition: 180ms ease;
}

.mega:focus-within .mega-panel,
.mega:hover .mega-panel,
.mega-panel.is-open {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.mega-card {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.mega-card:hover {
  border-color: var(--line);
  background: var(--surface-2);
}

.mega-card strong {
  display: block;
  font-family: var(--head);
  margin-bottom: 3px;
}

.mega-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.icon-btn,
.mobile-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.btn.accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #04110d;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--head);
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  margin-top: 18px;
  font-size: 3.75rem;
  max-width: 17ch;
  text-wrap: balance;
}

.page-hero h1 {
  max-width: 22ch;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.15;
  text-wrap: balance;
}

h3 {
  font-size: 1.24rem;
  line-height: 1.2;
}

p {
  margin: 0;
}

.lead {
  max-width: 700px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  font-size: 0.9rem;
}

.auction-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 34%),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 30%),
    linear-gradient(145deg, #07111f 0%, #0a1424 54%, #0e1a2d 100%);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.24);
}

.auction-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  opacity: 0.8;
}

.auction-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(122, 162, 255, 0.2);
  border-radius: 12px;
  pointer-events: none;
}

.auction-status {
  position: absolute;
  left: 28px;
  top: 26px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(122, 162, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.72);
  color: rgba(238, 244, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.auction-status strong {
  color: #8fb0ff;
}

.auction-map {
  position: absolute;
  inset: 42px 18px 28px;
  z-index: 1;
  width: calc(100% - 36px);
  height: calc(100% - 70px);
  overflow: visible;
}

.route {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.route-primary,
.route-secondary {
  stroke: url(#route-blue-green);
}

.route-secondary {
  opacity: 0.82;
  stroke-dasharray: 8 10;
}

.route-muted {
  stroke: rgba(122, 162, 255, 0.44);
  stroke-dasharray: 3 10;
}

.route-return {
  stroke: rgba(45, 224, 165, 0.32);
  stroke-dasharray: 1 12;
}

.packet-dot {
  fill: #2de0a5;
}

.packet-dot-b {
  fill: #8fb0ff;
}

.packet-dot-c {
  fill: #ffd166;
}

.route-label {
  position: absolute;
  z-index: 3;
  padding: 5px 8px;
  border: 1px solid rgba(122, 162, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.7);
  color: rgba(238, 244, 255, 0.74);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.label-request {
  left: 37%;
  top: 29%;
}

.label-auction {
  left: 49%;
  top: 31%;
  transform: translateX(-50%);
}

.label-policy {
  right: 13%;
  bottom: 31%;
}

.node {
  position: absolute;
  z-index: 4;
  width: 142px;
  padding: 14px;
  border: 1px solid rgba(122, 162, 255, 0.24);
  border-radius: 10px;
  background: rgba(12, 19, 32, 0.84);
  color: #eef4ff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.node strong {
  display: block;
  font-family: var(--head);
  font-size: 0.95rem;
  line-height: 1.1;
}

.node span {
  display: block;
  margin-top: 8px;
  color: rgba(238, 244, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

.node.publisher { left: 40px; top: 90px; }
.node.exchange {
  left: 50%;
  top: 48%;
  width: 164px;
  min-height: 120px;
  padding: 18px;
  transform: translate(-50%, -50%);
  border-color: rgba(49, 92, 255, 0.78);
  background: linear-gradient(145deg, #143cff, #315cff);
  color: white;
  box-shadow: 0 24px 60px rgba(20, 60, 255, 0.38);
}
.node.exchange::before {
  content: "";
  position: absolute;
  right: 16px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2de0a5;
  box-shadow: 0 0 20px rgba(45, 224, 165, 0.8);
}
.node.exchange span { color: rgba(255, 255, 255, 0.84); }
.node.demand { right: 40px; top: 98px; }
.node.xml { left: 54px; bottom: 62px; }
.node.quality { right: 48px; bottom: 74px; }

.section {
  padding: 76px 0;
}

.section.alt {
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 620px;
  color: var(--muted);
}

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

.stat,
.card,
.timeline-item,
.form-panel,
.code-card,
.testimonial,
.article-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.06);
}

.stat {
  padding: 20px;
}

.stat strong {
  display: block;
  color: var(--primary);
  font-family: var(--head);
  font-size: 1.25rem;
}

.stat span {
  color: var(--muted);
}

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

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

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

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

.card {
  padding: 22px;
}

.card .icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary) 13%, transparent);
  color: var(--primary);
}

.card p,
.timeline-item p,
.testimonial p,
.article-card p,
.legal-card p {
  margin-top: 10px;
  color: var(--muted);
}

.card ul,
.legal-card ul,
.requirements {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.card li,
.legal-card li,
.requirements li {
  position: relative;
  padding-left: 18px;
  margin-top: 8px;
}

.card li::before,
.legal-card li::before,
.requirements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

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

.timeline-item {
  position: relative;
  padding: 22px;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 800;
}

[data-theme="dark"] .step {
  background: var(--primary);
}

.protocol-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

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

th {
  color: var(--ink);
  font-family: var(--head);
  background: var(--surface-2);
}

td {
  color: var(--muted);
}

.logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.logo-box {
  display: grid;
  place-items: center;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--head);
  font-weight: 700;
}

.marquee {
  overflow: hidden;
}

.marquee-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 12px;
  animation: marquee 26s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(calc(-50% - 6px)); }
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 22px;
  align-items: start;
}

.form-panel {
  position: relative;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, transparent), transparent 34%),
    color-mix(in srgb, var(--surface) 96%, transparent);
}

.form-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #315cff, var(--primary), var(--accent));
}

.form-panel .btn {
  min-width: 148px;
  margin-top: 10px;
  border-radius: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

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

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 13px 14px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--line));
}

input:focus,
select:focus,
textarea:focus {
  border-color: #315cff;
  box-shadow: 0 0 0 4px rgba(49, 92, 255, 0.14);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 5%, var(--surface));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 12%, transparent);
}

.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea {
  border-color: color-mix(in srgb, var(--accent) 68%, var(--line));
}

.field-error {
  min-height: 1rem;
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
}

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

.form-status {
  min-height: 24px;
  margin: 16px 0 4px;
  color: var(--accent);
  font-weight: 700;
}

.form-status.is-error {
  color: var(--danger);
}

.page-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero .lead {
  max-width: 760px;
}

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

.code-card {
  overflow: hidden;
}

.code-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-2);
  font-size: 0.88rem;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  color: #d6e4ff;
  background: #07111f;
  font-size: 0.88rem;
  line-height: 1.55;
}

.faq {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

summary {
  cursor: pointer;
  font-family: var(--head);
  font-weight: 700;
}

details p {
  margin-top: 10px;
  color: var(--muted);
}

.article-card {
  padding: 20px;
}

.article-card .meta {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-body {
  max-width: 820px;
}

.article-body p,
.article-body li {
  color: var(--muted);
}

.article-body h2 {
  margin-top: 34px;
  font-size: 1.75rem;
}

.site-footer {
  padding: 54px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: #f4f7fb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(0, 0.7fr));
  gap: 28px;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: white;
}

.site-footer h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.92rem;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  color: var(--muted);
}

.not-found {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  max-width: none;
}

@media (max-width: 980px) {
  .mobile-toggle {
    display: inline-grid;
  }

  .nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .mega-panel {
    position: static;
    width: auto;
    transform: none;
    display: none;
    grid-template-columns: 1fr;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    translate: 0;
    margin-top: 6px;
  }

  .mega-panel.is-open {
    display: grid;
  }

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .auction-visual {
    min-height: 430px;
  }

  .stats,
  .grid.four,
  .grid.three,
  .timeline,
  .logos,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    padding-top: 56px;
  }

  .nav-actions .partner-cta {
    display: none;
  }

  .brand svg {
    width: 132px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 54px 0;
  }

  .section-head,
  .footer-bottom,
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .stats,
  .grid.two,
  .grid.three,
  .grid.four,
  .timeline,
  .logos,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .auction-visual {
    min-height: 390px;
  }

  .node {
    width: 118px;
    padding: 10px;
  }

  .node.exchange {
    width: 128px;
  }

  .node.demand {
    right: 14px;
  }

  .node.publisher,
  .node.xml {
    left: 14px;
  }

  .node.quality {
    right: 14px;
  }
}

/* Let intrinsic content shrink inside every shared grid and flex layout. */
.container > *, .grid > *, .form-grid > *, .footer-grid > *,
.section-head > *, .stats > *, .timeline > *, .nav-wrap > * {
  min-width: 0;
}

body { overflow-wrap: anywhere; }
input, select, textarea { min-width: 0; max-width: 100%; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
[id] { scroll-margin-top: 96px; }
.brand, .nav-actions { flex-shrink: 0; }
.brand svg { overflow: visible; }
.brand svg > path:last-child { display: none; }
.site-header { border-bottom-color: var(--line); }
.btn { text-align: center; }
[data-theme="dark"] .btn.primary { color: #07111f; }
.eyebrow, .article-card .meta { letter-spacing: 0; }
.section-head { align-items: start; }
.section-head h2 { flex: 1 1 46%; }
.section-head p { flex: 1 1 54%; max-width: 540px; }
.hero { padding-top: 64px; }
.hero + .section { padding-top: 24px; padding-bottom: 48px; }
.hero h1 { margin-top: 20px; }
.hero .lead { max-width: 58ch; }
.stats {
  position: relative;
  gap: 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.06);
}
.stats::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, #315cff 50%, transparent), transparent);
  opacity: 0.5;
}
.stat {
  position: relative;
  isolation: isolate;
  min-height: 138px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
  padding: 26px 26px 24px;
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease;
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, #315cff 10%, transparent), transparent 46%);
  opacity: 0;
  transition: opacity 160ms ease;
}
.stat::after { content: none; }
.stat + .stat { border-left: 0; }
.stat strong {
  position: relative;
  z-index: 1;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #315cff;
  font-size: 1.72rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.stat span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 21ch;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.55;
  text-transform: uppercase;
}
.stat.is-visible strong {
  opacity: 1;
  transform: translateY(0);
}
.stat:hover {
  border-color: color-mix(in srgb, #315cff 38%, var(--line));
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-2));
}
.stat:hover::before {
  opacity: 1;
}
.stat:nth-child(2) { transition-delay: 90ms; }
.stat:nth-child(3) { transition-delay: 180ms; }
.stat:nth-child(4) { transition-delay: 270ms; }
.card, .timeline-item, .testimonial, .article-card, .legal-card { box-shadow: none; }
a.card { transition: border-color 160ms ease, background 160ms ease; }
a.card:hover { border-color: var(--primary); background: var(--surface-2); }
.card .icon { width: auto; min-width: 44px; padding-inline: 8px; font-size: 0.75rem; }
.timeline {
  position: relative;
  gap: 16px;
  align-items: stretch;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.48;
}
.timeline-item {
  position: relative;
  display: flex;
  min-height: 248px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 22px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.timeline-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 54%, var(--line));
  background: var(--surface);
}
.timeline-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.timeline-item .step {
  margin-bottom: 0;
  box-shadow: 0 0 0 8px var(--surface);
}
.step-meta,
.timeline-result {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.timeline-item h3 {
  margin-top: 0;
  font-size: 1.1rem;
}
.timeline-item p {
  margin-top: 10px;
  font-size: 0.98rem;
}
.timeline-result {
  margin-top: auto;
  color: var(--ink);
  background: var(--surface-2);
}
.testimonial { margin: 0; padding: 24px; border-top: 3px solid var(--accent); }
.testimonial p:first-child { margin-top: 0; }
.legal-card { padding: 28px; }
.form-panel { box-shadow: none; }
.form-status { margin: 12px 0; }
.protocol-table { min-width: 0; }
.protocol-table table { min-width: 0; table-layout: fixed; }
.code-card { min-width: 0; }
pre { overflow-wrap: normal; }
.marquee-track { width: max-content; grid-auto-columns: 160px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); }
.cookie-banner { max-height: calc(100dvh - 32px); overflow-y: auto; font-size: 0.875rem; }
.cookie-banner .btn { flex-shrink: 0; }
.mega-panel { left: 0; transform: none; }
.mega:focus-within .mega-panel, .mega:hover .mega-panel { opacity: 0; visibility: hidden; }
.mega-panel.is-open { opacity: 1 !important; visibility: visible !important; translate: 0; }

@media (max-width: 1100px) and (min-width: 981px) {
  .nav-wrap { gap: 10px; }
  .nav a, .mega-trigger { padding-inline: 8px; font-size: 0.875rem; }
  .partner-cta { padding-inline: 12px; font-size: 0.875rem; }
  .mega-panel { width: 620px; }
}

@media (max-width: 980px) {
  h1 { font-size: 3.25rem; }
  .hero-grid { gap: 32px; }
  .hero h1 { max-width: 22ch; }
  .nav { max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
  .nav a, .mega-trigger { min-height: 44px; }
  .mega-trigger { width: 100%; text-align: left; }
  .mega-panel { border: 0; border-left: 2px solid var(--accent); border-radius: 0; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timeline::before { left: 22px; right: 22px; top: 30px; }
  .timeline-item { min-height: 230px; padding: 20px; }
  .timeline-item .step { box-shadow: 0 0 0 7px var(--surface); }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 40px); }
  .hero, .page-hero { padding-top: 40px; padding-bottom: 36px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .lead { font-size: 1rem; }
  .section { padding-block: 44px; }
  .section-head { gap: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 140px; }
  .trust-row { gap: 6px; }
  .chip { font-size: 0.75rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 5px; }
  .stat { min-height: 132px; padding: 22px 16px 20px; }
  .stat strong { font-size: 1.35rem; }
  .stat span { font-size: 0.75rem; max-width: 18ch; }
  .auction-visual { min-height: 430px; }
  .auction-status { left: 18px; top: 18px; max-width: calc(100% - 36px); }
  .auction-map { inset: 70px 10px 24px; width: calc(100% - 20px); height: calc(100% - 94px); }
  .route-label { display: none; }
  .node { width: 118px; padding: 11px; }
  .node.publisher, .node.demand { top: 74px; }
  .node.publisher, .node.xml { left: 18px; }
  .node.demand, .node.quality { right: 18px; }
  .node.xml, .node.quality { bottom: 28px; }
  .node.exchange { top: 51%; width: 136px; min-height: 108px; }
  .form-panel, .card, .testimonial, .legal-card { padding: 20px; }
  .timeline {
    gap: 14px;
  }
  .timeline::before {
    left: 19px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--primary), var(--accent));
  }
  .timeline-item {
    min-height: auto;
    padding: 18px 18px 18px 72px;
  }
  .timeline-top {
    position: static;
    justify-content: flex-start;
    margin-bottom: 14px;
  }
  .timeline-item .step {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 38px;
    height: 38px;
  }
  .step-meta {
    margin-left: 0;
  }
  .timeline-result {
    margin-top: 18px;
  }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .protocol-table th, .protocol-table td { padding: 12px 8px; font-size: 0.8125rem; vertical-align: top; }
  .code-card header { flex-wrap: wrap; }
  .cookie-banner { padding: 14px; gap: 10px; }
}

/* Shared header: stable navigation and a single prominent partner action. */
#site-header { position: sticky; top: 0; z-index: 900; }
.site-header {
  position: relative;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  box-shadow: 0 1px 0 var(--line), 0 14px 30px rgba(2, 6, 23, 0.08);
}
.nav-wrap { min-height: 76px; gap: 24px; }
.site-header .brand svg { width: 164px; height: 38px; }
.site-header .brand svg rect { fill: var(--accent); }
.site-header .brand-mark { height: 50px; }
.nav {
  margin-left: auto;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}
.nav > a,
.mega-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1;
  padding: 0 14px;
  white-space: nowrap;
}
.nav > a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
  box-shadow: none;
}
.mega-trigger svg {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  transition: transform 160ms ease;
}
.mega-trigger[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.mega-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-actions { gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.nav-actions .icon-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 44px;
  height: 44px;
  border-radius: 999px;
}
.nav-actions .icon-btn:hover { background: var(--surface-2); }
.partner-cta { min-height: 46px; border-radius: 999px; font-size: 0.875rem; white-space: nowrap; }
.nav-actions .partner-cta {
  border-color: #315cff;
  background: #315cff;
  color: #ffffff;
}
.nav-actions .partner-cta:hover {
  border-color: #4f74ff;
  background: #4f74ff;
}
.mega-panel { top: calc(100% + 14px); width: 640px; padding: 16px; gap: 4px; }
.mega-panel .mega-card { padding: 16px; }
.mega-card strong { color: var(--ink); font-size: 0.9375rem; }
.mega-card span { font-size: 0.8125rem; }
.nav .mobile-partner-link { display: none; }
.close-mark { font-size: 28px; line-height: 1; }

@media (min-width: 981px) and (max-width: 1100px) {
  .nav-wrap { gap: 12px; }
  .nav-actions { gap: 6px; padding-left: 10px; }
  .nav > a, .mega-trigger { padding-inline: 10px; }
  .site-header .brand svg { width: 144px; }
  .site-header .brand-mark { padding-inline: 0; }
  .site-header .brand-logo { width: 150px; height: 32px; }
  .mega-panel { width: 580px; }
}

@media (max-width: 980px) {
  .nav-wrap { min-height: 72px; gap: 12px; }
  .nav {
    margin-left: 0;
    inset: 80px 20px auto;
    padding: 12px;
    max-height: calc(100dvh - 100px);
    border-radius: 18px;
  }
  .nav > a, .mega-trigger {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 12px;
    border-radius: var(--radius);
  }
  .nav > a[aria-current="page"] { box-shadow: none; background: var(--surface-2); }
  .mega-trigger { justify-content: space-between; }
  .mega-panel { width: auto; padding: 4px 0 4px 8px; margin: 8px 0; }
  .mega-panel .mega-card { padding: 12px; }
  .nav .mobile-partner-link { display: flex; justify-content: space-between; align-items: center; color: #fff; background: #315cff; margin-top: 8px; }
  .nav-actions { border: 0; padding-left: 0; }
}

@media (max-width: 680px) {
  .site-header .brand svg { width: 144px; height: 34px; }
  .site-header .brand-mark { height: 44px; padding: 0; border-radius: 0; }
  .site-header .brand-logo { width: 132px; height: 29px; }
  .nav-actions { gap: 6px; }
  .mobile-toggle { width: 44px; height: 44px; }
}

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

.footer-summary {
  margin-top: 14px;
  max-width: 360px;
  color: #cbd5e1;
}

.centered-copy {
  margin-inline: auto;
}

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