/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Newsreader:ital,wght@0,400;0,700;1,400&display=swap');

/* Reset e base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1e3a5f;
  --primary-hover: #2d5a8f;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --text: #333333;
  --text-light: #64748b;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-700: #334155;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
h4 { font-size: 1.25rem; margin: 1rem 0 0.5rem; }

p { margin-bottom: 1.5rem; }

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

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

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background: var(--primary);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s;
}
.logo:hover {
  color: var(--gray-300);
  transform: scale(1.05);
}

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

.nav a {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav a:hover {
  color: var(--gray-300);
  transform: translateY(-1px);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: background 0.2s;
  border-radius: 0.5rem;
}

.menu-toggle:hover {
  background: var(--primary-hover);
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem;
    gap: 0;
  }
  .nav.active a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
  }
  .menu-toggle { display: block; }
}

/* Main content area */
main {
  flex: 1;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

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

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
}

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

.hero-center h1,
.hero-center p {
  margin-left: auto;
  margin-right: auto;
}

/* Breadcrumb (old hero breadcrumb) */
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--gray-300);
}
.breadcrumb a {
  color: var(--gray-300);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 0.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-light {
  background: var(--light-bg);
}

.section-white {
  background: var(--white);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s;
  display: block;
  text-decoration: none;
}

.card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card:hover h3 {
  color: var(--primary-hover);
}

.card p {
  color: var(--text-light);
  margin-bottom: 0;
}

.card-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: transform 0.2s;
}

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

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
  border-top: 2px solid var(--primary-hover);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer h3,
.footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer p {
  color: var(--gray-300);
  font-size: 1rem;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--gray-300);
  transition: all 0.2s;
  display: inline-block;
}
.footer a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--white);
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-box h2,
.cta-box h3 {
  color: var(--white);
}

.cta-box p {
  color: var(--gray-100);
  opacity: 0.95;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

th {
  background: var(--primary);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:hover {
  background: var(--light-bg);
}

td {
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* Lists */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

ul.no-bullets {
  list-style: none;
  padding-left: 0;
}

/* Info boxes */
.info-box {
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.info-box-blue {
  background: #eff6ff;
  border-color: var(--primary);
}

.info-box-green {
  background: #f0fdf4;
  border-color: #22c55e;
}

.info-box-yellow {
  background: #fefce8;
  border-color: #eab308;
}

.info-box-purple {
  background: #faf5ff;
  border-color: #a855f7;
}

.info-box-red {
  background: #fef2f2;
  border-color: #ef4444;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-card {
  background: var(--light-bg);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.benefit-card h3 {
  display: flex;
  align-items: flex-start;
  margin-top: 0;
  font-size: 1.25rem;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--primary);
}

/* Principle boxes */
.principle-box {
  border-left: 4px solid var(--primary);
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
}

.principle-box h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.principle-box .example {
  font-style: italic;
  color: var(--gray-600);
  margin-top: 0.75rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateX(-5px);
}

.timeline-year {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Glossary */
.glossary-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  position: sticky;
  top: 70px;
  background: var(--white);
  padding: 1rem 0;
  z-index: 50;
  border-bottom: 1px solid var(--gray-200);
}

.glossary-filter a {
  padding: 0.5rem 0.75rem;
  background: var(--light-bg);
  border-radius: 0.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.glossary-filter a:hover,
.glossary-filter a.active {
  background: var(--primary);
  color: var(--white);
}

.glossary-section {
  margin-bottom: 2rem;
  scroll-margin-top: 120px;
}

.glossary-letter {
  font-size: 2rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

.glossary-term {
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--primary);
}

.glossary-term h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.glossary-term p {
  margin: 0;
  color: var(--text-light);
}

/* Feature boxes */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.feature-box.green {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #bbf7d0;
}

.feature-box.purple {
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  border-color: #e9d5ff;
}

.feature-box.orange {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-color: #fed7aa;
}

/* Principles showcase */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.principle-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
}

.principle-card svg {
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.principle-card p {
  margin: 0;
  font-weight: 600;
  color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.1rem; }

  .section { padding: 2.5rem 0; }

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

  .benefits-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Utilities */
.text-center { text-align: center; }
.text-white { color: var(--white); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.max-w-prose {
  max-width: 65ch;
}

.prose {
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.prose strong {
  font-weight: 700;
  color: var(--text);
}
