/* ══════════════════════════════════════════
   ScanAI — Website Styles
   Brand: Material Blue 700 (#1976D2)
   ══════════════════════════════════════════ */

:root {
  --primary: #1976D2;
  --primary-dark: #0D47A1;
  --primary-light: #BBDEFB;
  --primary-50: #E3F2FD;
  --accent: #2196F3;
  --text: #1A1A1A;
  --text-light: #555;
  --text-muted: #888;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --surface: #FFFFFF;
  --border: #E0E0E0;
  --gradient: linear-gradient(135deg, #0D47A1, #1976D2, #2196F3);
  --shadow: 0 4px 24px rgba(25, 118, 210, 0.15);
  --shadow-lg: 0 12px 48px rgba(25, 118, 210, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.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(--primary);
}
.nav-brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-light); font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: var(--white) !important;
  padding: 8px 20px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* ── Hero ── */
.hero {
  padding: 140px 0 80px;
  background: var(--gradient);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: 3.2rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.2rem; opacity: 0.9; max-width: 600px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; font-size: 1rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s; border: none;
}
.btn-white {
  background: var(--white); color: var(--primary);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }

/* ── Features ── */
.features { padding: 100px 0; background: var(--white); }
.section-label {
  display: inline-block; color: var(--primary);
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 12px;
}
.section-title {
  font-size: 2.2rem; font-weight: 800; line-height: 1.2;
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.section-desc {
  color: var(--text-light); font-size: 1.05rem;
  max-width: 600px; margin-bottom: 60px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 10px;
}
.feature-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* ── How It Works ── */
.how-it-works { padding: 100px 0; background: var(--bg); }
.how-it-works .section-title, .how-it-works .section-desc { text-align: center; }
.how-it-works .section-desc { margin: 0 auto 60px; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px; text-align: center;
}
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
  margin: 0 auto 20px;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-light); font-size: 0.95rem; }

/* ── Stats ── */
.stats {
  padding: 60px 0; background: var(--gradient); color: var(--white);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
.stat-number { font-size: 2.5rem; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: 0.9rem; opacity: 0.8; }

/* ── CTA ── */
.cta {
  padding: 100px 0; text-align: center; background: var(--white);
}
.cta-box {
  background: var(--primary-50);
  border: 1px solid var(--primary-light);
  border-radius: 24px; padding: 64px 48px;
}
.cta h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.cta p { color: var(--text-light); font-size: 1.05rem; max-width: 500px; margin: 0 auto 32px; }

/* ── Footer ── */
.footer {
  padding: 60px 0 30px;
  background: #0A1929; color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-about { font-size: 0.9rem; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ── Legal Pages ── */
.legal-hero {
  padding: 120px 0 40px;
  background: var(--gradient); color: var(--white); text-align: center;
}
.legal-hero h1 { font-size: 2.5rem; font-weight: 800; }
.legal-hero p { opacity: 0.8; margin-top: 8px; }
.legal-content {
  padding: 60px 0; background: var(--white);
}
.legal-content .container { max-width: 800px; }
.legal-content h2 {
  font-size: 1.4rem; font-weight: 700; margin: 40px 0 12px;
  color: var(--primary-dark);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  color: var(--text-light); font-size: 0.95rem; line-height: 1.8; margin-bottom: 12px;
}
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 6px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; right: 0; left: 0;
    background: var(--white); padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .cta-box { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .section-title { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-number { font-size: 2rem; }
}
