/* ====== Reset & Design Tokens ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #E4002B;
  --brand-dark: #B4001F;
  --navy: #0B1D3A;
  --marine: #1F222A;
  --silver: #C0C0C0;
  --neon: #39FF14;
  --white: #FFFFFF;
  --black: #0A0A0A;
  --light-gray: #D4D4D8;

  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Noto Sans SC", "SimHei", "PingFang SC", "Microsoft YaHei", Impact, sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", "Consolas", "Courier New", monospace;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--silver);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--white);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

/* ====== Layout Shell ====== */
.content-shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 640px) {
  .content-shell {
    padding-inline: 32px;
  }
}

@media (min-width: 1200px) {
  .content-shell {
    padding-inline: 48px;
  }
}

.main-content {
  flex: 1 0 auto;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

/* ====== Skip Link ====== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--brand);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
}

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}

.header-topline {
  background: var(--black);
  border-bottom: 1px solid rgba(192,192,192,.12);
}

.header-topline_inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
}

.trust-strip_icon {
  color: var(--neon);
  font-size: 10px;
  line-height: 1;
  text-shadow: 0 0 6px var(--neon);
}

.trust-strip_text {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--light-gray);
  line-height: 1.4;
}

.header-main {
  border-bottom: 1px solid rgba(192,192,192,.14);
}

.header-main_inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

/* ====== Brand ====== */
.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--font-display);
  line-height: 1;
}

.brand-lockup_accent {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand);
  font-style: italic;
  letter-spacing: -0.03em;
}

.brand-lockup_base {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
  margin-left: 2px;
}

/* ====== Header Divider ====== */
.header-divider {
  flex: 0 0 34px;
  height: 3px;
  background: var(--brand);
  transform: skewX(-25deg);
  position: relative;
  box-shadow: 0 0 10px rgba(228,0,43,.5);
}

.header-divider::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 14px;
  height: 9px;
  background: rgba(228,0,43,.3);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ====== Primary Nav ====== */
.primary-nav {
  margin-left: auto;
}

.primary-nav_list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav_link {
  display: inline-block;
  padding: 10px 14px;
  color: var(--silver);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  position: relative;
  transition: color .2s, transform .2s;
}

.primary-nav_link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}

.primary-nav_link:hover {
  color: var(--white);
  transform: scale(1.06);
}

.primary-nav_link:hover::after {
  transform: scaleX(1);
  animation: nav-blink 1.2s infinite;
}

.primary-nav_link[aria-current="page"] {
  color: var(--white);
  text-shadow: 0 0 12px rgba(228,0,43,.35);
}

.primary-nav_link[aria-current="page"]::after {
  transform: scaleX(1);
  animation: nav-blink 2.4s infinite;
}

@keyframes nav-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ====== Nav Toggle ====== */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  margin-left: auto;
  border: 1px solid rgba(192,192,192,.3);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  min-height: 44px;
}

.nav-toggle_bars {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-toggle_bars i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  margin: 2px 0;
  transition: transform .3s var(--ease-out), opacity .2s;
}

.nav-toggle_label {
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--silver);
  line-height: 1;
}

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

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

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

/* ====== Footer ====== */
.site-footer {
  position: relative;
  background: var(--navy);
  border-top: 2px solid var(--brand);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(228,0,43,.14), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 36px;
  padding-block: 56px 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand_logo {
  display: inline-flex;
  margin-bottom: 4px;
}

.footer-brand_logo .brand-lockup_accent {
  font-size: 36px;
}

.footer-brand_logo .brand-lockup_base {
  font-size: 20px;
}

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

.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--silver);
  font-size: 13px;
  letter-spacing: .04em;
}

.footer-col {
  display: block;
}

.footer-col_title {
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--white);
}

.footer-link_list li + li {
  margin-top: 8px;
}

.footer-link_list a {
  display: inline-block;
  padding-left: 4px;
  border-left: 2px solid transparent;
  color: var(--silver);
  font-size: 14px;
  transition: border-color .2s, color .2s, padding-left .2s;
}

.footer-link_list a:hover {
  color: var(--white);
  border-left-color: var(--brand);
  padding-left: 8px;
}

.footer-contact_list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 6px;
  color: var(--light-gray);
  font-size: 14px;
  font-style: normal;
}

.footer-contact_label {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--silver);
  font-weight: 700;
}

.footer-hours_highlight {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.footer-hours_highlight .data-number {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .02em;
}

.footer-hours_sep {
  color: var(--brand);
  font-weight: 900;
  font-size: 18px;
}

.footer-hours_desc {
  color: var(--silver);
  font-size: 13px;
  line-height: 1.7;
}

.footer-bottom {
  background: var(--black);
  border-top: 1px solid rgba(192,192,192,.15);
}

.footer-bottom_inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-block: 18px;
}

.footer-bottom_copyright {
  color: var(--light-gray);
  font-size: 13px;
}

.footer-bottom_links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--silver);
  font-size: 13px;
}

.footer-bottom_links a {
  color: var(--light-gray);
  border-bottom: 1px solid rgba(192,192,192,.3);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}

.footer-bottom_links a:hover {
  color: var(--white);
  border-bottom-color: var(--brand);
}

.footer-bottom_icp {
  justify-self: end;
  color: var(--silver);
  font-size: 12px;
  letter-spacing: .06em;
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s, box-shadow .25s;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  border-left: 4px solid var(--neon);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(228,0,43,.35);
}

.btn-outline {
  background: rgba(255,255,255,.02);
  color: var(--silver);
  border: 1px solid var(--silver);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--white);
}

/* ====== Breadcrumb ====== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 20px 0 4px;
  font-size: 13px;
  color: var(--silver);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li:not(:last-child)::after {
  content: '→';
  color: var(--brand);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--silver);
  transition: color .2s;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb [aria-current="page"] {
  color: var(--white);
}

/* ====== Data & Status ====== */
.data-number {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--neon);
}

.data-highlight {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--neon);
  background: rgba(57,255,20,.12);
  border: 1px solid rgba(57,255,20,.3);
  padding: 2px 10px;
  border-radius: 2px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
  animation: pulse-dot 1.6s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px var(--neon); opacity: 1; }
  50% { box-shadow: 0 0 12px var(--neon); opacity: .5; }
}

/* ====== Tag Chip ====== */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border: 1px solid var(--silver);
  border-radius: 40px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--light-gray);
  background: transparent;
  transition: border-color .2s, color .2s, background .2s;
}

.tag-chip:hover {
  border-color: var(--brand);
  color: var(--white);
}

.tag-chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* ====== Image Frames ====== */
.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, var(--marine) 0%, var(--navy) 100%);
  border: 1px solid rgba(192,192,192,.18);
  border-radius: 4px;
}

.image-frame::before {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--silver);
  text-transform: uppercase;
}

.image-frame::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 120px;
  height: 120px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(228,0,43,.18) 50%, transparent 52%),
    linear-gradient(45deg, transparent 49%, rgba(192,192,192,.1) 50%, transparent 51%);
  background-size: 20px 20px;
}

.image-frame_hero {
  aspect-ratio: 16 / 6;
}

.image-frame_meta {
  aspect-ratio: 4 / 3;
}

.image-frame_card {
  aspect-ratio: 16 / 10;
}

/* ====== Section Block ====== */
.section-block {
  padding-block: 72px;
}

.section-block_tight {
  padding-block: 40px;
}

/* ====== Tabs ====== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid rgba(192,192,192,.25);
}

.tab-link {
  padding: 10px 20px;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--silver);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  position: relative;
  transition: color .2s, background .2s;
}

.tab-link:hover {
  color: var(--white);
}

.tab-link[aria-selected="true"] {
  background: rgba(228,0,43,.1);
  border-color: rgba(192,192,192,.25);
  border-bottom-color: var(--navy);
  color: var(--white);
}

.tab-link[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
}

.tab-panel {
  display: none;
  padding-top: 20px;
  color: var(--light-gray);
  font-size: 14px;
}

.tab-panel[data-open="true"] {
  display: block;
}

/* ====== Collapse ====== */
.collapse {
  border-bottom: 1px solid rgba(192,192,192,.18);
}

.collapse summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px;
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  font-size: 15px;
  list-style: none;
}

.collapse summary::-webkit-details-marker {
  display: none;
}

.collapse summary::marker {
  content: '';
}

.collapse summary:hover {
  color: var(--brand);
}

.collapse[open] summary {
  color: var(--brand);
}

.collapse_icon {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--brand);
  transition: transform .25s var(--ease-out);
  flex: 0 0 auto;
}

.collapse[open] .collapse_icon {
  transform: rotate(45deg);
}

.collapse p {
  padding: 0 4px 16px;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.7;
}

/* ====== Scroll Progress & Back to Top ====== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 65%, var(--neon) 100%);
  z-index: 3000;
  pointer-events: none;
  will-change: width;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 2px;
  font-size: 20px;
  font-weight: 700;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-dark);
  transform: translateY(-3px);
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .footer-bottom_inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 8px;
  }

  .footer-bottom_icp {
    justify-self: center;
  }

  .image-frame_hero {
    aspect-ratio: 16 / 10;
  }
}

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

  .footer-col {
    padding-top: 4px;
  }
}

@media (max-width: 860px) {
  .header-divider {
    display: none;
  }

  .header-main_inner {
    min-height: 56px;
    gap: 12px;
  }

  .brand-lockup_accent {
    font-size: 26px;
  }

  .brand-lockup_base {
    font-size: 15px;
  }

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

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 82vw);
    margin: 0;
    padding: 96px 20px 32px;
    background: var(--marine);
    border-left: 1px solid rgba(228,0,43,.5);
    box-shadow: -12px 0 24px rgba(0,0,0,.4);
    transform: translateX(105%);
    visibility: hidden;
    overflow-y: auto;
    transition: transform .3s var(--ease-out), visibility .3s;
  }

  .primary-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand);
  }

  .primary-nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
  }

  .primary-nav_list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .primary-nav_link {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    border-left: 3px solid transparent;
    background: transparent;
  }

  .primary-nav_link::after {
    display: none;
  }

  .primary-nav_link[aria-current="page"] {
    border-left-color: var(--brand);
    background: rgba(228,0,43,.12);
    text-shadow: none;
  }

  .primary-nav_link:hover {
    background: rgba(255,255,255,.04);
    transform: none;
  }
}

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

  .primary-nav {
    transition: none;
  }

  .back-to-top {
    transition: none;
  }

  .status-dot,
  .scroll-progress,
  .header-divider {
    animation: none;
  }
}
