/* ============================================================
   UniCore — AI × Onchain · Black / White soft glow
   No cover images · CSS 3D + canvas field
   ============================================================ */

:root {
  --bg: #000000;
  --bg-2: #050507;
  --fg: #ffffff;
  --fg-soft: rgba(255, 255, 255, 0.72);
  --fg-dim: rgba(255, 255, 255, 0.42);
  --fg-mute: rgba(255, 255, 255, 0.22);
  --line: rgba(255, 255, 255, 0.1);
  --line-hi: rgba(255, 255, 255, 0.28);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hi: rgba(255, 255, 255, 0.06);

  /* Soft white bloom — like the logo */
  --glow-text:
    0 0 8px rgba(255, 255, 255, 0.55),
    0 0 24px rgba(255, 255, 255, 0.28),
    0 0 48px rgba(255, 255, 255, 0.12);
  --glow-text-soft:
    0 0 6px rgba(255, 255, 255, 0.4),
    0 0 18px rgba(255, 255, 255, 0.18);
  --glow-box: 0 0 40px rgba(255, 255, 255, 0.08);
  --glow-core: 0 0 60px rgba(255, 255, 255, 0.35), 0 0 120px rgba(255, 255, 255, 0.12);

  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* ---------- 3D canvas field ---------- */

#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, transparent 0%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.85) 100%);
}

/* ---------- Soft glow text (logo-like) ---------- */

.glow {
  color: var(--fg);
  text-shadow: var(--glow-text);
}

.glow-soft {
  color: var(--fg);
  text-shadow: var(--glow-text-soft);
}

/* ---------- Shell / Nav ---------- */

.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 1.35rem 1.5rem;
  flex-wrap: wrap;
}

/* ---------- CA box ---------- */

.ca-box {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem 0.55rem 0.9rem;
  border: 1px solid var(--line-hi);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-radius: 2px;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.06);
  max-width: 100%;
}

.ca-box-hero {
  margin: 0 0 1.5rem;
}

.ca-value {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--fg);
  text-shadow: var(--glow-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(320px, 70vw);
  background: none;
  border: none;
}

.ca-value.is-coding {
  letter-spacing: 0.22em;
  animation: ca-pulse 2.4s ease-in-out infinite;
}

.ca-value.is-ready {
  cursor: pointer;
}

.ca-copy {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 2px;
  flex-shrink: 0;
  transition: box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.ca-copy:hover {
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.45);
}

.ca-copy.copied {
  opacity: 0.85;
}

.ca-copy.is-disabled {
  opacity: 0.55;
  cursor: default;
}

@keyframes ca-pulse {
  0%, 100% {
    opacity: 0.75;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
  }
  50% {
    opacity: 1;
    text-shadow: var(--glow-text-soft);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: filter 0.35s var(--ease);
}

.brand:hover {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
}

/* CSS wordmark — segmented outline feel */
.brand-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.35),
    inset 0 0 10px rgba(255, 255, 255, 0.12);
  position: relative;
}

.brand-mark::after {
  content: "U";
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: var(--glow-text-soft);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: var(--glow-text-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.35rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--fg);
  text-shadow: var(--glow-text-soft);
}

/* ---------- Main pages ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

/* ---------- HERO (3D core) ---------- */

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.hero-copy {
  animation: rise 1s var(--ease) both;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: var(--glow-text);
  margin-bottom: 1rem;
}

.hero-title .thin {
  font-weight: 400;
  opacity: 0.92;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-shadow: var(--glow-text-soft);
  margin-bottom: 1.35rem;
}

.intro {
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  color: var(--fg-dim);
  max-width: 28rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Volumetric 3D sphere (canvas orb) */
.hero-stage {
  position: relative;
  height: min(480px, 78vw);
  animation: rise 1.1s 0.1s var(--ease) both;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.orb-wrap {
  position: relative;
  width: min(420px, 86vw);
  height: min(420px, 86vw);
  display: grid;
  place-items: center;
}

.orb-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 48%,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 38%,
    transparent 68%
  );
  filter: blur(6px);
  pointer-events: none;
  animation: pulse-core 5s ease-in-out infinite;
}

#orb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.18));
}

.stage-caption {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-mute);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: 2px;
  border: 1px solid var(--line-hi);
  transition:
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    color 0.3s var(--ease);
  min-width: 9rem;
}

.btn-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 0 42px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
}

.btn-ghost:hover {
  background: var(--glass-hi);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: var(--glow-box);
}

.btn-sm {
  min-width: auto;
  padding: 0.65rem 1.2rem;
  font-size: 0.62rem;
}

/* ---------- Modules / AI grid ---------- */

.section {
  padding: 4rem 0 2rem;
  animation: rise 0.9s 0.15s var(--ease) both;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: var(--glow-text-soft);
}

.module-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.module-card {
  position: relative;
  width: 100%;
  min-height: 140px;
  padding: 1.4rem 1rem;
  text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--glass-hi), transparent 55%);
  border-radius: 4px;
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease),
    background 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.55), transparent 65%);
  opacity: 0.7;
  transition: opacity 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.module-card:hover {
  border-color: var(--line-hi);
  box-shadow: var(--glow-box);
  transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 60%);
}

.module-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
}

.module-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: var(--glow-text-soft);
}

.module-meta {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

a.module-card {
  color: inherit;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.footer strong {
  font-weight: 500;
  color: var(--fg-dim);
  text-shadow: var(--glow-text-soft);
}

/* ---------- Subpages ---------- */

.sub-hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  animation: rise 0.9s var(--ease) both;
}

.sub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: var(--glow-text);
  margin-bottom: 1rem;
}

.sub-hero p {
  color: var(--fg-dim);
  max-width: 32rem;
  margin: 0 auto;
}

.sub-hero .lead {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-shadow: var(--glow-text-soft);
  margin-bottom: 0.85rem;
}

.sub-hero .status {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: var(--glow-text-soft);
}

.panel {
  max-width: 560px;
  margin: 0 auto 2rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 4px;
  text-align: center;
  animation: rise 0.9s 0.08s var(--ease) both;
}

.panel p {
  color: var(--fg-dim);
  font-size: 0.95rem;
}

/* ---------- Roadmap 3D cards ---------- */

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  perspective: 1200px;
  animation: rise 0.9s 0.1s var(--ease) both;
}

.phase {
  position: relative;
  padding: 1.85rem 1.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), transparent 50%),
    var(--bg-2);
  border-radius: 4px;
  transform: rotateX(4deg);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  min-height: 240px;
}

.phase:hover {
  transform: rotateX(0deg) translateY(-4px);
  border-color: var(--line-hi);
  box-shadow: var(--glow-box);
}

.phase-num {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--fg-mute);
  margin-bottom: 0.85rem;
}

.phase-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: var(--glow-text-soft);
  margin-bottom: 1.35rem;
}

.phase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.phase-list li {
  font-size: 0.9rem;
  color: var(--fg-dim);
  padding-left: 1.1rem;
  position: relative;
}

.phase-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--fg-mute);
  font-size: 0.75rem;
}

.center-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ---------- App countdown ---------- */

.app-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
  padding-top: 1rem;
}

.app-shell {
  width: min(520px, 100%);
  text-align: center;
  padding: 2.75rem 1.75rem 2.25rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 45%), rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  box-shadow: var(--glow-box);
  backdrop-filter: blur(8px);
  animation: rise 0.9s var(--ease) both;
  position: relative;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.app-kicker {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 0.85rem;
  position: relative;
}

.app-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-shadow: var(--glow-text);
  margin-bottom: 0.5rem;
  position: relative;
}

.app-status {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1.75rem;
  position: relative;
}

.countdown {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 14vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: var(--glow-text);
  font-variant-numeric: tabular-nums;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.08em;
  position: relative;
}

.cd-sep {
  opacity: 0.45;
  animation: blink 1s steps(1) infinite;
}

.countdown-label {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-mute);
  position: relative;
}

.app-done {
  position: relative;
  margin-top: 0.5rem;
  animation: rise 0.8s var(--ease) both;
}

.app-done[hidden] {
  display: none;
}

.app-done-core {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, rgba(255, 255, 255, 0.2) 40%, transparent 70%);
  box-shadow: var(--glow-core);
  animation: pulse-core 3s ease-in-out infinite;
}

.app-done-msg {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: var(--glow-text);
  line-height: 1.7;
}

.countdown-wrap.is-hidden {
  display: none;
}

.app-back {
  margin-top: 1.75rem;
  position: relative;
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  animation: fade 0.25s var(--ease) both;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  text-align: center;
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--line-hi);
  background: #050505;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  animation: rise 0.35s var(--ease) both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.modal-kicker {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: var(--glow-text-soft);
  margin-bottom: 0.6rem;
}

/* ---------- Animations ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-core {
  0%, 100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes blink {
  0%, 49% { opacity: 0.5; }
  50%, 100% { opacity: 0.12; }
}

/* ---------- Responsive ---------- */

/* ---------- Docs landing ---------- */

.docs-page {
  max-width: 1180px;
  padding-top: 1.5rem;
}

.docs-hero {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
  animation: rise 0.9s var(--ease) both;
}

.docs-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: var(--glow-text);
  margin: 0.85rem 0 1rem;
}

.docs-lead {
  color: var(--fg-dim);
  font-size: 1.02rem;
  line-height: 1.75;
}

.docs-lead strong {
  color: var(--fg-soft);
  font-weight: 500;
}

.docs-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.docs-badge {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  background: var(--glass);
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  animation: rise 0.9s 0.08s var(--ease) both;
}

.docs-side {
  position: sticky;
  top: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  padding: 1.1rem 0.85rem;
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
}

.docs-side-label {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 0.85rem;
  padding: 0 0.4rem;
}

.docs-toc {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.docs-toc a {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  padding: 0.4rem 0.45rem;
  border-radius: 2px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), text-shadow 0.2s var(--ease);
  line-height: 1.35;
}

.docs-toc a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
  text-shadow: var(--glow-text-soft);
}

.docs-body {
  min-width: 0;
}

.docs-section {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 45%);
  border-radius: 4px;
  padding: 1.75rem 1.6rem 1.85rem;
  margin-bottom: 1rem;
  scroll-margin-top: 1.25rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.docs-section:hover {
  border-color: var(--line-hi);
  box-shadow: var(--glow-box);
}

.docs-kicker {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--fg-mute);
  margin-bottom: 0.5rem;
}

.docs-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: var(--glow-text-soft);
  margin-bottom: 1rem;
}

.docs-section h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 1.25rem 0 0.55rem;
}

.docs-section p {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.docs-section p:last-child {
  margin-bottom: 0;
}

.docs-section a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.docs-section a:hover {
  text-shadow: var(--glow-text-soft);
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.docs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.5rem 0 1rem;
}

.docs-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--fg-dim);
  font-size: 0.94rem;
  line-height: 1.6;
}

.docs-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--fg-mute);
  font-size: 0.75rem;
}

.docs-list strong {
  color: var(--fg-soft);
  font-weight: 500;
}

.docs-callout {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-hi);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.02);
}

.docs-callout-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 0.4rem;
}

.docs-callout p {
  margin: 0;
  color: var(--fg-soft);
}

.docs-note {
  font-size: 0.85rem !important;
  color: var(--fg-mute) !important;
  margin-top: 0.75rem;
}

.docs-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

.docs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.docs-card {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  padding: 1.1rem 1rem;
}

.docs-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
}

.docs-card p {
  margin: 0;
  font-size: 0.88rem;
}

.docs-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0;
}

.docs-stack-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
}

.docs-stack-row span:first-child {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  text-shadow: var(--glow-text-soft);
}

.docs-stack-row span:last-child {
  color: var(--fg-dim);
}

.docs-code {
  margin: 1rem 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #050505;
  color: var(--fg-soft);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.02);
}

.docs-faq details {
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.85rem 1rem;
}

.docs-faq summary {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--fg-soft);
  list-style: none;
}

.docs-faq summary::-webkit-details-marker {
  display: none;
}

.docs-faq summary::before {
  content: "+ ";
  color: var(--fg-mute);
}

.docs-faq details[open] summary::before {
  content: "− ";
}

.docs-faq details p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.docs-dl {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.docs-dl dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: var(--glow-text-soft);
}

.docs-dl dd {
  color: var(--fg-dim);
  font-size: 0.92rem;
  margin: 0.25rem 0 0;
  padding-left: 0;
  line-height: 1.6;
}

.docs-end {
  text-align: center;
  padding: 2rem 0 1rem;
}

.docs-end > p {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 1.25rem;
}

@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-side {
    position: relative;
    top: 0;
    max-height: none;
  }

  .docs-toc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem 0.5rem;
  }

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

  .docs-stack-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 560px) {
  .docs-toc {
    grid-template-columns: 1fr;
  }

  .docs-section {
    padding: 1.35rem 1.1rem;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-stage {
    order: 0;
    height: auto;
    min-height: min(340px, 88vw);
  }

  .orb-wrap {
    width: min(340px, 88vw);
    height: min(340px, 88vw);
  }

  .intro {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }

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

  .roadmap {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .phase {
    transform: none;
  }
}

@media (max-width: 960px) {
  .ca-box-hero {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .ca-box {
    width: 100%;
    justify-content: space-between;
  }

  .ca-value {
    max-width: none;
  }

  .nav {
    flex-direction: column;
    gap: 0.85rem;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb-glow,
  .cd-sep {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
