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

:root {
  --bg-base:        #0a0e1a;
  --bg-surface:     #111827;
  --bg-card:        #161d2e;
  --bg-card-hover:  #1c2438;
  --bg-input:       #1e2840;
  --border:         rgba(255,255,255,0.07);
  --border-focus:   rgba(37,211,102,0.5);
  --green:          #25D366;
  --green-dim:      rgba(37,211,102,0.12);
  --green-glow:     rgba(37,211,102,0.3);
  --blue:           #3b82f6;
  --blue-dim:       rgba(59,130,246,0.12);
  --yellow:         #f59e0b;
  --yellow-dim:     rgba(245,158,11,0.12);
  --red:            #ef4444;
  --red-dim:        rgba(239,68,68,0.12);
  --purple:         #8b5cf6;
  --purple-dim:     rgba(139,92,246,0.12);
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --radius:         12px;
  --radius-sm:      8px;
  --transition:     0.2s ease;
  --max-w:          1200px;
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.7;
  scroll-behavior: smooth;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-brand-icon {
  width: 34px; height: 34px;
  background: var(--green-dim);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--green-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #000;
}
.btn-primary:hover {
  background: #1db854;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--green-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--text-muted);
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-wide { width: 100%; justify-content: center; }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  font-size: 14px;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* ── Sections ────────────────────────────────────────────────── */
.section {
  padding: 100px 24px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  display: inline-block;
  padding: 4px 14px;
  background: var(--green-dim);
  color: var(--green);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.section-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(37,211,102,0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(59,130,246,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--green-dim);
  border: 1px solid var(--green-glow);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.hero-title span {
  background: linear-gradient(135deg, var(--green), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Stats Bar ───────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  margin-top: 30px;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Features Grid ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.feature-icon.green  { background: var(--green-dim); color: var(--green); }
.feature-icon.blue   { background: var(--blue-dim); color: var(--blue); }
.feature-icon.yellow { background: var(--yellow-dim); color: var(--yellow); }
.feature-icon.purple { background: var(--purple-dim); color: var(--purple); }
.feature-icon.red    { background: var(--red-dim); color: var(--red); }

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.plan-card.featured {
  border-color: var(--green-glow);
  box-shadow: 0 0 30px rgba(37,211,102,0.08);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.plan-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.plan-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.plan-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}
.plan-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  flex: 1;
}
.plan-features li {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── How It Works ────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  text-align: center;
  padding: 24px 16px;
}
.step-number {
  width: 48px; height: 48px;
  background: var(--green-dim);
  border: 1px solid var(--green-glow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
  margin: 0 auto 16px;
}
.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── CTA ─────────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-text {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  padding: 24px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Auth Forms ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: 88px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input:focus { border-color: var(--border-focus); }

.form-error {
  background: var(--red-dim);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.form-error.show { display: block; }

.form-success {
  background: var(--green-dim);
  border: 1px solid var(--green-glow);
  color: var(--green);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.form-success.show { display: block; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* ── Subscribe Page ──────────────────────────────────────────── */
.subscribe-page {
  padding-top: 88px;
  min-height: 100vh;
}

.current-plan {
  background: var(--bg-card);
  border: 1px solid var(--green-glow);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.current-plan-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
}
.current-plan-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Dashboard Banner (shown when logged in) ─────────────────── */
.dashboard-banner {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  z-index: 50;
}
.dashboard-banner .user-plan {
  padding: 3px 10px;
  background: var(--green-dim);
  color: var(--green);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 968px) {
  .features-grid, .pricing-grid, .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title { font-size: 38px; }
  .section-title { font-size: 30px; }
}
@media (max-width: 600px) {
  .features-grid, .pricing-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .hero-title { font-size: 30px; }
  .section-title { font-size: 26px; }
  .nav-links .btn { padding: 8px 14px; font-size: 13px; }
  .stats-bar { gap: 24px; }
}
