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

:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --accent: #06b6d4;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --text: #0f172a;
  --text-light: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* Navigation */
.nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-logo .powered {
  font-size: 0.55rem;
  font-weight: 500;
  display: block;
  opacity: 0.6;
  -webkit-text-fill-color: var(--text-light);
  line-height: 1;
}

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  text-align: center;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(160deg, #eef2ff 0%, #e0e7ff 30%, #dbeafe 60%, #ecfeff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat { text-align: center; min-width: 100px; }
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-align: center;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.6; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}

/* CTA section */
.cta {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white);
}

.cta p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta .btn {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.cta .btn:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
  background: var(--text);
  color: #94a3b8;
  padding: 3rem 1.5rem 2rem;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #334155;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand-text {
  font-size: 0.88rem;
  color: #94a3b8;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  max-width: 1000px;
  margin: 0 auto;
}

/* Legacy footer links for legal pages */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-links a { color: #94a3b8; font-size: 0.88rem; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.82rem; color: #64748b; text-align: center; }

/* Legal pages */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.legal .updated {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.legal p, .legal li {
  color: #475569;
  margin-bottom: 0.8rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.legal ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal li { margin-bottom: 0.5rem; }

/* Info box for legal highlights */
.info-box {
  background: #eef2ff;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
}

/* Contact */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-card p { color: var(--text-light); font-size: 0.9rem; word-break: break-word; }

/* Responsive — Tablet */
@media (max-width: 768px) {
  .nav { padding: 0.8rem 1rem; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--white);
    padding: 4rem 2rem 2rem;
    gap: 1.2rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 100;
  }

  .nav-links.open { display: flex; }

  .nav-links a { font-size: 1.05rem; }
  .nav-links a:not(.btn)::after { display: none; }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 99;
  }

  .nav-overlay.open { display: block; }

  .hero { padding: 3.5rem 1.2rem 3rem; }
  .hero h1 { font-size: 2.2rem; letter-spacing: -0.5px; }
  .hero p { font-size: 1rem; margin-bottom: 2rem; }
  .hero-badge { font-size: 0.75rem; padding: 0.3rem 1rem; }

  .stats { gap: 1rem; padding: 2rem 1rem; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.7rem; }

  .section { padding: 3rem 1.2rem; }
  .section h2 { font-size: 1.7rem; }
  .section-subtitle { font-size: 0.95rem; }

  .features { grid-template-columns: 1fr; }

  .cta { padding: 3rem 1.2rem; }
  .cta h2 { font-size: 1.7rem; }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .legal { padding: 2rem 1.2rem 3rem; }
  .legal h1 { font-size: 1.6rem; }

  .contact-info { grid-template-columns: 1fr 1fr; }
}

/* Responsive — Small phone */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.92rem; }

  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }

  .stats { flex-direction: column; gap: 1rem; }

  .section h2 { font-size: 1.5rem; }

  .cta h2 { font-size: 1.5rem; }

  .footer-content { grid-template-columns: 1fr; }

  .contact-info { grid-template-columns: 1fr; }

  .footer-links { gap: 1rem; }
}
