/* ========== RESET / TOKENS ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0b0c10;
  color: #e8e8ee;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: #ffd84d; text-decoration: none; }
a:hover { text-decoration: underline; }

:root {
  --bg: #0b0c10;
  --bg-2: #14161e;
  --bg-card: #1a1d28;
  --border: #2a2e3d;
  --text: #e8e8ee;
  --text-dim: #9aa0b2;
  --accent: #ffd84d;
  --accent-2: #ffb800;
  --green: #4ade80;
  --red: #f87171;
  --radius: 14px;
}

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

/* ========== HEADER ========== */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 18px; }
.logo:hover { text-decoration: none; }
.logo-bolt { color: var(--accent); font-size: 22px; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--text-dim); font-size: 15px; }
.nav a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 640px) { .nav { display: none; } }

/* ========== HERO ========== */
.hero {
  padding: 80px 0 100px;
  background: radial-gradient(ellipse at top, rgba(255, 216, 77, 0.08), transparent 60%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1; margin: 0 0 24px; font-weight: 800; letter-spacing: -0.02em;
}
.accent { color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text-dim); margin: 0 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-meta { display: flex; flex-direction: column; gap: 6px; color: var(--text-dim); font-size: 14px; }
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 60px; }
}

/* ========== CARD MOCK ========== */
.hero-card { display: flex; justify-content: center; }
.card-mock {
  background: linear-gradient(160deg, #1f2230, #14161e);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 216, 77, 0.08);
}
.card-header { font-weight: 700; color: var(--accent); margin-bottom: 12px; font-size: 15px; }
.card-row { padding: 6px 0; font-size: 14px; border-bottom: 1px dashed rgba(255,255,255,0.05); }
.card-row:last-child { border: 0; }
.muted { color: var(--text-dim); }
.up { color: var(--green); }
.arrow { color: var(--text-dim); margin: 0 6px; }
.growth { color: var(--green); font-weight: 600; margin-left: 6px; }
.severity { color: var(--accent); font-weight: 600; padding-top: 12px !important; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 12px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent); color: #1a1300;
  box-shadow: 0 4px 16px rgba(255, 216, 77, 0.25);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 6px 24px rgba(255, 216, 77, 0.4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-large { padding: 18px 32px; font-size: 17px; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ========== SECTIONS GENERIC ========== */
section h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ========== HOW ========== */
.how { padding: 80px 0; background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 28px 24px; border-radius: var(--radius);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255, 216, 77, 0.12);
  color: var(--accent);
  border-radius: 50%;
  font-weight: 700; margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--text-dim); font-size: 14px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ========== PRICING ========== */
.pricing { padding: 80px 0; }
.pricing-sub { color: var(--text-dim); margin: 0 0 40px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 32px 28px; border-radius: var(--radius);
  position: relative;
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 216, 77, 0.3), 0 20px 40px rgba(255, 216, 77, 0.08);
}
.plan-badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--accent); color: #1a1300;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 12px;
}
.plan-name { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.plan-price { font-size: 56px; font-weight: 800; margin: 8px 0 4px; line-height: 1; }
.plan-price span { font-size: 28px; color: var(--text-dim); font-weight: 600; }
.plan-duration { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; }
.plan-features li { padding: 6px 0; font-size: 14px; color: var(--text); }
.plan-btn { width: 100%; }

/* ========== ORDER FORM ========== */
.order-form {
  margin-top: 40px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 32px; border-radius: var(--radius);
  max-width: 560px;
}
.order-form h3 { margin: 0 0 24px; font-size: 22px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.form-row input[type="number"],
.form-row input[type="email"],
.form-row input[type="tel"] {
  width: 100%; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 15px;
  font-family: inherit;
}
.form-row input:focus { outline: none; border-color: var(--accent); }
.form-row small { display: block; margin-top: 6px; color: var(--text-dim); font-size: 12px; }
.checkbox-row label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.checkbox-row input { margin-top: 3px; flex-shrink: 0; }
.form-error { margin-top: 12px; color: var(--red); font-size: 14px; min-height: 20px; }
code {
  background: var(--bg); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em;
}

/* ========== FAQ ========== */
.faq { padding: 80px 0; background: var(--bg-2); }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--text-dim); font-size: 15px; }

/* ========== SUCCESS PAGE ========== */
.success-section { padding: 80px 0; min-height: 60vh; }
.success-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.state-box {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 48px 32px; border-radius: var(--radius);
}
.state-box h2 { font-size: 28px; margin: 16px 0 12px; }
.state-box p { color: var(--text-dim); margin: 8px 0; }
.success-icon { font-size: 64px; margin-bottom: 8px; }
.activation-code {
  background: var(--bg); border: 1px dashed var(--accent);
  padding: 20px; margin: 20px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px; font-weight: 700; color: var(--accent);
  border-radius: 12px; word-break: break-all;
}
.spinner {
  width: 48px; height: 48px; margin: 0 auto 16px;
  border: 4px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.manual-help { margin-top: 24px; text-align: left; background: var(--bg); padding: 16px; border-radius: 10px; }
.manual-help summary { cursor: pointer; color: var(--text-dim); font-size: 14px; }
.manual-help code { display: block; margin-top: 8px; padding: 10px; font-size: 13px; }
.state-box .btn { margin: 8px 6px; }

/* ========== FOOTER ========== */
.footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer nav a { color: var(--text-dim); font-size: 14px; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; }
.footer-meta small { color: var(--text-dim); font-size: 12px; }

/* ========== LEGAL PAGES ========== */
.legal-content {
  max-width: 760px; margin: 60px auto;
  padding: 0 24px;
}
.legal-content h1 { font-size: 32px; margin-bottom: 8px; }
.legal-content .legal-meta { color: var(--text-dim); margin-bottom: 32px; font-size: 14px; }
.legal-content h2 { font-size: 22px; margin: 32px 0 12px; }
.legal-content p, .legal-content li { color: var(--text); font-size: 15px; line-height: 1.6; }
.legal-content ul, .legal-content ol { padding-left: 24px; }
