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

:root {
  --bg: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2235;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --green: #22c55e;
  --border: rgba(255,255,255,0.06);
  --radius: 16px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; transition: color .2s; }
a:hover { color: #a5b4fc; }

img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Nav ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; color: var(--text);
}
.nav-brand .logo {
  width: 36px; height: 36px; border-radius: 8px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
  position: relative;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent-light), #a78bfa, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 36px;
  position: relative;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 50px; font-weight: 600; font-size: .95rem;
  transition: all .25s; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* ===== Features ===== */
.features { padding: 80px 0; }
.features h2 {
  text-align: center; font-size: 2rem; font-weight: 700;
  margin-bottom: 12px;
}
.features .subtitle {
  text-align: center; color: var(--text-muted);
  margin-bottom: 48px; font-size: 1.05rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .3s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-glow), rgba(167, 139, 250, 0.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

/* ===== Stats ===== */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; text-align: center;
}
.stat-number {
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }

/* ===== How It Works ===== */
.how-it-works { padding: 80px 0; }
.how-it-works h2 { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 48px; }
.steps { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 220px; max-width: 300px; text-align: center;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .9rem; }

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  text-align: center;
}
.cta-box {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(124,58,237,0.08));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 24px;
  padding: 60px 40px;
}
.cta-box h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.cta-box p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: .85rem;
}
footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: .85rem; }
.footer-links a:hover { color: var(--text); }

/* ===== Legal Pages ===== */
.legal-page { padding: 40px 0 80px; }
.legal-page h1 {
  font-size: 2rem; font-weight: 700; margin-bottom: 8px;
}
.legal-page .last-updated {
  color: var(--text-muted); font-size: .9rem; margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 1.3rem; font-weight: 600; margin-top: 40px; margin-bottom: 12px;
  color: var(--accent-light);
}
.legal-page h3 {
  font-size: 1.05rem; font-weight: 600; margin-top: 24px; margin-bottom: 8px;
}
.legal-page p, .legal-page li {
  color: var(--text-muted); font-size: .95rem; line-height: 1.8;
  margin-bottom: 12px;
}
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 6px; }
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 60px 24px 50px; }
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .legal-content { padding: 28px 20px; }
  footer .container { flex-direction: column; text-align: center; }
}
