/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  background-color: #0A0A0A;
  color: #FFFFFF;
  line-height: 1.6;
}
/* CSS Variables */
:root {
  --color-primary: #8B0000;
  --color-primary-light: #B22222;
  --color-accent-gold: #FFD700;
  --color-accent-gold-light: #FFC125;
  --color-bg-dark: #0A0A0A;
  --color-bg-medium: #1A1A1A;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #B0B0B0;
  --color-accent-neon: #00BFFF;
  --color-accent-neon-dark: #009ACD;
  --font-heading: 'Poppins', 'Noto Sans SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
  --font-tech: 'Orbitron', 'Courier New', monospace;
  --header-height: 60px;
  --content-max-width: 1200px;
}
/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}
/* Skip link */
.skiplink {
  position: absolute;
  top: -9999px;
  left: 0;
  background: var(--color-accent-gold);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
}
.skiplink:focus {
  top: 0;
}
/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-accent-neon-dark);
}
.header__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
}
.header__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.header__logo:hover {
  color: var(--color-primary-light);
}
/* Navigation */
.nav__list {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}
.nav__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.2s;
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-accent-gold);
}
.nav__link[aria-current="page"] {
  color: var(--color-primary-light);
  border-bottom: 2px solid var(--color-primary-light);
}
/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  width: 32px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}
.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform 0.3s, opacity 0.3s;
}
/* Mobile nav states */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-bg-dark);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    border-bottom: 1px solid var(--color-accent-neon-dark);
  }
  .nav[data-open] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__list {
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .nav__link {
    font-size: 1.1rem;
  }
}
/* Footer */
.footer {
  background: var(--color-bg-medium);
  border-top: 1px solid var(--color-accent-neon-dark);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}
.footer__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-accent-gold);
  text-transform: uppercase;
}
.footer__nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__link:hover {
  color: var(--color-accent-gold);
}
.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
.footer__email {
  color: var(--color-accent-neon);
  text-decoration: none;
}
.footer__icp {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}
.footer__trust {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  opacity: 0.7;
}
/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;
}
.btn:hover {
  background: var(--color-primary-light);
  transform: scale(1.03);
}
.btn--gold {
  background: var(--color-accent-gold);
  color: #000;
}
.btn--gold:hover {
  background: var(--color-accent-gold-light);
}
/* Progress bar */
.page-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-neon));
  z-index: 999;
  width: 0%;
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .page-progress {
    display: none;
  }
}
/* Responsive containers */
.img-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-medium);
  aspect-ratio: 16 / 9;
}
.img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}
.grid--2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
}
/* Breadcrumb placeholder (used by pages) */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
.breadcrumb a {
  color: var(--color-accent-neon);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-accent-gold);
}
/* Section highlight (for scroll detection) */
.section-highlight {
  transition: opacity 0.5s, transform 0.5s;
}
.section-highlight.is-visible {
  opacity: 1;
  transform: translateX(0);
}
/* Misc */
a {
  color: var(--color-accent-gold);
  transition: color 0.2s;
}
a:hover {
  color: var(--color-primary-light);
}
/* Main content offset for fixed header */
#main-content {
  scroll-margin-top: var(--header-height);
}
/* Responsive typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-primary);
}
p {
  font-weight: 300;
  color: var(--color-text-secondary);
}
/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .header__inner {
    padding: 0 1rem;
  }
}
/* Ensure no external fonts break */
body { font-family: 'Inter', 'Noto Sans SC', sans-serif; }
