:root {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --card: #161b26;
  --card-border: #232b3a;
  --text: #e8ecf3;
  --muted: #9aa5b5;
  --accent: #4f7cff;
  --accent-2: #38d9c3;
  --danger: #ff6b6b;
  --ok: #4cd97b;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 560px; }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 14, 20, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.25rem; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }

/* --- Hero --- */
.hero { padding: 96px 0 80px; text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79, 124, 255, .18), transparent); }
.badge {
  display: inline-block; padding: 4px 14px; margin-bottom: 20px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid var(--accent-2); border-radius: 100px;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { max-width: 640px; margin: 20px auto 0; color: var(--muted); font-size: 1.15rem; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s, opacity .12s;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-primary { background: linear-gradient(90deg, var(--accent), #6a5cff); color: #fff; }
.btn-ghost { border-color: var(--card-border); color: var(--text); }
.btn-small { padding: 8px 18px; font-size: .9rem; background: var(--accent); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 12px auto 0; }

/* --- Cards / features --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* --- Pricing --- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 24px; justify-content: center; margin-top: 48px;
}
.price-card { text-align: center; position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 40px rgba(79, 124, 255, .15); }
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 14px; border-radius: 100px;
}
.price { font-size: 2.6rem; font-weight: 800; margin: 12px 0 20px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin-bottom: 24px; }
.price-card li { padding: 6px 0; color: var(--muted); font-size: .95rem; }
.price-card li::before { content: "✓  "; color: var(--ok); font-weight: 700; }

/* --- Form --- */
.form-card { margin-top: 36px; }
.form-card label { display: block; font-size: .9rem; font-weight: 600; margin: 16px 0 6px; }
.form-card label:first-child { margin-top: 0; }
.form-card input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--card-border); background: var(--bg); color: var(--text);
  font-size: 1rem;
}
.form-card input:focus { outline: none; border-color: var(--accent); }
.form-card .btn { margin-top: 24px; border: none; }
.form-msg { margin-top: 14px; text-align: center; font-size: .95rem; min-height: 1.4em; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.fineprint { margin-top: 14px; text-align: center; color: var(--muted); font-size: .8rem; }

/* --- Section CTA --- */
.section-cta { text-align: center; margin-top: 40px; }

/* --- Funnel modal --- */
[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }

.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, .75); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; width: 100%; max-width: 900px; max-height: 92vh; overflow-y: auto;
  background: var(--bg-alt); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 36px 32px;
}
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 6px;
}
.modal-close:hover { color: var(--text); }

.steps { display: flex; gap: 8px; justify-content: center; list-style: none; margin-bottom: 28px; flex-wrap: wrap; }
.steps li {
  font-size: .8rem; font-weight: 600; color: var(--muted);
  padding: 4px 14px; border: 1px solid var(--card-border); border-radius: 100px;
}
.steps li.active { color: var(--text); border-color: var(--accent); }
.steps li.done { color: var(--accent-2); border-color: var(--accent-2); }

.step h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.step .pricing-grid { margin-top: 32px; }
.plan-period { color: var(--muted); font-size: .85rem; margin: -12px 0 16px; }
.price-card .price { margin-bottom: 4px; }
.ribbon-save { background: linear-gradient(90deg, #f59e0b, #f97316); }

.chosen-plan { text-align: center; color: var(--muted); margin: 10px 0 4px; font-size: .95rem; }
.chosen-plan a { color: var(--accent); }
.step .form-card { margin-top: 20px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* --- Payment mockup --- */
.demo-tag {
  background: #f59e0b; color: #1a1200; font-size: .65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 100px; vertical-align: middle; margin-left: 8px;
}
#step-payment { max-width: 480px; margin: 0 auto; }
.order-summary {
  margin: 24px 0 20px; border: 1px solid var(--card-border);
  border-radius: 10px; overflow: hidden;
}
.order-row {
  display: flex; justify-content: space-between; padding: 12px 16px; font-size: .95rem;
}
.order-row + .order-row { border-top: 1px solid var(--card-border); }
.order-row span { color: var(--muted); }
#step-payment label, .pay-label { display: block; font-size: .9rem; font-weight: 600; margin: 16px 0 6px; }
#step-payment select {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 1rem;
  border: 1px solid var(--card-border); background: var(--bg); color: var(--text);
}
.pay-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem;
  background: var(--bg); border: 1px dashed var(--card-border); border-radius: 10px;
  padding: 14px 16px; word-break: break-all; color: var(--accent-2);
}
#step-payment .btn { margin-top: 24px; border: none; }

/* --- Done step --- */
#step-done { max-width: 440px; margin: 0 auto; text-align: center; }
.done-text { color: var(--muted); margin: 14px 0 24px; }

button.btn { font-family: inherit; }
.btn-ghost { background: transparent; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--card-border); padding: 28px 0; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: .85rem;
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .nav-links a:not(.btn) { display: none; }
}
