/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0d12;
  --bg-raised: #111520;
  --bg-card: #161b27;
  --border: #1e2536;
  --border-bright: #2a3348;
  --text: #e2e8f0;
  --text-muted: #8492a6;
  --text-dim: #5a6a82;
  --accent: #10b981;
  --accent-dim: #065f46;
  --accent-glow: rgba(16, 185, 129, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

a { color: var(--accent); text-decoration: none; }

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  background: rgba(10, 13, 18, 0.8);
  backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topnav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-raised);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  transform: translateY(-1px);
}

.btn:disabled,
.btn-disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-sm { padding: 7px 16px; font-size: 0.82rem; }

.btn-lg { padding: 14px 28px; font-size: 0.95rem; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--border-bright);
  box-shadow: none;
}

/* ── Hero ── */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 28px 60px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 600px;
  margin: 22px auto 0;
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.status-line {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.status-line.ok { color: var(--accent); }
.status-line.err { color: #ef4444; }

/* ── Section Label ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 32px;
}

/* ── Features ── */
.features {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 28px 80px;
}

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

.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── How It Works ── */
.how-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 28px 80px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-connector {
  width: 2px;
  height: 16px;
  margin-left: 19px;
  background: var(--border);
  border-radius: 1px;
}

/* ── Pricing ── */
.pricing {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 28px 80px;
}

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

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-card-featured {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2), 0 16px 30px rgba(0, 0, 0, 0.28);
}

.price-tier {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 4px;
}

.price-features {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  min-height: 154px;
}

.price-features li {
  position: relative;
  padding-left: 16px;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.85;
}

.pricing-footnote {
  margin-top: 14px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.plan-summary {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
  padding: 10px 12px;
}

/* ── Bottom CTA ── */
.cta-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 28px 80px;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.cta-section p {
  margin: 12px 0 28px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-brand {
  font-weight: 700;
  color: var(--text-muted);
}

.footer-sep { opacity: 0.4; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-features { min-height: 0; }
}

@media (max-width: 640px) {
  .topnav a { display: none; }
  .hero { padding: 50px 20px 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .features { padding: 40px 20px 60px; }
  .how-section { padding: 40px 20px 60px; }
  .pricing { padding: 20px 20px 60px; }
  .cta-section { padding: 40px 20px 60px; }
}
