:root {
  color-scheme: dark;
  font-family: 'Inter', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  background-color: #020617;
  color: #e2e8f0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 72px;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #e2e8f0;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #020617;
}

#nebula-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(99, 38, 200, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 28px;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover {
  color: #10b4dc;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 96px 0 88px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(99, 38, 200, 0.12);
  border: 1px solid rgba(99, 38, 200, 0.32);
  color: #a78bfa;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.25rem);
  line-height: 0.94;
  background: linear-gradient(135deg, #ffffff 45%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  margin: 1.5rem 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #94a3b8;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button.primary {
  background: linear-gradient(135deg, #0b5fff 0%, #6326c8 100%);
  color: white;
  box-shadow: 0 18px 40px rgba(11, 95, 255, 0.22), 0 0 0 1px rgba(99, 38, 200, 0.3);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(11, 95, 255, 0.32), 0 0 40px rgba(99, 38, 200, 0.35);
}

.button.secondary {
  background: rgba(16, 180, 220, 0.07);
  color: #10b4dc;
  border: 1px solid rgba(16, 180, 220, 0.3);
}

.button.secondary:hover {
  background: rgba(16, 180, 220, 0.13);
  transform: translateY(-2px);
}

.hero-visual {
  display: grid;
  gap: 1.25rem;
}

.visual-card {
  border-radius: 32px;
  padding: 2rem;
  background: rgba(16, 180, 220, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(16, 180, 220, 0.18);
}

.visual-tag {
  display: inline-flex;
  margin-bottom: 1.1rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(16, 180, 220, 0.1);
  border: 1px solid rgba(16, 180, 220, 0.28);
  color: #10b4dc;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.visual-card h2 {
  margin: 0 0 1rem;
  font-size: 1.85rem;
}

.visual-card p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.85;
}

.code-block {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.8rem;
  line-height: 1.75;
  margin: 0;
  white-space: pre;
  color: #94a3b8;
}

.c-key   { color: #a78bfa; }
.c-str   { color: #7dd3fc; }
.c-num   { color: #fb923c; }
.c-punct { color: #64748b; }
.c-dim   { color: #475569; }

.visual-card code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.9rem;
  color: #7dd3fc;
  line-height: 1.85;
}

.section {
  margin-top: 1.5rem;
}

.coverage-section {
  background: rgba(11, 95, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(11, 95, 255, 0.2);
  border-radius: 32px;
  padding: 2.25rem;
}

.coverage-section h2 {
  margin: 0 0 0.5rem;
  background: linear-gradient(90deg, #ffffff 0%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.coverage-section > p {
  color: #94a3b8;
}

.coverage-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.coverage-table {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  min-width: 640px;
}

.coverage-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.5fr) repeat(5, minmax(64px, 1fr));
  min-width: 640px;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  color: #cbd5e1;
  transition: background 0.15s ease;
}

.coverage-row:not(.coverage-header):hover {
  background: rgba(11, 95, 255, 0.07);
  position: relative;
  z-index: 1;
}

.coverage-header {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(11, 95, 255, 0.09);
  color: #7dd3fc;
}

.coverage-row div {
  min-height: 1.5rem;
  text-align: center;
  white-space: nowrap;
}

.coverage-row div:first-child {
  text-align: left;
}

.coverage-row.extra {
  display: none;
}

.coverage-row.extra.visible {
  display: grid;
}

.coverage-table-2 {
  margin-top: 0.5rem;
}

.coverage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(11, 95, 255, 0.06);
  border: 1px solid rgba(11, 95, 255, 0.2);
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.coverage-toggle:hover {
  background: rgba(11, 95, 255, 0.12);
}

.coverage-toggle .chevron {
  transition: transform 0.2s ease;
}

.coverage-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.coverage-ok {
  color: #34d399;
  font-weight: 700;
  font-size: 0.65em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverage-no {
  color: #4a6480;
  font-weight: 400;
  font-size: 0.65em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverage-na {
  color: #293546;
  font-weight: 400;
  font-size: 0.9em;
  letter-spacing: 0.05em;
}

.coverage-row [data-tip] {
  position: relative;
  cursor: default;
}

.coverage-row [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(10, 17, 32, 0.96);
  border: 1px solid rgba(99, 179, 237, 0.2);
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35em 0.65em;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.coverage-row [data-tip]:hover::after {
  opacity: 1;
}

.coverage-soon {
  opacity: 0.6;
}

.cs-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 0.1em 0.5em;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.onboarding-section {
  background: rgba(99, 38, 200, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 38, 200, 0.22);
  border-radius: 32px;
  padding: 2.25rem;
}

.onboarding-section h2 {
  margin: 0 0 0.5rem;
  background: linear-gradient(90deg, #ffffff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.onboarding-section > p {
  color: #94a3b8;
  margin: 0 0 2rem;
}

.onboarding-steps {
  display: flex;
  flex-direction: column;
}

.onboarding-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 1rem;
  border-radius: 18px;
  transition: background 0.15s ease;
}

.onboarding-step:not(:last-child) {
  border-bottom: 1px solid rgba(99, 38, 200, 0.12);
}

.onboarding-step:hover {
  background: rgba(99, 38, 200, 0.06);
}

.step-number {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(99, 38, 200, 0.15);
  border: 1px solid rgba(99, 38, 200, 0.35);
  color: #a78bfa;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}

.step-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: #e2e8f0;
}

.step-body p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.75;
}

.step-body a {
  color: #a78bfa;
  text-decoration: none;
}

.step-body a:hover {
  text-decoration: underline;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card,
.content-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(99, 38, 200, 0.22);
}

.feature-card h3,
.content-section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.feature-card p,
.content-section p {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer {
  padding: 32px 0;
  color: #475569;
  border-top: 1px solid rgba(99, 38, 200, 0.15);
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  color: #475569;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #94a3b8;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-hero {
  padding: 80px 0 48px;
  max-width: 640px;
}

.page-hero .eyebrow {
  margin-bottom: 1rem;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 45%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero > p {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 2.5rem;
  border: 1px solid rgba(99, 38, 200, 0.22);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  background: rgba(11, 95, 255, 0.04);
  border-color: rgba(11, 95, 255, 0.3);
}

.pricing-tier {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
  margin: 0 0 1.25rem;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 0.5rem;
  color: #ffffff;
}

.pricing-price sub {
  font-size: 1rem;
  font-weight: 400;
  color: #94a3b8;
  vertical-align: baseline;
}

.pricing-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.pricing-features li {
  color: #cbd5e1;
  font-size: 0.95rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  color: #34d399;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.pricing-note {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 2.5rem;
  border: 1px solid rgba(99, 38, 200, 0.22);
}

.about-card h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  color: #e2e8f0;
}

.about-card p,
.about-card li {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 0.975rem;
  margin: 0 0 0.75rem;
}

.about-card ul {
  padding-left: 1.25rem;
  margin: 0;
}

.about-card li {
  margin: 0 0 0.4rem;
}

.about-founder {
  grid-column: 1 / -1;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(99, 38, 200, 0.4);
}

.founder-bio {
  flex: 1;
}

.founder-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.2rem;
}

.founder-title {
  font-size: 0.85rem;
  color: #7dd3fc;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
}

.founder-locations {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 0.9rem;
  letter-spacing: 0.02em;
}

.founder-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.employer-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0.2em 0.7em;
}

@media (max-width: 600px) {
  .about-founder {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .founder-logos {
    justify-content: center;
  }
}

/* ── Flow diagram ─────────────────────────────── */

.flow-section {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(11, 95, 255, 0.12);
  border-radius: 32px;
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 0;
}

.flow-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(99, 179, 237, 0.15);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  min-width: 130px;
  text-align: center;
}

.flow-node-zap {
  border-color: rgba(11, 95, 255, 0.45);
  background: rgba(11, 95, 255, 0.07);
}

.flow-node-title {
  font-weight: 700;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.flow-node-sub {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.3rem;
  white-space: nowrap;
}

.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0 0.75rem;
}

.flow-bolt {
  font-size: 1rem;
  color: #fcd34d;
}

.flow-connector-arrow {
  font-size: 1rem;
  color: #475569;
}

.flow-connector-label {
  font-size: 0.62rem;
  color: #475569;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── Origin timeline ───────────────────────────── */

.origin-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 2rem 0 2.5rem;
  position: relative;
}

.origin-timeline::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(99, 38, 200, 0.35);
  z-index: 0;
}

.tl-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
  position: relative;
  z-index: 1;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.tl-dot-past {
  background: rgba(99, 38, 200, 0.5);
  border: 2px solid rgba(99, 38, 200, 0.8);
}

.tl-dot-current {
  background: #3b82f6;
  border: 2px solid #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.tl-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.2rem;
}

.tl-node-current .tl-name {
  color: #7dd3fc;
}

.tl-desc {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* ── Corridor map ──────────────────────────────── */

.corridor-map {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(99, 38, 200, 0.15);
  border-radius: 24px;
  padding: 1.5rem;
}

.corridor-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.continent {
  fill: rgba(255, 255, 255, 0.045);
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 0.5;
}

.dot-active {
  fill: #34d399;
  filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.7));
}

.dot-soon {
  fill: rgba(99, 38, 200, 0.55);
  stroke: rgba(139, 92, 246, 0.8);
  stroke-width: 0.5;
}

.corridor-legend {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.legend-active { background: #34d399; }
.legend-soon { background: rgba(99, 38, 200, 0.7); }

/* ─────────────────────────────────────────────── */

.legal-toc {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.legal-toc a {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.legal-toc a:hover {
  background: rgba(99, 38, 200, 0.12);
  color: #e2e8f0;
}

.legal-block {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 2.5rem;
  border: 1px solid rgba(99, 38, 200, 0.22);
  margin-bottom: 1.5rem;
}

.legal-block h2 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.legal-block .updated {
  color: #475569;
  font-size: 0.82rem;
  margin: 0 0 2rem;
}

.legal-block h3 {
  font-size: 1rem;
  margin: 2rem 0 0.5rem;
  color: #e2e8f0;
}

.legal-block p,
.legal-block li {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 0.93rem;
  margin: 0 0 0.75rem;
}

.legal-block ul,
.legal-block ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.legal-block li {
  margin: 0 0 0.4rem;
}

@media (max-width: 860px) {
  .pricing-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 72px 0 56px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero p,
  .visual-card p,
  .feature-card p,
  .content-section p {
    font-size: 1rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(2, 6, 23, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(99, 38, 200, 0.22);
    padding: 0.5rem 0 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
    padding: 0 16px;
  }

  .header-inner {
    min-height: 60px;
  }

  .brand-logo {
    height: 22px;
  }

  .hero {
    gap: 2rem;
    padding: 64px 0 48px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 3.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .feature-grid {
    gap: 1rem;
  }

  .flow-diagram {
    flex-direction: column;
    align-items: center;
  }

  .flow-node {
    width: 200px;
  }

  .flow-node-sub {
    white-space: normal;
  }

  .flow-connector {
    flex-direction: row;
    gap: 0.4rem;
    padding: 0.4rem 0;
  }

  .flow-connector-arrow {
    transform: rotate(90deg);
    display: inline-block;
  }
}

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(99, 38, 200, 0.4);
  background: rgba(99, 38, 200, 0.15);
  backdrop-filter: blur(12px);
  color: #a78bfa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateY(8px);
  z-index: 40;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:hover {
  background: rgba(99, 38, 200, 0.3);
  border-color: rgba(167, 139, 250, 0.5);
}

/* ── Zap page ──────────────────────────────────── */

#page-zap {
  display: none;
  min-height: calc(100vh - 120px);
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 0 6rem;
}

#page-zap.active {
  display: flex;
}

.zap-wrap {
  width: 100%;
  max-width: 440px;
}

.zap-screen { display: none; }
.zap-screen.active { display: block; }

.zap-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 38, 200, 0.22);
  border-radius: 28px;
  padding: 2rem;
}

.zap-card-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 2rem;
  gap: 1.25rem;
}

.zap-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.35rem;
}

.zap-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.zap-label {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.zap-phone-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.country-select-wrap {
  position: relative;
  flex-shrink: 0;
}

.country-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
  height: 52px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  min-width: 90px;
  pointer-events: none;
  white-space: nowrap;
}

.country-display .fi {
  font-size: 1.15rem;
  line-height: 1;
}

.country-display .dial-code {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
}

.country-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  font-size: 16px;
}

.zap-input {
  width: 100%;
  height: 52px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 1rem;
  padding: 0 1.25rem;
  outline: none;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}

.zap-input::placeholder {
  color: #334155;
}

.zap-input:focus {
  border-color: rgba(99, 38, 200, 0.55);
}

.zap-input::-webkit-outer-spin-button,
.zap-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.zap-amount-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.zap-currency-symbol {
  font-size: 1.05rem;
  color: #94a3b8;
  flex-shrink: 0;
  min-width: 1.6rem;
  text-align: right;
}

.zap-currency-code {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #64748b;
  flex-shrink: 0;
}

.zap-send-btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

.zap-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(99, 38, 200, 0.2);
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: zap-spin 0.75s linear infinite;
}

@keyframes zap-spin {
  to { transform: rotate(360deg); }
}

.zap-loading-text {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.zap-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0.25rem;
}

.zap-qr {
  width: 200px;
  height: 200px;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  display: block;
}

.zap-summary {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
  margin: 1.25rem 0 1.5rem;
}

.zap-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  font-size: 0.9rem;
  gap: 0.5rem;
}

.zap-summary-row + .zap-summary-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.zap-summary-label {
  color: #64748b;
  flex-shrink: 0;
}

.zap-amount-green {
  color: #34d399;
  font-weight: 700;
}

.zap-confirm-sats {
  color: #e2e8f0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.zap-confirm-rate {
  color: #94a3b8;
  font-size: 0.82rem;
}

.zap-confirm-rate-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
  flex-shrink: 0;
  white-space: nowrap;
}

.zap-confirm-rate-badge.locked {
  background: rgba(250, 204, 21, 0.12);
  color: #fcd34d;
}

.zap-open-wallet {
  display: flex;
  width: 100%;
  margin-bottom: 0.75rem;
}

.zap-copy-invoice {
  width: 100%;
  margin-bottom: 0.75rem;
  border: none;
  cursor: pointer;
}

.zap-back-from-confirm,
.zap-back-from-error {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.6rem;
  transition: color 0.15s;
}

.zap-back-from-confirm:hover,
.zap-back-from-error:hover {
  color: #94a3b8;
}

.zap-error-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #f87171;
}

.zap-error-msg {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
  max-width: 300px;
}

.zap-retry-btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

@media (max-width: 640px) {
  #page-zap {
    padding: 2rem 0 4rem;
  }
}
