*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0A0A0A;
  --paper: #F5F5F0;
  --neon: #00FF87;
  --deep-blue: #0033CC;
  --orange: #FF6A00;
  --light-gray: #E0E0E0;
  --mid-gray: #666666;
  --charcoal: #1A1A1A;
  --white: #FFFFFF;
  --teal: #00CCAA;
  --font-headline: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "JetBrains Mono", "SF Mono", "Cascadia Mono", "Noto Sans Mono", Consolas, monospace;
  --border-w: 2px;
  --shadow-offset: 6px;
  --container-max: 1280px;
  --breakpoint-nav: 992px;
  --breakpoint-mobile: 768px;
}

html {
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.main-content {
  display: block;
  width: 100%;
  min-height: 70vh;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow {
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 9999;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--deep-blue);
  border-bottom: 3px solid var(--neon);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 16px 24px;
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 82% 100%, 0 100%);
}

.brand-name {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-list-left {
  margin-left: 16px;
}

.nav-list-right {
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--neon);
}

.nav-link:hover::after,
.nav-link.is-active::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--white);
  background: transparent;
  flex-shrink: 0;
}

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: clamp(60px, 10vw, 120px);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--neon) 0%, var(--deep-blue) 45%, var(--orange) 100%);
}

.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 64px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.7fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark--footer {
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%, 0 72%);
}

.footer-name {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

.footer-trust {
  font-size: 14px;
  line-height: 1.7;
  color: var(--light-gray);
  max-width: 48ch;
}

.footer-heading {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon);
  margin-bottom: 14px;
}

.footer-contact-list,
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-contact-list li,
.footer-links li {
  line-height: 1.5;
}

.contact-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-right: 8px;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--neon);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
  font-size: 13px;
  color: var(--mid-gray);
}

.footer-copyright,
.footer-icp {
  color: var(--light-gray);
}

.section-label {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-blue);
  border-left: 3px solid var(--neon);
  padding-left: 8px;
  margin-bottom: 16px;
}

.page-title {
  font-family: var(--font-headline);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--mid-gray);
  max-width: 55ch;
}

.panel {
  background: var(--white);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink);
  padding: 24px;
}

.panel--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--deep-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: var(--border-w) solid var(--ink);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  background: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary {
  background: var(--neon);
  color: var(--ink);
}

.btn-outline {
  border-color: currentColor;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--deep-blue);
  font-weight: 700;
}

.figure {
  position: relative;
  overflow: hidden;
  background: var(--light-gray);
  border: var(--border-w) solid var(--ink);
  aspect-ratio: 16 / 9;
}

.figure--wide {
  aspect-ratio: 21 / 9;
}

.figure--tall {
  aspect-ratio: 3 / 4;
}

.figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, var(--deep-blue) 0%, transparent 55%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.25) 12px 13px);
  pointer-events: none;
}

.figure[data-figure-caption]::after {
  content: attr(data-figure-caption);
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  background: var(--ink);
  color: var(--neon);
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
}

.figure > img,
.figure > video,
.figure > * {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-value {
  font-family: var(--font-headline);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.divider {
  border: 0;
  height: 2px;
  background: var(--light-gray);
}

.divider--neon {
  background: var(--neon);
}

@media (max-width: 991px) {
  .site-header {
    border-bottom-width: 2px;
  }

  .header-inner {
    padding: 12px 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: var(--deep-blue);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 2px solid var(--neon);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  }

  .main-nav[data-open] {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px;
  }

  .nav-list-left,
  .nav-list-right {
    margin: 0;
  }

  .nav-list + .nav-list {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .nav-link {
    display: block;
    font-size: 16px;
    padding: 12px 16px;
  }

  .nav-link::after {
    left: 16px;
    right: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-inner {
    padding-top: 48px;
  }
}

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

  .col-span-3,
  .col-span-4,
  .col-span-6,
  .col-span-8,
  .col-span-12 {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .skip-link {
    transition: none;
  }

  .progress-fill {
    will-change: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
