:root {
  --bg-void: #0F1226;
  --bg-deep: #1A1E3E;
  --accent: #FF5722;
  --accent-soft: #FF8A65;
  --accent-deep: #FF3D00;
  --neon: #00E676;
  --text-strong: #E0E0E0;
  --text-sub: #B0B0B0;
  --data-blue: #00B0FF;
  --border: #2A2E5E;
  --card: rgba(26, 30, 62, 0.8);
  --header-height: 72px;
  --font-head: Impact, "Arial Black", "Noto Sans CJK SC", sans-serif;
  --font-body: "Courier New", "Noto Sans Mono CJK SC", monospace;
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 87, 34, 0.16), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(0, 176, 255, 0.08), transparent 50%),
    var(--bg-void);
  background-attachment: fixed;
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
  outline: none;
}

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

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

a {
  color: var(--data-blue);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

address {
  font-style: normal;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--text-strong);
}

p {
  margin: 0 0 1em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--data-blue);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, 1440px);
  margin-inline: auto;
}

.page-container {
  width: min(100% - 40px, 1140px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(56px, 9vw, 120px);
}

.prose {
  max-width: 70ch;
}

.prose p {
  color: var(--text-sub);
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
}

.display-title {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--text-strong);
}

.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-sub);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 32px);
}

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

.card {
  position: relative;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-deep);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 87, 34, 0.7);
}

.stat {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  color: var(--neon);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 24px 0 0;
  list-style: none;
  font-size: 14px;
}

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

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

.breadcrumb__sep {
  color: var(--text-sub);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-deep));
  color: #fff;
  transform: skewX(-2deg);
  box-shadow: 0 0 0 rgba(255, 61, 0, 0);
}

.btn--primary:hover {
  transform: skewX(-2deg) translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 61, 0, 0.4);
}

.btn--ghost {
  background: rgba(26, 30, 62, 0.55);
  border-color: var(--border);
  color: var(--text-strong);
}

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

.btn--neon {
  background: rgba(0, 230, 118, 0.12);
  border-color: var(--neon);
  color: var(--neon);
}

.btn--neon:hover {
  background: rgba(0, 230, 118, 0.22);
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.25);
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-deep));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent-deep), var(--neon));
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.7);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(15, 18, 38, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__bar {
  max-width: 1600px;
  margin-inline: auto;
  height: var(--header-height);
  padding-inline: clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand__mark {
  width: 32px;
  height: 34px;
  display: block;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-deep));
  clip-path: polygon(52% 0, 78% 38%, 56% 38%, 100% 62%, 40% 100%, 62% 58%, 20% 58%);
  transform: skewX(-6deg);
  filter: drop-shadow(0 0 10px rgba(255, 87, 34, 0.55));
}

.brand__text {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 87, 34, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav__link:hover {
  color: #fff;
}

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

.site-nav__link[aria-current="page"] {
  color: var(--accent-soft);
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.45);
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
}

.search-toggle__icon {
  position: relative;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-toggle__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 2px;
  height: 7px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-strong);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 18, 38, 0.97);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.search-panel[data-open] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.search-panel__inner {
  max-width: 820px;
  margin-inline: auto;
  padding: 24px clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
}

.search-panel__label {
  grid-column: 1 / -1;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  color: var(--accent-soft);
}

.search-panel__field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-panel__input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: 16px;
  appearance: none;
}

.search-panel__input::placeholder {
  color: var(--text-sub);
}

.search-panel__input:focus {
  outline: none;
  border-color: var(--data-blue);
  box-shadow: 0 0 0 2px rgba(0, 176, 255, 0.25);
}

.search-panel__clear {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.45);
  border-radius: 6px;
  color: var(--accent-soft);
  font-size: 24px;
  line-height: 1;
}

.search-panel__clear:hover {
  background: var(--accent);
  color: #fff;
}

.search-panel__count {
  align-self: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--neon);
  white-space: nowrap;
}

.search-panel__tip {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-sub);
}

mark.search-hit {
  background: rgba(255, 87, 34, 0.4);
  color: #fff;
  padding: 0 2px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 87, 34, 0.6);
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-void) 0%, #080A18 100%);
  border-top: 1px solid var(--border);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.55), rgba(0, 176, 255, 0.55), transparent);
  background-size: 220% 100%;
  animation: data-stream 8s linear infinite;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -55%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.13), transparent 70%);
  pointer-events: none;
}

.site-footer__main {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin-inline: auto;
  padding: 64px clamp(20px, 4vw, 48px) 32px;
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr;
  gap: 40px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.brand--footer .brand__mark {
  width: 26px;
  height: 28px;
}

.brand--footer .brand__text {
  font-size: 23px;
}

.brand-tagline {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}

.footer-trust {
  margin: 0;
  max-width: 48ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

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

.footer-nav__title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
}

.footer-nav__group a {
  padding: 2px 0;
  color: var(--text-sub);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav__group a:hover {
  color: var(--accent-soft);
  transform: translateX(4px);
}

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

.footer-contact__item {
  margin: 0;
  padding: 2px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
}

.footer-contact__item--address {
  color: var(--text-sub);
}

.footer-contact__item--note {
  color: var(--secondary-gray);
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin-inline: auto;
  padding: 20px clamp(20px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-sub);
}

.site-footer__bottom a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__bottom a:hover {
  color: var(--data-blue);
}

.footer-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--border);
}

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: 28px;
  z-index: 1500;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-deep));
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(255, 61, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg) translateY(2px);
}

.to-top:hover {
  box-shadow: 0 0 32px rgba(255, 61, 0, 0.65);
  transform: translateY(-2px);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1023px) {
  .site-footer__main {
    grid-template-columns: 1fr 1fr;
  }

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

  .site-header__bar {
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    z-index: 2500;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(15, 18, 38, 0.97);
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-deep);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav__link {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
    color: var(--text-strong);
  }

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

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link[aria-current="page"] {
    color: var(--accent-soft);
    background: rgba(255, 87, 34, 0.08);
  }

  .search-panel__inner {
    grid-template-columns: 1fr;
  }

  .search-panel__label,
  .search-panel__tip,
  .search-panel__count {
    grid-column: auto;
  }

  .search-panel__count {
    justify-self: start;
  }
}

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

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

  .site-footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .search-toggle__label {
    display: none;
  }

  .search-toggle {
    padding: 8px 11px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    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;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
