
:root{
  --bg:#030611;
  --bg2:#091327;
  --card:rgba(10,16,33,.74);
  --card-strong:rgba(7,11,23,.82);
  --line:rgba(255,255,255,.11);
  --text:#f6f8ff;
  --muted:#cad4f5;
  --accent:#67dfff;
  --accent2:#a88bff;
  --shadow:0 22px 70px rgba(0,0,0,.38);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.7;
  background:
    linear-gradient(rgba(2,5,14,.62), rgba(2,5,14,.84)),
    url("./space-hero-bg.png") center top / cover no-repeat fixed,
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100vh;
}

.bg-overlay{
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 12% 18%, rgba(89,173,255,.12), transparent 28rem),
    radial-gradient(circle at 82% 14%, rgba(200,105,255,.13), transparent 26rem),
    radial-gradient(circle at 40% 80%, rgba(43,177,255,.08), transparent 30rem);
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 22px;
  backdrop-filter:blur(12px);
  background:rgba(4,8,18,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.brand{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.brand-pill{
  padding:7px 12px;
  border:1px solid rgba(103,223,255,.28);
  border-radius:999px;
  color:var(--accent);
  background:rgba(103,223,255,.08);
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.15em;
}
.brand-sub{color:#e7ecff; font-weight:700}
.top-link{
  color:var(--text);
  text-decoration:none;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}
.top-link:hover{
  border-color:rgba(103,223,255,.35);
  background:rgba(103,223,255,.08);
}

.page{
  width:min(1040px, calc(100% - 28px));
  margin:28px auto 36px;
  position:relative;
  z-index:1;
}

.hero{
  min-height:420px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:30px;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(5,10,24,.18), rgba(5,10,24,.65)),
    url("./space-hero-bg.png") center 28% / cover no-repeat;
  box-shadow:var(--shadow);
}
.hero-inner{
  padding:54px 42px 40px;
  background:linear-gradient(90deg, rgba(3,7,18,.78) 0%, rgba(3,7,18,.45) 58%, rgba(3,7,18,.18) 100%);
  min-height:420px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.eyebrow{
  margin:0 0 10px;
  color:var(--accent);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.2em;
  text-transform:uppercase;
}
h1{
  margin:0;
  font-size:clamp(2.6rem, 5vw, 5.2rem);
  line-height:.98;
  letter-spacing:-.05em;
}
.lead{
  max-width:680px;
  margin:16px 0 0;
  color:#e2e8ff;
  font-size:1.08rem;
}
.hero-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:28px;
  max-width:820px;
}
.meta-card{
  padding:15px 16px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:18px;
  background:rgba(10,18,38,.54);
  backdrop-filter:blur(8px);
}
.meta-label{
  display:block;
  color:#a8b4d9;
  font-size:.82rem;
  margin-bottom:4px;
}

.toc{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin:18px 0 22px;
}
.toc a{
  text-decoration:none;
  color:#eef3ff;
  text-align:center;
  padding:13px 10px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(10,16,33,.6);
  backdrop-filter:blur(10px);
  font-size:.94rem;
}
.toc a:hover{
  border-color:rgba(103,223,255,.35);
  background:rgba(103,223,255,.08);
}

.card{
  margin:14px 0;
  padding:30px 30px 26px;
  border-radius:24px;
  border:1px solid var(--line);
  background:var(--card);
  backdrop-filter:blur(12px);
  box-shadow:var(--shadow);
}
h2{
  margin:0 0 12px;
  font-size:1.55rem;
  letter-spacing:-.02em;
}
h3{
  margin:22px 0 8px;
  font-size:1.08rem;
  color:#f6f8ff;
}
p{margin:10px 0; color:#dee6ff}
ul{margin:10px 0 0 0; padding-left:1.2rem; color:#dee6ff}
li+li{margin-top:7px}
a{color:var(--accent); text-underline-offset:3px}

.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:24px 4px 0;
  color:#c4cdea;
}
.footer a{color:#dce6ff}

@media (max-width: 920px){
  .toc{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-meta{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .page{width:min(100% - 16px, 1040px); margin-top:16px}
  .topbar{padding:12px 14px}
  .hero{border-radius:24px; min-height:380px}
  .hero-inner{padding:34px 20px 24px; min-height:380px}
  .lead{font-size:1rem}
  .toc{grid-template-columns:1fr}
  .card{padding:22px 18px 18px; border-radius:18px}
  .footer{flex-direction:column; align-items:flex-start}
}
