:root {
  --color-space: #0A1128;
  --color-navy: #0A1F44;
  --color-neon: #39FF88;
  --color-ember: #FF7A29;
  --color-ash: #B0B8C4;
  --color-moss: #5C7A6B;
  --color-clay: #C2703D;
  --color-cream: #F5F1E6;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-z: 1000;
  --ease: 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-space);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-cream);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--color-neon);
  text-decoration: none;
}

a:hover {
  color: var(--color-neon);
  text-decoration: underline;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

::selection {
  background: rgba(57, 255, 136, 0.3);
  color: var(--color-cream);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--color-neon);
  color: var(--color-space);
  font-weight: 900;
  box-shadow: 0 4px 24px rgba(57, 255, 136, 0.25);
  transform: translateY(-420%);
  transition: transform var(--ease);
}

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

.site-header {
  position: relative;
  z-index: 5;
}

.live-tape {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(57, 255, 136, 0.15);
}

.live-tape__track {
  display: flex;
  width: max-content;
  animation: tape-scroll 36s linear infinite;
  will-change: transform;
}

.live-tape__group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.live-tape__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--color-ash);
}

.live-tape__team {
  color: var(--color-cream);
  font-weight: 700;
}

.live-tape__score {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-neon);
}

.live-tape__status {
  display: inline-block;
  padding: 0 0.45rem;
  border: 1px solid rgba(255, 122, 41, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-ember);
}

@keyframes tape-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.nav-raft {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: var(--header-z);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: calc(100% - 2rem);
  max-width: 1280px;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(57, 255, 136, 0.18);
  border-radius: 999px;
  background: rgba(10, 31, 68, 0.82);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.6rem;
  padding: 0.3rem 0.4rem;
  border-radius: 999px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 6px;
  background: var(--color-neon);
  color: var(--color-space);
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 0 0 1px rgba(57, 255, 136, 0.25);
  transform: skewX(-8deg);
}

.brand-name {
  color: var(--color-cream);
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.primary-nav a {
  display: block;
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--color-ash);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}

.primary-nav a:hover {
  color: var(--color-neon);
  background: rgba(57, 255, 136, 0.08);
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  color: var(--color-space);
  background: var(--color-neon);
  border-color: var(--color-neon);
  box-shadow: 0 0 18px rgba(57, 255, 136, 0.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid rgba(57, 255, 136, 0.25);
  border-radius: 999px;
  background: rgba(10, 17, 40, 0.5);
}

.nav-toggle__bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-neon);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: calc(var(--header-z) + 10);
  width: 0;
  height: 3px;
  background: var(--color-neon);
  box-shadow: 0 0 12px rgba(57, 255, 136, 0.65);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  font-size: 0.875rem;
  color: var(--color-ash);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(176, 184, 196, 0.4);
}

.breadcrumb a {
  color: var(--color-ash);
  text-decoration: none;
}

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

.breadcrumb [aria-current] {
  color: var(--color-moss);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

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

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

.btn-ember {
  background: var(--color-ember);
  border-color: var(--color-ember);
  color: var(--color-space);
}

.btn-ember:hover {
  background: transparent;
  color: var(--color-ember);
}

.btn-outline {
  border-color: rgba(57, 255, 136, 0.4);
  color: var(--color-neon);
}

.btn-outline:hover {
  background: rgba(57, 255, 136, 0.08);
  border-color: var(--color-neon);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.image-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(57, 255, 136, 0.14);
  background: linear-gradient(135deg, var(--color-navy), var(--color-space));
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 60%, rgba(57, 255, 136, 0.08));
  pointer-events: none;
}

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame--tall {
  aspect-ratio: 4 / 5;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(176, 184, 196, 0.2);
  text-align: left;
}

.data-table th {
  background: rgba(57, 255, 136, 0.05);
  color: var(--color-neon);
  font-weight: 700;
}

.data-table tr:hover td {
  background: rgba(255, 122, 41, 0.06);
}

.prose {
  max-width: 68ch;
  color: rgba(245, 241, 230, 0.88);
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.75rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose strong {
  color: var(--color-cream);
  font-weight: 800;
}

.prose em {
  color: var(--color-neon);
  font-style: normal;
}

.prose ul {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
  list-style: decimal;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--color-ember);
  background: rgba(255, 122, 41, 0.08);
  color: var(--color-cream);
}

.site-footer {
  position: relative;
  margin-top: 4rem;
  border-top: 1px solid rgba(57, 255, 136, 0.12);
  background: var(--color-navy);
  color: var(--color-ash);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-neon) 0%, transparent 35%, var(--color-ember) 100%);
  opacity: 0.7;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2rem;
  padding-block: 3rem 2rem;
}

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.footer-brand__link:hover {
  text-decoration: none;
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  background: var(--color-neon);
  color: var(--color-space);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 0 0 1px rgba(57, 255, 136, 0.25);
  transform: skewX(-8deg);
}

.footer-brand__name {
  color: var(--color-cream);
  font-size: 1.35rem;
  font-weight: 900;
}

.footer-tagline {
  margin-top: 0.75rem;
  color: var(--color-ash);
}

.footer-heading {
  margin: 0 0 0.75rem;
  color: var(--color-neon);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav__list,
.footer-contact__list {
  display: grid;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--color-ash);
  text-decoration: none;
  transition: color var(--ease);
}

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

.footer-contact__list li {
  color: var(--color-ash);
}

.footer-trust {
  border-top: 1px solid rgba(176, 184, 196, 0.15);
  background: rgba(10, 17, 40, 0.4);
}

.footer-trust .container {
  padding-block: 1.25rem;
}

.footer-trust p {
  max-width: 64ch;
  margin: 0;
  color: var(--color-ash);
  font-size: 0.9rem;
}

.footer-legal {
  border-top: 1px solid rgba(176, 184, 196, 0.15);
  padding-block: 1rem;
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-ash);
}

.footer-legal__inner a {
  color: var(--color-ash);
  text-decoration: none;
  transition: color var(--ease);
}

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

.footer-legal__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-moss);
}

.footer-legal__icp {
  margin-left: auto;
  color: rgba(176, 184, 196, 0.6);
}

@media (max-width: 991px) {
  .nav-raft {
    top: 0.5rem;
    width: calc(100% - 1rem);
    padding: 0.35rem 0.5rem;
  }

  .brand-mark {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.5rem;
    right: 0.5rem;
    display: none;
    padding: 0.5rem;
    border: 1px solid rgba(57, 255, 136, 0.18);
    border-radius: 16px;
    background: rgba(10, 31, 68, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  .primary-nav[data-open] {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .primary-nav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .container {
    padding-inline: 1.25rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2rem 1.5rem;
  }

  .footer-legal__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-legal__icp {
    margin-left: 0;
  }

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

@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-tape__track {
    animation: none;
  }

  .live-tape__group[aria-hidden="true"] {
    display: none;
  }

  .btn,
  .primary-nav a,
  .nav-toggle {
    transition: none;
  }
}
