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

:root {
  --bg: #0a0a0f;
  --bg-raised: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: #1e1e2e;
  --border-bright: #2a2a3e;
  --text: #e4e4ed;
  --text-muted: #8888a0;
  --text-dim: #5a5a72;
  --primary: #6366f1;
  --primary-hover: #5558e6;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --radius: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

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

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

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.logo:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 12px; }

/* ── Buttons ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: var(--radius);
  background: var(--primary); color: #fff;
  font-weight: 600; font-size: 0.9rem;
  border: none; cursor: pointer; transition: all 0.15s;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px var(--primary-glow); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-ghost {
  padding: 10px 18px; border-radius: var(--radius);
  color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--text); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: var(--radius);
  background: var(--bg-card); color: var(--text);
  font-weight: 600; font-size: 0.9rem;
  border: 1px solid var(--border-bright); cursor: pointer; transition: all 0.15s;
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--text-dim); }

/* ── Hero ────────────────────────────────────────── */
.hero {
  max-width: 800px; margin: 0 auto;
  padding: 160px 24px 100px; text-align: center;
}
.hero-badge {
  display: inline-block; padding: 6px 16px;
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  background: var(--primary-glow); color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-note { font-size: 0.8rem; color: var(--text-dim); }

/* ── Sections ────────────────────────────────────── */
.section { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }
.section-dark {
  background: var(--bg-raised);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  max-width: 100%; padding: 80px 24px;
}
.section-dark .features-grid,
.section-dark .section-title { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: 1.8rem; font-weight: 700; text-align: center;
  margin-bottom: 48px; letter-spacing: -0.02em;
}

/* ── Steps ───────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color 0.2s;
}
.step-card:hover { border-color: var(--border-bright); }
.step-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-glow); color: var(--primary);
  font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ── Features ────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--border-bright); }
.feature-icon { font-size: 1.5rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Pricing ─────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 700px; margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  position: relative;
}
.pricing-featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px var(--primary-glow);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: 4px 16px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
}
.pricing-tier { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-price { font-size: 2.5rem; font-weight: 800; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-period { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  padding: 8px 0; font-size: 0.9rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pricing-features li::before { content: '\2713'; color: var(--primary); margin-right: 10px; font-weight: 700; }

/* ── Footer ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 48px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-text { font-weight: 700; font-size: 1.1rem; }
.footer-brand p { color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; }
.footer-copy { color: var(--text-dim); font-size: 0.8rem; }

/* ── Auth Pages ──────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.auth-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.auth-card .auth-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 6px;
}
.form-group input {
  width: 100%; padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--border-bright);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.15s;
}
.form-group input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-group input::placeholder { color: var(--text-dim); }

.form-error {
  color: #ef4444; font-size: 0.85rem; margin-bottom: 16px;
  display: none;
}
.form-error.visible { display: block; }

.auth-footer { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); }
.auth-footer a { font-weight: 500; }

/* ── Dashboard ───────────────────────────────────── */
.dash-layout {
  max-width: 1100px; margin: 0 auto; padding: 100px 24px 60px;
}
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px;
}
.dash-header h1 { font-size: 1.5rem; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 36px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; }
.stat-card .stat-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.empty-state {
  text-align: center; padding: 60px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 120px 20px 60px; }
  .hero h1 { font-size: 2rem; }
  .nav-inner { padding: 0 16px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; }
}
