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

:root {
  --bg: #0A1628;
  --bg-raised: #12243B;
  --bg-over: #1C3050;
  --gold: #E8B54A;
  --red: #C0392B;
  --teal: #2A9D8F;
  --text: #F0F4FA;
  --muted: #91A7C0;
  --line: rgba(255, 255, 255, 0.15);
  --line-gold: rgba(232, 181, 74, 0.55);
  --gradient: linear-gradient(90deg, #0A1628 0%, #1C3050 34%, #2A9D8F 72%, #E8B54A 100%);
  --font-heading: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --radius: 0px;
  --transition: 300ms ease-out;
  --container-w: 1200px;
  --gutter: 24px;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

#main-content {
  flex: 1 0 auto;
  width: 100%;
}

h1, h2, h3, h4 {
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
}

p {
  line-height: 1.8;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    padding-left var(--transition);
}

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

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

ul, ol {
  list-style: none;
}

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

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

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

.container {
  width: calc(100% - 48px);
  max-width: var(--container-w);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  transform: translateY(-120%);
  transition: transform 200ms ease-out;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.96);
  border-bottom: 1px solid var(--line);
}

.site-header__upper {
  background: rgba(18, 36, 59, 0.88);
  border-bottom: 1px solid var(--line);
}

.site-header__upper-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 12px;
}

.site-header__statement,
.site-header__status {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.site-header__upper-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__status {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
}

.site-header__status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: currentColor;
  transform: rotate(45deg);
}

.site-header__feedback {
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.site-header__feedback:hover {
  color: var(--text);
}

.site-header__main {
  background: transparent;
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  background: var(--bg-over);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    background-color var(--transition),
    color var(--transition);
}

.brand:hover .brand__mark {
  background: var(--gold);
  color: var(--bg);
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  transition:
    border-color var(--transition),
    color var(--transition);
}

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

.nav-toggle__label {
  line-height: 1;
}

.nav-toggle__icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 2px;
  flex-shrink: 0;
  background: currentColor;
  transition:
    background-color var(--transition),
    transform var(--transition),
    top var(--transition);
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition:
    transform var(--transition),
    top var(--transition);
}

.nav-toggle__icon::before {
  top: -5px;
}

.nav-toggle__icon::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

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

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

.site-nav__link {
  display: block;
  padding: 8px 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.site-nav__link:hover {
  color: var(--text);
  border-color: var(--line);
}

.site-nav__link[aria-current="page"] {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(232, 181, 74, 0.08);
}

.site-footer {
  position: relative;
  flex-shrink: 0;
  margin-top: 96px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-footer__gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
}

.site-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}

.site-footer__logo {
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
}

.site-footer__intro {
  max-width: 32rem;
  color: var(--muted);
}

.site-footer__trust {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(232, 181, 74, 0.04);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer__heading {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__links li + li {
  margin-top: 8px;
}

.site-footer__links a {
  color: var(--muted);
  font-size: 14px;
}

.site-footer__links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.site-footer__contact {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

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

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.site-footer__icp {
  color: var(--muted);
  font-size: 12px;
}

.gradient-line {
  height: 2px;
  border: 0;
  background: var(--gradient);
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 32px 0;
}

.section--muted {
  background: rgba(18, 36, 59, 0.5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.section__kicker {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
}

.section__intro {
  max-width: 60ch;
  color: var(--muted);
}

.page-header {
  position: relative;
  margin-bottom: 48px;
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-kicker {
  margin-bottom: 8px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title {
  max-width: 18ch;
  margin-bottom: 12px;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.05;
}

.page-header__lead {
  max-width: 70ch;
  color: var(--muted);
  font-size: 18px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.display-statement {
  font-family: var(--font-heading);
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.display-statement__accent {
  color: var(--gold);
}

.breadcrumb {
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
}

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

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--gold);
}

.breadcrumb__link {
  color: var(--muted);
}

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

.breadcrumb__current {
  color: var(--gold);
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn:hover {
  background: var(--gold);
  color: var(--bg);
}

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

.btn--primary:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

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

.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.grid--uneven {
  grid-template-columns: 1fr 1.2fr;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  transition:
    border-color var(--transition),
    background-color var(--transition),
    transform var(--transition);
}

.card:hover {
  border-color: var(--line-gold);
  background: var(--bg-over);
  transform: translateY(-2px);
}

.card__title {
  margin-bottom: 8px;
  font-size: 18px;
}

.card__text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card__meta {
  margin-top: 12px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
}

.index-list {
  border-top: 1px solid var(--line);
}

.index-list__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.index-list__num {
  min-width: 3em;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
}

.index-list__title {
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
}

.index-list__desc {
  color: var(--muted);
  font-size: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: rotate(45deg);
}

.status--live {
  border-color: rgba(42, 157, 143, 0.4);
  color: var(--teal);
}

.status--new {
  border-color: rgba(232, 181, 74, 0.4);
  color: var(--gold);
}

.status--issue {
  border-color: rgba(192, 57, 43, 0.4);
  color: var(--red);
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

.panel--highlight {
  border-left: 3px solid var(--gold);
}

.panel--notice {
  border-left: 3px solid var(--red);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.meta span {
  color: var(--teal);
}

.prose {
  max-width: 76ch;
  color: var(--text);
  line-height: 1.9;
}

.prose p {
  margin-bottom: 1em;
}

.prose h2 {
  margin: 2em 0 0.5em;
  font-size: 24px;
}

.prose ul {
  margin: 1em 0;
  padding-left: 1.4em;
  list-style: disc;
}

.prose li + li {
  margin-top: 0.4em;
}

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

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

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame--portrait {
  aspect-ratio: 3 / 4;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(28, 48, 80, 0.9), rgba(42, 157, 143, 0.35)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 32px);
}

.media-frame::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 12%;
  width: 76%;
  height: 76%;
  border: 1px solid rgba(232, 181, 74, 0.5);
  background:
    radial-gradient(circle at 22% 30%, rgba(232, 181, 74, 0.25), transparent 28%),
    linear-gradient(145deg, rgba(10, 22, 40, 0.2), rgba(28, 48, 80, 0.2));
}

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 300ms ease-out,
    transform 300ms ease-out;
}

.js-enabled [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1079.98px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 8px;
    padding: 8px 0 14px;
    border-top: 1px solid var(--line);
    background: rgba(18, 36, 59, 0.98);
  }

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

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

  .site-nav__link {
    width: 100%;
  }

  .site-header__bar {
    flex-wrap: wrap;
    padding: 10px 0;
  }
}

@media (max-width: 920px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .site-header__upper-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 6px 0;
  }

  .site-header__bar {
    gap: 12px;
  }

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

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

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

  .page-header {
    padding: 32px 0 20px;
  }

  .section {
    padding: 40px 0;
  }

  .display-statement {
    font-size: clamp(40px, 14vw, 72px);
  }
}

@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-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
