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

:root {
  --bg-primary: #0B1026;
  --bg-secondary: #161C3A;
  --accent-gold: #F9D423;
  --accent-red: #E8493F;
  --accent-purple: #6C5CE7;
  --text-primary: #E8EAF6;
  --text-secondary: #A0A8C8;
  --border: rgba(255, 255, 255, 0.12);
  --gradient-night: linear-gradient(135deg, #0B1026 0%, #1A1F3D 50%, #3D2B56 100%);
  --font-heading: 'Orbitron', 'Rajdhani', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;
  --header-width: 280px;
  --header-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 15% 25%, rgba(108, 92, 231, 0.07), transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(249, 212, 35, 0.05), transparent 30%),
    var(--bg-primary);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-gold);
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
}

::selection {
  background: rgba(249, 212, 35, 0.25);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(249, 212, 35, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 212, 35, 0.35);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 56px;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.section__lead {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

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

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

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

.card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 212, 35, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.clip-corner {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.btn--primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 0 18px rgba(249, 212, 35, 0.18);
}

.btn--primary:hover {
  box-shadow: 0 0 28px rgba(249, 212, 35, 0.35);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-primary);
  background: transparent;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  background: rgba(249, 212, 35, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(249, 212, 35, 0.25);
  white-space: nowrap;
}

.tag--red {
  background: rgba(232, 73, 63, 0.12);
  color: var(--accent-red);
  border-color: rgba(232, 73, 63, 0.25);
}

.tag--purple {
  background: rgba(108, 92, 231, 0.12);
  color: var(--accent-purple);
  border-color: rgba(108, 92, 231, 0.25);
}

.stat {
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

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

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

.details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.details[open] {
  border-color: rgba(249, 212, 35, 0.35);
}

.details__summary {
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.3s ease;
  list-style: none;
}

.details__summary::-webkit-details-marker {
  display: none;
}

.details__summary:hover {
  color: var(--accent-gold);
}

.details__summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.details[open] .details__summary::after {
  transform: rotate(45deg);
}

.details__body {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.image-placeholder {
  position: relative;
  background: linear-gradient(135deg, #1A1F3D, #3D2B56);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(249, 212, 35, 0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(108, 92, 231, 0.22), transparent 45%);
}

.image-placeholder::after {
  content: 'IMAGE';
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.3);
}

.image-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.skip-link {
  position: fixed;
  top: -56px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.25s ease;
}

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

#main-content:focus {
  outline: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 16, 38, 0.96);
  border-bottom: 1px solid var(--border);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 1500;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-red), var(--accent-purple));
  box-shadow: 0 0 12px rgba(249, 212, 35, 0.5);
  pointer-events: none;
  transition: width 0.05s linear;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(249, 212, 35, 0.08);
  border: 1px solid rgba(249, 212, 35, 0.25);
  box-shadow: 0 0 18px rgba(249, 212, 35, 0.1);
}

.brand__logo svg {
  width: 28px;
  height: 28px;
}

.brand__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.brand__tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.18em;
  line-height: 1.3;
}

.brand--compact .brand__logo {
  width: 34px;
  height: 34px;
}

.brand--compact .brand__logo svg {
  width: 22px;
  height: 22px;
}

.brand--compact .brand__name {
  font-size: 1.05rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.nav-toggle:hover {
  border-color: var(--accent-gold);
}

.nav-toggle__line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

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

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

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

.header-side {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 280px;
  height: calc(100vh - var(--header-height));
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.35s ease-out;
  overflow-y: auto;
  z-index: 1001;
}

.header-side[data-open="true"] {
  transform: translateX(0);
}

.header-side__body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 32px 22px 24px;
  background:
    radial-gradient(circle at 22% 12%, rgba(249, 212, 35, 0.05), transparent 38%),
    radial-gradient(circle at 82% 48%, rgba(108, 92, 231, 0.08), transparent 46%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.main-nav {
  margin-top: 40px;
  flex: 1;
}

.main-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.main-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 8px;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
}

.main-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.main-nav__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.main-nav__link:hover::after {
  width: 24px;
}

.main-nav__link[aria-current="page"] {
  color: var(--accent-gold);
  background: rgba(249, 212, 35, 0.07);
}

.main-nav__link[aria-current="page"]::after {
  width: 100%;
}

.main-nav__index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
  opacity: 0.75;
  min-width: 20px;
}

.main-nav__label {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.header-note {
  margin-top: 40px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.header-note__text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.header-note__link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header-note__link:hover {
  text-decoration: underline;
}

.site-footer {
  position: relative;
  background: #080C1F;
  border-top: 4px solid var(--accent-gold);
  margin-top: 80px;
}

.site-footer__spark {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 64px;
  height: 64px;
  background:
    radial-gradient(circle at 50% 50%, rgba(249, 212, 35, 0.5) 0, transparent 32%),
    radial-gradient(circle at 30% 40%, rgba(232, 73, 63, 0.3) 0, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(108, 92, 231, 0.3) 0, transparent 46%);
  filter: blur(1px);
  opacity: 0.45;
  pointer-events: none;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-block: 56px 40px;
}

.footer-column__title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-primary);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.footer-column__desc {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 380px;
}

.footer-nav__list,
.footer-contact__list {
  list-style: none;
}

.footer-nav__item {
  margin-bottom: 8px;
}

.footer-nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-nav__link:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-contact__item {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.footer-contact__value {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: 20px;
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.site-footer__copyright,
.site-footer__icp,
.site-footer__statement {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
  }

  .footer-column--brand {
    grid-column: span 5;
  }

  .footer-column--nav {
    grid-column: span 3;
  }

  .footer-column--contact {
    grid-column: span 4;
  }

  .site-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
  }

  .col-4 {
    grid-column: span 4;
  }

  .col-6 {
    grid-column: span 6;
  }

  .col-8 {
    grid-column: span 8;
  }
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--header-width);
  }

  .site-header {
    width: var(--header-width);
    height: 100vh;
    border-bottom: none;
    border-right: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  }

  .header-top {
    display: none;
  }

  .header-side {
    position: static;
    width: 100%;
    height: 100vh;
    transform: none;
    border-right: none;
    overflow-y: auto;
    background: transparent;
  }

  .header-side[data-open="true"] {
    transform: none;
  }

  .scroll-progress {
    left: var(--header-width);
  }

  .section {
    padding-block: 72px;
  }

  .container {
    padding-inline: 32px;
  }

  body.nav-open {
    overflow: auto;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .card:hover {
    transform: none;
  }
}
