:root {
  --bg: #07080b;
  --bg-2: #0b0d12;
  --panel: rgba(17, 20, 26, 0.72);
  --panel-solid: #11141a;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-soft: rgba(255, 255, 255, 0.05);
  --text: #e8ecf3;
  --muted: #98a2b6;
  --accent: #00d68f;
  --accent-2: #12b8ff;
  --accent-dim: rgba(0, 214, 143, 0.18);
  --danger: #ff6b6b;
  --radius: 16px;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ------------------------------------------------------------------ backdrop */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(0, 214, 143, 0.10), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(18, 184, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #07080b 0%, #080a0f 45%, #05060a 100%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.bg-glow-1 { width: 620px; height: 620px; left: -160px; top: -120px; background: rgba(0, 214, 143, 0.22); }
.bg-glow-2 { width: 520px; height: 520px; right: -140px; top: 160px; background: rgba(18, 184, 255, 0.16); animation-delay: -8s; }
.bg-glow-3 { width: 700px; height: 700px; left: 30%; bottom: -420px; background: rgba(0, 214, 143, 0.10); animation-delay: -16s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

.bg-grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 65%);
  transform: perspective(600px) rotateX(48deg) translateY(-10%);
  opacity: 0.7;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

#particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }

/* ---------------------------------------------------------------------- nav */
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.14em;
  font-weight: 700;
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}
.brand-dot.small { width: 7px; height: 7px; display: inline-block; margin-right: 8px; }
.brand-name { font-size: 17px; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.28em; padding-top: 3px; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* --------------------------------------------------------------------- hero */
main { max-width: 1180px; margin: 0 auto; padding: 0 28px 90px; }

.hero { padding: 70px 0 40px; max-width: 780px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--accent-dim);
  background: rgba(0, 214, 143, 0.07);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 700;
}
.accent { color: var(--accent); }

.lead {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #05100c;
  box-shadow: 0 10px 30px -12px rgba(0, 214, 143, 0.7);
}
.btn-primary:hover { box-shadow: 0 14px 40px -12px rgba(0, 214, 143, 0.9); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--stroke);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--stroke-soft);
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-size: 22px; letter-spacing: -0.02em; }
.hero-stats span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }

/* ----------------------------------------------------------------- sections */
.section { padding: 78px 0 0; }
.section-head { margin-bottom: 34px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.section-head p { color: var(--muted); margin: 0; }

/* -------------------------------------------------------------------- plans */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 16px;
}

.plan {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(23, 27, 35, 0.9), rgba(13, 15, 20, 0.9));
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.plan:hover {
  border-color: rgba(0, 214, 143, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -30px rgba(0, 214, 143, 0.55);
}
.plan.popular { border-color: rgba(0, 214, 143, 0.55); }
.plan.popular::after {
  content: "POPULAR";
  position: absolute;
  top: -9px; right: 18px;
  font-size: 10px;
  letter-spacing: 0.16em;
  background: var(--accent);
  color: #05100c;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}
.plan h3 { margin: 0; font-size: 17px; letter-spacing: 0.02em; }
.plan .price {
  font-family: var(--mono);
  font-size: 24px;
  color: var(--accent);
  margin: 8px 0 2px;
  letter-spacing: -0.02em;
}
.plan .usd { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.plan .note { font-size: 13px; color: var(--muted); flex: 1; margin-bottom: 18px; }
.plan button { width: 100%; padding: 11px; font-size: 14px; }

.skeleton-card {
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke-soft);
  background: linear-gradient(100deg, rgba(255,255,255,0.03) 20%, rgba(255,255,255,0.07) 40%, rgba(255,255,255,0.03) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* -------------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.step {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  backdrop-filter: blur(12px);
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 { margin: 10px 0 6px; font-size: 16.5px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------- verify */
.verify-card {
  padding: 34px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: linear-gradient(140deg, rgba(0, 214, 143, 0.07), rgba(18, 184, 255, 0.04) 55%, transparent);
}
.verify-card h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.verify-card p { color: var(--muted); margin: 0 0 18px; }
.verify-form { display: flex; gap: 10px; flex-wrap: wrap; }
.verify-form input { flex: 1; min-width: 260px; }
.verify-out { margin-top: 16px; font-family: var(--mono); font-size: 13.5px; }
.verify-out.ok { color: var(--accent); }
.verify-out.bad { color: var(--danger); }

/* ------------------------------------------------------------------ inputs */
input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--stroke);
  background: rgba(9, 11, 15, 0.85);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
  border-color: rgba(0, 214, 143, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 214, 143, 0.12);
}
input::placeholder { color: #5c6577; }

/* ------------------------------------------------------------------- footer */
.footer {
  border-top: 1px solid var(--stroke-soft);
  padding: 26px 28px 46px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.footer strong { color: var(--text); letter-spacing: 0.1em; font-size: 12.5px; }

/* -------------------------------------------------------------------- modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, #12151c, #0b0d12);
  padding: 30px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
  animation: pop 0.22s ease;
}
@keyframes pop { from { transform: translateY(12px) scale(0.985); opacity: 0; } }

.modal-x {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: 0;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-x:hover { color: var(--text); }

.pane.hidden { display: none; }
.pane-head { margin-bottom: 20px; }
.pane-head h3 { margin: 8px 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.muted { color: var(--muted); margin: 0; font-size: 14px; }

.chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 18px 0 8px;
}

.coin-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.coin {
  flex: 1;
  min-width: 92px;
  padding: 11px 8px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.coin small { display: block; font-size: 10.5px; font-weight: 400; opacity: 0.75; margin-top: 2px; }
.coin.active {
  border-color: rgba(0, 214, 143, 0.6);
  background: rgba(0, 214, 143, 0.1);
  color: var(--text);
}

.summary {
  margin: 22px 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 9px;
}
.summary div { display: flex; justify-content: space-between; font-size: 14px; }
.summary span { color: var(--muted); }
.summary b { font-family: var(--mono); font-weight: 600; }

.fine { font-size: 12px; color: #6d7689; margin: 12px 0 0; line-height: 1.5; }
.error { color: var(--danger); font-size: 13.5px; margin-top: 12px; min-height: 18px; }

/* payment pane */
.amount {
  font-family: var(--mono);
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}
.amount-usd { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }

.qr-wrap { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.qr-wrap img {
  width: 168px; height: 168px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.qr-side { flex: 1; min-width: 220px; display: grid; gap: 12px; }

.copy-row {
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 9px 11px;
  display: grid;
  gap: 3px;
}
.copy-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.copy-row code {
  font-family: var(--mono);
  font-size: 12.5px;
  word-break: break-all;
  color: var(--text);
}
.copy {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-size: 11.5px;
  cursor: pointer;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.copy:hover { text-decoration: underline; }

.meter { display: flex; align-items: center; gap: 10px; }
.meter-bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.meter-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transition: transform 1s linear;
}
.meter span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.status-line {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(0, 214, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0); }
}

/* done pane */
.done-check {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 214, 143, 0.14);
  border: 1px solid rgba(0, 214, 143, 0.45);
  color: var(--accent);
  font-size: 26px;
  margin-bottom: 14px;
}
.key-box {
  margin: 20px 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(0, 214, 143, 0.45);
  background: rgba(0, 214, 143, 0.06);
  display: grid;
  gap: 8px;
}
.key-box code {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent);
  word-break: break-all;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------ mobile */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 40px; }
  .hero-stats { gap: 26px; }
  .modal-panel { padding: 22px; }
  .qr-wrap img { width: 140px; height: 140px; }
}
