:root {
  --bg-deep: #0A1B2A;
  --bg-navy: #112A4A;
  --line: #1E3A5F;
  --neon: #39FF14;
  --orange: #FF4500;
  --off-white: #F0F4F8;
  --muted: #8A9BAC;
  --wine: #722F37;
  --indigo: #4B0082;
  --font-display: "Archivo Black", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-accent: "Source Serif Pro", "Times New Roman", serif;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --cut: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(57, 255, 20, .06), transparent 60%),
    linear-gradient(rgba(30, 58, 95, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, .14) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

#main-content {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

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

ul {
  list-style: none;
}

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

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

::selection {
  background: var(--neon);
  color: var(--bg-deep);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  max-width: 65ch;
}

.container {
  width: min(1280px, 92%);
  margin-inline: auto;
}

/* Base grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--off-white);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}

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

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--off-white);
}

.btn--ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.btn--cut {
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.btn--primary:hover {
  background: #6bff50;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 8px 24px rgba(0, 0, 0, .4);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--bg-navy);
  color: var(--off-white);
  border-left: 2px solid var(--neon);
}

.tag--hot {
  border-left-color: var(--orange);
  color: #ffe3db;
}

.tag--live {
  border-left-color: var(--orange);
  background: var(--wine);
}

/* Cut panels */
.cut-panel {
  position: relative;
  padding: 24px;
  background: linear-gradient(145deg, var(--bg-navy), rgba(17, 42, 74, .35));
  border: 1px solid var(--line);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.cut-panel--wine {
  background: linear-gradient(145deg, var(--wine), rgba(114, 47, 55, .55));
  border-color: rgba(240, 244, 248, .2);
}

.cut-panel--indigo {
  background: linear-gradient(145deg, var(--indigo), rgba(75, 0, 130, .55));
  border-color: rgba(240, 244, 248, .2);
}

/* Stats */
.stat {
  background: linear-gradient(135deg, var(--bg-navy), var(--bg-deep));
  border-left: 2px solid var(--neon);
  padding: 20px;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.2;
  color: var(--neon);
}

.stat__label {
  display: block;
  margin-top: 4px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Image frame */
.img-frame {
  position: relative;
  min-height: 220px;
  background: linear-gradient(145deg, var(--bg-navy), rgba(10, 27, 42, .6));
  border: 1px solid var(--line);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 6px, rgba(57, 255, 20, .05) 6px, rgba(57, 255, 20, .05) 8px);
  pointer-events: none;
}

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-header__index {
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .12em;
  color: var(--neon);
  white-space: nowrap;
}

.section-header__title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.section-header__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: .8rem;
  color: var(--muted);
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs__link:hover {
  color: var(--neon);
}

.breadcrumbs__current {
  color: var(--neon);
}

/* Page hero */
.page-hero {
  padding: 48px 0 32px;
}

.page-hero__meta {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon);
}

.page-hero__title {
  max-width: 16ch;
}

.page-hero__sub {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--muted);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollspy target highlight */
[data-spy] {
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

[data-spy].is-active,
[data-spy][aria-current="true"] {
  color: var(--neon);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 500;
  padding: 8px 14px;
  background: var(--neon);
  color: var(--bg-deep);
  font-weight: 700;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 400;
  background: linear-gradient(90deg, var(--neon), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Header */
.site-frame {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: rgba(10, 27, 42, .92);
  background-image:
    linear-gradient(rgba(30, 58, 95, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, .16) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon) 15%, rgba(57, 255, 20, .4) 60%, transparent 100%);
  pointer-events: none;
}

.site-frame__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

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

.brand__mark {
  position: relative;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon) 55%, transparent 55%);
  clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  transform: rotate(45deg);
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: .02em;
  color: var(--off-white);
}

.brand__tag {
  margin-top: 3px;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  display: block;
  padding: 10px 12px;
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--off-white);
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.site-nav__link:hover {
  color: var(--neon);
}

.site-nav__link[aria-current="page"] {
  color: var(--neon);
  border-bottom-color: var(--neon);
  background: linear-gradient(135deg, rgba(57, 255, 20, .1), transparent 70%);
}

.site-nav__item--cta {
  margin-left: 8px;
}

.site-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--neon);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

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

.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(-8px) rotate(-45deg);
}

/* Footer */
.site-footer {
  padding: 56px 0 24px;
  background-color: var(--bg-navy);
  background-image:
    linear-gradient(rgba(30, 58, 95, .25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, .25) 1px, transparent 1px);
  background-size: 48px 48px;
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__logo strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--off-white);
}

.site-footer__statement {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--muted);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  font-style: normal;
  font-size: .9rem;
  color: var(--muted);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__heading {
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--neon);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__link {
  font-size: .9rem;
  color: var(--off-white);
  transition: color .2s var(--ease);
}

.site-footer__link:hover {
  color: var(--neon);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
}

.site-footer__icp {
  margin-right: auto;
}

.site-footer__law {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__copyright {
  margin-left: auto;
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  .site-frame__inner {
    gap: 16px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 4%;
    width: 92%;
    display: none;
    margin-left: 0;
    max-height: calc(100vh - var(--header-h) - 16px);
    overflow: auto;
    padding: 12px;
    background: rgba(10, 27, 42, .98);
    border: 1px solid var(--line);
    border-top: 2px solid var(--neon);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__item {
    border-bottom: 1px solid var(--line);
  }

  .site-nav__item:last-child {
    border-bottom: none;
  }

  .site-nav__link {
    padding: 12px 10px;
    border-bottom: none;
    border-left: 2px solid transparent;
  }

  .site-nav__link[aria-current="page"] {
    border-bottom: none;
    border-left-color: var(--neon);
    background: linear-gradient(90deg, rgba(57, 255, 20, .1), transparent 80%);
  }

  .site-nav__item--cta {
    margin-left: 0;
  }

  .site-cta {
    margin: 12px 0;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__icp,
  .site-footer__copyright {
    margin-right: 0;
    margin-left: 0;
  }

  .page-hero {
    padding-top: 32px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity .3s ease;
  }

  .nav-toggle__bar {
    transition: opacity .3s ease;
  }

  .scroll-progress {
    opacity: 0;
  }
}
