:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-input: #1a1a2e;
  --bg-steps: #0d0d18;
  --border: #1e1e2e;
  --border2: #2a2a3e;
  --text: #e0e0e0;
  --text-muted: #888;
  --text-dim: #666;
  --text-bright: #fff;
  --text-footer: #444;
  --divider: #1a1a2e;
}
[data-theme="light"] {
  --bg: #f5f5fa;
  --bg-card: #ffffff;
  --bg-input: #ededf8;
  --bg-steps: #eeeef6;
  --border: #e0e0ee;
  --border2: #d0d0e0;
  --text: #1a1a2e;
  --text-muted: #555;
  --text-dim: #777;
  --text-bright: #111;
  --text-footer: #888;
  --divider: #e0e0ee;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  transition: background .2s, color .2s;
  overflow-x: hidden;
}

/* ── Nav ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1100px; margin: 0 auto;
  gap: 16px;
}
.nav-logo { font-size: 1.2rem; font-weight: 800; text-decoration: none; color: var(--text); }
.nav-logo span { color: #7c6bff; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: #7c6bff; display: flex; align-items: center; gap: 5px; }
.nav-links a.active::before { content: ""; width: 6px; height: 6px; background: #34d399; border-radius: 50%; display: inline-block; }
.nav-btn {
  background: #7c6bff; color: #fff; text-decoration: none;
  padding: 9px 20px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  transition: background .15s; white-space: nowrap;
}
.nav-btn:hover { background: #6a5aee; }
.theme-toggle {
  background: none; border: 1px solid var(--border2); color: var(--text-muted);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: #7c6bff; color: #7c6bff; }
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav { padding: 14px 16px; }
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 64px 16px 48px;
  max-width: 680px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,107,255,.12); border: 1px solid rgba(124,107,255,.3);
  color: #a89fff; padding: 5px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.15;
  margin-bottom: 16px; color: var(--text-bright);
}
.hero h1 span { color: #7c6bff; }
.hero-sub { color: var(--text-muted); font-size: 1rem; margin-bottom: 32px; line-height: 1.6; }
.email-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto 12px; }
.email-form input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border2);
  color: var(--text); padding: 14px 16px; border-radius: 12px;
  font-size: 0.95rem; font-family: inherit; outline: none; transition: border-color .15s;
}
.email-form input::placeholder { color: var(--text-muted); }
.email-form input:focus { border-color: #7c6bff; }
.email-form button {
  background: #7c6bff; color: #fff; border: none; cursor: pointer;
  padding: 14px 22px; border-radius: 12px; font-size: 0.95rem;
  font-weight: 700; font-family: inherit; white-space: nowrap; transition: background .15s;
}
.email-form button:hover { background: #6a5aee; }
@media (max-width: 480px) {
  .email-form { flex-direction: column; }
  .email-form button { width: 100%; }
}
.hero-hint { color: var(--text-dim); font-size: 0.82rem; margin-bottom: 28px; }
.hero-hint span { color: var(--text-muted); }
.online-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.2);
  color: var(--text-muted); padding: 6px 14px; border-radius: 20px; font-size: 0.82rem;
}
.online-dot { width: 7px; height: 7px; background: #34d399; border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── Section ── */
.section { max-width: 1100px; margin: 0 auto; padding: 56px 24px; }
.section-title { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 8px; color: var(--text-bright); }
.section-sub { text-align: center; color: var(--text-dim); font-size: 0.95rem; margin-bottom: 40px; }

/* ── Features ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: 16px; padding: 22px 20px; transition: border-color .2s;
}
.feature-card:hover { border-color: rgba(124,107,255,.5); }
.feature-icon { font-size: 1.6rem; margin-bottom: 10px; }
.feature-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.feature-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* ── Steps ── */
.steps-wrap { background: var(--bg-steps); border: 1px solid var(--border); border-radius: 20px; padding: 40px; }
.steps-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; }
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
}
.step { text-align: center; }
.step-icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(124,107,255,.12); border: 2px solid rgba(124,107,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 14px;
}
.step-time {
  display: inline-block; background: var(--bg-input); color: var(--text-dim);
  font-size: 0.72rem; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.step-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.step-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }
.step-arrow { color: var(--border2); font-size: 1.4rem; }
.steps-note { text-align: center; margin-top: 28px; font-size: 0.82rem; color: var(--text-dim); }

/* ── Pricing ── */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 800px) { .plans-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px 20px; position: relative; transition: border-color .2s;
}
.plan-card.popular { border-color: #7c6bff; background: rgba(124,107,255,.05); }
.plan-badge-wrap {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #7c6bff; color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 3px 12px; border-radius: 20px; white-space: nowrap;
}
.plan-name { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 12px; }
.plan-price-big { font-size: 2rem; font-weight: 800; color: var(--text-bright); line-height: 1; }
.plan-price-big sup { font-size: 1rem; vertical-align: super; }
.plan-per-month { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }
.plan-discount {
  display: inline-block; background: rgba(52,211,153,.1); color: #34d399;
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: 4px;
}
.plan-features { margin: 16px 0; }
.plan-feature {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px;
}
.plan-feature::before { content: "✓"; color: #7c6bff; font-weight: 700; flex-shrink: 0; }
.plan-btn {
  display: block; width: 100%; text-align: center;
  background: transparent; border: 1px solid rgba(124,107,255,.4);
  color: #7c6bff; text-decoration: none; padding: 11px;
  border-radius: 10px; font-weight: 600; font-size: 0.9rem;
  transition: background .15s; cursor: pointer; font-family: inherit;
}
.plan-btn:hover { background: rgba(124,107,255,.1); }
.plan-card.popular .plan-btn { background: #7c6bff; border-color: #7c6bff; color: #fff; }
.plan-card.popular .plan-btn:hover { background: #6a5aee; }
.plan-card.free .plan-btn { border-color: rgba(52,211,153,.4); color: #34d399; }
.plan-card.free .plan-btn:hover { background: rgba(52,211,153,.08); }
.plans-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.pay-methods { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-methods span { font-size: 0.8rem; color: var(--text-dim); }
.pay-badge {
  background: var(--bg-input); border: 1px solid var(--border2); color: var(--text-muted);
  font-size: 0.75rem; padding: 4px 10px; border-radius: 6px;
}
.tg-link { display: flex; align-items: center; gap: 6px; color: #7c6bff; font-size: 0.82rem; text-decoration: none; }
.tg-link:hover { text-decoration: underline; }

/* ── Apps ── */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 500px) { .apps-grid { grid-template-columns: 1fr; } }
.app-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.app-card-title { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.app-links { display: flex; flex-direction: column; gap: 6px; }
.app-link {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-input); border: 1px solid var(--border2); border-radius: 8px;
  padding: 8px 12px; color: var(--text-muted); text-decoration: none; font-size: 0.8rem;
  transition: border-color .15s, color .15s;
}
.app-link:hover { border-color: #7c6bff; color: var(--text); }

/* ── Support ── */
.support-card {
  background: linear-gradient(135deg, #1a1040 0%, #2a1a6e 50%, #1a1040 100%);
  border: 1px solid rgba(124,107,255,.2); border-radius: 20px;
  padding: 36px; text-align: center; position: relative; overflow: hidden;
}
.support-card::before, .support-card::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(124,107,255,.1);
}
.support-card::before { width: 200px; height: 200px; top: -80px; right: -60px; }
.support-card::after { width: 120px; height: 120px; bottom: -40px; left: -30px; }
.support-title { font-size: 1.2rem; font-weight: 700; color: #e0e0e0; margin: 12px 0 8px; }
.support-desc { font-size: 0.88rem; color: #888; margin-bottom: 24px; line-height: 1.6; }
.support-btn {
  display: inline-block; background: #7c6bff; color: #fff;
  text-decoration: none; font-weight: 700; padding: 14px 32px;
  border-radius: 12px; transition: background .15s; position: relative; z-index: 1;
}
.support-btn:hover { background: #6a5aee; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--divider); padding: 28px 24px;
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
}
.footer a { color: var(--text-footer); text-decoration: none; font-size: 0.82rem; transition: color .15s; }
.footer a:hover { color: #7c6bff; }

/* ── Modals ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.8); z-index: 100;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border2); border-radius: 16px;
  padding: 28px 24px; max-width: 480px; width: 100%;
  max-height: 80vh; overflow-y: auto; position: relative;
}
.modal h3 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.modal p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-dim); font-size: 1.4rem;
  cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text-muted); }

hr.section-divider { border: none; border-top: 1px solid var(--divider); }
