:root {
  --bg: #05070c;
  --ink: #f4f6fb;
  --dim: #9aa4b8;
  --line: rgba(255, 255, 255, .1);
  --glass: rgba(255, 255, 255, .05);
  --accent: #ff6a3d;
  --blue: #6fb8ff;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* CA bar */
.cabar { position: sticky; top: 0; z-index: 50; display: flex; justify-content: center; padding: 3px 16px; min-height: 34px; background: rgba(5, 7, 12, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ca { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; background: none; border: 0; color: var(--ink); padding: 4px 8px; border-radius: 8px; }
.ca:hover { background: rgba(255,255,255,.06); }
.ca span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px ui-monospace, Menlo, monospace; opacity: .85; }
.ca-ico { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .7; }
.ca-done { font-size: 12px; font-weight: 700; color: var(--blue); }

/* hero: the real ISS over Earth */
.hero { position: relative; min-height: 92vh; display: grid; place-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url(/assets/iss.webp) 50% 40% / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,12,.6) 0%, rgba(5,7,12,.5) 35%, rgba(5,7,12,.6) 70%, var(--bg) 100%); }
.hero-in { position: relative; text-align: center; padding: 70px 16px 60px; max-width: 900px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .26em; color: var(--blue); }
h1 { margin: 10px 0 8px; font: 700 clamp(56px, 12vw, 132px)/.95 var(--head); letter-spacing: -.02em; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.sub { margin: 0 auto 26px; max-width: 620px; font-size: 18px; color: #d9dfeb; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.count-box { display: inline-block; padding: 16px 22px; background: rgba(5,7,12,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; }
.count-k { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--dim); }
.count { display: flex; gap: 10px; justify-content: center; margin: 10px 0 6px; }
.count div { min-width: 68px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.05); }
.count b { display: block; font: 700 clamp(28px, 6vw, 42px)/1.1 var(--head); font-variant-numeric: tabular-nums; }
.count span { font-size: 10px; letter-spacing: .2em; color: var(--dim); font-weight: 600; }
.count-when { font-size: 11px; letter-spacing: .16em; color: var(--accent); font-weight: 700; }
.hero-btns { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 13px 26px; border-radius: 999px; background: var(--ink); color: #05070c; }
.btn:hover { background: #fff; }
.btn.ghost { background: rgba(255,255,255,.08); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(255,255,255,.14); }

/* sections */
main { position: relative; }
.sec { max-width: 1080px; margin: 0 auto; padding: 72px 16px 8px; }
.sec-k { font-size: 12px; font-weight: 700; letter-spacing: .26em; color: var(--accent); }
h2 { margin: 6px 0 14px; font: 700 clamp(28px, 4.6vw, 44px)/1.05 var(--head); letter-spacing: -.01em; }
.lead, .note { color: var(--dim); }
.lead { margin: 0 0 18px; }
.note { font-size: 14px; margin: 12px 0 0; }

/* live 3D globe */
.globe-stage { position: relative; }
.map-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #000; }
.globe { position: relative; height: min(70vh, 620px); background: radial-gradient(ellipse at 50% 50%, #0b1020 0%, #000 70%); cursor: grab; }
.globe:active { cursor: grabbing; }
.globe::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 72% 12%, #fff6, transparent), radial-gradient(1.5px 1.5px at 85% 64%, #fff7, transparent), radial-gradient(1px 1px at 33% 78%, #fff5, transparent), radial-gradient(1px 1px at 58% 38%, #fff4, transparent), radial-gradient(1px 1px at 22% 52%, #fff6, transparent), radial-gradient(1.5px 1.5px at 92% 28%, #fff5, transparent), radial-gradient(1px 1px at 6% 86%, #fff6, transparent), radial-gradient(1px 1px at 46% 8%, #fff5, transparent), radial-gradient(1px 1px at 66% 90%, #fff4, transparent); pointer-events: none; }
.globe-btns { position: absolute; z-index: 3; left: 14px; top: 14px; display: flex; gap: 8px; }
.globe-btns button { border: 1px solid var(--line); background: rgba(5,7,12,.7); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.globe-btns button.on { background: var(--ink); color: #05070c; }
.globe-hint { position: absolute; z-index: 3; right: 14px; bottom: 12px; font-size: 12px; color: var(--dim); pointer-events: none; }
.iss-tag { position: relative; width: 0; height: 0; pointer-events: none; } /* zero-size anchor: the dot sits exactly on the station */
.iss-tag i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,61,.35); }
.iss-tag i::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,106,61,.6); animation: ping 2s ease-out infinite; }
.iss-tag b { position: absolute; left: 12px; top: -10px; font: 700 12px var(--body); letter-spacing: .08em; color: #fff; background: rgba(5,7,12,.75); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; margin-right: 8px; vertical-align: 1px; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.live-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.live-stats div { padding: 14px 16px; border-right: 1px solid var(--line); }
.live-stats div:last-child { border-right: 0; }
.live-stats span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--dim); }
.live-stats b { font: 700 18px var(--head); font-variant-numeric: tabular-nums; }

/* video */
.video-box { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #000; }
.video-box video { display: block; width: 100%; aspect-ratio: 16 / 9; }

/* modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mode { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--glass); }
.mode img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mode div { padding: 16px 18px 18px; }
.mode b { font: 700 20px var(--head); }
.mode p { margin: 6px 0 0; color: var(--dim); }

/* timeline */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps li { position: relative; padding: 0 0 26px 34px; }
.steps li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--dim); }
.steps li.done::before { background: var(--accent); border-color: var(--accent); }
.steps li.next::before { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,106,61,.25); }
.steps time { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--dim); }
.steps b { display: block; font: 700 20px var(--head); margin: 2px 0 2px; }
.steps p { margin: 0; color: var(--dim); max-width: 640px; }

/* why */
.why { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: center; }
.why img { width: 100%; border-radius: 18px; border: 1px solid var(--line); }
.why p { color: #cfd6e3; font-size: 17px; margin: 0; }

.foot { max-width: 1080px; margin: 70px auto 0; padding: 26px 16px 50px; border-top: 1px solid var(--line); text-align: center; }
.foot-links { display: flex; gap: 22px; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.foot-links a { text-decoration: none; }
.fine { max-width: 680px; margin: 6px auto; font-size: 13px; color: #6f7a90; }

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-bg { background-image: url(/assets/iss-sm.webp); }
  .hero-in { padding: 46px 14px 40px; }
  .sub { font-size: 16px; }
  .count div { min-width: 0; flex: 1; }
  .sec { padding: 52px 14px 6px; }
  .modes { grid-template-columns: 1fr; }
  .live-stats { grid-template-columns: repeat(2, 1fr); }
  .live-stats div:nth-child(2) { border-right: 0; }
  .live-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .live-stats b { font-size: 16px; }
  .why { grid-template-columns: 1fr; }
}

/* journey bar: launch → docking, by time */
.journey { margin: 0 0 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.j-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.j-ends b { color: var(--ink); margin-right: 4px; }
.j-bar { position: relative; height: 8px; margin: 12px 0 10px; border-radius: 99px; background: rgba(255,255,255,.08); }
.j-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, rgba(255,106,61,.5), var(--accent)); }
.j-bar em { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,106,61,.3); }
.j-text { font-weight: 600; }

/* legend + markers */
.legend { position: absolute; z-index: 3; left: 14px; bottom: 14px; display: grid; gap: 5px; padding: 10px 12px; border-radius: 12px; background: rgba(5,7,12,.72); border: 1px solid var(--line); font-size: 12px; color: #cfd6e3; pointer-events: none; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; }
.legend .dot.ship { background: var(--accent); }
.legend .dot.iss { background: #fff; }
.legend .line { width: 22px; height: 0; border-top: 2px solid var(--accent); }
.legend .line.dash { border-top-style: dashed; opacity: .8; }
.mk { position: relative; width: 0; height: 0; pointer-events: none; }
.mk i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; }
.mk b { position: absolute; left: 12px; top: -10px; font: 700 12px var(--body); color: #fff; background: rgba(5,7,12,.78); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.mk.ship i { background: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,61,.35); }
.mk.ship i::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,106,61,.6); animation: ping 2s ease-out infinite; }
.mk.iss i { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
@media (max-width: 760px) {
  .legend { font-size: 11px; padding: 8px 10px; left: 8px; bottom: 8px; }
  .j-ends { font-size: 12px; }
}
