@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

:root {
  --lime: #69ff69;
  --cyan: #00ffff;
  --pink: #ff69b4;
  --ink: #172617;
  --void: #08120b;
  --paper: #e6ffe9;
  --muted: #a9cbae;
  --line: rgba(105, 255, 105, .22);
  --edge: rgba(0, 255, 255, .34);
  --bar: 64px;
  --chrome: linear-gradient(160deg, #f7fff7 0%, #b9cdbd 30%, #eafaea 46%, #5f7a66 62%, #d9ecdc 80%, #8ea795 100%);
  --num: 'Orbitron', 'Exo 2', system-ui, sans-serif;
  --txt: 'Exo 2', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--void);
  color: var(--paper);
  font: 400 1rem/1.68 var(--txt);
  letter-spacing: .01em;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(0, 255, 255, .17) 1px, transparent 1px),
    radial-gradient(rgba(105, 255, 105, .12) 1px, transparent 1px),
    radial-gradient(760px 420px at 88% -8%, rgba(255, 105, 180, .22), transparent 70%),
    radial-gradient(680px 420px at 4% 8%, rgba(0, 255, 255, .18), transparent 70%);
  background-size: 24px 24px, 96px 96px, 100% 100%, 100% 100%;
  opacity: .85;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--cyan); }

.bar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px clamp(12px, 4vw, 26px);
  background: rgba(8, 18, 11, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: auto;
  border-radius: 50%;
  background: var(--chrome);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--edge), 0 0 18px rgba(0, 255, 255, .4);
}

.mark-img { width: 100%; height: 100%; object-fit: cover; }
.mark-glyph { font-size: 20px; line-height: 1; color: #0c1a0c; }

.bar-cta,
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  font-family: var(--num);
  font-size: .88rem;
  letter-spacing: .12em;
  color: var(--cyan);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(0, 255, 255, .12), rgba(0, 255, 255, .02));
  border: 1px solid var(--edge);
  border-radius: 999px;
  cursor: pointer;
}

.bar-cta:hover,
.burger:hover {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 20px rgba(105, 255, 105, .55);
}

.rail-bar {
  position: sticky;
  top: var(--bar);
  z-index: 50;
  background: rgba(8, 18, 11, .9);
  border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(8px);
}

.rail-bar ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 9px clamp(12px, 4vw, 26px);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.rail-bar ul::-webkit-scrollbar { display: none; }

.rail-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  font-family: var(--num);
  font-size: .82rem;
  letter-spacing: .08em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--lime);
  border: 1px solid rgba(105, 255, 105, .4);
  border-radius: 999px;
}

.rail-bar a:hover { background: rgba(105, 255, 105, .16); }

.rail-bar a.active {
  color: #07130a;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  border-color: transparent;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: calc(var(--bar) + 20px) 16px 24px;
  background:
    radial-gradient(480px 300px at 80% 12%, rgba(255, 105, 180, .28), transparent 70%),
    radial-gradient(520px 320px at 14% 82%, rgba(0, 255, 255, .24), transparent 70%),
    rgba(6, 14, 8, .975);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity .32s ease, transform .32s ease, visibility .32s;
  overflow-y: auto;
}

body.menu-open .sheet { opacity: 1; visibility: visible; transform: none; }

.sheet nav { width: min(560px, 100%); }

.sheet ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.sheet a {
  display: block;
  padding: 13px 18px;
  min-height: 48px;
  font-family: var(--num);
  font-size: clamp(1.05rem, 3.6vw, 1.5rem);
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid rgba(105, 255, 105, .18);
}

.sheet a:hover {
  color: var(--ink);
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  text-shadow: none;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 26px);
}

main article[id] { scroll-margin-top: calc(var(--bar) + 62px); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  min-height: 70vh;
  padding: clamp(22px, 5vw, 46px) 0 18px;
}

.hero-art {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3.3;
  border: 1px solid var(--edge);
  background:
    linear-gradient(135deg, rgba(105, 255, 105, .16), rgba(0, 255, 255, .1) 55%, rgba(255, 105, 180, .16)),
    #0b1a0e;
  box-shadow: 0 0 0 1px rgba(105, 255, 105, .18), 0 18px 60px rgba(0, 255, 255, .18);
  overflow: hidden;
}

.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bubble {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .08) 42%, transparent 62%),
    linear-gradient(140deg, rgba(0, 255, 255, .5), rgba(255, 105, 180, .5));
  box-shadow: 0 0 24px rgba(0, 255, 255, .5);
  animation: drift 7s ease-in-out infinite;
  mix-blend-mode: screen;
}

.b1 { width: 74px; height: 74px; top: 9%; left: 7%; }
.b2 { width: 42px; height: 42px; bottom: 14%; left: 34%; animation-delay: -2.4s; }
.b3 { width: 26px; height: 26px; top: 22%; right: 12%; animation-delay: -4.1s; }

.spark {
  position: absolute;
  right: 14%;
  bottom: 16%;
  width: 30px;
  height: 30px;
  background: var(--chrome);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, .9));
}

@keyframes drift {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-12px) }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}

.kicker {
  margin: 0;
  font-family: var(--num);
  font-size: .84rem;
  letter-spacing: .3em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, .8);
}

.hero h1 {
  margin: 0;
  font-family: var(--num);
  font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: .01em;
  color: #f2fff3;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(105, 255, 105, .55));
}

.lede {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1rem;
}

.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  font-family: var(--num);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .16em;
  text-decoration: none;
  color: #06140a;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lime), var(--cyan) 70%, #fff);
  box-shadow: 0 0 26px rgba(0, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .25);
  transition: transform .18s ease, box-shadow .18s ease;
}

.go:hover { transform: translateY(-3px); box-shadow: 0 0 34px rgba(105, 255, 105, .75); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
  padding: 14px 0 44px;
}

.doc { min-width: 0; }

.doc article {
  padding: 30px 0 26px;
  border-top: 1px dashed rgba(0, 255, 255, .26);
}

.doc article:first-child { border-top: 0; padding-top: 10px; }

.doc small,
.side small,
footer small {
  display: block;
  font-family: var(--num);
  font-size: .82rem;
  letter-spacing: .26em;
  color: var(--pink);
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 105, 180, .55);
}

.doc small::before { content: '✦ '; color: var(--cyan); }

.doc h2,
.doc h3 {
  font-family: var(--num);
  line-height: 1.28;
  color: #f4fff5;
  text-shadow: 0 0 16px rgba(105, 255, 105, .4);
}

.doc h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.95rem);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--lime), var(--cyan), rgba(255, 105, 180, 0)) 1;
}

.doc h3 { font-size: 1.1rem; margin: 24px 0 10px; }

.doc p { margin: 0 0 14px; }

.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.3em; }

.doc li { margin: 6px 0; }

.doc li::marker { color: var(--lime); }

.doc a { color: var(--cyan); text-decoration-color: rgba(0, 255, 255, .45); }

.doc a:hover { color: var(--lime); }

.doc img { max-width: 100%; height: auto; }

.doc blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--pink);
  background: linear-gradient(90deg, rgba(255, 105, 180, .14), transparent);
  color: #dcf6e0;
}

.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc th, .doc td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.doc th { font-family: var(--num); font-size: .82rem; letter-spacing: .1em; color: var(--lime); }

.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  padding: 2px 5px;
  background: rgba(0, 255, 255, .12);
  color: var(--cyan);
}

.side {
  position: sticky;
  top: calc(var(--bar) + 64px);
  padding: 16px 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  background: linear-gradient(180deg, rgba(0, 255, 255, .09), rgba(8, 18, 11, .4));
  box-shadow: 0 0 26px rgba(0, 255, 255, .12);
}

.side h2 {
  margin: 0 0 12px;
  font-family: var(--num);
  font-size: 1.15rem;
  letter-spacing: .1em;
  color: #f2fff3;
}

.toc { margin: 0; padding: 0; list-style: none; }

.toc a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 0;
  font-size: .93rem;
  color: #cfe9d3;
  text-decoration: none;
  border-bottom: 1px dashed rgba(105, 255, 105, .22);
}

.toc a:hover { color: var(--lime); padding-left: 5px; }

.side-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 16px;
  padding: 8px 14px;
  font-family: var(--num);
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--lime);
  text-decoration: none;
  border: 1px solid rgba(105, 255, 105, .5);
  border-radius: 999px;
}

.side-top:hover { color: var(--ink); background: var(--lime); }

footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr .9fr;
  gap: 26px;
  padding: 42px clamp(14px, 4vw, 26px) 26px;
  border-top: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(0, 255, 255, .06), rgba(8, 18, 11, .9));
}

footer .big {
  margin: 0;
  font-family: var(--num);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  word-break: break-word;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(0, 255, 255, .5));
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: .93rem;
  color: var(--cyan);
  text-decoration: none;
}

footer a:hover { color: var(--lime); }

.f-link { margin-right: 14px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}

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

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; }
  .hero-copy { order: -1; align-items: flex-start; text-align: left; }
  .hero-art { aspect-ratio: 16 / 9; }
  .split { grid-template-columns: 1fr; }
  .side { position: static; order: 2; }
  footer { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  html { font-size: 16px; }
  footer { grid-template-columns: 1fr; gap: 18px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .doc article { padding: 24px 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .bubble { animation: none; }
  .go, .sheet, .rail-bar a { transition: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
