/* ==========================================================================
   ORBITAL — Flagship Celestial Luxury Design System
   Award-Nominated Dual Theme Engine (Celestial Obsidian & Solar Alabaster)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Theme Tokens --- */
:root, [data-theme="dark"], html[data-theme="dark"] {
  --theme-name: 'dark';
  --bg-deep: #05070d;
  --bg-canvas: #080b14;
  --bg-surface: #0e1322;
  --bg-card: rgba(12, 17, 30, 0.85);
  --bg-card-hover: rgba(18, 25, 45, 0.95);
  --bg-input: #070a12;

  --gold-primary: #e5be59;
  --gold-light: #fae8a8;
  --gold-glow: rgba(229, 190, 89, 0.24);
  --gold-subtle: rgba(229, 190, 89, 0.08);

  --cyan-accent: #64d2ff;
  --cyan-glow: rgba(100, 210, 255, 0.2);
  --violet-nebula: #a277ff;
  --emerald-aura: #30d158;

  --text-primary: #f5f7fc;
  --text-secondary: #9aa5be;
  --text-muted: #5e6982;
  --text-gold: #f0cb68;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(229, 190, 89, 0.32);

  --nav-bg: rgba(5, 7, 13, 0.85);
  --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="light"], 
html[data-theme="light"] body,
body[data-theme="light"], 
body.light-theme, 
[data-theme="light"] {
  --theme-name: 'light';
  --bg-deep: #f8fafc;
  --bg-canvas: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;

  --gold-primary: #b45309;
  --gold-light: #d97706;
  --gold-dark: #78350f;
  --gold-glow: rgba(180, 83, 9, 0.12);
  --gold-subtle: rgba(180, 83, 9, 0.05);

  --cyan-accent: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.12);
  --violet-nebula: #6d28d9;
  --emerald-aura: #047857;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-gold: #92400e;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-card: rgba(15, 23, 42, 0.09);
  --border-glow: rgba(180, 83, 9, 0.28);

  --nav-bg: rgba(255, 255, 255, 0.92);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 12px 30px -8px rgba(15, 23, 42, 0.07), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] {
  background-color: #f8fafc;
  color-scheme: light;
}

html[data-theme="light"] body,
body.light-theme {
  background-color: #f8fafc;
  color: #0f172a;
}

:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-roman: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

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

html {
  background-color: var(--bg-deep);
  color-scheme: light dark;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Background Atmosphere (Zero heavy filter blurs for 120 FPS hardware blit) */
#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.cosmic-nebula-top {
  position: fixed;
  top: -10vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  max-width: 1100px;
  height: 45vh;
  background: radial-gradient(ellipse at 50% 30%, rgba(120, 68, 224, 0.08) 0%, rgba(35, 65, 140, 0.04) 45%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.cosmic-nebula-bottom {
  position: fixed;
  bottom: -15vh;
  right: -5vw;
  width: 60vw;
  max-width: 800px;
  height: 45vh;
  background: radial-gradient(ellipse at center, rgba(229, 190, 89, 0.06) 0%, rgba(20, 110, 180, 0.02) 50%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

html[data-theme="light"] .cosmic-nebula-top {
  background: radial-gradient(ellipse at 50% 25%, rgba(99, 102, 241, 0.05) 0%, rgba(201, 130, 12, 0.04) 40%, transparent 70%);
}

html[data-theme="light"] .cosmic-nebula-bottom {
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.05) 0%, rgba(201, 130, 12, 0.03) 45%, transparent 65%);
}

/* Content Wrapper */
.app-wrapper {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Reusable Compact Tool Section */
.tool-section {
  padding: 36px 0 16px 0;
}

/* Typography Hierarchy — Refined Editorial Luxury */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.font-roman {
  font-family: var(--font-roman);
}

.gold-gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 10%, var(--gold-light) 45%, var(--gold-primary) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cyan-gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--cyan-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Top Navigation Bar — Ultra Compact Master Dock */
.site-nav {
  position: sticky;
  top: 10px;
  width: calc(100% - 28px);
  max-width: 1180px;
  margin: 8px auto 0 auto;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  transform: translateZ(0);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 14px 0 16px;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 0 10px var(--gold-glow);
  border: 1px solid var(--gold-primary);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .brand-icon {
  transform: rotate(12deg) scale(1.08);
}

.brand-title {
  font-family: var(--font-roman);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold-primary);
  text-transform: uppercase;
  background: var(--gold-subtle);
  padding: 1px 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glow);
}

/* Navigation Telemetry Live Status */
.nav-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: 2px;
}

.nav-utc-text strong {
  color: var(--gold-primary);
  font-family: var(--font-roman);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.nav-precision-tag {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--cyan-accent);
  background: rgba(100, 210, 255, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
  display: inline-block;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--gold-subtle);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Ambient Audio Synthesizer Toggle */
.sound-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.sound-toggle-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.sound-toggle-btn.sound-on {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: var(--gold-subtle);
}

.sound-toggle-btn.sound-on .sound-icon-off {
  display: none;
}

.sound-toggle-btn.sound-on .sound-icon-on {
  display: block !important;
}

/* Luxury Compact Dual-Icon Theme Switcher */
.theme-segment-switch {
  display: inline-flex;
  align-items: center;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  padding: 2px;
  height: 28px;
  width: 58px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
  user-select: none;
}

.theme-segment-slider {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  border-radius: 999px;
  background: linear-gradient(135deg, #fae8a8 0%, #e5be59 100%);
  box-shadow: 0 1px 4px var(--gold-glow);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
  z-index: 1;
  pointer-events: none;
}

html[data-theme="light"] .theme-segment-slider {
  transform: translateX(0);
  background: linear-gradient(135deg, #e5be59 0%, #b88a22 100%);
  box-shadow: 0 1px 5px rgba(184, 138, 34, 0.35);
}

html[data-theme="dark"] .theme-segment-slider {
  transform: translateX(100%);
  background: linear-gradient(135deg, #242e48 0%, #121828 100%);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.theme-segment-option {
  position: relative;
  z-index: 2;
  width: 50%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.2s ease;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  padding: 0;
}

.theme-segment-option.active {
  color: #0c0802;
}

html[data-theme="dark"] .theme-segment-option.active {
  color: var(--gold-light);
}

html[data-theme="light"] .theme-segment-option.active {
  color: #ffffff;
}

/* Compact Apple Get App Button */
.btn-nav-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

html[data-theme="light"] .btn-nav-app {
  background: #11141c;
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.25);
}

.btn-nav-app:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.nav-apple-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  padding: 12px 16px 16px 16px;
  border-top: 1px solid var(--border-subtle);
  animation: drawerSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.site-nav.drawer-open .mobile-nav-drawer {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  background: var(--gold-subtle);
  color: var(--gold-primary);
}

/* Premium Buttons — Compact Luxury */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-gold {
  background: linear-gradient(135deg, #fae8a8 0%, #e5be59 60%, #b88f36 100%);
  color: #0c0802;
  box-shadow: 0 2px 10px -2px var(--gold-glow);
}

html[data-theme="light"] .btn-gold {
  background: linear-gradient(135deg, #f5bc3a 0%, #cf8513 100%);
  color: #120901;
  font-weight: 700;
  box-shadow: 0 3px 12px -2px rgba(207, 133, 19, 0.4);
}

.btn-gold:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 16px 1px var(--gold-glow);
  filter: brightness(1.04);
}

.btn-glass {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.btn-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  color: var(--text-primary);
  transform: translateY(-1.5px);
}

.btn-appstore {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 12px 24px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  text-decoration: none;
}

html[data-theme="light"] .btn-appstore {
  background: #0f172a;
  color: #ffffff;
  border-color: rgba(15, 23, 42, 0.3);
  box-shadow: 0 6px 18px -2px rgba(15, 23, 42, 0.16);
}

.btn-appstore:hover {
  background: #181d28;
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px -3px rgba(0, 0, 0, 0.45), 0 0 18px -2px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-appstore svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-appstore-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.16;
  gap: 2px;
}

.btn-appstore-sub {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
}

.btn-appstore-main {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* Glassmorphic Cards — 120 FPS Composite & Compact */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transform: translateZ(0);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-glow) 50%, transparent 100%);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.22), 0 0 16px -4px var(--gold-glow);
}

/* Section Header Utility — Ultra Compact */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 18px auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: var(--gold-subtle);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glow);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.18;
  margin-bottom: 6px;
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Badge Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.pill-gold {
  background: var(--gold-subtle);
  border-color: var(--border-glow);
  color: var(--gold-primary);
}

.pill-cyan {
  background: rgba(100, 210, 255, 0.1);
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
}

/* Live Pulse Indicator */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-aura);
  box-shadow: 0 0 10px var(--emerald-aura);
  display: inline-block;
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* ==========================================================================
   ORBITAL — Observatory Cockpit Master Design System
   Award-Winning Cosmic Command Center & Interactive Tool Suite
   ========================================================================== */

/* Hero Header Stage */
.hero-header-stage {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 26px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: var(--gold-subtle);
  border: 1px solid var(--border-glow);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

html[data-theme="light"] .hero-badge {
  color: var(--gold-primary);
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
}

.hero-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 620px;
  text-align: center;
}

/* Observatory Cockpit 3-Panel Grid */
.observatory-cockpit-grid {
  display: grid;
  grid-template-columns: 310px 1fr 310px;
  gap: 22px;
  align-items: stretch;
  margin: 24px 0 20px 0;
}

.cockpit-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.cockpit-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-glow) 50%, transparent 100%);
  pointer-events: none;
}

.cockpit-panel:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.45), 0 0 20px -4px var(--gold-glow);
}

.cockpit-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Panel Headers */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.panel-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Cockpit Left Wing (Horology) */
.cockpit-hero-hour {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.cockpit-glyph-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 0 16px var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.cockpit-hour-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

.cockpit-hour-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cockpit-timer-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.cockpit-timer-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cockpit-countdown {
  font-family: var(--font-roman);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.cockpit-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

html[data-theme="light"] .cockpit-progress-track {
  background: rgba(0, 0, 0, 0.08);
}

.cockpit-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  border-radius: 999px;
  box-shadow: 0 0 8px var(--gold-glow);
  transition: width 1s linear;
}

.cockpit-intel-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.intel-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.intel-label {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.intel-value {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.cockpit-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  background: var(--gold-subtle);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: var(--transition);
}

.cockpit-action-btn:hover {
  background: linear-gradient(135deg, #fae8a8 0%, #e5be59 100%);
  color: #0c0802;
  box-shadow: 0 3px 12px var(--gold-glow);
  transform: translateY(-1px);
}

html[data-theme="light"] .cockpit-action-btn:hover {
  background: linear-gradient(135deg, #e5be59 0%, #b88a22 100%);
  color: #ffffff;
}

/* Astrolabe Bezel Ring & Cardinal Ticks */
.astrolabe-bezel-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(229, 190, 89, 0.25);
  pointer-events: none;
  z-index: 1;
}

.bezel-cardinal {
  position: absolute;
  font-family: var(--font-roman);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  opacity: 0.85;
}

.bezel-asc { top: 50%; left: -22px; transform: translateY(-50%); }
.bezel-mc  { top: -18px; left: 50%; transform: translateX(-50%); }
.bezel-dsc { top: 50%; right: -22px; transform: translateY(-50%); }
.bezel-ic  { bottom: -18px; left: 50%; transform: translateX(-50%); }

.astrolabe-interaction-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 36px;
  text-align: center;
  letter-spacing: 0.04em;
}

.astrolabe-interaction-hint .hint-icon {
  color: var(--gold-primary);
  font-size: 0.8rem;
}

/* Cockpit Right Wing (Synergy & Aspect Matrix) */
.cockpit-synergy-display {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.synergy-dial-visual {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.synergy-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.synergy-value-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.synergy-pct {
  font-family: var(--font-roman);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1;
}

.synergy-lbl {
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.synergy-state-info {
  display: flex;
  flex-direction: column;
}

.synergy-state-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.synergy-state-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-top: 2px;
}

.cockpit-aspects-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.aspect-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.aspect-mini-item:hover {
  border-color: var(--border-card);
  background: var(--bg-card-hover);
}

.aspect-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
}

.aspect-glyph.gold { color: var(--gold-primary); }
.aspect-glyph.cyan { color: var(--cyan-accent); }
.aspect-glyph.pink { color: #ff85c0; }
.aspect-glyph.red  { color: #ff4d4f; }
.aspect-glyph.purple { color: var(--violet-nebula); }

.aspect-code {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.aspect-detail {
  display: flex;
  flex-direction: column;
  margin-left: 8px;
  margin-right: auto;
}

.aspect-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
}

.aspect-orb {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.aspect-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.badge-harmony {
  background: rgba(48, 209, 88, 0.12);
  color: var(--emerald-aura);
  border: 1px solid rgba(48, 209, 88, 0.28);
}

.badge-focus {
  background: rgba(162, 119, 255, 0.12);
  color: var(--violet-nebula);
  border: 1px solid rgba(162, 119, 255, 0.28);
}

/* Streaming Ephemeris Telemetry Tape */
.cockpit-telemetry-tape {
  margin: 18px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.tape-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--gold-subtle);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.tape-track {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.tape-track::-webkit-scrollbar {
  display: none;
}

.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.t-glyph {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

.tape-sep {
  color: var(--text-muted);
  opacity: 0.4;
}

/* --- Sticky Pro Console Dock Bar --- */
.pro-console-dock-wrapper {
  position: sticky;
  top: 66px;
  z-index: 990;
  width: 100%;
  margin: 10px 0 24px 0;
  display: flex;
  justify-content: center;
}

.pro-console-dock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.pro-console-dock::-webkit-scrollbar {
  display: none;
}

.console-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}

.console-tab:hover {
  color: var(--text-primary);
  background: var(--gold-subtle);
}

.console-tab.active {
  background: var(--bg-surface);
  border: 1px solid var(--gold-primary);
  color: var(--text-primary);
  box-shadow: 0 0 14px var(--gold-glow);
}

.console-tab .tab-icon {
  font-size: 0.95rem;
  color: var(--gold-primary);
}

.console-tab .tab-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.console-tab .tab-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.console-tab .tab-desc {
  font-size: 0.58rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Light Theme Architecture (Crystal Ivory Porcelain & Imperial Amber Gold)
   ========================================================================== */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] .font-serif {
  color: #0f172a;
  letter-spacing: -0.015em;
  font-weight: 700;
}

html[data-theme="light"] .section-desc {
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Master Burnished Gold Gradient on Light Backgrounds */
html[data-theme="light"] .gold-gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #78350f 30%, #b45309 70%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 700;
}

html[data-theme="light"] .cyan-gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 60%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 700;
}

/* Luxury Section Eyebrows & Badges */
html[data-theme="light"] .section-eyebrow {
  background: #ffffff;
  border: 1px solid rgba(180, 83, 9, 0.28);
  color: #92400e;
  box-shadow: 0 2px 6px -1px rgba(180, 83, 9, 0.1), inset 0 1px 0 #ffffff;
  font-weight: 800;
  letter-spacing: 0.12em;
}

html[data-theme="light"] .pill-gold {
  background: #fffbeb;
  border-color: rgba(180, 83, 9, 0.3);
  color: #92400e;
}

html[data-theme="light"] .pill-cyan {
  background: #f0f9ff;
  border-color: rgba(2, 132, 199, 0.3);
  color: #0369a1;
}

/* Navigation Dock in Light Mode */
html[data-theme="light"] .site-nav {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .nav-link {
  color: #334155;
  font-weight: 600;
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active {
  color: #b45309;
}

html[data-theme="light"] .nav-telemetry-capsule {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

/* High-Contrast Luxury Buttons */
html[data-theme="light"] .btn-gold {
  background: linear-gradient(135deg, #b45309 0%, #d97706 60%, #ea580c 100%);
  color: #ffffff;
  border: 1px solid rgba(180, 83, 9, 0.35);
  box-shadow: 0 4px 14px -2px rgba(180, 83, 9, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-weight: 700;
}

html[data-theme="light"] .btn-gold:hover {
  background: linear-gradient(135deg, #92400e 0%, #b45309 60%, #d97706 100%);
  box-shadow: 0 6px 20px -2px rgba(180, 83, 9, 0.45);
  transform: translateY(-1px);
}

html[data-theme="light"] .btn-glass {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .btn-glass:hover {
  background: #f8fafc;
  border-color: #b45309;
  color: #92400e;
}

html[data-theme="light"] .btn-nav-app {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px -2px rgba(180, 83, 9, 0.35);
}

/* Master Elevated Glass Cards */
html[data-theme="light"] .glass-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 12px 32px -8px rgba(15, 23, 42, 0.07), inset 0 1px 0 #ffffff;
}

html[data-theme="light"] .glass-card::before {
  background: linear-gradient(90deg, transparent 0%, rgba(180, 83, 9, 0.15) 50%, transparent 100%);
}

html[data-theme="light"] .glass-card:hover {
  border-color: rgba(180, 83, 9, 0.35);
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 20px 42px -10px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(180, 83, 9, 0.15);
}

/* Cockpit Modules & Telemetry Tape */
html[data-theme="light"] .cockpit-module {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .cockpit-telemetry-tape {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .cockpit-intel-box {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .intel-row .intel-label {
  color: #64748b;
  font-weight: 700;
}

html[data-theme="light"] .intel-row .intel-value {
  color: #0f172a;
  font-weight: 600;
}

html[data-theme="light"] .cockpit-progress-track {
  background: #e2e8f0;
}

html[data-theme="light"] .cockpit-progress-bar {
  background: linear-gradient(90deg, #b45309, #d97706);
}

html[data-theme="light"] .cockpit-action-btn {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .cockpit-action-btn:hover {
  background: #f8fafc;
  border-color: #b45309;
  color: #92400e;
}

html[data-theme="light"] .tape-badge {
  background: #fffbeb;
  border-color: rgba(180, 83, 9, 0.3);
  color: #92400e;
}

html[data-theme="light"] .pro-console-dock {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .console-tab {
  color: #475569;
}

html[data-theme="light"] .console-tab:hover {
  background: rgba(180, 83, 9, 0.05);
  color: #0f172a;
}

html[data-theme="light"] .console-tab.active {
  background: #ffffff;
  border-color: #b45309;
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(180, 83, 9, 0.15);
}

/* Precision Forms & Controls */
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  border-color: #b45309;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12);
}

html[data-theme="light"] .tool-label {
  color: #475569;
  font-weight: 700;
}


