:root {
  --bg: #07070f;
  --bg2: #0e0e1a;
  --bg3: #141425;
  --purple: #7B61FF;
  --cyan: #00D4FF;
  --purple-dim: #5a45cc;
  --text: #e8e8f0;
  --text-dim: #8888aa;
  --border: rgba(123, 97, 255, 0.18);
  --glass: rgba(255,255,255,0.04);
  --radius: 14px;
  --font-mono: 'JetBrains Mono', 'Fira Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Canvas background ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.page-wrap {
  position: relative;
  z-index: 1;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.nav-logo .zk { color: var(--purple); }
.nav-logo .dot { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.btn-connect {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  border: none;
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
}

.btn-connect:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #a78bff);
  color: #fff;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(123,97,255,0.35); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover { border-color: var(--purple); color: var(--purple); }

.btn-cyan {
  background: linear-gradient(135deg, #0099bb, var(--cyan));
  color: #000;
  font-weight: 700;
}

.btn-cyan:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,255,0.3); }

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Glass card ── */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.card:hover { border-color: rgba(123,97,255,0.35); }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(123,97,255,0.12);
  border: 1px solid rgba(123,97,255,0.3);
  color: #b8a8ff;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-cyan {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.3);
  color: var(--cyan);
}

/* ── Section ── */
section { padding: 6rem 2.5rem; }

.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 720px; margin: 0 auto; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Grid helpers ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }

/* ── Step indicator ── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.step-item.active { color: var(--text); }
.step-item.done { color: var(--cyan); }

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
}

.step-item.active .step-num {
  border-color: var(--purple);
  background: rgba(123,97,255,0.15);
  color: var(--purple);
}

.step-item.done .step-num {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
}

.step-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 0.3rem;
}

/* ── Code / proof block ── */
.proof-block {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  color: var(--cyan);
  word-break: break-all;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer a { color: var(--purple); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  max-width: 320px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(0,212,255,0.4); }
.toast.error { border-color: rgba(255,80,80,0.4); }

/* ── Misc utils ── */
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Plan cards ── */
.plan-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.plan-card:hover { border-color: rgba(123,97,255,0.4); transform: translateY(-2px); }
.plan-card.selected { border-color: var(--purple); background: rgba(123,97,255,0.08); }

.plan-card .popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.9rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.price {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin: 1rem 0 0.3rem;
}

.price sup { font-size: 1rem; vertical-align: top; margin-top: 0.5rem; display: inline-block; }
.price .currency { font-size: 1rem; color: var(--text-dim); font-weight: 400; }

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.feature-list li .check { color: var(--cyan); font-size: 0.9rem; }
.feature-list li.dim .check { color: var(--border); }

/* ── Status indicator ── */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.green { background: #00e676; box-shadow: 0 0 8px #00e676; }
.status-dot.yellow { background: #ffb300; box-shadow: 0 0 8px #ffb300; }
.status-dot.red { background: #ff5252; box-shadow: 0 0 8px #ff5252; }
.status-dot.pulse { animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  nav { padding: 1rem 1.2rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.2rem; }
  .steps { gap: 0.5rem; }
  .step-line { width: 20px; }
  footer { padding: 2rem 1.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
