/* TruthLens Website — style.css */

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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --bg: #0f0f13;
  --bg2: #16161d;
  --bg3: #1e1e28;
  --text: #f1f1f3;
  --text-muted: #9b9bac;
  --border: #2a2a38;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #eab308;
  --green: #22c55e;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

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

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

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,19,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { font-size: 1.2rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn-nav {
  background: var(--primary); color: #fff !important;
  padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
}
.btn-nav:hover { background: var(--primary-dark); }

/* HERO */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 70%);
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.badge {
  display: inline-block;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.4);
  color: #a5b4fc;
  padding: 4px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.btn-primary {
  background: var(--primary); color: #fff;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary {
  background: var(--bg3); color: var(--text);
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem;
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg2); text-decoration: none; }
.hero-note { font-size: 0.82rem; color: var(--text-muted); }

/* STATS BAR */
.stats-bar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 40px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat strong { font-size: 1.5rem; font-weight: 800; color: #a5b4fc; }
.stat span { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* FEATURES */
.features { padding: 80px 24px; }
.features h2, .how-it-works h2, .neutrality h2, .cta h2 {
  font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 12px;
}
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--primary); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* HOW IT WORKS */
.how-it-works {
  padding: 80px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.step { text-align: center; max-width: 240px; }
.step-num {
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.88rem; }

/* NEUTRALITY */
.neutrality { padding: 70px 24px; text-align: center; }
.neutrality .container { max-width: 700px; }
.neutrality p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.95rem; }
.neutrality strong { color: var(--text); }

/* CTA */
.cta {
  padding: 80px 24px; text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(99,102,241,0.12) 0%, transparent 70%);
}
.cta p { color: var(--text-muted); margin-bottom: 28px; }
.cta-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 14px; }

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.footer-logo { font-size: 1.1rem; font-weight: 700; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.78rem; }

/* LEGAL PAGES */
.legal-page { max-width: 760px; margin: 60px auto; padding: 0 24px 80px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.legal-page .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 10px; color: #a5b4fc; }
.legal-page p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.92rem; }
.legal-page ul { color: var(--text-muted); padding-left: 20px; margin-bottom: 14px; font-size: 0.92rem; }
.legal-page ul li { margin-bottom: 6px; }
.legal-page strong { color: var(--text); }
.legal-back { display: inline-block; margin-bottom: 32px; color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 600px) {
  .nav-links a:not(.btn-nav) { display: none; }
  .stats-bar { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}
