:root {
  --bg: #0b101b;
  --bg-alt: #101829;
  --card: #141e33;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", Roboto, sans-serif;
  background: radial-gradient(circle at 15% 0%, rgba(16, 185, 129, 0.11), transparent 40%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 27, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s, border-color 0.16s, transform 0.1s;
}

.btn-sm { padding: 7px 13px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #042016;
}
.btn-primary:hover { background: var(--accent-hover); color: #ecfdf5; }

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

.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); }

.hero { padding: 72px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #6ee7b7;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 26px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.notice {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.hero-card, .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: #a7f3d0;
}

.metric-lbl {
  font-size: 0.84rem;
  color: var(--muted);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: #cbd5e1;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title {
  margin: 0 0 10px;
  font-size: 1.75rem;
}

.section-sub {
  margin: 0 0 32px;
  color: var(--muted);
}

.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card h3 { margin: 0 0 10px; font-size: 1.12rem; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 0.94rem; }
.muted { color: var(--muted); font-size: 0.9rem; }

.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 0 28px rgba(16, 185, 129, 0.12); }

.tag {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--accent);
  color: #042016;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.plan-name { font-weight: 600; margin-bottom: 8px; }
.price { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.price span { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.plan-list { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-list li { padding: 5px 0; color: #cbd5e1; font-size: 0.92rem; }
.plan-list li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.dl-card { display: flex; flex-direction: column; justify-content: space-between; }
.muted-card { opacity: 0.78; }
.pill-soon {
  display: inline-block;
  text-align: center;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer { padding: 28px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.72); }
.modal-box {
  position: relative;
  width: min(440px, 92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-head h3 { margin: 0; }
.icon-btn { background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 0.9rem; }
.field input {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: var(--text);
  font-size: 0.95rem;
}

.form-msg { min-height: 22px; font-size: 0.86rem; margin-bottom: 10px; }
.form-msg.ok { color: #6ee7b7; }
.form-msg.err { color: #fca5a5; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .cards-3, .cards-4, .cards-2 { grid-template-columns: 1fr; }
}
