/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background: #fafafa;
}
a { color: #4361ee; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* === Container === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* === Header === */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #4361ee;
}
.logo:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a {
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-header nav a:hover,
.site-header nav a.active { color: #4361ee; text-decoration: none; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: #4361ee;
  color: #fff;
}
.btn-primary:hover { background: #3a56d4; }
.btn-secondary {
  background: transparent;
  color: #4361ee;
  border: 2px solid #4361ee;
}
.btn-secondary:hover { background: #4361ee; color: #fff; }

/* === Hero === */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, #f0f3ff 0%, #e8edff 100%);
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1a1a2e;
}
.hero-sub {
  font-size: 1.2rem;
  color: #555;
  max-width: 650px;
  margin: 0 auto 2rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === Features === */
.features { padding: 4rem 0; }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: 2.5rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #4361ee;
}
.feature-card p { color: #555; font-size: 0.95rem; }

/* === Stats === */
.stats { padding: 3rem 0; background: #4361ee; color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; }
.stat-label { font-size: 0.95rem; opacity: 0.9; }

/* === CTA Section === */
.cta-section {
  padding: 4rem 0;
  text-align: center;
  background: #f8f9ff;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-section p { color: #555; margin-bottom: 2rem; font-size: 1.1rem; }

/* === Page Content === */
.page-content {
  padding: 3rem 0;
}
.page-content h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}
.page-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: #1a1a2e;
}
.page-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #4361ee;
}
.page-content h4 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.page-content p {
  margin-bottom: 1rem;
  color: #444;
}
.page-content ul, .page-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.page-content li {
  margin-bottom: 0.4rem;
  color: #444;
}
.page-content strong { color: #1a1a2e; }
.page-content hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 2.5rem 0;
}

/* === Blog === */
.post-summary {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e8e8e8;
}
.post-summary h2 { font-size: 1.35rem; margin-bottom: 0.25rem; margin-top: 0; }
.post-summary time { color: #888; font-size: 0.85rem; }
.post-summary p { margin-top: 0.5rem; }

/* === Footer === */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand h3, .footer-contact h4, .footer-links h4 {
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-brand p, .footer-contact p { font-size: 0.9rem; margin-bottom: 0.3rem; }
.footer-links a {
  display: block;
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .stat-number { font-size: 2rem; }
}
