/* === RESET & FOUNDATIONS === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff; color: #000000; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #050926; color: #fff; padding: 10px 16px; z-index: 10001;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid #71c8ff; outline-offset: 2px;
}

/* === HEADER === */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px;
  background: #050926; color: #fff; z-index: 1000;
  display: flex; align-items: center; padding: 0 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.topbar-logo {
  font-size: 1.3rem; font-weight: 800; letter-spacing: 2px;
  color: #fff; text-decoration: none; margin-right: auto;
}
.topbar-logo span { color: #71c8ff; }
.burger {
  background: none; border: none; color: #fff; font-size: 1.6rem;
  cursor: pointer; padding: 8px; line-height: 1; display: flex; align-items: center;
}
.nav-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5); z-index: 998; display: none;
}
.nav-overlay.open { display: block; }
.nav-menu {
  position: fixed; top: 0; right: -300px; width: 280px; bottom: 0;
  background: #050926; z-index: 999; padding: 72px 20px 20px;
  transition: right .2s ease; overflow-y: auto;
}
.nav-menu.open { right: 0; }
.nav-menu a, .nav-menu button {
  display: block; width: 100%; text-align: left;
  color: #ccc; text-decoration: none; font-size: 1rem;
  padding: 12px 8px; border: none; background: none; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .15s;
}
.nav-menu a:hover, .nav-menu button:hover { color: #71c8ff; }

/* === MAIN CONTENT === */
main { margin-top: 56px; min-height: calc(100vh - 56px - 120px); }
.page { display: none; padding: 0; }
.page.active { display: block; }
.section { padding: 48px 16px; }
.section:nth-child(even) { background: #f4f1ed; }
.section:nth-child(odd) { background: #fff; }
.section + .section { border-top: 1px solid #e8e5e0; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 32px;
  color: #000000; border-left: 4px solid #71c8ff; padding-left: 14px;
}

/* === HERO === */
.hero { background: #fff; padding: 64px 16px 48px; text-align: center; }
.hero h1 { font-size: 2.4rem; font-weight: 800; color: #050926; line-height: 1.15; margin-bottom: 16px; }
.hero h1 span { color: #71c8ff; }
.hero .subtitle { font-size: 1.1rem; color: #555; max-width: 700px; margin: 0 auto 40px; line-height: 1.5; }
.hero .subtitle strong { color: #000000; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.stat-card {
  background: #f7f7f7; border: 1px solid #e0e0e0; border-radius: 10px;
  padding: 24px 16px; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: #050926; }
.stat-card .stat-label { font-size: .85rem; color: #777; margin-top: 4px; }
.stat-card .stat-sub { font-size: .72rem; color: #aaa; margin-top: 2px; }

/* === CARDS === */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid #e8e5e0; border-radius: 10px;
  padding: 20px; transition: box-shadow .2s;
}
.section:nth-child(odd) .card { background: #f7f7f7; border-color: #e0e0e0; }
.card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #000000; }
.card .card-meta { font-size: .82rem; color: #888; margin-top: 8px; }
.card .card-num { font-size: 1.5rem; font-weight: 800; color: #71c8ff; }

/* Charts */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.chart-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.section:nth-child(odd) .chart-card { background: #f7f7f7; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 24px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 32px; border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-value { font-size: .68rem; color: #666; margin-bottom: 3px; font-weight: 600; }
.bar-year { font-size: .7rem; color: #999; margin-top: 4px; }

/* === TIMELINE === */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: #ddd;
}
.tl-item { position: relative; margin-bottom: 24px; }
.tl-item::before {
  content: ''; position: absolute; left: -24px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%; background: #71c8ff;
  border: 2px solid #fff; box-shadow: 0 0 0 2px #71c8ff;
}
.tl-date { font-size: .78rem; color: #888; font-weight: 600; }
.tl-text { font-size: .95rem; margin-top: 2px; }
.tl-text strong { color: #000000; }

/* === TABLE === */
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { text-align: left; padding: 10px 12px; background: #f6f8fa; font-weight: 700; border-bottom: 2px solid #e8e5e0; color: #555; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #e8e5e0; vertical-align: top; background: #fff; }
.section:nth-child(odd) .data-table td { background: #f7f7f7; }
.data-table tr { background: #fff; }
.section:nth-child(odd) .data-table tr { background: #f7f7f7; }
.data-table tr:hover td { background: #fafaf8; }
.section:nth-child(odd) .data-table tr:hover td { background: #ededed; }

/* === BADGES === */
.badge { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.badge-red { background: #e3f0ff; color: #1a6fc4; }
.badge-orange { background: #fff3e0; color: #cc7a00; }
.badge-blue { background: #e3f0ff; color: #1a6fc4; }
.badge-green { background: #e8f5e9; color: #2e7d32; }

/* === FILTERS === */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button, .filters select {
  padding: 6px 14px; border: 1px solid #ddd; border-radius: 20px;
  background: #fff; cursor: pointer; font-size: .82rem; color: #555;
  transition: all .15s;
}
.filters button:hover, .filters button.active { background: #050926; color: #fff; border-color: #050926; }

/* === FOOTER === */
.site-footer {
  background: #050926; color: #aaa; padding: 32px 16px 24px; font-size: .82rem;
}
.site-footer a { color: #71c8ff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.footer-col h4 { color: #fff; font-size: .85rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col p, .footer-col li { margin-bottom: 4px; }
.footer-bottom { text-align: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); color: #777; }
.footer-version { font-size: .7rem; opacity: .4; margin-top: 4px; }

/* === LOADING === */
.loading { text-align: center; padding: 40px; color: #999; }
.loading::after { content: '...'; animation: dots 1.5s steps(4,end) infinite; }
@keyframes dots { 0%,20% { content: '.'; } 40% { content: '..'; } 60%,100% { content: '...'; } }

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .section { padding: 32px 12px; }
}

/* === DISCLAIMER (overlay) === */
.disclaimer-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(30,20,10,0.92); z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.disclaimer-box {
  background: #fffdf9; border: 1px solid #b4362a; border-radius: 12px;
  max-width: 540px; width: 100%; padding: 32px; color: #1a1512;
  text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.disclaimer-emoji { font-size: 36px; margin-bottom: 16px; }
.disclaimer-title { color: #7f2018; margin-bottom: 16px; font-size: 20px; }
.disclaimer-text { font-size: 14px; line-height: 1.7; margin-bottom: 12px; text-align: left; }
.disclaimer-text-last { margin-bottom: 20px; }
.disclaimer-btn {
  background: #b4362a; color: white; border: none; padding: 12px 32px;
  border-radius: 8px; font-size: 16px; cursor: pointer; font-weight: 600;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border-top: 2px solid #050926; padding: 14px 24px; z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
.cookie-banner-inner {
  max-width: 900px; margin: 0 auto; display: flex; align-items: center;
  gap: 16px; flex-wrap: wrap; justify-content: space-between;
}
.cookie-banner-text { flex: 1; min-width: 250px; margin: 0; font-size: 14px; color: #888; }
.cookie-banner-text a { color: #050926; text-decoration: underline; }
.cookie-banner-btn {
  padding: 8px 20px; background: #050926; color: #fff; border: none;
  border-radius: 0; cursor: pointer; font-size: 15px; font-weight: 600; white-space: nowrap;
}

/* === NOSCRIPT === */
.noscript-box { max-width: 820px; margin: 80px auto; padding: 24px; text-align: center; }
.noscript-title { font-size: 1.6rem; margin-bottom: 12px; }
.noscript-text { margin-bottom: 8px; }
.noscript-link { color: #050926; text-decoration: underline; }

/* === LEGAL FOOTER === */
.legal-footer {
  max-width: 900px; margin: 0 auto 40px; padding: 0 24px;
  text-align: center; font-size: .8rem; color: #888;
}
.legal-footer a { color: #888; text-decoration: underline; }
