:root {
  --bg: #050814;
  --bg-2: #0a1020;
  --panel: rgba(14, 22, 40, 0.78);
  --line: rgba(96, 140, 220, 0.18);
  --text: #eef4ff;
  --muted: #8ea0c4;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --navy: #1d4ed8;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 18px;
  --max: 1160px;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}
body.land { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* Atmosphere */
.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.fx-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: grid-drift 28s linear infinite;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
}
.fx-orb {
  position: absolute;
  width: 52vw;
  height: 52vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: orb 14s ease-in-out infinite;
}
.fx-orb.a {
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, #1d4ed8 0%, transparent 68%);
}
.fx-orb.b {
  right: -12%;
  top: 18%;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  animation-delay: -6s;
  opacity: 0.32;
}
.fx-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.08), transparent);
  animation: scan 9s ease-in-out infinite;
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(56px); }
}
@keyframes orb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, 6%, 0) scale(1.08); }
}
@keyframes scan {
  0% { top: -20%; }
  100% { top: 110%; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
@keyframes shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.rise { animation: rise 0.8s ease both; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.24s; }
.rise-4 { animation-delay: 0.36s; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 18px;
}
.brand small {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-2);
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-blue {
  color: #fff;
  border: 0;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6, #60a5fa, #1d4ed8);
  background-size: 200% 100%;
  animation: shine 4.5s linear infinite;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-block { width: 100%; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0 48px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 16px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-ring 2.2s ease-out infinite;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
  font-weight: 700;
}
.million {
  font-family: var(--display);
  font-size: clamp(48px, 7.5vw, 88px);
  letter-spacing: -0.05em;
  margin: 6px 0 14px;
  background: linear-gradient(90deg, #93c5fd, #fff, #3b82f6);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
.lede { color: var(--muted); max-width: 38rem; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.live-tag {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.live-tag b { color: var(--ok); font-weight: 600; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat {
  background: rgba(8, 14, 28, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.stat span { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.stat b { font-size: 20px; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 72px 1fr 48px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.bar { height: 7px; background: #111827; border-radius: 99px; overflow: hidden; }
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
  animation: fill 1.6s ease forwards;
}
@keyframes fill { to { width: var(--w); } }

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 64px;
}
.strip article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(10, 16, 32, 0.6);
}
.strip b { display: block; font-family: var(--display); font-size: 20px; }
.strip span { color: var(--muted); font-size: 13px; }

section h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.sub { color: var(--muted); margin: 0 0 26px; max-width: 36rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 64px; }
.step {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: rgba(10, 16, 32, 0.55);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, 0.45); }
.step em { color: var(--blue-2); font-style: normal; letter-spacing: 0.14em; font-size: 12px; }
.step h3 { margin: 10px 0 8px; }
.step p { margin: 0; color: var(--muted); }

.rates-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 16, 32, 0.7);
}
.rates-table th, .rates-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.rates-table th { color: var(--muted); font-weight: 500; }
.rates-table td:last-child, .rates-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--blue-2); }

.cta-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 56px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.22), rgba(5, 8, 20, 0.4));
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ref-banner {
  display: none;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.18);
  font-size: 14px;
}
.ref-banner.show { display: block; }

/* Auth */
body.auth { min-height: 100vh; }
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
}
.auth-copy {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-copy h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
  margin: 12px 0;
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.form {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  backdrop-filter: blur(16px);
}
.form h2 { margin: 0 0 4px; font-size: 22px; }
.form p.hint { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.form label { font-size: 13px; color: var(--muted); }
.form input, .form select {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #070b16;
  padding: 0 12px;
}
.form input:focus, .form select:focus {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  border-color: var(--blue);
}
.err { color: #fda4af; font-size: 13px; min-height: 1.1em; margin: 0; }
.fine { font-size: 12px; color: var(--muted); margin: 0; }
.switch { font-size: 14px; color: var(--muted); }
.switch a { color: var(--blue-2); font-weight: 600; }

/* Dashboard */
body.dash { background: #070b14; color: var(--text); }
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px 1fr;
}
.side {
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #080d18;
}
.side a, .side button.linkish {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  background: none;
  border: 0;
  text-align: left;
}
.side a.active, .side a:hover, .side button.linkish:hover,
.side button.linkish.on {
  background: rgba(59, 130, 246, 0.12);
  color: var(--text);
}
.main { padding: 22px 24px 48px; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.topbar h1 { margin: 0; font-size: 22px; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: #0d1424;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.kpi span { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.kpi b { display: block; margin-top: 8px; font-size: 26px; }
.grid-2 { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 12px; }
.panel {
  background: #0d1424;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.panel h2 { margin: 0 0 12px; font-size: 15px; }
table.act { width: 100%; border-collapse: collapse; font-size: 13px; }
table.act th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.act td { padding: 11px 6px; border-bottom: 1px solid var(--line); }
.copybox {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  background: #070b16;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}
.copybox code { flex: 1; min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-btn {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 12px;
}
.menu-btn { display: none; }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tabs button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
}
.tabs button.on {
  background: rgba(59, 130, 246, 0.16);
  color: var(--text);
  border-color: rgba(96, 165, 250, 0.45);
}
.callout {
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.28), rgba(7, 11, 22, 0.5));
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.callout h2 { margin: 0 0 6px; font-size: 16px; }
.callout p { margin: 0; color: var(--muted); font-size: 13px; }
.row-form {
  display: grid;
  grid-template-columns: 1fr 140px auto;
  gap: 8px;
  margin-bottom: 12px;
}
.row-form input, .row-form select {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #070b16;
  padding: 0 12px;
}
.range {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.range input[type="range"] { width: 100%; accent-color: #3b82f6; }
.list-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.list-row code { font-size: 12px; color: var(--blue-2); }
.muted { color: var(--muted); font-size: 13px; }
.desk-section { display: none; }
.desk-section.on { display: block; }
.pct { color: #93c5fd; font-weight: 700; }

.ov-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
}
.ov-hero > div {
  background: #0c1322;
  padding: 28px 28px 24px;
}
.ov-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
  font-weight: 600;
}
.ov-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.ov-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ov-money {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.ov-money-sm { font-size: clamp(36px, 4vw, 48px); color: #93c5fd; }
.ov-sub { margin: 0 0 18px; color: var(--muted); font-size: 13px; max-width: 36rem; }
.ov-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-ghost-d {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  min-height: 36px;
  padding: 0 12px;
}
.ov-spark {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  margin-top: 18px;
}
.ov-spark i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #60a5fa, #1d4ed8);
  opacity: 0.85;
}
.ov-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.ov-metrics article {
  background: #0c1322;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
}
.ov-metrics span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ov-metrics b {
  display: block;
  margin: 8px 0 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.ov-metrics em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.ov-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 10px;
  margin-bottom: 14px;
}
.ov-card {
  background: #0c1322;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 8px;
}
.ov-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}
.ov-card header h2 { margin: 0; font-size: 14px; font-weight: 600; }
.ov-card header span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ov-flow { list-style: none; margin: 0; padding: 0; }
.ov-flow li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.ov-flow li span {
  font-size: 11px;
  color: #60a5fa;
  font-weight: 700;
  padding-top: 2px;
}
.ov-flow b { display: block; font-size: 13px; }
.ov-flow p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.ov-flow strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.ov-flow li.you {
  background: rgba(29, 78, 216, 0.16);
  margin: 0 -18px;
  padding-left: 18px;
  padding-right: 18px;
  border-top-color: transparent;
}
.ov-flow li.you strong { color: #93c5fd; }
.ov-rules dl { margin: 0; }
.ov-rules dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.ov-rules dt { color: var(--muted); }
.ov-rules dd { margin: 0; font-variant-numeric: tabular-nums; }
.ov-note {
  margin: 8px 0 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.ov-linkbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: #0c1322;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.ov-linkbar span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.ov-linkbar code { font-size: 12px; color: #93c5fd; }
.wallet-preview {
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0c1322;
  display: flex;
  gap: 12px;
  align-items: center;
}
.wallet-preview img, .wallet-preview .av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #1d4ed8;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}
.wallet-preview b { display: block; font-size: 15px; }
.wallet-preview span { display: block; font-size: 12px; color: var(--muted); }
.pay-row { align-items: flex-start; }
.pay-row em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #93c5fd;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .ov-hero, .ov-metrics, .ov-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .row-form, .list-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero, .steps, .strip, .cta-band, .auth-shell, .kpis, .grid-2, .shell {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.btn) { display: none; }
  .auth-copy { padding: 28px 22px 0; }
  .hero { padding-top: 12px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .shell { grid-template-columns: 1fr; }
  .side {
    display: none;
    position: fixed;
    inset: auto 12px 12px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    z-index: 30;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .side.open { display: flex; }
  .menu-btn { display: inline-flex; }
  .main { padding: 16px 16px 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
