:root {
  --bg: #061018;
  --bg-2: #0a1828;
  --navy: #0d2340;
  --panel: #102a4a;
  --line: rgba(142, 196, 232, 0.2);
  --ice: #8ec4e8;
  --lock: #4d8eff;
  --lock-2: #7eb4ff;
  --seal: #d4b36a;
  --text: #e8eef6;
  --muted: #93a8c0;
  --paper: #f4f7fb;
  --ok: #6fbf9a;
  --warn: #d4b36a;
  --shadow: 0 18px 40px rgba(3, 10, 20, 0.35);
  --radius: 18px;
  --wrap: min(1120px, calc(100% - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.65 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(77, 142, 255, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(212, 179, 106, 0.08), transparent 45%),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ice);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--lock-2);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--lock);
  color: #fff;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ribbon {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 22, 38, 0.92);
  color: var(--muted);
  font-size: 13px;
}

.ribbon-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.ribbon b {
  color: var(--seal);
  font-weight: 650;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(6, 16, 24, 0.72);
  backdrop-filter: blur(14px);
}

.mast.is-pinned {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 28px rgba(3, 10, 18, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 720;
  letter-spacing: 0.01em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0b1c30;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--navy);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
}

.menu ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
}

.menu a:hover,
.menu a[aria-current="page"] {
  background: rgba(77, 142, 255, 0.14);
  color: #fff;
}

.menu .cta {
  background: linear-gradient(180deg, #5a98ff, #2f6fe0);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 111, 224, 0.28);
}

.menu .cta:hover {
  color: #fff;
  filter: brightness(1.06);
}

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 650;
}

.btn {
  background: linear-gradient(180deg, #5a98ff, #2f6fe0);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn:hover {
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(16, 42, 74, 0.5);
}

.hero,
.page-hero,
section {
  padding: 64px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--seal);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lock-mark {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ice);
  font-size: 13px;
  background: rgba(16, 42, 74, 0.55);
}

.chip.is-on {
  border-color: rgba(111, 191, 154, 0.45);
  color: var(--ok);
}

.hero-grid,
.duo,
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

.hero-grid,
.duo,
.grid-2 {
  grid-template-columns: 1.05fr 0.95fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(36px, 6vw, 62px);
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  font-size: 18px;
}

.lead,
.head p,
.cite {
  color: var(--muted);
}

.lead {
  font-size: 17px;
  max-width: 58ch;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric {
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 35, 64, 0.7);
}

.metric strong {
  display: block;
  color: var(--ice);
  font-size: 22px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.vault {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(77, 142, 255, 0.08), transparent 30%),
    var(--navy);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.vault-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.bolts {
  display: flex;
  gap: 6px;
}

.bolts i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a5878;
}

.bolts i:first-child { background: #c56b6b; }
.bolts i:nth-child(2) { background: var(--seal); }
.bolts i:nth-child(3) { background: var(--ok); }

.vault img {
  width: 100%;
  aspect-ratio: 880 / 700;
  object-fit: cover;
}

.vault figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 13px;
}

.stamp {
  position: absolute;
  right: 16px;
  bottom: 52px;
  width: 86px;
  height: 86px;
  border: 2px solid rgba(212, 179, 106, 0.7);
  border-radius: 50%;
  color: var(--seal);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  transform: rotate(-12deg);
  background: rgba(6, 16, 24, 0.55);
  pointer-events: none;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.card,
.entry,
.plat,
.note,
.step,
.issue {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 42, 74, 0.55);
  padding: 18px;
}

.card[data-rise],
.entry[data-rise],
.plat[data-rise],
.note[data-rise],
.step[data-rise] {
  opacity: 0;
  transform: translateY(16px);
}

.card.is-in,
.entry.is-in,
.plat.is-in,
.note.is-in,
.step.is-in,
.motion-off .card,
.motion-off .entry,
.motion-off .plat,
.motion-off .note,
.motion-off .step {
  opacity: 1;
  transform: none;
}

html.motion-on .card,
html.motion-on .entry,
html.motion-on .plat,
html.motion-on .note,
html.motion-on .step {
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease;
}

.icon {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}

.idx,
.meta {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--seal);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.entry {
  color: inherit;
  text-decoration: none;
}

.entry:hover,
.card:hover,
.plat:hover {
  border-color: rgba(126, 180, 255, 0.45);
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px dashed rgba(212, 179, 106, 0.45);
  border-radius: 16px;
  background: rgba(212, 179, 106, 0.06);
}

.checks {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.checks li + li {
  margin-top: 8px;
}

.cues {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cue {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: rgba(13, 35, 64, 0.72);
}

.cue .n {
  color: var(--lock-2);
  font-weight: 700;
}

.cue .h {
  color: var(--muted);
  font-size: 13px;
}

.cue.is-live {
  border-color: var(--lock);
  box-shadow: inset 0 0 0 1px rgba(77, 142, 255, 0.35);
}

.crumbs {
  color: var(--muted);
  font-size: 13px;
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(13, 35, 64, 0.55);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ice);
  font-weight: 650;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 42, 74, 0.5);
  margin-bottom: 10px;
  padding: 4px 16px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 650;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--ice);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 14px;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  background: #050e18;
  padding: 48px 0 28px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 24px;
}

footer h3 {
  font-size: 15px;
  color: var(--ice);
}

footer p,
footer li {
  color: var(--muted);
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer li + li {
  margin-top: 8px;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.cite {
  margin-top: 16px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-grid,
  .duo,
  .grid-2,
  .grid-3,
  .grid-4,
  .cues,
  .metrics,
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    right: 16px;
    top: 72px;
    width: min(320px, calc(100% - 32px));
    display: none;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0b1c30;
    padding: 10px;
  }

  .menu.is-open {
    display: block;
  }

  .menu ul {
    flex-direction: column;
    align-items: stretch;
  }

  .ribbon-inner,
  .head,
  .legal,
  .vault figcaption {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .duo,
  .grid-2,
  .grid-3,
  .grid-4,
  .cues,
  .metrics,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .stamp {
    width: 70px;
    height: 70px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .card[data-rise],
  .entry[data-rise],
  .plat[data-rise],
  .note[data-rise],
  .step[data-rise] {
    opacity: 1;
    transform: none;
  }
}
