/* ═══════════════════════════════════════════════════════════ */
/* GENERAL RESET & VARIABLES                                   */
/* ═══════════════════════════════════════════════════════════ */

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

/* Root Variables */
:root {
  --bg: #0C0D10;
  --surface: #1E2130;
  --surface-hover: #262B3D;
  --ink: #F0EDE6;
  --ink-muted: #9BA3B5;
  --accent: #00d4c0;
  --accent-glow: rgba(0, 212, 192, 0.25);
  --accent-light: rgba(0, 212, 192, 0.12);
  --border: rgba(255,255,255,0.09);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════════════════ */
/* BASE STYLES                                                  */
/* ═══════════════════════════════════════════════════════════ */

html, body {
  height: 100%;
}

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════ */
/* STARFIELD CANVAS                                             */
/* ═══════════════════════════════════════════════════════════ */

#starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════ */
/* HEADER SECTION                                               */
/* ═══════════════════════════════════════════════════════════ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 33, 45, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 30px rgba(0,212,192,0.08);
  animation: fadeDown 0.7s ease both;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-domain {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.header-back {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.header-back:hover {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0,212,192,0.6);
}

/* ═══════════════════════════════════════════════════════════ */
/* MAIN CONTENT                                                 */
/* ═══════════════════════════════════════════════════════════ */

main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 3rem 4rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════ */
/* HERO SECTION                                                 */
/* ═══════════════════════════════════════════════════════════ */

.hero {
  text-align: center;
  padding: 3rem 0 1rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  margin-bottom: 1.6rem;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.description {
  margin-top: 1.2rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 46ch;
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════ */
/* SOLAR SYSTEM MAP                                             */
/* ═══════════════════════════════════════════════════════════ */

.map {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 3rem 0 1rem;
  animation: fadeUp 0.7s 0.25s ease both;
}

.orbit-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.4rem;
}

#solarSystem {
  width: 380px;
  height: 380px;
  flex-shrink: 0;
  display: block;
}

/* ═══════════════════════════════════════════════════════════ */
/* TOOLTIP SYSTEM                                               */
/* ═══════════════════════════════════════════════════════════ */

.tooltip {
  margin-top: 1.6rem;
  min-height: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.tooltip.visible {
  opacity: 1;
}

.tooltip-label {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
}

.tooltip-desc {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════ */
/* POLES GRID SECTION                                           */
/* ═══════════════════════════════════════════════════════════ */

.poles {
  width: 100%;
  margin-top: 4rem;
  animation: fadeUp 0.7s 0.4s ease both;
}

.poles-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 1.6rem;
  text-align: center;
  font-weight: 400;
}

.poles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.pole-card {
  background: #1C2333;
  border: 1px solid rgba(0,212,191,0.2);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 220px;
  height: 150px;
  box-shadow: 0 0 8px rgba(0,212,192,0.08);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pole-card:hover {
  background: #223040;
  border-color: #00d4c0;
  transform: translateY(-2px);
  box-shadow:
    0 0 6px #00d4c0,
    0 0 20px rgba(0,212,192,0.6),
    0 0 60px rgba(0,212,192,0.25);
}

.pole-slug {
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.pole-slug strong {
  color: var(--accent);
  font-weight: 500;
}

.pole-role {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.3;
}

.pole-desc {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-top: 0.2rem;
}

/* ═══════════════════════════════════════════════════════════ */
/* FOOTER SECTION                                               */
/* ═══════════════════════════════════════════════════════════ */

footer {
  position: relative;
  z-index: 10;
  padding: 1.6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-style: italic;
  font-family: var(--serif);
  transition: color 0.2s;
}

.footer-tagline:hover {
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════ */
/* ANIMATIONS                                                   */
/* ═══════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* RESPONSIVE DESIGN                                            */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  header {
    padding: 1.5rem;
  }

  main {
    padding: 1.5rem 1.5rem 3rem;
  }

  footer {
    padding: 1.4rem 1.5rem;
    flex-direction: column;
    gap: 0.2rem;
  }

  .pole-card {
    width: 100%;
  }
}
