/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
}

/* Custom Properties */
:root {
  /* Blue */
  --blue-900: #1E40AF;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-100: #DBEAFE;

  /* Green */
  --green-900: #166534;
  --green-600: #16A34A;
  --green-500: #22C55E;
  --green-100: #DCFCE7;

  /* Purple */
  --purple-900: #5B21B6;
  --purple-600: #7C3AED;
  --purple-500: #A78BFA;
  --purple-100: #EDE9FE;

  /* Orange */
  --orange-900: #C2410C;
  --orange-600: #EA580C;
  --orange-500: #FB923C;
  --orange-100: #FFEDD5;

  /* Neutrals */
  --text-main: #111827;
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --bg-main: #F9FAFB;
  --bg-white: #FFFFFF;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1.5rem; }
a { color: var(--blue-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-900); }

/* Layout Utilities */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-padding {
  padding: 4rem 0;
}
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Disclaimer Banner */
.disclaimer-banner {
  background-color: #FEF3C7;
  color: #92400E;
  text-align: center;
  padding: 0.75rem 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid #FDE68A;
}

/* Header & Nav */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blue-900);
}
.nav-logo svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue-600);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}
.mobile-menu {
  display: none;
  background-color: var(--bg-white);
  padding: 1rem 20px;
  border-bottom: 1px solid var(--border-color);
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu a {
  display: block;
  font-weight: 500;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu.is-open { display: flex; }
}

/* Hero Section */
.hero {
  padding: 5rem 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
/* Hero Variants */
.hero-blue { background: linear-gradient(135deg, var(--blue-100) 0%, var(--bg-white) 100%); }
.hero-blue .hero-title { color: var(--blue-900); }

.hero-green { background: linear-gradient(135deg, var(--green-100) 0%, var(--bg-white) 100%); }
.hero-green .hero-title { color: var(--green-900); }

.hero-purple { background: linear-gradient(135deg, var(--purple-100) 0%, var(--bg-white) 100%); }
.hero-purple .hero-title { color: var(--purple-900); }

.hero-orange { background: linear-gradient(135deg, var(--orange-100) 0%, var(--bg-white) 100%); }
.hero-orange .hero-title { color: var(--orange-900); }

/* Content Sections */
.content-section {
  background-color: var(--bg-white);
}
.section-alt-bg {
  background-color: var(--bg-main);
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.card-icon {
  margin-bottom: 1rem;
  color: var(--blue-600);
}
.card-icon svg {
  width: 40px;
  height: 40px;
}
.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card-body {
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Info Boxes */
.info-box {
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-box p:last-child { margin-bottom: 0; }
.info-box svg { width: 24px; height: 24px; flex-shrink: 0; }
.info-box-blue { background-color: var(--blue-100); color: var(--blue-900); }
.info-box-green { background-color: var(--green-100); color: var(--green-900); }
.info-box-orange { background-color: var(--orange-100); color: var(--orange-900); }
.info-box-purple { background-color: var(--purple-100); color: var(--purple-900); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background-color: var(--blue-600);
  color: white;
}
.btn-primary:hover {
  background-color: var(--blue-900);
  color: white;
}
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--blue-600);
  color: var(--blue-600);
}
.btn-outline:hover {
  background-color: var(--blue-100);
}

/* Lists */
.styled-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.styled-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.styled-list li::before {
  content: "•";
  color: var(--blue-600);
  font-weight: bold;
  position: absolute;
  left: 0;
}
.check-list li::before {
  content: "✓";
  color: var(--green-600);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-white);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
}
.faq-item.active .faq-question::after {
  content: "−";
}
.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  color: var(--text-secondary);
}
.faq-item.active .faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  max-height: 500px;
}

/* Glossary */
.glossary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.glossary-term {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue-900);
  margin-bottom: 0.25rem;
}
.glossary-definition {
  color: var(--text-secondary);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.glossary-letter {
  font-size: 2rem;
  color: var(--blue-500);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--blue-100);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.tag-blue { background: var(--blue-100); color: var(--blue-900); }
.tag-green { background: var(--green-100); color: var(--green-900); }
.tag-purple { background: var(--purple-100); color: var(--purple-900); }
.tag-orange { background: var(--orange-100); color: var(--orange-900); }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.data-table th, .data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.data-table th {
  background-color: var(--bg-main);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}
.footer-brand h3 { margin-bottom: 1rem; color: var(--blue-900); }
.footer-legal-notice { color: var(--text-muted); font-size: 0.875rem; }
.footer-links h4 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--blue-600); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-disclaimer { margin-top: 1rem; font-size: 0.75rem; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Prose Styles (for textual content pages) */
.prose {
  max-width: 800px;
  margin: 0 auto;
}
.prose h2 { margin-top: 3rem; }
.prose h3 { margin-top: 2rem; }
.prose img { max-width: 100%; border-radius: 8px; margin: 2rem 0; }
