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

/* ===== CSS VARIABLES ===== */
:root {
  --c-bg-void: #020c1b;
  --c-bg-main: #0a192f;
  --c-bg-card: #112240;
  --c-line: #233554;
  --c-text: #e6f1ff;
  --c-text-sub: #8892b0;
  --c-neon: #39ff14;
  --c-lava: #ff6b35;

  --font-display: "Impact", "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;

  --container-w: 1280px;
  --gutter: 24px;
  --shadow-card: 3px 3px 0 rgba(57, 255, 20, 0.12);
  --shadow-card-hover: 5px 5px 0 rgba(57, 255, 20, 0.28);
  --shadow-header: 0 8px 32px rgba(2, 12, 27, 0.6);
}

/* ===== BASE ===== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--c-bg-main);
  color: var(--c-text);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-neon);
}

ul,
ol {
  padding-left: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  color: var(--c-text);
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
  margin-bottom: 1em;
}

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

/* ===== CONTAINER ===== */
.container {
  width: min(100% - 40px, var(--container-w));
  margin-inline: auto;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--c-neon);
  color: var(--c-bg-void);
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--c-text);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: top 0.2s ease;
}

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

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-neon), var(--c-lava));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 20;
  pointer-events: none;
  will-change: transform;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  border: 2px solid var(--c-neon);
  cursor: pointer;
  background: transparent;
  color: var(--c-text-main);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  flex-shrink: 0;
}

.btn--green {
  background: var(--c-neon);
  color: var(--c-bg-void);
  border-color: var(--c-neon);
}

.btn--green:hover {
  background: transparent;
  color: var(--c-neon);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.25);
}

.btn--ghost {
  border-color: var(--c-line);
  color: var(--c-text);
}

.btn--ghost:hover {
  border-color: var(--c-neon);
  color: var(--c-neon);
  background: rgba(57, 255, 20, 0.06);
}

.btn--header {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 18px 0 6px;
  font-size: 13px;
  color: var(--c-text-sub);
}

.breadcrumb li + li::before {
  content: "/";
  display: inline-block;
  margin: 0 8px;
  color: var(--c-line);
}

.breadcrumb a {
  color: var(--c-text-sub);
}

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

.breadcrumb li[aria-current="page"] {
  color: var(--c-text);
  font-weight: 600;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: var(--gutter);
}

.grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== CARD ===== */
.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: 0;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(57, 255, 20, 0.35);
}

/* ===== SECTION LABEL ===== */
.section-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-neon);
}

.section-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--c-neon);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.section-label--lava {
  color: var(--c-lava);
}

.section-label--lava::before {
  background: var(--c-lava);
}

/* ===== SECTION HEAD ===== */
.section-head {
  margin-bottom: 32px;
}

.section-head .page-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin: 8px 0 8px;
}

.section-head p {
  max-width: 640px;
  color: var(--c-text-sub);
  font-size: 15px;
}

/* ===== PAGE TITLE ===== */
.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: 12px;
}

/* ===== DISPLAY NUMBER ===== */
.display-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
  color: var(--c-neon);
  display: inline-block;
  text-align: center;
}

/* ===== VERTICAL LABEL ===== */
.v-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--c-text-sub);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== IMAGE FRAME ===== */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--tall { aspect-ratio: 3 / 4; }

.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 10px,
    rgba(255, 255, 255, 0.025) 10px 12px
  );
  z-index: 2;
  pointer-events: none;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(57, 255, 20, 0.08));
  z-index: 2;
  pointer-events: none;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg-main);
  border-bottom: 1px solid var(--c-line);
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
}

/* Announcement bar */
.site-header__announce {
  position: relative;
  background: var(--c-bg-void);
  border-bottom: 1px solid var(--c-line);
  max-height: 52px;
  overflow: hidden;
  transition: max-height 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled .site-header__announce {
  max-height: 0;
  border-bottom-color: transparent;
}

.site-header__announce::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 120px;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 5px,
    rgba(57, 255, 20, 0.12) 5px 7px
  );
  pointer-events: none;
}

.site-header__announce-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0;
}

.live-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-lava);
  animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

.announce-text {
  flex: 1;
  margin: 0;
  font-size: 13px;
  color: var(--c-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announce-meta {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-neon);
  border: 1px solid rgba(57, 255, 20, 0.3);
  padding: 2px 8px;
  background: rgba(57, 255, 20, 0.08);
}

/* Header main */
.site-header__main {
  position: relative;
  background: var(--c-bg-main);
}

.site-header__main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(35, 53, 84, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 53, 84, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

/* Brand */
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--c-neon);
  color: var(--c-bg-void);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--c-text);
}

.brand-text small {
  font-size: 11px;
  color: var(--c-text-sub);
  letter-spacing: 0.08em;
}

/* Nav */
.site-header__nav {
  display: flex;
  align-items: center;
}

.site-header__nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-text);
  white-space: nowrap;
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  background: var(--c-lava);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-header__nav a:hover {
  color: var(--c-neon);
}

.site-header__nav a:hover::after,
.site-header__nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__nav a[aria-current="page"] {
  color: var(--c-neon);
}

/* Actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--c-line);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--c-neon);
  background: rgba(57, 255, 20, 0.06);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--c-lava);
  background: rgba(255, 107, 53, 0.06);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.nav-toggle__text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text);
}

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

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

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

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  margin-top: 100px;
  background: var(--c-bg-void);
  border-top: 2px solid var(--c-line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(35, 53, 84, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 53, 84, 0.2) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 3px;
  background: var(--c-neon);
  z-index: 3;
}

.site-footer__watermark {
  position: absolute;
  right: -20px;
  bottom: -60px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(120px, 22vw, 300px);
  line-height: 1;
  color: rgba(230, 241, 255, 0.03);
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.site-footer__main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}

@media (min-width: 768px) {
  .site-footer__main {
    grid-template-columns: 1.4fr 1fr;
    gap: 48px 40px;
  }
}

@media (min-width: 1024px) {
  .site-footer__main {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
  }
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.site-footer__desc {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 16px;
}

.legal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-lava);
  border: 1px solid rgba(255, 107, 53, 0.35);
  padding: 3px 10px;
  background: rgba(255, 107, 53, 0.08);
}

.footer-heading {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-lava);
}

.site-footer__links,
.site-footer__meta {
  list-style: none;
}

.site-footer__links li + li,
.site-footer__meta li + li {
  margin-top: 10px;
}

.site-footer__links a {
  position: relative;
  font-size: 14px;
  color: var(--c-text-sub);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--c-neon);
  padding-left: 6px;
}

.site-footer__meta {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.7;
}

.site-footer__meta li {
  padding-left: 14px;
  position: relative;
}

.site-footer__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--c-neon);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.site-footer__hours {
  margin-top: 14px;
  font-size: 12px;
  color: var(--c-text-sub);
  letter-spacing: 0.04em;
}

.site-footer__bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--c-line);
  padding: 20px 0;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--c-text-sub);
}

.site-footer__icp {
  letter-spacing: 0.06em;
}

/* ===== RESPONSIVE HEADER/NAV ===== */
@media (max-width: 1023px) {
  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-bg-void);
    border-bottom: 2px solid var(--c-neon);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 25;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .site-header__nav[data-open] {
    max-height: 480px;
    opacity: 1;
  }

  .site-header__nav a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--c-line);
    font-size: 16px;
  }

  .site-header__nav a::after {
    display: none;
  }

  .site-header__nav a[aria-current="page"] {
    color: var(--c-neon);
    background: rgba(57, 255, 20, 0.06);
  }

  .site-header__nav a:hover {
    padding-left: 28px;
    background: rgba(57, 255, 20, 0.05);
  }
}

@media (min-width: 1024px) {
  .site-header__nav {
    flex: 1;
    justify-content: center;
    gap: 2px;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header__nav a {
    padding: 8px 8px;
    font-size: 14px;
  }
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 767px) {
  .site-header__announce-row {
    min-height: 36px;
  }

  .announce-text {
    font-size: 12px;
  }

  .announce-meta {
    display: none;
  }

  .site-header__row {
    padding: 8px 0;
  }

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

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .btn--header {
    padding: 8px 12px;
    font-size: 12px;
  }

  .site-footer__main {
    padding-top: 48px;
    gap: 32px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .live-dot {
    animation: none;
  }
}
