/* AI Elevate — premium access / legal page shell
   Cobalt + lime · offline system fonts · no remote CDN */

:root {
  --ap-bg: #03050c;
  --ap-bg-mid: #070b16;
  --ap-ink: #070a12;
  --ap-paper: #eef3ff;
  --ap-muted: #8b98b3;
  --ap-muted-2: #5f6d88;
  --ap-line: rgba(120, 160, 255, 0.14);
  --ap-line-strong: rgba(120, 160, 255, 0.28);
  --ap-surface: rgba(12, 20, 38, 0.72);
  --ap-surface-solid: #0c1426;
  --ap-cobalt: #1f5bff;
  --ap-cobalt-bright: #4d82ff;
  --ap-lime: #d4ff1a;
  --ap-lime-strong: #c2f000;
  --ap-orange: #ff7a1a;
  --ap-warn: #c4923a;
  --ap-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --ap-sans: "Segoe UI Variable Text", "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
  --ap-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ap-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ap-shadow: 0 30px 80px rgba(1, 6, 22, 0.65);
  --ap-radius: 28px;
  --ap-radius-sm: 16px;
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--ap-sans);
  color: var(--ap-paper);
  background: var(--ap-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Atmospheric field */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 55% at 12% -8%, rgba(31, 91, 255, 0.34), transparent 55%),
    radial-gradient(ellipse 60% 45% at 92% 8%, rgba(212, 255, 26, 0.09), transparent 48%),
    radial-gradient(ellipse 50% 40% at 70% 100%, rgba(255, 122, 26, 0.06), transparent 50%),
    linear-gradient(165deg, #03050c 0%, #070b16 48%, #050914 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}

.noscript {
  padding: 14px 18px;
  background: #3a1d12;
  color: #fff;
  font-weight: 700;
}

/* Aurora orbs */
.aurora {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(8px);
  animation: drift 18s var(--ap-ease) infinite alternate;
}
.aurora-a {
  width: 520px;
  height: 520px;
  left: -120px;
  top: 8%;
  background: radial-gradient(circle, rgba(31, 91, 255, 0.28), transparent 68%);
}
.aurora-b {
  width: 420px;
  height: 420px;
  right: -80px;
  top: 28%;
  background: radial-gradient(circle, rgba(212, 255, 26, 0.1), transparent 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}
.aurora-c {
  width: 380px;
  height: 380px;
  left: 35%;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.08), transparent 70%);
  animation-delay: -11s;
  animation-duration: 26s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, -36px, 0) scale(1.08); }
}

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

@keyframes pulse-soft {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.rise {
  animation: rise 0.9s var(--ap-ease) both;
}
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.22s; }
.rise-4 { animation-delay: 0.34s; }

/* Top chrome */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(3, 5, 12, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ap-ease), background 0.3s;
}
.top.is-scrolled {
  border-bottom-color: var(--ap-line);
  background: rgba(3, 5, 12, 0.88);
}
.top-in {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(210px, 48vw);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 255, 26, 0.38);
  background:
    linear-gradient(145deg, rgba(31, 91, 255, 0.35), transparent 55%),
    linear-gradient(145deg, #15284a, #070d1c);
  box-shadow: 0 0 28px rgba(212, 255, 26, 0.16);
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-mark svg { width: 18px; height: 18px; display: block; }
.brand-copy strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.brand-copy small {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ap-muted);
  font-weight: 700;
}

.toplinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.84rem;
}
.toplinks a {
  color: var(--ap-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.toplinks a:hover,
.toplinks a.on { color: var(--ap-lime); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  color: inherit;
  border: 0;
  cursor: pointer;
  transition: transform 0.22s var(--ap-ease), box-shadow 0.22s, background 0.22s, border-color 0.22s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform 0.22s var(--ap-ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lime {
  background: var(--ap-lime);
  color: var(--ap-ink);
  box-shadow: 0 16px 42px rgba(212, 255, 26, 0.28);
}
.btn-lime:hover { background: var(--ap-lime-strong); }
.btn-ghost {
  border: 1px solid var(--ap-line-strong);
  background: rgba(31, 91, 255, 0.08);
  color: var(--ap-paper);
}
.btn-ghost:hover {
  border-color: rgba(120, 160, 255, 0.45);
  background: rgba(31, 91, 255, 0.16);
}
.btn-cobalt {
  border: 1px solid rgba(77, 130, 255, 0.55);
  background: linear-gradient(180deg, rgba(61, 116, 255, 0.28), rgba(31, 91, 255, 0.14));
  color: var(--ap-paper);
  box-shadow: 0 14px 36px rgba(31, 91, 255, 0.22);
}

/* Shared typography helpers */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ap-lime);
}
.kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ap-lime);
  box-shadow: 0 0 14px var(--ap-lime);
  animation: pulse-soft 2.8s ease-in-out infinite;
}

.display {
  margin: 0;
  font-family: var(--ap-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}
.display .accent { color: var(--ap-lime); font-style: italic; }

.lede {
  margin: 0;
  color: var(--ap-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  line-height: 1.55;
}

.foot {
  margin-top: 48px;
  padding: 22px 0 8px;
  border-top: 1px solid var(--ap-line);
  color: var(--ap-muted);
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
}
.foot a {
  color: var(--ap-muted);
  text-decoration: none;
  margin-right: 14px;
  font-weight: 600;
}
.foot a:hover { color: var(--ap-lime); }

/* ========== THANK YOU — premium glass orbit ========== */
.page-welcome {
  background: #02040a;
}
.page-welcome::before {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(31, 91, 255, 0.32), transparent 60%),
    radial-gradient(ellipse 40% 34% at 50% 36%, rgba(212, 255, 26, 0.08), transparent 55%),
    radial-gradient(ellipse 48% 36% at 50% 100%, rgba(255, 122, 26, 0.06), transparent 55%),
    linear-gradient(180deg, #02040a 0%, #050914 48%, #03050c 100%);
}

.welcome-bar {
  position: relative;
  z-index: 20;
}
.welcome-bar-in {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-compact .brand-logo {
  height: 36px;
  max-width: min(180px, 52vw);
}
.brand-compact .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.brand-compact .brand-mark svg { width: 15px; height: 15px; }
.brand-compact strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-orbit {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 28px 0 56px;
  overflow: hidden;
}
.hero-orbit-copy {
  position: relative;
  z-index: 3;
  width: min(820px, calc(100% - 40px));
  text-align: center;
  padding-top: 8px;
}

.hero-center-title {
  margin: 0 auto 14px;
  max-width: 14ch;
  font-family: var(--ap-display);
  font-size: clamp(2.4rem, 5.8vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--ap-paper);
  text-wrap: balance;
}
.pill-accent {
  display: inline-flex;
  align-items: center;
  margin: 0.12em 0.06em;
  padding: 0.12em 0.48em 0.18em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ap-cobalt-bright), var(--ap-cobalt));
  color: #fff;
  font-style: italic;
  font-weight: 500;
  box-shadow:
    0 14px 36px rgba(31, 91, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}
.hero-center-lede {
  margin: 0 auto;
  max-width: 40ch;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.55;
  color: var(--ap-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-center-cta {
  position: relative;
  z-index: 3;
  justify-content: center;
  margin-top: 8px;
}
.page-welcome .btn-lime,
.page-welcome .btn-ghost {
  min-width: 168px;
  padding: 1.05rem 1.55rem;
  font-size: 0.95rem;
}
.page-welcome .btn-lime {
  box-shadow:
    0 18px 48px rgba(212, 255, 26, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.page-welcome .btn-ghost {
  backdrop-filter: blur(8px);
  background: rgba(12, 20, 38, 0.55);
}
.btn-ico {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

/* Glass orbit rig */
.orbit-rig {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100vw - 32px));
  aspect-ratio: 1.15 / 1;
  margin: -8px auto 4px;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.orbit-glow {
  position: absolute;
  inset: 18% 16%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(120, 180, 255, 0.55), transparent 42%),
    radial-gradient(circle at 50% 55%, rgba(31, 91, 255, 0.35), transparent 60%);
  filter: blur(28px);
  animation: pulse-soft 5s ease-in-out infinite;
}
.orbit-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  border-radius: 50%;
  border: 1px solid rgba(120, 160, 255, 0.18);
  transform: translate(-50%, -50%) rotateX(66deg);
  pointer-events: none;
}
.orbit-ring.ring-a {
  width: 78%;
  height: 78%;
  border-style: dashed;
  border-color: rgba(120, 160, 255, 0.22);
  animation: orbit-spin 42s linear infinite;
}
.orbit-ring.ring-b {
  width: 58%;
  height: 58%;
  border-color: rgba(212, 255, 26, 0.16);
  animation: orbit-spin 28s linear infinite reverse;
}
.orbit-ring.ring-c {
  width: 92%;
  height: 42%;
  top: 62%;
  border-color: rgba(255, 122, 26, 0.12);
  transform: translate(-50%, -50%) rotateX(72deg);
}
.orbit-beam {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(120, 180, 255, 0.55), rgba(212, 255, 26, 0.45), transparent);
  filter: blur(0.4px);
  opacity: 0.7;
  transform: rotate(-8deg);
  animation: beam-pulse 4.5s ease-in-out infinite;
}
.orbit-platform {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 10%;
  height: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(120, 160, 255, 0.2);
  box-shadow: 0 0 40px rgba(31, 91, 255, 0.12) inset;
  transform: rotateX(70deg);
}

.orbit-core {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.core-shell {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 40%, rgba(31, 91, 255, 0.12)),
    rgba(10, 18, 36, 0.45);
  border: 1px solid rgba(160, 200, 255, 0.35);
  box-shadow:
    0 24px 50px rgba(2, 8, 28, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 40px rgba(80, 140, 255, 0.35);
  backdrop-filter: blur(16px);
}
.core-orb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff, #9ec2ff 28%, #3d74ff 58%, #0a2a9e 100%);
  box-shadow:
    0 0 28px rgba(120, 180, 255, 0.85),
    0 0 60px rgba(31, 91, 255, 0.45),
    inset 0 -6px 12px rgba(10, 30, 90, 0.35);
  animation: pulse-soft 3.8s ease-in-out infinite;
}
.core-caption {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.72);
}

.glass-card {
  position: absolute;
  z-index: 4;
  width: clamp(112px, 18vw, 148px);
  transform-style: preserve-3d;
  animation: card-float 6s ease-in-out infinite;
}
.glass-face {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 18px 16px 16px;
  border-radius: 24px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0.02)),
    rgba(12, 22, 42, 0.38);
  border: 1px solid rgba(180, 210, 255, 0.28);
  box-shadow:
    0 28px 60px rgba(2, 8, 28, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(1.25);
  overflow: hidden;
}
.glass-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.28), transparent 36%, transparent 64%, rgba(255, 255, 255, 0.06));
  pointer-events: none;
}
.glass-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #f4f8ff;
  filter: drop-shadow(0 0 12px rgba(180, 210, 255, 0.45));
}
.glass-icon svg { width: 34px; height: 34px; display: block; }
.glass-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(4, 10, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-engine {
  left: 6%;
  top: 14%;
  transform: rotate(-14deg) rotateY(18deg);
  animation-delay: 0s;
}
.glass-engine .glass-face {
  border-color: rgba(100, 150, 255, 0.4);
  box-shadow:
    0 28px 60px rgba(2, 8, 28, 0.55),
    0 0 36px rgba(31, 91, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.glass-engine .glass-icon { color: #dce9ff; filter: drop-shadow(0 0 14px rgba(61, 116, 255, 0.65)); }
.glass-engine .glass-label {
  background: linear-gradient(180deg, rgba(61, 116, 255, 0.55), rgba(15, 35, 90, 0.85));
}

.glass-traj {
  right: 4%;
  top: 28%;
  transform: rotate(16deg) rotateY(-22deg);
  animation-delay: -2s;
}
.glass-traj .glass-face {
  border-color: rgba(255, 160, 80, 0.4);
  box-shadow:
    0 28px 60px rgba(2, 8, 28, 0.55),
    0 0 36px rgba(255, 122, 26, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.glass-traj .glass-icon { color: #ffe0c2; filter: drop-shadow(0 0 14px rgba(255, 122, 26, 0.55)); }
.glass-traj .glass-label {
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.55), rgba(90, 35, 8, 0.85));
}

.glass-spark {
  left: 28%;
  bottom: 12%;
  transform: rotate(-8deg) rotateX(12deg);
  animation-delay: -3.4s;
}
.glass-spark .glass-face {
  border-color: rgba(212, 255, 26, 0.38);
  box-shadow:
    0 28px 60px rgba(2, 8, 28, 0.55),
    0 0 36px rgba(212, 255, 26, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.glass-spark .glass-icon { color: #f5ffc8; filter: drop-shadow(0 0 14px rgba(212, 255, 26, 0.55)); }
.glass-spark .glass-label {
  color: #06100a;
  background: linear-gradient(180deg, #d4ff1a, #9ed400);
  border-color: rgba(255, 255, 255, 0.2);
}

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotateX(66deg) rotate(360deg); }
}
@keyframes beam-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}
@keyframes card-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.paths-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 72px;
}
.paths {
  margin-top: 0;
  padding-top: 42px;
  border-top: 1px solid var(--ap-line);
}
.paths-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 42ch;
}
.paths-head h2 {
  margin: 0;
  font-family: var(--ap-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.paths-head p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 0.98rem;
}

.path-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}
.path {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 28px;
  border-radius: var(--ap-radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.28s var(--ap-ease), border-color 0.28s;
}
.path:hover { transform: translateY(-4px); }
.path::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, rgba(8, 14, 28, 0.2), rgba(3, 5, 12, 0.85)),
    radial-gradient(ellipse at 85% 0%, rgba(212, 255, 26, 0.18), transparent 45%),
    linear-gradient(145deg, #101a30, #070d1c);
  border: 1px solid var(--ap-line-strong);
  border-radius: inherit;
}
.path.guide::before {
  background:
    linear-gradient(160deg, rgba(8, 14, 28, 0.15), rgba(3, 5, 12, 0.88)),
    radial-gradient(ellipse at 90% 10%, rgba(31, 91, 255, 0.32), transparent 48%),
    linear-gradient(145deg, #0d1730, #070d1c);
}
.path .tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ap-lime);
  margin-bottom: 14px;
}
.path.guide .tag { color: var(--ap-cobalt-bright); }
.path h3 {
  margin: 0 0 10px;
  font-family: var(--ap-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.path p {
  margin: 0 0 22px;
  color: var(--ap-muted);
  font-size: 0.95rem;
  max-width: 36ch;
  flex: 1;
}
.path .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ap-lime);
}
.path.guide .go { color: var(--ap-cobalt-bright); }
.path .go span { transition: transform 0.22s var(--ap-ease); }
.path:hover .go span { transform: translateX(4px); }

.path-deco {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 120px;
  height: 120px;
  opacity: 0.55;
  pointer-events: none;
}

/* ========== LEGAL PAGES ========== */
.legal {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.legal-hero {
  position: relative;
  padding: 18px 0 34px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ap-line);
}
.legal-hero h1 {
  margin: 0 0 14px;
  font-family: var(--ap-display);
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 14ch;
}
.legal-hero .lede {
  margin-bottom: 20px;
  max-width: 54ch;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  background: rgba(12, 20, 38, 0.65);
  color: var(--ap-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.callout {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(196, 146, 58, 0.4);
  border-left: 3px solid var(--ap-warn);
  background:
    linear-gradient(90deg, rgba(196, 146, 58, 0.1), transparent 70%),
    rgba(20, 16, 8, 0.45);
  border-radius: 4px 16px 16px 4px;
  color: #f0e2c4;
  font-size: 0.92rem;
  max-width: 72ch;
}
.callout strong { color: #ffd98a; }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 28px;
}

.toc {
  position: sticky;
  top: 88px;
  padding: 18px;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-sm);
  background: rgba(10, 16, 30, 0.72);
  backdrop-filter: blur(10px);
}
.toc h2 {
  margin: 0 0 12px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ap-muted);
  font-weight: 800;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ap-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  transition: background 0.2s, color 0.2s;
}
.toc a:hover,
.toc a:focus-visible {
  color: var(--ap-lime);
  background: rgba(212, 255, 26, 0.06);
}

.prose section {
  position: relative;
  margin: 0 0 34px;
  padding: 22px 0 0;
  border-top: 1px solid var(--ap-line);
  scroll-margin-top: 96px;
}
.prose section:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.prose .sec-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ap-display);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(212, 255, 26, 0.72);
  letter-spacing: 0.04em;
}
.prose h2 {
  margin: 0 0 12px;
  font-family: var(--ap-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ap-paper);
}
.prose h3 {
  margin: 18px 0 8px;
  font-size: 0.98rem;
  color: #d7e0f5;
  font-weight: 700;
}
.prose p,
.prose li {
  color: var(--ap-muted);
  font-size: 0.98rem;
}
.prose p {
  margin: 0 0 12px;
  max-width: 68ch;
}
.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  max-width: 68ch;
}
.prose li { margin: 0 0 7px; }
.prose strong { color: #dce5ff; font-weight: 700; }
.prose a {
  color: var(--ap-cobalt-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 130, 255, 0.35);
}
.prose a:hover {
  color: var(--ap-lime);
  border-bottom-color: rgba(212, 255, 26, 0.45);
}

code, kbd {
  font-family: var(--ap-mono);
  font-size: 0.84em;
  background: rgba(31, 91, 255, 0.14);
  border: 1px solid var(--ap-line);
  padding: 0.1em 0.38em;
  border-radius: 5px;
  color: #dce7ff;
}

.placeholder {
  display: inline;
  background: rgba(255, 122, 26, 0.14);
  border: 1px dashed rgba(255, 122, 26, 0.55);
  color: #ffc08a;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88em;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 12px 0 16px;
  border-radius: 14px;
  border: 1px solid var(--ap-line);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 520px;
}
.table th,
.table td {
  border-bottom: 1px solid var(--ap-line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.table tr:last-child td { border-bottom: 0; }
.table th {
  background: rgba(31, 91, 255, 0.14);
  color: #d7e0f5;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}
.table td {
  color: var(--ap-muted);
  background: rgba(10, 16, 30, 0.55);
}

@media (max-width: 920px) {
  .legal-layout { grid-template-columns: 1fr; gap: 22px; }
  .toc { position: static; }
  .path-grid { grid-template-columns: 1fr; }
  .hero-orbit {
    min-height: auto;
    padding: 20px 0 48px;
    gap: 16px;
  }
  .orbit-rig {
    width: min(520px, calc(100vw - 24px));
    margin: 0 auto;
  }
  .glass-card { width: clamp(96px, 22vw, 124px); }
  .glass-face { padding: 14px 12px 12px; gap: 10px; border-radius: 20px; }
  .glass-icon { width: 44px; height: 44px; }
  .glass-icon svg { width: 28px; height: 28px; }
  .core-shell { width: 72px; height: 72px; border-radius: 18px; }
  .core-orb { width: 36px; height: 36px; }
}

@media (max-width: 640px) {
  .top-in,
  .welcome-bar-in,
  .hero-orbit-copy,
  .paths-wrap,
  .legal { width: calc(100% - 28px); }
  .cta-row .btn { width: 100%; }
  .path { min-height: 0; padding: 22px; }
  .toplinks { width: auto; }
  .hero-center-title { max-width: 12ch; }
  .pill-accent { white-space: normal; }
  .orbit-rig {
    aspect-ratio: 1 / 1.02;
  }
  .glass-engine { left: 2%; top: 10%; transform: rotate(-10deg); }
  .glass-traj { right: 0; top: 22%; transform: rotate(12deg); }
  .glass-spark { left: 22%; bottom: 10%; transform: none; }
  .glass-label { min-width: 76px; font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
