:root {
  --void: #040712;
  --deep: #08101f;
  --panel: rgba(8, 22, 48, 0.76);
  --cyan: #4de8ff;
  --cyan-soft: rgba(77, 232, 255, 0.16);
  --magenta: #e14dff;
  --violet: #8b6cff;
  --text: #e9f6ff;
  --muted: #8aa6c4;
  --line: rgba(77, 232, 255, 0.28);
  --warn: #ffd27a;
  --ok: #6dffc1;
  --max: 1120px;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.allow-motion {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Segoe UI, Microsoft YaHei, PingFang SC, Hiragino Sans GB, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(225, 77, 255, 0.16), transparent 58%),
    radial-gradient(820px 380px at 92% 8%, rgba(77, 232, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #050914 0%, #07111f 48%, #04070f 100%);
  line-height: 1.65;
}

body.nav-lock {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #9cf4ff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 0.5rem 0.8rem;
  background: #071627;
  color: var(--cyan);
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: 12px;
}

.scan-veil,
.grid-floor {
  pointer-events: none;
}

.scan-veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: soft-light;
}

.grid-floor {
  position: fixed;
  inset: auto 0 -18vh;
  height: 38vh;
  background-image:
    linear-gradient(rgba(77, 232, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 232, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(420px) rotateX(62deg);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.holo-bar {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(77, 232, 255, 0.08), rgba(225, 77, 255, 0.08));
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.holo-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  color: var(--muted);
}

.holo-bar b {
  color: var(--cyan);
  font-weight: 700;
}

.holo-id {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 7.4rem;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}

.holo-id::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.holo-head {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(5, 10, 20, 0.42);
  backdrop-filter: blur(16px);
}

.holo-head.is-pinned {
  border-bottom-color: var(--line);
  background: rgba(5, 10, 20, 0.86);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line), 0 0 18px rgba(77, 232, 255, 0.28);
}

.brand-lockup span {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-switch {
  display: none;
  min-height: 42px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 22, 48, 0.8);
  color: var(--text);
  cursor: pointer;
}

.holo-nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.holo-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
}

.holo-nav a:hover,
.holo-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--cyan-soft);
}

.holo-nav a.cta {
  color: #041018;
  background: linear-gradient(90deg, var(--cyan), #7cf0ff);
  box-shadow: 0 0 22px rgba(77, 232, 255, 0.32);
  font-weight: 700;
}

.holo-nav a.cta:hover {
  color: #041018;
}

.proj-stage,
.page-hero {
  position: relative;
  padding: 3.2rem 0 2.6rem;
}

.proj-stage::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 12% 8% auto;
  height: 180px;
  background: radial-gradient(circle, rgba(77, 232, 255, 0.16), transparent 70%);
  filter: blur(12px);
}

.hero-grid,
.duo {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  color: var(--magenta);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0.4rem 0.7rem 0;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 22, 48, 0.7);
  color: var(--cyan);
  font-size: 0.78rem;
}

.hud-chip.is-on {
  border-color: rgba(109, 255, 193, 0.5);
  color: var(--ok);
  box-shadow: 0 0 16px rgba(109, 255, 193, 0.16);
}

.holo-title,
.page-hero h1,
section h2 {
  margin: 0 0 0.8rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.holo-title,
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  text-shadow: 0 0 24px rgba(77, 232, 255, 0.28), 1px 0 0 rgba(225, 77, 255, 0.28);
}

.lead {
  margin: 0 0 1.2rem;
  color: #c7d8ea;
  font-size: 1.02rem;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.1rem 0 1.4rem;
}

.beam-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.beam-btn {
  color: #041018;
  background: linear-gradient(90deg, var(--cyan), #9af4ff 55%, #d7a8ff);
  box-shadow: 0 0 26px rgba(77, 232, 255, 0.34);
}

.ghost-btn {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(8, 22, 48, 0.55);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric {
  position: relative;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.metric strong {
  display: block;
  color: var(--cyan);
  font-size: 1.25rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.float-stage {
  position: relative;
  min-height: 360px;
}

.float-layer {
  position: absolute;
  z-index: 2;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 16, 34, 0.82);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.float-layer.is-a { top: 4%; left: -4%; }
.float-layer.is-b { top: 18%; right: -2%; }
.float-layer.is-c { bottom: 10%; left: 6%; }

.proj-frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(77, 232, 255, 0.08), transparent 22%),
    rgba(6, 14, 30, 0.9);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(225, 77, 255, 0.12), 0 24px 50px rgba(0, 0, 0, 0.35);
}

.proj-frame::before,
.proj-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cyan);
  z-index: 3;
}

.proj-frame::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.proj-frame::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
}

.proj-frame img {
  width: 100%;
  aspect-ratio: 880 / 700;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.proj-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.95rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}

.scan-beam {
  position: absolute;
  inset: 0 auto 48px 0;
  width: 100%;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(77, 232, 255, 0.22), transparent);
  mix-blend-mode: screen;
  pointer-events: none;
}

section {
  position: relative;
  padding: 1.2rem 0 2.8rem;
}

.head {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.head p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
}

.flow-4,
.flow-3,
.flow-2 {
  display: grid;
  gap: 0.9rem;
}

.flow-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.entry,
.slab,
.prism,
.note,
.step,
.cue {
  position: relative;
  padding: 1.05rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
}

.entry:hover,
.cue:hover,
.slab:hover,
.prism:hover {
  border-color: rgba(77, 232, 255, 0.55);
  box-shadow: 0 0 24px rgba(77, 232, 255, 0.1);
}

.entry h3,
.slab h3,
.prism h3,
.note h3,
.step h3,
.cue .t {
  margin: 0.25rem 0 0.45rem;
  color: var(--text);
}

.entry p,
.slab p,
.prism p,
.note p,
.step p,
.cue .h {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.meta,
.idx {
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cues {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.cue .n {
  display: block;
  color: var(--magenta);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.cue.is-live {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(77, 232, 255, 0.35);
}

.checks {
  margin: 0;
  padding-left: 1.1rem;
  color: #c6d7ea;
}

.checks li + li {
  margin-top: 0.4rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(77, 232, 255, 0.12);
}

th {
  color: var(--cyan);
  font-weight: 650;
}

.cite {
  margin: 1rem 0 0;
  color: var(--muted);
}

.crumbs {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.crumbs a {
  color: var(--muted);
}

.faq details {
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.05rem;
  font-weight: 700;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--cyan);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0;
  padding: 0 1.05rem 1rem;
  color: var(--muted);
}

.site-foot {
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 16, 0.86);
  padding: 2.4rem 0 1.4rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  gap: 1.4rem;
}

.site-foot h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.site-foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-foot li + li {
  margin-top: 0.35rem;
}

.site-foot p {
  color: var(--muted);
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(77, 232, 255, 0.12);
  color: var(--muted);
  font-size: 0.82rem;
}

[data-rise] {
  opacity: 1;
  transform: none;
}

html.allow-motion [data-rise] {
  opacity: 0;
  transform: translateY(16px);
}

html.allow-motion [data-rise].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.allow-motion .scan-beam {
  animation: beam 4.8s linear infinite;
}

html.allow-motion .float-layer.is-a {
  animation: float-a 6s ease-in-out infinite;
}

html.allow-motion .float-layer.is-b {
  animation: float-b 7s ease-in-out infinite;
}

html.allow-motion .float-layer.is-c {
  animation: float-c 5.4s ease-in-out infinite;
}

html.allow-motion .holo-id::before {
  animation: pulse 1.8s ease-in-out infinite;
}

html.allow-motion .proj-frame img {
  animation: flicker 7.2s steps(2, end) infinite;
}

@keyframes beam {
  0% { transform: translateY(-30%); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(160%); opacity: 0; }
}

@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes float-c {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; filter: saturate(1.08) contrast(1.04); }
  94% { opacity: 0.92; filter: saturate(1.2) contrast(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  html.allow-motion [data-rise],
  html.allow-motion .scan-beam,
  html.allow-motion .float-layer,
  html.allow-motion .holo-id::before,
  html.allow-motion .proj-frame img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .scan-veil,
  .grid-floor {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .duo,
  .flow-4,
  .cues,
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-row,
  .flow-3 {
    grid-template-columns: 1fr;
  }

  .float-layer.is-a,
  .float-layer.is-b,
  .float-layer.is-c {
    position: static;
    display: inline-flex;
    margin: 0 0.4rem 0.6rem 0;
  }

  .float-stage {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .nav-switch {
    display: inline-flex;
    align-items: center;
  }

  .holo-nav {
    position: fixed;
    inset: 118px 1rem auto;
    display: none;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(6, 12, 24, 0.96);
  }

  .holo-nav.is-open {
    display: block;
  }

  .holo-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .holo-bar-inner,
  .legal,
  .head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .duo,
  .flow-4,
  .flow-2,
  .cues,
  .foot-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }
}
