/* =========================================
   JACK PENDER · jackpender.ai
   Cinematic deep space — personal brand
   ========================================= */

/* --- VARIABLES --- */
:root {
  --bg:         #05060F;
  --bg-card:    #0A0C1A;
  --bg-card2:   #0D0F1F;

  /* Brand palette */
  --accent:     #4A9EFF;
  --accent-dim: rgba(74,158,255,0.15);
  --green:      #39FF14;  /* arcade only */
  --pink:       #FF2D78;  /* arcade only */
  --amber:      #FFB800;  /* arcade only */

  /* Text */
  --text:           #F0F0F0;
  --text-secondary: #8A8FA8;
  --text-dim:       #8A8FA8;
  --text-white:     #FFFFFF;

  /* Legacy arcade colors — keep for arcade game */
  --purple:     #B026FF;
  --blue:       #0080FF;
  --cyan:       #00E5FF;
  --orange:     #FF6B00;

  --font-sans:  'Space Grotesk', sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono:  'Space Mono', monospace;
  --font-body:  'Space Grotesk', sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- CANVAS (starfield + game layer) --- */
#space-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* HUD + shoot-hint removed in Phase 1 redesign */

/* =========================================
   WARP OVERLAY
   ========================================= */
#warp-overlay {
  position: fixed;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  z-index: 500;
  pointer-events: none;
  transition: opacity 0.08s ease;
}

/* Intel popup removed in Phase 1 redesign */

/* =========================================
   SCREENS
   ========================================= */
.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  overflow: hidden;
}
.screen.active {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================
   HOME SCREEN
   ========================================= */
.home-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-scroll::-webkit-scrollbar { width: 3px; }
.home-scroll::-webkit-scrollbar-track { background: transparent; }
.home-scroll::-webkit-scrollbar-thumb { background: rgba(74,158,255,0.25); border-radius: 2px; }

.home-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  padding-top: max(10vh, 60px);
  gap: 0;
  min-height: 100vh;
  justify-content: center;
  width: 100%;
}

/* Scroll hint arrow */
.scroll-hint {
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-dim);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.6;
  transition: opacity 0.5s;
}
.scroll-hint.faded { opacity: 0; }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Below-the-fold — daily quote section */
.home-below {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 24px 100px;
}
.home-quote-wrap {
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.home-quote-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}
.daily-quote {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
  border: none;
  padding: 0;
  margin: 0;
  max-width: 540px;
}
.daily-quote-attr {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  font-style: normal;
}

/* GGR featured quote — home page below-fold */
.home-ggr-text {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-white);
  font-style: italic;
  border: none;
  padding: 0;
  margin: 0;
  letter-spacing: -0.02em;
}
.home-ggr-attr {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
}

.pre-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.8;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.main-title {
  font-family: var(--font-sans);
  font-size: clamp(52px, 8vw, 108px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 24px;
}

.main-sub {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  line-height: 1.6;
}

.main-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}
.main-desc a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.main-desc a:hover {
  opacity: 0.75;
}

/* --- PLANET NAV --- */
.planet-nav {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
}

.planet-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px;
  transition: transform 0.25s ease;
}
.planet-btn:hover {
  transform: translateY(-12px);
}

.planet-orb {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.22), transparent 50%),
    radial-gradient(circle at 68% 72%, var(--glow), rgba(6,2,21,0.9));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 0 18px var(--glow),
    0 0 40px rgba(0,0,0,0.6);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  animation: float 7s ease-in-out infinite;
}

/* Ring — appears on the "MISSION LOG" planet */
.planet-btn:nth-child(2) .planet-orb::after {
  content: '';
  position: absolute;
  width: 130%;
  height: 30%;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  top: 35%;
  left: -15%;
  transform: rotateX(65deg);
  pointer-events: none;
}

.planet-btn:nth-child(1) .planet-orb { animation-delay: 0s;    }
.planet-btn:nth-child(2) .planet-orb { animation-delay: -1.4s; }
.planet-btn:nth-child(3) .planet-orb { animation-delay: -2.8s; }
.planet-btn:nth-child(4) .planet-orb { animation-delay: -4.2s; }
.planet-btn:nth-child(5) .planet-orb { animation-delay: -5.6s; }
.planet-btn:nth-child(6) .planet-orb { animation-delay: -7.0s; }

@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-14px); }
}

.planet-btn:hover .planet-orb {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.15),
    0 0 30px var(--glow),
    0 0 70px rgba(0,0,0,0.3),
    inset 0 0 20px rgba(255,255,255,0.06);
}

.planet-btn span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.planet-btn:hover span {
  color: var(--text-white);
}

/* =========================================
   SECTION SCREENS
   ========================================= */
.section-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
}
.section-scroll::-webkit-scrollbar { width: 3px; }
.section-scroll::-webkit-scrollbar-track { background: transparent; }
.section-scroll::-webkit-scrollbar-thumb {
  background: rgba(74,158,255,0.25);
  border-radius: 2px;
}

.section-content {
  max-width: 780px;
  width: 100%;
  padding: 88px 0 120px;
}

/* --- BACK BUTTON --- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  cursor: pointer;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: all 0.2s;
}
.back-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  color: var(--text-white);
}

/* =========================================
   MINI NAV
   ========================================= */
#mini-nav {
  position: fixed;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(6,2,21,0.92);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50px;
  padding: 9px 16px;
  backdrop-filter: blur(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#mini-nav.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}

.mnav-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  transition: transform 0.2s ease;
  border-radius: 30px;
}
.mnav-btn:hover {
  transform: translateY(-5px);
}

.home-btn .mnav-icon {
  font-size: 14px;
  color: var(--purple);
  text-shadow: 0 0 8px var(--purple);
  line-height: 1;
  display: block;
  transition: text-shadow 0.2s;
}
.home-btn:hover .mnav-icon,
.home-btn.active .mnav-icon {
  text-shadow: 0 0 16px var(--purple), 0 0 32px var(--purple);
}

.mnav-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 5px var(--c);
  transition: all 0.25s ease;
}
.mnav-btn.active .mnav-orb {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 14px var(--c), 0 0 28px rgba(0,0,0,0);
}

.mnav-label {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}
.mnav-btn:hover .mnav-label,
.mnav-btn.active .mnav-label {
  color: rgba(255,255,255,0.85);
}

.mnav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.08);
  margin: 0 6px;
  flex-shrink: 0;
}

/* --- SECTION TITLE --- */
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-white);
  margin-bottom: 10px;
  line-height: 1.1;
}

/* Accent bar under section titles */
.section-title::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 20px;
  border-radius: 1px;
}

.section-title-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 36px;
  display: block;
  opacity: 0.8;
}

.section-intro {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
  padding-left: 16px;
  border-left: 2px solid rgba(74,158,255,0.35);
}

.section-content p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.section-content a {
  color: var(--accent);
  text-decoration: none;
}
.section-content a:hover {
  opacity: 0.75;
}

/* =========================================
   PILOT — about section
   ========================================= */
.big-quote {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  font-style: italic;
  color: var(--text-white);
  line-height: 1.6;
  padding: 24px 24px 24px 28px;
  border-left: 3px solid var(--accent);
  background: rgba(74,158,255,0.04);
  margin-bottom: 32px;
  border-radius: 0 8px 8px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: border-color 0.25s, background 0.25s;
}
.stat:hover {
  border-color: rgba(74,158,255,0.3);
  background: rgba(74,158,255,0.04);
}

.stat-num {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* =========================================
   MISSION LOG — timeline
   ========================================= */
.timeline {
  border-left: 1px solid rgba(74,158,255,0.25);
  padding-left: 28px;
  margin-left: 6px;
}

.timeline-item {
  position: relative;
  padding-bottom: 38px;
}
.timeline-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -35px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.12), 0 0 8px rgba(74,158,255,0.35);
}

.tl-body h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tl-date {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  opacity: 0.7;
}

.tl-body p {
  font-family: var(--font-sans);
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
  line-height: 1.8 !important;
}

/* =========================================
   TRANSMISSIONS
   ========================================= */
#transmissions-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tx-card {
  background: var(--bg-card);
  border: 1px solid rgba(74,158,255,0.1);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.tx-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,158,255,0.25), transparent);
}
.tx-card:hover {
  border-color: rgba(74,158,255,0.22);
  background: rgba(74,158,255,0.02);
}

.tx-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tx-date {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.tx-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(74,158,255,0.1);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tx-card p {
  font-family: var(--font-sans);
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
  line-height: 1.85 !important;
}

/* =========================================
   ARCHIVE
   ========================================= */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.archive-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.archive-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,158,255,0.2), transparent);
}
.archive-card:hover {
  border-color: rgba(74,158,255,0.2);
  background: rgba(74,158,255,0.02);
}

.archive-card h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.archive-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.65;
}

.archive-card p {
  font-family: var(--font-sans);
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
  line-height: 1.75 !important;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-intro {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.contact-pill {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 10px 18px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.contact-pill:hover {
  background: rgba(74,158,255,0.06);
  border-color: rgba(74,158,255,0.3);
  color: var(--text-white);
}

/* --- WISH / SIGNAL --- */
.wish-zone {
  margin-bottom: 32px;
}
.wish-label {
  font-size: 13px !important;
  color: var(--text-dim) !important;
  margin-bottom: 18px !important;
}

.launch-btn {
  background: none;
  border: 1px solid rgba(74,158,255,0.35);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 32px;
  cursor: pointer;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: all 0.2s;
}
.launch-btn:hover {
  background: rgba(74,158,255,0.08);
  border-color: var(--accent);
}

/* --- SIGNAL FORM --- */
.signal-form-wrap {
  border: 1px solid rgba(74,158,255,0.15);
  border-radius: 8px;
  padding: 28px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.signal-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.signal-form-wrap.hidden { display: none; }

.form-intro {
  font-size: 12px !important;
  color: var(--text) !important;
  margin-bottom: 22px !important;
  line-height: 1.7 !important;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-row label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}
.form-row input,
.form-row textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(74,158,255,0.4);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.06);
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.5;
}

.submit-btn {
  background: none;
  border: 1px solid rgba(74,158,255,0.35);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 32px;
  cursor: pointer;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: all 0.2s;
  margin-top: 6px;
}
.submit-btn:hover {
  background: rgba(74,158,255,0.08);
  border-color: var(--accent);
}

.form-success {
  margin-top: 14px !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  color: var(--accent) !important;
  letter-spacing: 0.02em !important;
  line-height: 1.8 !important;
}
.form-success.hidden { display: none; }

/* =========================================
   ARCADE GAME
   ========================================= */
#arcade-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#screen-arcade.playing { cursor: none; }

.arcade-hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px;
  z-index: 20;
  pointer-events: none;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1px;
}
.arcade-hud.hidden { display: none; }

#arcade-timer-display {
  color: var(--green);
  text-shadow: 0 0 14px var(--green);
  font-size: 14px;
}
#arcade-hits-display {
  color: var(--amber);
  text-shadow: 0 0 10px var(--amber);
}
#arcade-lives {
  color: var(--pink);
  text-shadow: 0 0 10px var(--pink);
  letter-spacing: 4px;
}

.arcade-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  background: rgba(6,2,21,0.8);
  backdrop-filter: blur(5px);
}
.arcade-overlay.hidden { display: none; }

.arcade-overlay-inner {
  max-width: 520px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.arcade-desc {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  color: var(--text) !important;
  line-height: 2 !important;
  letter-spacing: 1px !important;
  margin: 0 !important;
}

.arcade-start-btn {
  background: none;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 16px 36px;
  cursor: pointer;
  letter-spacing: 3px;
  text-shadow: 0 0 12px var(--green);
  box-shadow: 0 0 20px rgba(57,255,20,0.15);
  transition: all 0.2s;
}
.arcade-start-btn:hover {
  background: rgba(57,255,20,0.08);
  box-shadow: 0 0 40px rgba(57,255,20,0.35);
}

.arcade-win-offer {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--amber);
  text-shadow: 0 0 16px rgba(255,184,0,0.5);
  margin: 8px 0 24px;
  line-height: 1.4;
}

.arcade-win-link {
  display: inline-block;
  background: none;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 14px 28px;
  cursor: pointer;
  letter-spacing: 2px;
  text-decoration: none;
  text-shadow: 0 0 10px var(--green);
  box-shadow: 0 0 20px rgba(57,255,20,0.15);
  transition: all 0.2s;
  animation: blink 2s infinite;
}
.arcade-win-link:hover {
  background: rgba(57,255,20,0.1);
  box-shadow: 0 0 40px rgba(57,255,20,0.4);
}

/* Arcade win — discount code box */
.arcade-discount-box {
  background: rgba(57,255,20,0.04);
  border: 1px solid rgba(57,255,20,0.3);
  padding: 18px 32px;
  text-align: center;
  width: 100%;
}
a.arcade-discount-link {
  display: block;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
a.arcade-discount-link:hover {
  background: rgba(57,255,20,0.09);
  border-color: rgba(57,255,20,0.6);
}
.discount-label {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--green);
  letter-spacing: 2px;
  margin-bottom: 12px;
  opacity: 0.7;
}
.discount-code {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--amber);
  text-shadow: 0 0 24px var(--amber);
  letter-spacing: 6px;
  margin-bottom: 8px;
}
.discount-note {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.arcade-secondary-btn {
  background: none;
  border: none;
  color: rgba(212,200,255,0.45);
  font-family: var(--font-pixel);
  font-size: 6px;
  padding: 8px 16px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: color 0.2s;
}
.arcade-secondary-btn:hover {
  color: var(--text);
}

/* =========================================
   FUN FACT POPUP
   ========================================= */
#fact-popup {
  position: fixed;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  background: rgba(10,12,26,0.98);
  border: 1px solid rgba(74,158,255,0.25);
  box-shadow:
    0 0 0 1px rgba(74,158,255,0.05),
    0 12px 40px rgba(0,0,0,0.5);
  border-radius: 8px;
  padding: 16px 44px 16px 22px;
  z-index: 450;
  max-width: 460px;
  width: 90%;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#fact-popup.visible {
  transform: translateX(-50%) translateY(0);
}
#fact-popup.hidden { display: none; }
#fact-popup-header {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.8;
}
#fact-popup-text {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
}
#fact-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  padding: 4px 6px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  opacity: 0.5;
}
#fact-popup-close:hover { color: var(--text-white); opacity: 1; }

/* Clickable cards get subtle hint */
[data-fact] {
  position: relative;
  cursor: pointer;
}
[data-fact]::after {
  content: '·';
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
  transition: opacity 0.2s;
}
[data-fact]:hover::after { opacity: 0.7; }
[data-fact]:hover { border-color: rgba(74,158,255,0.22) !important; }

/* =========================================
   SECTION FOOTER
   ========================================= */
.section-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0 8px;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  opacity: 0.6;
}
.footer-link:hover {
  color: var(--text-white);
  text-shadow: none;
  opacity: 1;
}
.footer-link svg { flex-shrink: 0; opacity: 0.6; transition: opacity 0.2s; }
.footer-link:hover svg { opacity: 1; }

/* =========================================
   GLOBAL PERSISTENT FOOTER
   ========================================= */
#global-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 195;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  background: rgba(5,6,15,0.94);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
#global-footer.hidden { display: none; }
.gfooter-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  text-decoration: none;
  opacity: 0.5;
  transition: color 0.2s, opacity 0.2s;
}
.gfooter-link:hover {
  color: var(--text-white);
  opacity: 1;
  text-shadow: none;
}
.gfooter-link svg { opacity: 0.6; transition: opacity 0.2s; flex-shrink: 0; }
.gfooter-link:hover svg { opacity: 1; }
.gfooter-sep { color: rgba(255,255,255,0.1); }

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 640px) {
  .planet-nav  { gap: 16px; }
  .planet-orb  { width: 54px; height: 54px; }
  .planet-btn span { font-size: 10px; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .main-title  { font-size: 38px; letter-spacing: -0.02em; }
  .contact-quick-links { flex-direction: column; }
  .home-quote-wrap { padding: 24px 0; }
}

/* =========================================
   PHASE 2 — CUSTOM CURSOR
   ========================================= */
html.custom-cursor,
html.custom-cursor * {
  cursor: none !important;
}

#cursor-dot {
  position: fixed;
  top: -2.5px;
  left: -2.5px;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  opacity: 0;
  transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.3s ease;
}

#cursor-ring {
  position: fixed;
  top: -15px;
  left: -15px;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  opacity: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}

html.custom-cursor body.cursor-hover #cursor-dot {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(74,158,255,0.8), 0 0 3px rgba(74,158,255,0.5);
}

html.custom-cursor body.cursor-hover #cursor-ring {
  border-color: rgba(74,158,255,0.45);
  box-shadow: 0 0 10px rgba(74,158,255,0.12);
}

/* Hide on touch/coarse pointer devices */
@media (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* =========================================
   PHASE 2 — SECTION + HOME REVEAL
   ========================================= */

/* Elements start invisible — revealed by JS */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   PHASE 3 — GLASSMORPHISM + TYPOGRAPHY
   ========================================= */

/* --- STAT CARDS (glassmorphism) --- */
.stat {
  background: rgba(5,6,15,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.07);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.stat:hover {
  border-color: rgba(74,158,255,0.28);
  background: rgba(5,6,15,0.7);
  box-shadow: 0 8px 32px rgba(74,158,255,0.09), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Gradient stat numbers */
.stat-num {
  background: linear-gradient(160deg, #ffffff 0%, rgba(200,220,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- TX CARDS (glass upgrade) --- */
.tx-card {
  background: rgba(5,6,15,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(74,158,255,0.13);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.tx-card:hover {
  border-color: rgba(74,158,255,0.26);
  background: rgba(5,6,15,0.65);
  box-shadow: 0 8px 28px rgba(74,158,255,0.09), inset 0 1px 0 rgba(255,255,255,0.07);
}

/* --- ARCHIVE CARDS (glass upgrade) --- */
.archive-card {
  background: rgba(5,6,15,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.archive-card:hover {
  border-color: rgba(74,158,255,0.2);
  background: rgba(5,6,15,0.65);
  box-shadow: 0 8px 28px rgba(74,158,255,0.07);
}

/* --- TIMELINE (glass card treatment) --- */
.tl-dot {
  width: 12px;
  height: 12px;
  left: -36px;
  top: 24px;
  box-shadow: 0 0 0 3px rgba(74,158,255,0.14), 0 0 14px rgba(74,158,255,0.55);
}

.timeline-item {
  background: rgba(255,255,255,0.022);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 10px;
  padding: 20px 20px 20px 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.timeline-item:last-child {
  padding-bottom: 20px;
  margin-bottom: 0;
}
.timeline-item:hover {
  border-color: rgba(74,158,255,0.18);
  background: rgba(74,158,255,0.025);
}

/* --- BIG QUOTE (glass treatment) --- */
.big-quote {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(74,158,255,0.12);
}

/* --- TYPOGRAPHY HIERARCHY --- */
.section-title {
  text-shadow: 0 0 80px rgba(74,158,255,0.12);
}
.tl-body h3 {
  font-size: 17px;
}

/* =========================================
   PHASE 4 — PULL QUOTE + GAP FIX
   ========================================= */

/* Reduce dead space below planet nav */
.home-inner {
  min-height: 85vh;
}

/* Pull quote — typographic callout in PILOT */
.pull-quote {
  text-align: center;
  margin: 44px auto;
  max-width: 560px;
  position: relative;
  padding: 0 24px 24px;
}
.pull-quote::before {
  content: '"';
  display: block;
  font-family: var(--font-sans);
  font-size: 96px;
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.2;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.pull-quote p {
  font-family: var(--font-sans) !important;
  font-size: clamp(19px, 2.5vw, 27px) !important;
  font-weight: 600 !important;
  color: var(--text-white) !important;
  line-height: 1.45 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

/* =========================================
   PHASE 7 — MOBILE NAV POLISH
   ========================================= */
@media (max-width: 640px) {
  #mini-nav {
    padding: 10px 12px;
    bottom: 32px;
    gap: 0;
  }
  .mnav-btn {
    padding: 6px 10px;
  }
  .section-content {
    padding-top: 72px;
  }
  .stats-grid {
    gap: 10px;
  }
}

/* =========================================
   PHASE 8 — ORBITAL PLANET NAV (v23)
   ========================================= */

/* Desktop: nav becomes a positioned canvas for JS orbits */
@media (min-width: 641px) {
  .planet-nav {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(400px, 52vw, 580px);
  }

  /* Name-as-sun — locked to orbital centre on desktop */
  .nav-sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    margin: 0;
    /* Subtle glow to reinforce the sun metaphor */
    text-shadow: 0 0 60px rgba(74, 158, 255, 0.18), 0 0 120px rgba(74, 158, 255, 0.08);
  }
  /* Prevent the reveal animation's translateY(0) from overriding the centering transform */
  .nav-sun.revealed {
    transform: translate(-50%, -50%);
  }

  /* Buttons positioned absolutely by JS — JS owns transform; opacity transitions for depth */
  .planet-btn {
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 0.3s ease;
  }
  .planet-btn:hover {
    transform: none; /* JS handles all transforms including hover scale */
  }
}

/* Orbit rings container — centred zero-size anchor inside the nav */
.orbit-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
}

/* Individual rings sized by JS */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.065);
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 0.5px rgba(74, 158, 255, 0.08);
}

/* Hide rings on mobile — flex layout stays in charge */
@media (max-width: 640px) {
  .orbit-rings { display: none; }
}

/* =========================================
   PHASE 8 — PILOT PHOTO
   ========================================= */
.pilot-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.pilot-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(124, 58, 237, 0.45);
  box-shadow:
    0 0 0 4px rgba(124, 58, 237, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(124, 58, 237, 0.12);
}

.pilot-photo-placeholder {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.45);
  box-shadow:
    0 0 0 4px rgba(124, 58, 237, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.45);
  background: rgba(124, 58, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: #7C3AED;
  letter-spacing: -0.01em;
}
