/* ===== Coinsonnet design system v3 — monochrome editorial =====
   White page, ink-black text, hairline borders. Accent (brand teal)
   used sparingly: pill dot, checkmarks, links, one hero highlight.
   Brand palette: ink #0B1020 · accent deep #0EA5A0 · bright #22E3CE
   · surface #F4F6FB · muted #8A90B3. */
:root {
  --bg: #fafafa;
  --bg-alt: #ffffff;
  --inset: #f5f5f5;
  --surface: #ffffff;
  --ink: #191919;
  --ink-2: #2e2e2e;
  --border: #e8e8e8;
  --text: #191919;
  --text-muted: #727272;
  --text-faint: #999999;
  --accent: #002c15;
  --accent-2: #97f586;
  --rgb-bright: 151, 245, 134;
  --rgb-mid: 10, 143, 77;
  --rgb-deep: 0, 44, 21;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --font: "Geist", system-ui, -apple-system, sans-serif;
  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 800px; }

h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.3rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }

/* Numbered eyebrow (editorial section label) */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

/* Pill badge (hero) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.section { padding: 110px 0; }
.section-tight { padding: 30px 0 90px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; }
.section-sub { color: var(--text-muted); max-width: 620px; margin-top: 16px; font-size: 1.06rem; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 12px;
  border: 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { color: var(--text-muted); background: none; }
.btn-ghost:hover { color: var(--text); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: var(--bg); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; background: none; }
.btn-outline-light:hover { border-color: #fff; }

/* ===== Navigation ===== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 36px; height: 68px; }

/* Lowercase wordmark + spark mark (Bartix-style icon-plus-wordmark lockup) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 21px;
  height: 21px;
  flex: none;
  fill: var(--accent);
  transition: transform 0.3s ease;
}
.logo:hover .logo-mark { transform: rotate(90deg); }
.footer .logo-mark { fill: var(--accent-2); }
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions .btn-primary { padding: 9px 20px; }
.lang-switch { position: relative; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.lang-trigger:hover { color: var(--ink); border-color: var(--ink); }
.submenu-lang { left: auto; right: 0; min-width: 150px; }
.lang-current {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--inset);
}
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 110px 0 80px; overflow: hidden; }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.4rem); }
.hero-inner { position: relative; text-align: center; }
.hero-inner .pill { margin-bottom: 26px; }
.hero-sub {
  color: var(--text-muted);
  font-size: 1.16rem;
  max-width: 640px;
  margin: 24px auto 0;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
/* ===== Crypto asset coins ===== */
.coin {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(25, 25, 25, 0.14);
}
.coin img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.coin-sm { width: 34px; height: 34px; font-size: 0.9rem; box-shadow: none; }
/* ===== Coverage strip ===== */
.coverage { padding: 90px 0 20px; text-align: center; }
.coverage-coins {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.coverage-sub { color: var(--text-muted); max-width: 560px; margin: 16px auto 0; font-size: 1.06rem; }

/* ===== Award-pass: typographic accent, grain, choreography ===== */
::selection { background: var(--accent-2); color: var(--accent); }

.accent-serif {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* film-grain over the hero */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.hero-inner { z-index: 1; }

/* word-by-word headline rise (spans added by JS) */
.h-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(1.5deg);
  animation: word-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes word-rise { to { opacity: 1; transform: none; } }

/* scroll progress bar (element injected by JS) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent-2);
  z-index: 300;
}

/* cursor glow on cards */
.card { position: relative; overflow: hidden; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(151, 245, 134, 0.16), transparent 65%);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

/* outlined mega-marquee */
.word-marquee {
  overflow: hidden;
  padding: 30px 0 70px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.word-marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  padding-right: 44px;
  animation: marquee 36s linear infinite;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(25, 25, 25, 0.3);
}
.wm-spark {
  color: var(--accent-2);
  -webkit-text-stroke: 0;
  font-size: 0.5em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Full-screen hero stage ===== */
.hero-video {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 0 110px;
}
.hero-media { position: absolute; inset: 0; background: #f4f6f3; }
.hero-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.5) 0%, rgba(250, 250, 250, 0.12) 48%, rgba(250, 250, 250, 0.5) 100%);
}
.hero-video .hero-inner { z-index: 1; }
.hero-video h1 { color: var(--ink); }
.hero-video .accent-serif { color: var(--accent); }
.hero-video .hero-sub { color: var(--text-muted); }
.hero-video .pill {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--border);
  color: var(--text-muted);
}
.hero-video::after { opacity: 0.07; }

/* ===== Split-stage hero ===== */
.hero-split {
  min-height: calc(100vh - 110px);
  min-height: calc(100svh - 110px);
  padding: 40px 0;
  overflow: visible;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero-copy { max-width: 940px; margin: 0 auto; }
.hero-split h1 {
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero-grid h1 .accent-serif { display: inline-block; }
.hero-split .hero-sub { margin: 24px auto 0; max-width: 520px; }
.hero-split .hero-cta { justify-content: center; align-items: center; margin-top: 30px; }
.hero-alt-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
}
.hero-alt-link:hover { color: var(--ink); }
.hero-alt-link .arrow { display: inline-block; transition: transform 0.2s ease; }
.hero-alt-link:hover .arrow { transform: translateX(4px); }
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.hero-metrics span:not(:first-child)::before {
  content: "·";
  margin-right: 18px;
  color: var(--text-faint);
}
@media (max-width: 960px) {
  .hero-split { min-height: calc(100svh - 100px); padding: 50px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-grid h1 .accent-serif { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .h-word { animation: none; opacity: 1; transform: none; }
}

/* ===== Stat cards ===== */
.stats { margin-top: 0; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 22px; margin-top: 48px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Bento: 4-col grid, wide tiles span 2 */
.grid-bento { grid-template-columns: repeat(4, 1fr); }
.card-wide { grid-column: span 2; }
.card-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: center;
  height: 100%;
}

/* Mini transaction list (light, inside bento card) */
.mini-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  background: var(--inset);
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.mini-row:first-child { border-top: 0; }
.mini-info { flex: 1; min-width: 0; line-height: 1.3; }
.mini-info strong { display: block; font-size: 0.8rem; }
.mini-info em { font-style: normal; color: var(--text-faint); font-size: 0.72rem; }
.mini-amt { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--accent); }

/* Network chips (inside bento card) */
.net-chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.net-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--inset);
  color: var(--text-muted);
}
.net-chips span img { width: 15px; height: 15px; opacity: 0.75; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #b9b9b9;
  box-shadow: 0 16px 40px rgba(25, 25, 25, 0.07);
}
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--inset);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card:hover .card-icon { color: var(--accent); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.94rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.card-link .arrow { transition: transform 0.2s; }
.card-link:hover .arrow { transform: translateX(4px); }

/* ===== Steps (how it works) ===== */
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--surface);
}
.step-art {
  margin-bottom: 20px;
  background: var(--inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 0 10px;
}
.step-art svg { display: block; width: 100%; height: 96px; }
.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.94rem; }

/* ===== Impact (oversized editorial metrics) ===== */
.impact-rows { margin-top: 56px; }
.impact-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--border);
}
.impact-row:last-child { border-bottom: 1px solid var(--border); }
.impact-num {
  font-size: clamp(3.4rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.impact-copy h3 { font-size: 1.3rem; margin-bottom: 8px; }
.impact-copy p { color: var(--text-muted); max-width: 520px; }

/* Comparison table (rails vs Coinsonnet) */
.compare { margin-top: 72px; }
.compare-title { font-size: 1.3rem; margin-bottom: 22px; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.compare-table thead th { border-top: 0; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.compare-table tbody th { font-weight: 600; color: var(--text); width: 22%; }
.compare-table td { color: var(--text-muted); }
.compare-table .compare-us {
  background: var(--inset);
  color: var(--ink);
  font-weight: 600;
}
.compare-table thead .compare-us { color: var(--ink); }

/* ===== Solutions ===== */
.solution {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.solution:hover { border-color: #b9b9b9; box-shadow: 0 16px 40px rgba(25, 25, 25, 0.07); }
.solution h3 { margin-bottom: 8px; }
.solution p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== Developers ===== */
.dev-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.checklist { list-style: none; margin: 26px 0 30px; }
.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Code window stays dark — ink on white page */
.code-window {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(25, 25, 25, 0.18);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.code-bar em { margin-left: 10px; font-style: normal; color: #999999; font-size: 0.8rem; font-family: var(--mono); }
.code-window pre {
  padding: 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.7;
  color: #d4d4d4;
}
/* Restrained two-tone syntax: white-ish + teal + muted comments */
.c-kw { color: #999999; }
.c-str { color: var(--accent-2); }
.c-fn { color: #ffffff; }
.c-var { color: #ffffff; }
.c-cm { color: #727272; }

/* ===== Compliance ===== */
.badges { margin-top: 44px; }
.badges-2 { grid-template-columns: repeat(2, 1fr); max-width: 680px; }
.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.badge strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.badge span { color: var(--text-muted); font-size: 0.85rem; }

.compliance-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 54px;
}
.point h3 { margin-bottom: 8px; }
.point p { color: var(--text-muted); font-size: 0.94rem; }

/* ===== Security & privacy panel ===== */
.security-panel {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 44px;
  align-items: center;
  margin-top: 64px;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 44px 40px;
  color: #fff;
}
.security-intro h3 { font-size: 1.45rem; margin-bottom: 12px; color: #fff; }
.security-intro p { color: #a8a8a8; font-size: 0.97rem; }
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 32px;
}
.security-item { display: grid; gap: 5px; }
.security-item svg { width: 20px; height: 20px; color: var(--accent-2); margin-bottom: 4px; }
.security-item strong { font-size: 0.95rem; }
.security-item span { color: #999; font-size: 0.85rem; line-height: 1.5; }
@media (max-width: 960px) {
  .security-panel { grid-template-columns: 1fr; gap: 30px; padding: 34px 26px; }
}
@media (max-width: 680px) {
  .security-grid { grid-template-columns: 1fr; }
}

/* ===== Testimonials ===== */
.quote {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote-mark {
  position: absolute;
  top: 14px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--border);
  pointer-events: none;
}
.quote p { font-size: 1rem; color: var(--text); }
.quote footer { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote footer strong { display: block; font-size: 0.95rem; }
.quote footer em { font-style: normal; color: var(--text-muted); font-size: 0.85rem; }
.avatar {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.avatar-1 { background: var(--ink); }
.avatar-2 { background: #727272; }
.avatar-3 { background: var(--inset); color: var(--ink); border: 1px solid var(--border); }

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 14px;
  background: var(--surface);
  overflow: hidden;
}
.faq-item:first-of-type { margin-top: 44px; }
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--text-muted); font-size: 0.94rem; }

/* ===== CTA — black banner ===== */
.cta { margin: 110px 24px; }
.cta-inner {
  background: var(--ink);
  border-radius: 28px;
  text-align: center;
  padding: 80px 32px;
  max-width: var(--container);
}
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #a8a8a8; margin-top: 12px; font-size: 1.08rem; }
.cta-inner .btn-primary { background: #fff; color: var(--ink); }
.cta-inner .btn-primary:hover { background: #ededed; }

/* ===== Footer (dark, contrasts the light page) ===== */
.footer { background: var(--ink); color: #ededed; padding: 80px 0 0; overflow: hidden; }
.footer .logo { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(6, 1fr);
  gap: 26px;
}
.footer-brand p { color: #999999; margin: 14px 0 22px; font-size: 0.92rem; }
.newsletter { display: flex; gap: 8px; max-width: 320px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 18px;
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
}
.newsletter input::placeholder { color: #999999; }
.newsletter input:focus { outline: none; border-color: rgba(255, 255, 255, 0.45); }
.newsletter .btn { padding: 10px 18px; font-size: 0.88rem; background: #fff; color: var(--ink); }
.newsletter .btn:hover { background: #ededed; }
.footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #999999; margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #cccccc; text-decoration: none; font-size: 0.93rem; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p { color: #999999; font-size: 0.8rem; }

/* Giant wordmark, clipped at the page edge */
.footer-word {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.74;
  font-size: clamp(3.4rem, 15.8vw, 15rem);
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  white-space: nowrap;
  margin-top: 56px;
  margin-bottom: -0.13em;
  user-select: none;
  pointer-events: none;
}

/* ===== Comparison pages ===== */
.vs-hero { text-align: center; padding: 80px 0 70px; }
.vs-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.vs-logos .logo { font-size: 1.5rem; pointer-events: none; }
.vs-sep {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
}
.comp-logo {
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-muted);
}
.vs-hero .hero-sub { margin-left: auto; margin-right: auto; }
.tick { color: var(--accent); font-weight: 700; }
.cross { color: #e5484d; font-weight: 700; }
.compare-table .sub-head th {
  background: var(--inset);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 600;
  padding: 10px 20px;
}

/* ===== Top disclaimer banner ===== */
.topbar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 16px;
}
.topbar .pill-dot { display: inline-block; margin-right: 8px; vertical-align: 1px; }

/* ===== Product pages ===== */
.product-hero { padding: 80px 0 70px; }
.product-hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.crumb {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.crumb a { color: var(--text-faint); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.product-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.product-hero .hero-sub { margin: 20px 0 0; text-align: left; max-width: 520px; }
.product-hero .hero-cta { justify-content: flex-start; }
.mock-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 24px 60px rgba(25, 25, 25, 0.08);
}
.mock-panel .mini-list { margin-top: 0; }
.mock-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.mock-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-top: 16px;
  font-size: 1.02rem;
}
.mock-btn {
  display: block;
  text-align: center;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 16px;
  text-decoration: none;
}
.mock-note { text-align: center; color: var(--text-faint); font-size: 0.78rem; margin-top: 10px; }

/* full-art mock (user-provided widget SVG): no double frame */
.mock-image {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.mock-panel-bare {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
@media (max-width: 960px) {
  .product-hero .container { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== Pricing page (Lightyear-style: centered, flat, hairlines only) ===== */
.pricing-hero { text-align: center; padding: 90px 0 10px; }
.pricing-hero .hero-sub { margin-left: auto; margin-right: auto; }
.pricing-section { padding: 70px 0; }
.pricing-h2 {
  text-align: center;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: 12px;
}
.pricing-sub { text-align: center; color: var(--text-muted); }
.fee-list { list-style: none; margin-top: 36px; }
.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}
.fee-row:first-child { border-top: 1px solid var(--border); }
.fee-name { font-weight: 600; font-size: 0.98rem; line-height: 1.4; }
.fee-name em {
  display: block;
  font-style: normal;
  font-weight: 400;
  color: var(--text-faint);
  font-size: 0.82rem;
}
.fee-price {
  text-align: right;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.fee-price small { font-size: 0.78rem; font-weight: 400; color: var(--text-muted); }
.fee-price em {
  display: block;
  font-family: var(--font);
  font-style: normal;
  font-weight: 400;
  color: var(--text-faint);
  font-size: 0.78rem;
}
.free-badge {
  display: inline-block;
  background: var(--accent-2);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}
.price-notes {
  margin-top: 24px;
  color: var(--text-faint);
  font-size: 0.8rem;
  line-height: 1.7;
}
/* Zebra striping for the fee comparison table */
.compare-table.zebra tbody tr:nth-child(even) th,
.compare-table.zebra tbody tr:nth-child(even) td { background: var(--bg-alt); }
.compare-table.zebra tbody tr:nth-child(even) td.compare-us { background: var(--inset); }
@media (max-width: 680px) {
  .fee-row { flex-direction: column; gap: 4px; }
  .fee-price { text-align: left; white-space: normal; }
}

/* ===== Pricing plan tiers ===== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan-popular { border-color: var(--ink); box-shadow: 0 24px 60px rgba(25, 25, 25, 0.1); }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-2);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}
.plan h3 { font-size: 1.2rem; }
.plan-desc { color: var(--text-muted); font-size: 0.9rem; margin: 6px 0 18px; }
.plan-price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.plan-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-faint); letter-spacing: 0; }
.plan .checklist { margin: 0 0 26px; flex: 1; }
.plan .checklist li { font-size: 0.9rem; margin-bottom: 10px; }
.plan .btn { justify-content: center; }
@media (max-width: 960px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ===== Support chat demo ===== */
.chat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 24px 60px rgba(25, 25, 25, 0.07);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.chat-row { display: flex; margin-bottom: 12px; }
.chat-row.chat-right { justify-content: flex-end; }
.chat-bubble {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.chat-them { background: var(--inset); color: var(--text); border-bottom-left-radius: 4px; }
.chat-us { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.chat-meta { text-align: right; color: var(--text-faint); font-size: 0.74rem; margin-top: 4px; }

/* ===== Supported countries page ===== */
.country-search { margin-top: 30px; }
.country-search input {
  width: min(380px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
}
.country-search input::placeholder { color: var(--text-faint); }
.country-search input:focus { outline: none; border-color: var(--ink); }
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 44px;
}
.country {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.country-flag { font-size: 1.4rem; flex: none; }
.country-name { font-weight: 600; font-size: 0.95rem; flex: 1; }
.country-cur {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}
.country-empty { text-align: center; color: var(--text-muted); margin-top: 36px; }

/* ===== Contact page ===== */
.contact-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-channels { list-style: none; display: grid; gap: 18px; }
.contact-channels strong { display: block; font-size: 0.95rem; }
.contact-channels a { color: var(--accent); text-decoration: none; font-size: 0.95rem; }
.contact-channels a:hover { text-decoration: underline; }
.contact-info .hero-metrics { margin-top: 34px; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: 0 24px 60px rgba(25, 25, 25, 0.07);
}
.form-row { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.84rem;
  font-weight: 400 !important;
  color: var(--text-muted);
  margin: 4px 0 22px;
}
.form-consent input { margin-top: 3px; accent-color: var(--accent); }
.form-consent a { color: var(--accent); }
.form-status { margin-top: 14px; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
@media (max-width: 960px) {
  .contact-split { grid-template-columns: 1fr; gap: 44px; }
}

/* ===== Legal & Regulatory page ===== */
/* per-document version history dropdowns — see .doc-history below */
.page-hero { padding: 90px 0 20px; }
.page-hero .hero-sub { max-width: 680px; }
.legal-body { padding-top: 40px; }
.entity { padding: 44px 0; border-top: 1px solid var(--border); }
.entity:first-child { border-top: 0; padding-top: 0; }
.entity h2 { font-size: 1.5rem; margin-bottom: 10px; }
.entity-meta { color: var(--text-muted); font-size: 0.94rem; max-width: 640px; margin-bottom: 22px; }
.doc-list { list-style: none; }
.doc-list li { border-top: 1px solid var(--border); }
.doc-list li:first-child { border-top: 0; }
.doc-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 4px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.doc-list a:hover { color: var(--accent); }
.doc-list em {
  font-style: normal;
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 400;
  margin-left: auto;
  white-space: nowrap;
}
.doc-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  flex: none;
  align-self: center;
}
.doc-history { margin: -4px 0 10px; }
.doc-history summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
}
.doc-history summary::-webkit-details-marker { display: none; }
.doc-history summary:hover { color: var(--accent); }
.doc-history summary .caret { transition: transform 0.2s ease; }
.doc-history[open] summary .caret { transform: rotate(180deg); }
.doc-history ul {
  list-style: none;
  margin: 0 0 8px 16px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}
.doc-history ul li { border-top: 0; }
.doc-history ul a { padding: 8px 4px; font-size: 0.9rem; }
.doc-history ul a em { font-size: 0.78rem; }

.legal-contact {
  margin-top: 56px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--inset);
}
.legal-contact h3 { margin-bottom: 8px; }
.legal-contact p { color: var(--text-muted); font-size: 0.95rem; }
.legal-contact a { color: var(--accent); text-decoration: none; font-weight: 600; }
.legal-contact a:hover { text-decoration: underline; }
@media (max-width: 680px) {
  .doc-list a { flex-wrap: wrap; }
  .doc-list em { margin-left: 0; width: 100%; padding-left: 44px; }
}

/* ===== Page loader ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader-skip { display: none; }
.loader-done { transform: translateY(-100%); }
.loader-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.loader-spark {
  width: 30px;
  height: 30px;
  fill: var(--accent-2);
  animation: loader-spin 1.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes loader-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(0.82); }
  100% { transform: rotate(360deg) scale(1); }
}
.loader-word {
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.045em;
  color: #fff;
}
.loader-count {
  position: absolute;
  bottom: 28px;
  right: 36px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-2);
}
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}

/* ===== UI polish pass ===== */
/* keyboard focus rings, brand green */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.footer :focus-visible,
.cta-inner :focus-visible,
.security-panel :focus-visible,
.topbar :focus-visible {
  outline-color: var(--accent-2);
}
.btn:focus-visible { outline-offset: 2px; }

/* anchored sections clear the sticky nav */
section[id] { scroll-margin-top: 84px; }

/* nav links: sliding underline + current page state (top level only) */
.nav-links > li > a {
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links > li > a:hover::after { transform: scaleX(1); }
.nav-links > li > a[aria-current="page"] { color: var(--ink); }
.nav-links > li > a[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }

/* longer Estonian/Lithuanian labels: tighten the header so one line fits */
html[lang="et"] .nav,
html[lang="lt"] .nav { gap: 22px; }
html[lang="et"] .nav-links,
html[lang="lt"] .nav-links { gap: 16px; }
html[lang="et"] .nav-links > li > a,
html[lang="lt"] .nav-links > li > a { font-size: 0.86rem; }
html[lang="et"] .nav-actions .btn,
html[lang="lt"] .nav-actions .btn { padding: 9px 14px; font-size: 0.88rem; }

/* products dropdown */
.nav-links li { position: relative; }
.caret {
  display: inline-block;
  font-size: 0.6rem;
  margin-left: 5px;
  color: var(--text-faint);
  transition: transform 0.2s ease;
}
.has-menu:hover .caret,
.has-menu:focus-within .caret { transform: rotate(180deg); }
.submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  min-width: 215px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(25, 25, 25, 0.13);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.submenu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.has-menu:hover .submenu,
.has-menu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.submenu a {
  display: block;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.submenu a:hover { background: var(--inset); color: var(--ink); }

/* button press feel */
.btn:active { transform: translateY(0) scale(0.98); }

/* FAQ: hover affordance + answer fade-in */
.faq-item summary { transition: background 0.15s ease; }
.faq-item summary:hover { background: var(--inset); }
.faq-item[open] > p { animation: faq-in 0.25s ease; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* solutions: arrow slides in on hover */
.solution h3::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.solution:hover h3::after { opacity: 1; transform: none; }

/* tables: row hover highlight */
.compare-table tbody tr:hover th,
.compare-table tbody tr:hover td { background: var(--inset); }
.compare-table tbody tr.sub-head:hover th { background: var(--inset); }

/* footer links: offset underline on hover */
.footer ul a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent-2); }

/* fee rows breathe on hover */
.fee-row { transition: background 0.15s ease; }
.fee-row:hover { background: var(--bg-alt); }

/* doc list rows: nudge on hover */
.doc-list a { transition: color 0.15s, transform 0.15s; }
.doc-list a:hover { transform: translateX(4px); }

/* ===== Luminous glow fields (Bridge-style, in our green) ===== */
@keyframes glow-breathe {
  from { opacity: 0.6; transform: translate(var(--gx, 0), var(--gy, 0)) scale(1); }
  to { opacity: 1; transform: translate(var(--gx, 0), var(--gy, 0)) scale(1.1); }
}

/* ambient fields under the hero streams */
.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-media::before {
  width: 540px;
  height: 540px;
  left: -150px;
  top: -170px;
  background: radial-gradient(circle, rgba(151, 245, 134, 0.38), rgba(151, 245, 134, 0) 70%);
  animation: glow-breathe 11s ease-in-out infinite alternate;
}
.hero-media::after {
  width: 640px;
  height: 640px;
  right: -200px;
  top: 60px;
  background: radial-gradient(circle, rgba(10, 143, 77, 0.2), rgba(10, 143, 77, 0) 70%);
  animation: glow-breathe 14s ease-in-out -5s infinite alternate;
}

/* halo leaking out from behind the dark CTA banner */
.cta { position: relative; }
.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1150px, 112%);
  height: 135%;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(ellipse, rgba(151, 245, 134, 0.5), rgba(151, 245, 134, 0) 65%);
  pointer-events: none;
  --gx: -50%;
  --gy: -50%;
  transform: translate(-50%, -50%);
  animation: glow-breathe 10s ease-in-out infinite alternate;
}
.cta-inner { position: relative; z-index: 1; }

/* the white button inside the dark banner glows green on hover */
.cta-inner .btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 38px rgba(151, 245, 134, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .hero-media::before,
  .hero-media::after,
  .cta::before { animation: none; }
}

/* ===== Edge-light & aura glows (MoonPay-style, in our green) ===== */
/* the security panel keeps a lit top rim */
.cta-inner,
.security-panel {
  position: relative;
  overflow: hidden;
}
.security-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151, 245, 134, 0.85), transparent);
  pointer-events: none;
}
.security-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 76%;
  height: 150px;
  background: radial-gradient(ellipse at top, rgba(151, 245, 134, 0.16), transparent 70%);
  pointer-events: none;
}


/* product/industry mock panels float on a breathing aura */
.mock-panel { position: relative; }
.mock-panel::before {
  content: "";
  position: absolute;
  inset: -48px;
  z-index: -1;
  border-radius: 50%;
  filter: blur(64px);
  background: radial-gradient(circle, rgba(151, 245, 134, 0.34), rgba(151, 245, 134, 0) 68%);
  animation: glow-breathe 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .mock-panel::before { animation: none; }
}

/* ===== Luminous section bridge (light page sinking into the dark footer) ===== */
.glow-bridge {
  height: clamp(340px, 52vh, 600px);
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(250, 250, 250, 0) 30%),
    linear-gradient(180deg, rgba(25, 25, 25, 0) 34%, rgba(10, 28, 17, 0.82) 74%, #191919 100%),
    radial-gradient(100% 85% at 50% 56%, #97f586 0%, #2fae66 38%, rgba(47, 174, 102, 0) 74%),
    linear-gradient(180deg, var(--bg), #191919);
}
.footer { border-top: 0; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .word-marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-bento { grid-template-columns: repeat(2, 1fr); }
  .card-split { grid-template-columns: 1fr; }
  .dev-split { grid-template-columns: 1fr; gap: 44px; }
  .impact-row { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
  .compliance-points { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  /* expanding panel: bar row stays 68px, menu wraps below it */
  .nav { flex-wrap: wrap; height: auto; min-height: 68px; row-gap: 0; }
  .nav .logo { height: 68px; display: inline-flex; align-items: center; }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    order: 10;
    width: 100%;
    gap: 2px;
    margin: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
  }
  .nav.open .nav-links a {
    display: block;
    padding: 11px 4px;
    font-size: 1.02rem;
    color: var(--text);
  }
  .nav.open .nav-links a::after { display: none; }

  /* dropdown renders inline inside the mobile panel */
  .nav.open .nav-links .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: none;
    padding: 0 0 6px 16px;
    min-width: 0;
  }
  .nav.open .nav-links .submenu::before { display: none; }
  .nav.open .nav-links .submenu a {
    padding: 8px 4px;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  .nav.open .nav-links .caret { display: none; }

  .nav.open .nav-actions {
    display: flex;
    order: 11;
    width: 100%;
    gap: 10px;
    padding-bottom: 18px;
  }
  .nav.open .nav-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 12px;
  }
  .nav.open .nav-actions .btn-ghost {
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
  }

  /* hamburger morphs into an X */
  .nav-toggle span { transition: transform 0.25s ease, opacity 0.2s ease; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .hero { padding: 70px 0 56px; }
  .grid-3, .grid-4, .grid-bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .coverage { padding: 64px 0 10px; }
  .cta { margin: 72px 16px; }
  .cta-inner { padding: 56px 24px; }
}

/* ===== Hero split visual (stage) ===== */
.hero-grid-duo {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  text-align: left;
}
.hero-grid-duo .hero-copy { margin: 0; max-width: 560px; }
.hero-grid-duo .hero-sub { margin: 24px 0 0; }
.hero-grid-duo .hero-cta { justify-content: flex-start; }
.hero-grid-duo .hero-metrics { justify-content: flex-start; }

.hero-stage {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -28px rgba(0, 44, 21, 0.25);
}
.pay-card {
  position: relative;
  z-index: 2;
  width: min(380px, 100%);
  padding: 26px 28px;
  animation: stage-float 7s ease-in-out infinite;
}
.stage-card-back {
  position: absolute;
  z-index: 1;
  top: 6%;
  right: 0;
  width: 300px;
  padding: 18px 20px 14px;
  transform: rotate(3.5deg);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  animation: stage-float 7s ease-in-out 0.8s infinite reverse;
}
.payout-head {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.payout-row { display: flex; justify-content: space-between; padding: 5px 0; }
.payout-row-faint { opacity: 0.45; }

.pay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.pay-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.pay-time {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--inset);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}
.pay-amount { display: flex; align-items: baseline; gap: 10px; }
.pay-amount img { width: 30px; height: 30px; align-self: center; }
.pay-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pay-cur { font-family: var(--mono); font-size: 0.85rem; color: var(--text-muted); }
.pay-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  margin: 6px 0 18px 40px;
}
.pay-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
}
.pay-flow span { flex: 1; height: 1px; background: var(--border); }
.pay-flow b { font-weight: 600; }
.pay-settle {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: var(--inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.settle-amount { display: flex; flex-direction: column; gap: 2px; }
.settle-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.settle-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}
.settle-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  background: rgba(var(--rgb-bright), 0.25);
  border: 1px solid rgba(var(--rgb-mid), 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.stage-chip {
  position: absolute;
  z-index: 3;
  bottom: 14%;
  left: 4%;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 12px 30px -14px rgba(0, 44, 21, 0.3);
  animation: stage-float 7s ease-in-out 1.6s infinite;
}
/* image-based stage variant */
.hero-art {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius);
  display: block;
}

@keyframes stage-float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--tilt, 0deg)); }
}
.stage-card-back { --tilt: 3.5deg; }

@media (max-width: 960px) {
  .hero-grid-duo { grid-template-columns: 1fr; text-align: center; }
  .hero-grid-duo .hero-copy { margin: 0 auto; }
  .hero-grid-duo .hero-sub { margin: 24px auto 0; }
  .hero-grid-duo .hero-cta,
  .hero-grid-duo .hero-metrics { justify-content: center; }
  .hero-stage { min-height: 0; margin-top: 26px; transform: scale(0.92); }
  .stage-card-back { display: none; }
  .stage-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pay-card, .stage-card-back, .stage-chip { animation: none; }
}
