:root {
  --bg: #0b1420;
  --bg-alt: #101d2c;
  --card: #142235;
  --border: #223449;
  --text: #eef3f8;
  --text-dim: #a9bccc;
  --accent: #00d48d;
  --accent-dark: #06291c;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: var(--accent); }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

nav.links a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
}
nav.links a:hover { color: var(--text); }

.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.badge {
  display: inline-block;
  background: rgba(0, 212, 141, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 141, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero p.sub {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-dark);
}
.btn-primary:hover { background: #00c07f; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--text-dim); }

.btn[disabled], .btn.soon {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

section.features {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.feature-card .icon { font-size: 22px; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 8px; font-size: 16px; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 14px; }

section.pricing {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 212, 141, 0.4);
  position: relative;
}

.plan.featured::before {
  content: "BEST VALUE";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-dark);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
}

.plan h3 { margin: 0 0 4px; font-size: 15px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.plan .price { font-size: 36px; font-weight: 800; margin: 6px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.plan .note { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }

.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { padding: 6px 0; font-size: 14px; color: var(--text-dim); display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 800; }

.compare-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 28px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

footer a { color: var(--text-dim); margin: 0 10px; text-decoration: none; }
footer a:hover { color: var(--text); }

.legal {
  padding: 56px 0 80px;
}
.legal h1 { font-size: 28px; }
.legal h2 { font-size: 18px; margin-top: 32px; }
.legal p, .legal li { color: var(--text-dim); font-size: 14.5px; }

.center-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px 24px;
}
.center-page .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.center-page.success .icon-circle { background: rgba(0,212,141,0.15); color: var(--accent); }
.center-page.cancel .icon-circle { background: rgba(255,107,107,0.15); color: var(--danger); }

@media (max-width: 800px) {
  .grid3, .pricing-grid { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 14, 0.72);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.checkout-overlay:not([hidden]) {
  display: flex;
}

.checkout-modal {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.checkout-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #6b7c8c;
  cursor: pointer;
  z-index: 1;
}

.checkout-close:hover {
  color: #12202f;
}

#checkout-container {
  min-height: 420px;
}
