
:root {
  --bg: #050811; --card: rgba(17, 24, 39, 0.82); --border: #1f2937;
  --text: #e5e7eb; --muted: #9ca3af; --accent: #38bdf8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh;
  overflow-x: hidden;
}
#starfield {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
}
header {
  background: rgba(5, 8, 17, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20;
}
.nav-wrap {
  max-width: 1160px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.2rem; }
.brand img { width: 32px; height: 32px; animation: spinSlow 28s linear infinite; }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.nav-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.93rem; padding: 6px 10px; border-radius: 8px; transition: 0.2s; }
nav a:hover, nav a.active { color: #fff; background: rgba(56, 189, 248, 0.16); }
.langs { display: flex; gap: 5px; border-left: 1px solid var(--border); padding-left: 12px; }
.langs a { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 7px; border-radius: 6px; }
.langs a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.langs a.active { color: #050811; background: var(--accent); }
main { max-width: 1160px; margin: 0 auto; padding: 34px 20px 64px; }
.hero {
  background: linear-gradient(135deg, rgba(30,58,138,0.38), rgba(15,23,42,0.82));
  border: 1px solid var(--border); border-radius: 18px; padding: 30px 26px; margin-bottom: 28px;
}
.sim-box {
  background: rgba(7, 11, 22, 0.9); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px; margin-bottom: 32px; text-align: center;
}
#solar-canvas { width: 100%; max-width: 960px; height: 420px; display: block; margin: 0 auto; border-radius: 12px; }
.sim-controls { display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.sim-btn {
  background: #1e293b; color: #e5e7eb; border: 1px solid #334155;
  padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 0.85rem;
}
.sim-btn:hover { border-color: var(--accent); color: #fff; }
h1 { font-size: 1.95rem; margin-bottom: 10px; color: #fff; }
h2 { font-size: 1.4rem; margin: 28px 0 14px; color: #fff; }
.lead { color: var(--muted); max-width: 780px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card {
  background: var(--card); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 14px; padding: 20px; transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.planet-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.orb {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; position: relative;
  box-shadow: inset -12px -10px 18px rgba(0,0,0,0.6), 0 0 20px rgba(56,189,248,0.22);
  animation: floatOrb 5s ease-in-out infinite;
}
@keyframes floatOrb { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-5px); } }
.saturn-ring::after {
  content: ""; position: absolute; left: -16px; top: 24px; width: 96px; height: 18px;
  border: 4px solid rgba(251, 191, 36, 0.72); border-radius: 50%; transform: rotate(-18deg);
}
.tag { display: inline-block; font-size: 0.75rem; color: var(--accent); background: rgba(56,189,248,0.12); padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.specs { list-style: none; font-size: 0.9rem; margin-top: 10px; }
.specs li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.specs li:last-child { border-bottom: none; }
.specs b { color: #cbd5e1; }
table { width: 100%; border-collapse: collapse; margin-top: 14px; background: var(--card); border-radius: 12px; overflow: hidden; font-size: 0.9rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #1e293b; color: #fff; }
.btn { display: inline-block; margin-top: 14px; padding: 9px 15px; border-radius: 8px; background: var(--accent); color: #050811; font-weight: 600; text-decoration: none; }
footer { border-top: 1px solid var(--border); text-align: center; color: var(--muted); padding: 24px 20px; font-size: 0.85rem; }

.star-orb {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
  animation: pulseStar 3.2s ease-in-out infinite;
}
@keyframes pulseStar {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.07); filter: brightness(1.22); }
}
.svg-badge {
  width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0;
  background: radial-gradient(circle at 30% 30%, #1e293b, #090d16);
  border: 1px solid #334155; display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.svg-badge svg { width: 100%; height: 100%; }
.anim-canvas { width: 100%; max-width: 960px; height: 300px; display: block; margin: 0 auto; border-radius: 12px; }

.station-thumb { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--border); }
.card-link { text-decoration: none; color: inherit; display: block; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 16px; }
.gallery-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }
.video-wrap { background: #000; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin: 18px 0 28px; max-width: 860px; }
.video-wrap video { width: 100%; max-height: 480px; display: block; }
#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 999; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
#lightbox img { max-width: 95%; max-height: 92vh; border-radius: 10px; box-shadow: 0 0 40px rgba(56,189,248,0.3); }
