:root {
  --primary-background: #0D0D0D;
  --primary-text: #FFFFFF;
  --secondary-background: #1A1A2E;
  --brand-accent: #FF6B35;
  --secondary-accent: #004E7C;
  --data-highlight: #00FF87;
  --card-background: rgba(26, 26, 46, 0.85);
  --border-accent: #FF6B35;
  --shadow: 0 8px 32px rgba(255, 107, 53, 0.2);
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Inter', sans-serif;
  --mono-font: 'JetBrains Mono', monospace;
  --heading-scale-1: 64px;
  --heading-scale-2: 48px;
  --heading-scale-3: 36px;
  --heading-scale-4: 24px;
  --body-scale-1: 16px;
  --body-scale-2: 14px;
  --body-scale-3: 12px;
  --max-width: 1440px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--primary-background);
  color: var(--primary-text);
  font-family: var(--body-font);
  font-size: var(--body-scale-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover,
a:focus-visible {
  color: var(--data-highlight);
}
:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
ul,
ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  background: var(--brand-accent);
  color: var(--primary-text);
  padding: 8px 16px;
  font-weight: 700;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.skip-link:focus {
  top: 0;
  clip: auto;
  overflow: visible;
}
/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-background);
  border-bottom: 4px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 60%);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: var(--heading-scale-4);
  color: var(--primary-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.site-logo::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 28px;
  background: var(--brand-accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
}
.site-logo:hover {
  color: var(--brand-accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-text);
  position: absolute;
  left: 8px;
  transition: transform 0.3s ease;
}
.nav-toggle-icon {
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle-icon::before {
  top: -8px;
}
.nav-toggle-icon::after {
  top: 8px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}
.nav-container {
  display: flex;
}
.nav-list {
  display: flex;
  gap: 4px;
}
.nav-list a {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-text);
  padding: 8px 16px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) skewX(-15deg);
  width: 0;
  height: 3px;
  background: var(--brand-accent);
  transition: width 0.3s ease;
}
.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a[aria-current="page"]::after {
  width: 80%;
}
.nav-list a[aria-current="page"] {
  color: var(--brand-accent);
}
/* ===== Footer ===== */
.site-footer {
  background: var(--secondary-background);
  border-top: 4px solid transparent;
  position: relative;
  margin-top: 80px;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-accent);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo {
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 28px;
  color: var(--primary-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-logo::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 22px;
  background: var(--brand-accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
}
.trust-statement {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  max-width: 280px;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--primary-text);
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--brand-accent);
}
.footer-info {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.footer-info a {
  color: var(--data-highlight);
}
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
}
.footer-bottom a:hover {
  color: var(--brand-accent);
}
/* ===== Global progress bar (JS inject) ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-accent), var(--data-highlight));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}
/* ===== Utility ===== */
[data-year] {
  white-space: nowrap;
}
/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-container {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background: var(--primary-background);
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }
  .nav-container[data-open] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-list a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-list a::after {
    display: none;
  }
  .nav-list a[aria-current="page"] {
    background: rgba(255,107,53,0.15);
    border-left: 4px solid var(--brand-accent);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .nav-container {
    transition: none;
  }
  .progress-bar {
    transition: none;
  }
}
