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

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  background: var(--bg-light);
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Header */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover,
.nav a.active {
  background: var(--primary);
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* Subnav */
.has-subnav {
  position: relative;
}
.subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.has-subnav:hover .subnav {
  display: block;
}
.subnav a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-size: 0.85rem;
  border-radius: 0;
}
.subnav a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 32px;
  opacity: 0.9;
}
.hero .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}
.hero .btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 64px 24px;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* Grids */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 32px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.card h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--accent);
}

/* Stats */
.stats {
  background: var(--primary);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
}
.stat-label {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Testimonials */
.testimonials {
  background: var(--bg-white);
}
.testimonial-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 28px;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: 8px;
  left: 16px;
  opacity: 0.3;
  line-height: 1;
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.testimonial-author {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.cta p {
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.9;
}
.cta .btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}
.cta .btn:hover {
  transform: translateY(-2px);
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-light);
}
.feature-list li::before {
  content: '\2713';
  color: var(--success);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}


/* Footer */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 48px 24px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer h4 {
  margin-bottom: 16px;
  font-size: 1rem;
}
.footer p {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.6;
}
.footer a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.8;
  display: block;
  margin-bottom: 8px;
}
.footer a:hover {
  opacity: 1;
}
.footer-bottom {
  text-align: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}
.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Content page */
.content-page {
  padding: 64px 24px;
}
.content-page h2 {
  color: var(--primary);
  margin: 40px 0 16px;
  font-size: 1.5rem;
}
.content-page h3 {
  color: var(--primary-light);
  margin: 24px 0 12px;
  font-size: 1.15rem;
}
.content-page p {
  margin-bottom: 16px;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }
  .nav.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .has-subnav {
    position: static;
  }
  .subnav {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: block;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
