:root {
  --ink: #f6f7ff;
  --muted: #b7bed3;
  --bg: #070813;
  --bg-2: #0d1022;
  --panel: rgba(20, 24, 48, 0.86);
  --panel-solid: #141830;
  --line: rgba(255,255,255,.11);
  --violet: #8b5cf6;
  --magenta: #db3df2;
  --cyan: #22d3ee;
  --blue: #4f6cff;
  --green: #52d6a5;
  --amber: #f5c15c;
  --red: #ff6b81;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(139,92,246,.23), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(34,211,238,.13), transparent 30rem),
    linear-gradient(180deg, #080916 0%, #070813 55%, #090a18 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}
a { color: #bda8ff; text-underline-offset: 3px; }
a:hover { color: #d9ceff; }
img, svg { max-width: 100%; }
button, input { font: inherit; }

.skip-link { position: fixed; left: 12px; top: 12px; transform: translateY(-160%); z-index: 999; background: #fff; color: #111; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); background: rgba(7,8,19,.82); }
.header-inner, .container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 4%, var(--cyan) 5% 8%, var(--violet) 30%, #171a3d 72%); box-shadow: 0 0 30px rgba(139,92,246,.35); position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 46px; height: 14px; border: 2px solid rgba(255,255,255,.72); border-radius: 50%; transform: rotate(-18deg); }
.brand em { font-style: normal; color: var(--cyan); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; margin-left: 2px; }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 9px 12px; }
.primary-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; }
.primary-nav a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 700; padding: 9px 10px; border-radius: 10px; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #fff; background: rgba(139,92,246,.14); }

.hero { padding: 78px 0 44px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 46px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(34,211,238,.25); background: rgba(34,211,238,.08); color: #a9f3ff; padding: 7px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 6vw, 5.75rem); margin: 18px 0 18px; max-width: 11ch; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3.1rem); margin: 0 0 14px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.23rem); color: #d1d5e5; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 16px; border-radius: 12px; text-decoration: none; font-weight: 800; border: 1px solid var(--line); }
.btn-primary { background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #fff; border: 0; box-shadow: 0 12px 28px rgba(139,92,246,.24); }
.btn-secondary { background: rgba(255,255,255,.035); color: #fff; }

.orbit-card { min-height: 390px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(22,24,50,.95), rgba(11,13,30,.9)); border-radius: 32px; position: relative; box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; }
.orbit-card::before, .orbit-card::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.orbit-card::before { width: 430px; height: 180px; transform: rotate(-24deg); }
.orbit-card::after { width: 270px; height: 270px; }
.planet { width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 2%, #8ceeff 3% 6%, #7c4dff 25%, #24164f 66%, #0f1025 100%); box-shadow: 0 0 70px rgba(139,92,246,.45); position: relative; z-index: 3; }
.orbit-label { position: absolute; z-index: 4; padding: 10px 12px; background: rgba(8,9,22,.82); border: 1px solid var(--line); border-radius: 13px; color: #dfe2f2; font-size: .86rem; backdrop-filter: blur(12px); }
.orbit-label.one { left: 7%; top: 17%; } .orbit-label.two { right: 7%; top: 29%; } .orbit-label.three { left: 14%; bottom: 14%; }

.notice { border: 1px solid rgba(245,193,92,.26); background: rgba(245,193,92,.07); border-radius: 18px; padding: 18px 20px; color: #f9e7be; }
.notice strong { color: #fff4d6; }
.notice.red { border-color: rgba(255,107,129,.28); background: rgba(255,107,129,.07); color: #ffd8de; }
.notice.green { border-color: rgba(82,214,165,.24); background: rgba(82,214,165,.07); color: #cbf6e7; }

.section { padding: 42px 0; }
.section-kicker { color: var(--cyan); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.section-intro { color: var(--muted); max-width: 72ch; margin-bottom: 24px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 22px; box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.card p:last-child { margin-bottom: 0; }
.card-meta { color: var(--cyan); font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.card p, .muted { color: var(--muted); }

.stat { padding: 20px; border-top: 1px solid var(--line); }
.stat:first-child { border-top: 0; }
.stat strong { display: block; font-size: 1.5rem; color: #fff; }
.fact-panel { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.025); }

.breadcrumbs { margin: 26px 0 0; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: #d1c7ff; text-decoration: none; }
.breadcrumbs span { margin: 0 8px; opacity: .5; }

.page-hero { padding: 46px 0 28px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); max-width: 13ch; }

.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 680px; background: rgba(255,255,255,.02); }
th, td { text-align: left; vertical-align: top; padding: 15px 16px; border-bottom: 1px solid var(--line); }
th { color: #f4f5ff; font-size: .86rem; background: rgba(255,255,255,.035); }
td { color: #c5cada; }
tr:last-child td { border-bottom: 0; }

.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; border: 1px solid var(--line); color: #dce0ef; }
.badge-warning { background: rgba(245,193,92,.09); color: #ffe4a6; }
.badge-info { background: rgba(34,211,238,.08); color: #bff6ff; }
.badge-good { background: rgba(82,214,165,.08); color: #c9f6e6; }

.steps { counter-reset: steps; display: grid; gap: 14px; }
.step { position: relative; padding: 19px 20px 19px 62px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 18px; top: 17px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(139,92,246,.18); color: #ddd4ff; font-weight: 900; }

.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; color: #f1f2fb; }
.faq p { color: var(--muted); }

.related { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(34,211,238,.04)); }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.related-links a { text-decoration: none; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: #eef0fb; border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: .9rem; }

.source-list { padding-left: 20px; }
.source-list li { margin: 8px 0; color: var(--muted); }

.site-footer { margin-top: 54px; border-top: 1px solid var(--line); padding: 38px 0 26px; background: rgba(0,0,0,.12); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.footer-grid h3 { font-size: 1rem; }
.footer-grid a { display: inline-block; color: var(--muted); text-decoration: none; margin: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-note { color: #8f96ad; font-size: .82rem; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

.callout { border-left: 3px solid var(--violet); padding: 1px 0 1px 18px; color: #cbd0e1; }
.definition-list { display: grid; grid-template-columns: 180px 1fr; border-top: 1px solid var(--line); }
.definition-list dt, .definition-list dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.definition-list dt { font-weight: 800; color: #fff; }
.definition-list dd { color: var(--muted); }

.search-box { display: flex; gap: 10px; margin: 20px 0 0; }
.search-box input { flex: 1; min-width: 0; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #fff; padding: 12px 14px; }
.search-box button { border: 0; border-radius: 12px; padding: 12px 15px; color: #fff; background: var(--violet); font-weight: 800; }
.search-results { margin-top: 14px; display: grid; gap: 8px; }
.search-results a { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: #edf0fb; background: rgba(255,255,255,.03); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; left: 16px; right: 16px; top: 68px; display: none; padding: 12px; background: #0c0e1f; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .primary-nav.open { display: grid; }
  .primary-nav a { padding: 11px 12px; }
  .hero-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 48px; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .header-inner, .container { width: min(calc(100% - 22px), var(--max)); }
  h1 { font-size: clamp(2.35rem, 13vw, 4rem); }
  .hero-actions { align-items: stretch; }
  .btn { width: 100%; }
  .orbit-card { min-height: 310px; }
  .definition-list { grid-template-columns: 1fr; }
  .definition-list dt { border-bottom: 0; padding-bottom: 0; }
}

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