@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-soft: #eff6ff;
  --secondary: #0f172a;
  --secondary-dark: #020617;
  --secondary-light: #334155;
  --muted: #64748b;
  --text: #0f172a;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.07), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
}

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

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-img {
  max-height: 42px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav a {
  color: #475569;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
  color: #fff !important;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--secondary-light);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .sep {
  margin: 0 0.4rem;
  color: #cbd5e1;
}

/* Main content */
main {
  padding: 2.5rem 0 1.5rem;
}

.page-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.page-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--secondary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--secondary);
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: var(--secondary);
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--muted);
}

.page-content li {
  margin-bottom: 0.55rem;
  line-height: 1.65;
}

.page-content strong {
  color: var(--text);
  font-weight: 600;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
  max-width: 760px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
  transform: translateY(-3px);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--secondary);
  line-height: 1.35;
}

.card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.card .meta {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.75rem;
  font-weight: 500;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-cta::after {
  content: " \2192";
  margin-left: 0.3rem;
  transition: transform 0.15s;
  display: inline-block;
}

.card:hover .card-cta::after {
  transform: translateX(4px);
}

/* Stats box */
.stats-box {
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary);
}

.stats-box p {
  margin-bottom: 0.35rem;
  color: var(--secondary-light);
  font-size: 0.97rem;
}

.stats-box p:last-child {
  margin-bottom: 0;
}

/* Inline CTA */
.inline-cta {
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  border: 1px solid var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  margin: 2rem 0;
  text-align: center;
}

.inline-cta p {
  color: var(--secondary-light);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.cta-btn,
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  border: none;
  cursor: pointer;
}

.cta-btn:hover,
.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
  color: #fff;
}

/* Editorial / disclaimer */
.editorial-box {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-light);
}

.editorial-box p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.editorial-box p:last-child {
  margin-bottom: 0;
}

.editorial-box strong {
  color: var(--secondary);
}

.disclaimer-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fffbeb;
  border-radius: var(--radius-sm);
  border: 1px solid #fde68a;
  font-size: 0.85rem;
  color: #92400e;
}

.disclaimer-box strong {
  color: #78350f;
}

/* FAQs */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #94a3b8;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-base {
  text-align: center;
  border-top: 1px solid var(--secondary-light);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-base p {
  margin-bottom: 0.35rem;
}

/* Tags */
.tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  margin: 0.15rem;
  font-weight: 500;
}

.tag:hover {
  background: #dbeafe;
  text-decoration: none;
}

.text-center {
  text-align: center;
}

/* Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--secondary);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: flex;
  }

  .logo-img {
    max-height: 34px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .page-content {
    padding: 1.5rem;
  }

  .page-content h1 {
    font-size: 1.7rem;
  }

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