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

:root {
  --card-bg: rgba(6, 12, 28, 0.80);
  --card-border: rgba(120, 160, 255, 0.16);
  --card-glow: rgba(80, 130, 255, 0.10);
  --text-primary: #e8eeff;
  --text-secondary: rgba(200, 215, 255, 0.60);
  --accent: #6aabff;
  --section-divider: rgba(120, 160, 255, 0.10);
}

html, body {
  background: #00000a;
  overflow: hidden;   /* no scroll bar — navigation is discrete */
  height: 100%;
}

/* ── Canvas ── */
#solar-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  display: block;
}

/* scroll-track removed — navigation is now discrete */

/* ── Header ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
}

#header h1 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.5);
}

/* ── Scroll hint ── */
#scroll-hint {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  animation: hintFade 3s ease forwards;
  animation-delay: 1.5s;
  opacity: 0;
}

@keyframes hintFade {
  0%   { opacity: 0; transform: translateX(-50%) translateY(8px); }
  20%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

#scroll-hint span {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(150, 180, 255, 0.6);
}

.scroll-arrow {
  width: 18px; height: 26px;
  border: 1.5px solid rgba(150, 180, 255, 0.4);
  border-radius: 10px;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: rgba(150, 180, 255, 0.7);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { top: 4px;  opacity: 1; }
  100% { top: 14px; opacity: 0; }
}

/* ── Cards container ── */
#cards-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* ── Info card ── */
.info-card {
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(380px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.8rem 1.8rem 1.6rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 0 0 1px var(--card-glow),
    0 24px 64px rgba(0, 0, 20, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text-primary);
  will-change: opacity, transform;
}

.info-card::-webkit-scrollbar { display: none; }

.card-accent {
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
  border-radius: 1px;
}

.info-card h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.18rem;
  color: #fff;
}

.card-type {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

/* ── Stats list ── */
.stats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--section-divider);
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.value {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: right;
}

.value.multiline {
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ── Card section ── */
.card-section {
  padding-top: 1rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--section-divider);
}

.card-section:last-child {
  border-bottom: none;
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
  opacity: 0.8;
}

/* ── Atmosphere bar ── */
.atmo-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  gap: 1px;
  margin-bottom: 0.65rem;
}

.atmo-seg {
  height: 100%;
  min-width: 2px;
  border-radius: 2px;
  transition: opacity 0.2s;
  cursor: default;
}

.atmo-seg:hover {
  opacity: 0.75;
}

.atmo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
}

.atmo-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.atmo-item em {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
  font-style: normal;
}

.atmo-item b {
  font-weight: 500;
  color: var(--text-primary);
}

/* ── Fun facts ── */
.fun-facts-section {
  border-bottom: none;
}

.fun-facts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-left: 0;
}

.fun-facts-list li {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
}

.fun-facts-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.7;
}

/* ── Progress dots ── */
#progress-dots {
  position: fixed;
  left: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Each dot is a button for accessibility + click handling */
.dot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  /* label slides in on hover / active */
}

.dot-circle {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(150, 180, 255, 0.22);
  border: 1px solid rgba(150, 180, 255, 0.32);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.dot-label {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(150, 180, 255, 0.0);
  white-space: nowrap;
  transition: color 0.25s, opacity 0.25s;
  pointer-events: none;
  user-select: none;
}

/* Show label on hover */
.dot:hover .dot-label {
  color: rgba(150, 180, 255, 0.75);
}

/* Active (current stop) */
.dot.active .dot-circle {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.45);
  box-shadow: 0 0 8px var(--accent);
}

.dot.active .dot-label {
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .info-card {
    right: 50%;
    transform: translate(50%, 0);
    bottom: 1.5rem;
    top: auto;
    max-height: 52vh;
    width: calc(100vw - 1.5rem);
  }

  /* On mobile keep dots but hide labels — tap still works */
  .dot-label {
    display: none;
  }
}
