* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-dark: #0A0E21;
  --surface-dark: #1A1F36;
  --card-dark: #1E2440;
  --cyan: #00D2FF;
  --purple: #7B2FFF;
  --green: #00E676;
  --red: #FF5252;
  --orange: #FF9800;
  --text-primary: #FFFFFF;
  --text-secondary: #8E8EA0;
  --divider: #2A2F4A;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--primary-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 14, 33, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
  transition: background 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-logo span {
  font-size: 20px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  padding: 8px 20px; border-radius: 8px; font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: white !important; -webkit-text-fill-color: white !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,210,255,0.3); opacity: 1; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px; position: relative;
}
.hero::before {
  content: ''; position: absolute; top: 15%; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,210,255,0.08), transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-icon {
  width: 120px; height: 120px; border-radius: 28px;
  margin: 0 auto 32px; animation: float 3s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0,210,255,0.15);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -1px;
  margin-bottom: 20px; line-height: 1.15;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 18px; color: var(--text-secondary); margin-bottom: 36px; max-width: 540px; margin-inline: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 32px; border-radius: 12px; font-weight: 700; font-size: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--purple)); color: white;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,210,255,0.3); opacity: 1; }
.btn-secondary {
  padding: 14px 32px; border-radius: 12px; font-weight: 600; font-size: 16px;
  border: 1.5px solid var(--divider); color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--text-primary); opacity: 1; }

/* ---- FEATURES ---- */
.features { padding: 100px 24px; max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: 36px; font-weight: 800; margin-bottom: 12px;
}
.section-subtitle {
  text-align: center; color: var(--text-secondary); font-size: 16px; margin-bottom: 60px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--card-dark); border-radius: 16px; padding: 32px;
  border: 1px solid var(--divider); transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(0,210,255,0.3); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,210,255,0.15), rgba(123,47,255,0.15));
  font-size: 24px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ---- HOW IT WORKS ---- */
.how-it-works { padding: 100px 24px; background: var(--surface-dark); }
.how-it-works .inner { max-width: 900px; margin: 0 auto; }
.steps { display: flex; flex-direction: column; gap: 40px; margin-top: 60px; }
.step {
  display: flex; gap: 24px; align-items: flex-start;
  opacity: 0; transform: translateX(-20px);
  transition: opacity 0.5s, transform 0.5s;
}
.step.visible { opacity: 1; transform: translateX(0); }
.step-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.step-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.step-content p { color: var(--text-secondary); font-size: 14px; }

/* ---- STATS ---- */
.stats { padding: 80px 24px; }
.stats-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: 40px; font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* ---- CTA ---- */
.cta {
  padding: 100px 24px; text-align: center;
}
.cta-box {
  max-width: 600px; margin: 0 auto; padding: 60px 40px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(0,210,255,0.08), rgba(123,47,255,0.08));
  border: 1px solid var(--divider);
}
.cta-box h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--text-secondary); margin-bottom: 32px; }

/* ---- FOOTER ---- */
.footer {
  padding: 40px 24px; border-top: 1px solid var(--divider);
  text-align: center; color: var(--text-secondary); font-size: 13px;
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 13px; }
.footer-links a:hover { color: var(--text-primary); }

/* ---- LEGAL PAGES ---- */
.legal { max-width: 720px; margin: 0 auto; padding: 120px 24px 80px; }
.legal h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.legal .updated { color: var(--text-secondary); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 20px; font-weight: 700; margin-top: 36px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--text-secondary); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

/* ---- ANIMATIONS ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-icon { width: 88px; height: 88px; border-radius: 22px; }
  .features { padding: 60px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .how-it-works { padding: 60px 16px; }
  .step { flex-direction: column; align-items: center; text-align: center; }
  .stats { padding: 40px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 60px 16px; }
  .cta-box { padding: 40px 24px; }
  .legal { padding: 100px 16px 60px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; justify-content: center; }
}
