:root {
  --accent: #9af7ff;
  --accent-2: #c7a6ff;
  --accent-3: #e7c48a;
  --ink: #f7f4ee;
  --muted: #a39cb4;
  --faint: #6f6a80;
  --bg: #07060b;
  --line: rgba(247, 244, 238, 0.1);
  --hot: #e23b55;
  --hot-hover: #ff5d73;
  --fps: #78ff50;
  --lat: #8cd7ff;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, monospace;
  --pad: clamp(22px, 6vw, 88px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 78% 0%, rgba(154, 247, 255, 0.07), transparent 58%),
    radial-gradient(640px 360px at 0% 12%, rgba(226, 59, 85, 0.1), transparent 55%),
    #05040a;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 0;
}

::selection { background: var(--accent-3); color: #16130c; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--accent);
}

.veil, .spine, .top, main, .foot { position: relative; z-index: 1; }

.spine {
  position: fixed;
  z-index: 4;
  left: 28px;
  bottom: 36px;
  margin: 0;
  writing-mode: vertical-rl;
  letter-spacing: 0.46em;
  font-size: 11px;
  color: var(--accent-3);
  opacity: 0.72;
}

.top {
  position: sticky;
  top: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 58px;
  margin: 14px var(--pad) 0 calc(var(--pad) + 8px);
  padding: 0 8px 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(247, 244, 238, 0.1);
  background: rgba(12, 11, 16, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.top.scrolled {
  background: rgba(7, 6, 11, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 14px; }

.word,
h1,
.login-mark,
.window-name {
  font-family: Bahnschrift, "Segoe UI", sans-serif;
}

.word {
  letter-spacing: 0.42em;
  font-weight: 600;
  font-size: 13px;
}

.diamond {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  transform: rotate(45deg);
  background: linear-gradient(145deg, var(--accent), var(--accent-2) 62%, var(--accent-3));
  box-shadow: 0 0 22px rgba(154, 247, 255, 0.28);
}

.diamond.sm { width: 11px; height: 11px; border-radius: 3px; box-shadow: none; }
.diamond.lg { width: 22px; height: 22px; border-radius: 6px; }

.nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.nav a::after { content: none; }

.nav a:hover,
.nav a.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.nav a.active { box-shadow: inset 0 0 0 1px rgba(231, 196, 138, 0.35); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  letter-spacing: 0.18em;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(380px, 1.18fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  margin: 18px var(--pad) 0 calc(var(--pad) + 8px);
  padding: 28px 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(247, 244, 238, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 32%),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(560px, 46vw);
  height: 420px;
  right: 6vw;
  top: 12px;
  background: radial-gradient(circle, rgba(154, 247, 255, 0.1), rgba(199, 166, 255, 0.05) 42%, transparent 70%);
  pointer-events: none;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  color: var(--accent-3);
  letter-spacing: 0.34em;
  font-size: 11px;
  font-weight: 600;
}

.kicker i {
  display: block;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-3));
}

.kicker i:last-child {
  background: linear-gradient(90deg, var(--accent-2), transparent);
}

.kicker span { white-space: nowrap; }

.sigil {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 0 18px;
}

.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(154, 247, 255, 0.28);
  animation: spin 22s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 28px 42px 0 var(--accent-3);
}

.sigil .diamond {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -11px 0 0 -11px;
}

h1 {
  margin: 0;
  font-size: clamp(68px, 7.2vw, 104px);
  line-height: 0.86;
  letter-spacing: 0.16em;
  font-weight: 600;
  animation: orinSlide 1.7s cubic-bezier(0.22, 1, 0.36, 1) 2.2s both;
}

@keyframes orinSlide {
  from {
    opacity: 0;
    transform: translateX(24vw);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

h1 span { display: inline-block; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(247, 244, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 238, 0.04) 1px, transparent 1px),
    #05040a;
  background-size: 64px 64px, 64px 64px, auto;
  animation:
    introOut 1.7s cubic-bezier(0.22, 1, 0.36, 1) 2.2s forwards,
    introPass 0s linear 2.2s forwards;
}

@keyframes introPass {
  to { pointer-events: none; }
}

.intro::before {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  left: 15vw;
  top: 8vh;
  background: conic-gradient(from 90deg, #9af7ff, #c7a6ff, #e23b55, #e7c48a, #9af7ff);
  filter: blur(90px);
  opacity: 0.38;
  animation: spin 9s linear infinite;
}

.intro-frame {
  position: relative;
  z-index: 1;
  width: min(860px, 88vw);
  min-height: min(420px, 70vh);
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 72px 48px 64px;
  animation: frameAway 1.7s cubic-bezier(0.22, 1, 0.36, 1) 2.2s forwards;
}

.intro-edge {
  position: absolute;
  z-index: 2;
  background: linear-gradient(90deg, #9af7ff, #c7a6ff, #e7c48a);
  box-shadow: 0 0 14px rgba(154, 247, 255, 0.85);
}

.intro-edge.l,
.intro-edge.r { background: linear-gradient(#9af7ff, #c7a6ff, #e7c48a); }

.intro-edge.t,
.intro-edge.b {
  left: 0;
  right: 0;
  height: 1px;
  transform: scaleX(0);
}

.intro-edge.l,
.intro-edge.r {
  top: 0;
  bottom: 0;
  width: 1px;
  transform: scaleY(0);
}

.intro-edge.t { top: 0; transform-origin: left; animation: ruleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards; }
.intro-edge.r { right: 0; transform-origin: top; animation: ruleY 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards; }
.intro-edge.b { bottom: 0; transform-origin: right; animation: ruleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; }
.intro-edge.l { left: 0; transform-origin: bottom; animation: ruleY 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.58s forwards; }

.intro-frame .tick { opacity: 0; animation: pageIn 0.4s ease 0.85s forwards; }

.intro-side {
  position: absolute;
  left: 22px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  letter-spacing: 0.46em;
  font-size: 11px;
  color: var(--accent-3);
  opacity: 0;
  animation: pageIn 0.6s ease 0.9s forwards;
}

.intro-kicker {
  margin: 0 0 14px;
  color: var(--accent-3);
  letter-spacing: 0.46em;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  animation: pageIn 0.7s ease 0.7s forwards;
}

.intro-word {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-size: clamp(84px, 13vw, 156px);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 0.9;
}

.intro-word::after {
  content: "";
  position: absolute;
  inset: -10% -20%;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%);
  mix-blend-mode: screen;
  transform: translateX(-130%);
  animation: shine 0.55s ease 1.55s forwards;
  pointer-events: none;
}

.intro-word span {
  display: inline-block;
  opacity: 0;
  background: linear-gradient(180deg, #ffffff 0%, #9af7ff 40%, #c7a6ff 72%, #e7c48a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: orinPop 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-word span:nth-child(1) { --dx: -16px; animation-delay: 0.72s; }
.intro-word span:nth-child(2) { --dx: -6px; animation-delay: 0.84s; }
.intro-word span:nth-child(3) { --dx: 6px; animation-delay: 0.96s; }
.intro-word span:nth-child(4) { --dx: 16px; animation-delay: 1.08s; }

.intro-sub {
  margin: 18px 0 0;
  color: var(--muted);
  letter-spacing: 0.34em;
  font-size: 12px;
  opacity: 0;
  animation: pageIn 0.7s ease 1.35s forwards;
}

.intro-meta {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  color: var(--faint);
  letter-spacing: 0.22em;
  font-size: 11px;
  font-family: var(--mono);
  opacity: 0;
  animation: pageIn 0.7s ease 1.5s forwards;
}

.intro-meta i {
  width: 28px;
  height: 1px;
  background: rgba(231, 196, 138, 0.7);
}

.top,
main,
.spine,
.foot {
  opacity: 0;
  animation: reveal 1.7s cubic-bezier(0.22, 1, 0.36, 1) 2.35s both;
}

body { overflow: hidden; animation: releaseScroll 0s linear 4s forwards; }

@keyframes introOut {
  to { opacity: 0; }
}

@keyframes frameAway {
  to { transform: translateY(-32px) scale(1.035); filter: blur(8px); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes ringIn {
  0% { opacity: 0; transform: scale(0.86); }
  100% { opacity: 1; transform: none; }
}

@keyframes ruleIn {
  to { transform: scaleX(1); }
}

@keyframes ruleY {
  to { transform: scaleY(1); }
}

@keyframes pageIn {
  to { opacity: 1; }
}

@keyframes releaseScroll {
  to { overflow: auto; }
}

.intro-flash,
.sparks,
.orbit-a,
.orbit-b { position: absolute; pointer-events: none; }

.intro-flash {
  inset: -20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(154, 247, 255, 0.25) 28%, transparent 62%);
  opacity: 0;
  animation: burst 0.7s ease 1.35s;
}

.sparks {
  z-index: 1;
  left: 50%;
  top: 48%;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  animation: spin 5.5s linear infinite;
  background:
    radial-gradient(circle at 50% 0, #fff 0 3px, transparent 4px),
    radial-gradient(circle at 100% 42%, #9af7ff 0 3px, transparent 4px),
    radial-gradient(circle at 8% 70%, #e7c48a 0 3px, transparent 4px),
    radial-gradient(circle at 78% 96%, #c7a6ff 0 3px, transparent 4px),
    radial-gradient(circle at 18% 18%, #ff5d73 0 2px, transparent 3px);
  filter: drop-shadow(0 0 8px #9af7ff);
}

.orbit-a,
.orbit-b {
  left: 50%;
  top: 48%;
  border-radius: 50%;
  opacity: 0;
  animation: pageIn 0.4s ease 0.25s forwards;
}

.orbit-a { width: 250px; height: 250px; margin: -125px 0 0 -125px; }
.orbit-b { width: 390px; height: 390px; margin: -195px 0 0 -195px; }

.orbit-a i,
.orbit-b i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(154, 247, 255, 0.55);
  animation: spin 8s linear infinite;
}

.orbit-b i {
  border-style: solid;
  border-color: rgba(231, 196, 138, 0.45);
  animation-duration: 12s;
  animation-direction: reverse;
}

@keyframes orinPop {
  0% {
    opacity: 0;
    transform: translate3d(var(--dx), -70px, 0) scale(1.7) rotate(-8deg);
    filter: blur(14px);
  }
  55% {
    opacity: 1;
    transform: translate3d(0, 6px, 0) scale(0.94) rotate(0deg);
    filter: drop-shadow(0 0 16px #9af7ff);
  }
  78% { transform: scale(1.06); filter: drop-shadow(0 0 22px #c7a6ff); }
  100% {
    opacity: 1;
    transform: none;
    filter: drop-shadow(0 0 10px rgba(154, 247, 255, 0.8));
  }
}

@keyframes shine {
  to { transform: translateX(130%); }
}

@keyframes burst {
  0% { opacity: 0; transform: scale(0.6); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tagline {
  margin: 18px 0 0;
  color: var(--muted);
  letter-spacing: 0.28em;
  font-size: 13px;
}

.lead {
  max-width: 38em;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.btn-hot { background: var(--hot); color: white; }
.btn-hot:hover { background: var(--hot-hover); }

.btn-line {
  min-width: 0;
  height: auto;
  padding: 0 0 4px;
  border-radius: 0;
  border-bottom: 1px solid rgba(231, 196, 138, 0.7);
  color: var(--accent-3);
  letter-spacing: 0.18em;
}

.btn-line:hover { color: var(--ink); border-color: var(--ink); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 36px;
  margin: 48px 0 0;
}

.facts div { padding-top: 14px; border-top: 1px solid var(--line); }
.facts dt {
  margin: 0;
  color: var(--faint);
  letter-spacing: 0.22em;
  font-size: 11px;
}
.facts dd {
  margin: 6px 0 0;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.window {
  position: relative;
  margin: 4px 0 0;
  padding: 18px 14px 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
    #0c0b11;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.window::before,
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--rim, 0deg),
    rgba(154, 247, 255, 0.05),
    rgba(154, 247, 255, 0.95) 28%,
    rgba(199, 166, 255, 0.9) 48%,
    rgba(231, 196, 138, 0.85) 68%,
    rgba(154, 247, 255, 0.05) 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rim 9s linear infinite;
  pointer-events: none;
}

@property --rim {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.tick {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
}
.tick::before,
.tick::after {
  content: "";
  position: absolute;
  background: var(--accent-3);
}
.tick::before { width: 14px; height: 1px; top: 0; left: 0; }
.tick::after { width: 1px; height: 14px; top: 0; left: 0; }
.tl { top: 16px; left: 16px; }
.tr { top: 16px; right: 16px; transform: scaleX(-1); }
.bl { bottom: 16px; left: 16px; transform: scaleY(-1); }
.br { right: 16px; bottom: 16px; transform: scale(-1); }

.window-bar,
.window-body { position: relative; z-index: 1; }

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 0 16px 16px;
}

.window-name {
  letter-spacing: 0.36em;
  font-weight: 600;
  font-size: 13px;
}

.window-sub {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #7dffb2;
  box-shadow: 0 0 12px #7dffb2;
}

.clock {
  flex: none;
  color: var(--accent-3);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.window-body {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  min-height: 340px;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.rail-item {
  display: grid;
  place-items: center;
  height: 52px;
  border-radius: 16px;
  background: #14151c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.rail-item.on {
  border: 0;
  color: #12131a;
  background: linear-gradient(165deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(154, 247, 255, 0.16);
}

.meters {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 10px 8px 6px;
  border-top: 1px solid rgba(247, 244, 238, 0.08);
  font-family: var(--mono);
}

.meters b {
  display: grid;
  gap: 1px;
  padding: 7px 8px 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--fps);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.14em;
}

.meters i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--faint);
}

.meters .lat { color: var(--lat); }

.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panes article {
  display: flex;
  flex-direction: column;
  padding: 16px 14px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panes header {
  margin-bottom: 14px;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
}

.panes p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.panes p span { color: var(--faint); font-family: var(--sans); }

.pair { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }

.pair span {
  flex: 1;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #121318;
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.pair .hot {
  background: linear-gradient(180deg, #ff5d73, var(--hot));
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 16px rgba(226, 59, 85, 0.28);
}

.block {
  padding: 84px var(--pad) 12px calc(var(--pad) + 8px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(240px, 0.7fr);
  gap: 28px 64px;
  align-items: end;
  max-width: 1080px;
  margin-bottom: 48px;
}

.section-head .kicker { margin-bottom: 16px; }
.section-head .kicker i { display: none; }

.section-head h2,
.enter-side h2,
.login-card h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-head h2::after,
.enter-side h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--accent-3), transparent);
}

.section-head > p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 36em;
}

.index,
.sequence {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 920px;
}

.index li,
.sequence li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 22px 16px;
  border-top: 1px solid var(--line);
  border-radius: 16px;
  transition: background 0.25s var(--ease);
}

.index li:hover,
.sequence li:hover { background: rgba(255, 255, 255, 0.03); }

.index li:last-child,
.sequence li:last-child { border-bottom: 1px solid var(--line); }

.index span,
.sequence span,
.engine-no {
  font-family: var(--mono);
  color: var(--accent-3);
  letter-spacing: 0.14em;
  font-size: 13px;
}

.index h3,
.sequence h3,
.split h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.index p,
.sequence p,
.split p,
.ledger dd,
.sheet p,
.login-card p,
.steps span { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1080px;
  border-top: 1px solid var(--line);
}

.split article { padding: 32px 36px 8px 0; }
.split article + article {
  padding-left: 36px;
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.split ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.split li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
}

.ledger {
  max-width: 1080px;
  margin: 28px 0 0;
}

.ledger div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.ledger div:last-child { border-bottom: 1px solid var(--line); }

.ledger dt {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 72px;
  max-width: 1080px;
}

.sheet section { padding-top: 8px; }

.sheet h3 {
  margin: 0;
  padding-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--accent);
}

.row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.row span {
  color: var(--accent-3);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.note {
  max-width: 1080px;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(231, 196, 138, 0.45);
  color: var(--accent-3);
  letter-spacing: 0.04em;
}

.enter {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(300px, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 80px;
}

.login-card {
  position: relative;
  padding: 42px 36px 32px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    rgba(8, 7, 12, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.28);
}

.login-card .kicker { justify-content: center; }
.login-card .sigil { margin: 8px auto 12px; }
.login-mark {
  margin: 0;
  text-align: center;
  letter-spacing: 0.48em;
  font-size: 34px;
  font-weight: 600;
}
.login-card h2 {
  margin-top: 10px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.42em;
  font-weight: 500;
}
.login-card > p:last-of-type {
  margin-top: 16px;
  text-align: center;
}
.login-card ol {
  margin: 22px 0 0;
  padding-left: 1.2em;
}
.login-card li { margin: 8px 0; color: var(--ink); }

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps b { font-weight: 600; letter-spacing: 0.12em; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 72px;
  padding: 28px var(--pad) 48px calc(var(--pad) + 8px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  letter-spacing: 0.22em;
  font-size: 13px;
}

.foot p { margin: 0; max-width: 460px; font-size: 13px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rim { to { --rim: 360deg; } }

@media (max-width: 980px) {
  .spine { display: none; }

  .hero,
  .section-head,
  .split,
  .sheet,
  .enter,
  .ledger div,
  .window-body,
  .panes { grid-template-columns: 1fr; }

  .hero { min-height: 0; margin-top: 12px; padding: 22px 16px 18px; }
  .split article + article {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .window-sub,
  .login-card .kicker i { display: none; }
  .rail { flex-direction: row; flex-wrap: wrap; }
  .rail-item { flex: 1 1 42%; height: 42px; }
  .meters { width: 100%; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .index li,
  .sequence li,
  .steps li { grid-template-columns: 52px 1fr; }

  .row { grid-template-columns: 1fr; gap: 4px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 18px;
    background: rgba(12, 11, 16, 0.96);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  }

  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a::after { display: none; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  h1 { letter-spacing: 0.12em; }
  .facts { grid-template-columns: 1fr; }
  .login-mark { letter-spacing: 0.28em; }
  .intro-side { display: none; }
  .intro-frame { padding: 56px 22px 52px; }
  .intro-meta { left: 18px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit, .window::before, .login-card::before, .intro, .intro::before, .intro *,
  .top, main, .spine, .foot, body, h1 { animation: none; }
  .intro { display: none; }
  .intro-word span, .top, main, .spine, .foot { opacity: 1; transform: none; filter: none; }
  body { overflow: auto; }
  .live { box-shadow: none; }
}
