:root {
  --bg: #0b0f1e;
  --bg-card: #131a30;
  --bg-card-hover: #182138;
  --border: #232d4a;
  --text: #eef1f8;
  --text-dim: #9aa3bd;
  --flame1: #ffb42a;
  --flame2: #ff6a1f;
  --blue: #3b74e0;
  --blue-deep: #1d3f86;
  --ok: #35c76b;
  --err: #e05252;
  --radius: 16px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.brand b { font-size: 20px; letter-spacing: .3px; }
.brand b span { color: var(--flame2); }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font-size: 15px; font-weight: 600; color: #fff;
  padding: 12px 22px; border-radius: 12px;
  background: linear-gradient(135deg, var(--flame1), var(--flame2));
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255, 106, 31, .35); }
.btn.secondary { background: var(--blue-deep); }
.btn.secondary:hover { box-shadow: 0 6px 24px rgba(59, 116, 224, .35); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); box-shadow: none; }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }

/* Hero */
.hero { text-align: center; padding: 56px 0 36px; }
.hero .torch { width: 96px; height: 96px; border-radius: 50%; background: #fff; margin-bottom: 20px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--flame1), var(--flame2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-dim); font-size: 18px; margin: 14px auto 0; max-width: 560px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.chip {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--text-dim);
}
.chip::before { content: "✓ "; color: var(--ok); }

/* Plans */
section h2 { text-align: center; font-size: 28px; margin: 46px 0 6px; }
.section-sub { text-align: center; color: var(--text-dim); margin-bottom: 26px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.plan {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px 18px; text-align: center; cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.plan:hover { background: var(--bg-card-hover); border-color: var(--blue); transform: translateY(-2px); }
.plan .badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, var(--flame1), var(--flame2)); color: #fff;
}
.plan .badge.blue { background: var(--blue); }
.plan h3 { font-size: 17px; font-weight: 600; }
.plan .price { font-size: 30px; font-weight: 800; margin: 8px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--text-dim); }
.plan .per { color: var(--text-dim); font-size: 13px; min-height: 20px; }
.plan .btn { width: 100%; margin-top: 14px; padding: 10px 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--blue-deep); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step b { display: block; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 14.5px; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--text-dim); margin-top: 8px; font-size: 14.5px; }

footer {
  border-top: 1px solid var(--border); margin-top: 56px; padding: 26px 0 40px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  color: var(--text-dim); font-size: 14px;
}
footer a { color: var(--text-dim); }

/* Modal */
.overlay {
  position: fixed; inset: 0; background: rgba(4, 7, 16, .72); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.overlay.open { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; width: 100%; max-width: 420px;
}
.modal h3 { margin-bottom: 4px; }
.modal .plan-line { color: var(--text-dim); margin-bottom: 16px; }
.modal .plan-line b { color: var(--text); }
.modal label { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 6px; }
.modal input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 15px; outline: none;
}
.modal input:focus { border-color: var(--blue); }
.modal .btn { width: 100%; margin-top: 16px; }
.modal .cancel { margin-top: 10px; width: 100%; }
.modal .error { color: var(--err); font-size: 14px; margin-top: 10px; display: none; }

/* Status / success page */
.status-card {
  max-width: 560px; margin: 48px auto; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px;
}
.status-card h2 { margin: 14px 0 6px; }
.status-card .dim { color: var(--text-dim); }
.spinner {
  width: 44px; height: 44px; margin: 0 auto;
  border: 4px solid var(--border); border-top-color: var(--flame2); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sub-link {
  display: flex; gap: 8px; margin: 18px 0 6px;
}
.sub-link input {
  flex: 1; min-width: 0; padding: 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 13px;
}
.qr { background: #fff; border-radius: 12px; padding: 10px; margin: 18px auto 6px; width: 232px; height: 232px; }
.qr img { width: 212px; height: 212px; display: block; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.note { font-size: 13.5px; color: var(--text-dim); margin-top: 14px; }
.ok-ico, .err-ico { font-size: 44px; line-height: 1; }
