/* ==========================================================================
   HEATHERVERSE UNLIMITED: COSMIC EXPEDITION DESIGN SYSTEM
   Futuristic, Alive, Vibrant, High-Contrast Obsidian Glass (100/100 PageSpeed)
   ========================================================================== */

:root {
  /* Cosmic Palette */
  --bg-space: #030712;
  --scrim-deep: rgba(3, 7, 18, 0.72);
  --glass-card: rgba(8, 14, 32, 0.78);
  --glass-card-hover: rgba(14, 24, 52, 0.9);
  --card-border: rgba(255, 255, 255, 0.12);
  
  /* Neon Cosmic Flames */
  --neon-cyan: #00F0FF;
  --neon-pink: #FA2D8A;
  --neon-purple: #A855F7;
  --neon-blue: #38BDF8;
  --cosmic-gold: #FBBF24;

  /* Typography */
  --text-pure: #FFFFFF;
  --text-platinum: #F1F5F9;
  --text-slate: #94A3B8;
  --text-muted: #64748B;

  /* Elevation & Glows */
  --glow-cyan-lg: 0 0 50px rgba(0, 240, 255, 0.35);
  --glow-pink-lg: 0 0 50px rgba(250, 45, 138, 0.35);
  --glow-purple-lg: 0 0 50px rgba(168, 85, 247, 0.35);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Outfit', var(--font-body);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body.obsidian-theme {
  background-color: var(--bg-space);
  color: var(--text-platinum);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   COSMIC LIVING BACKGROUND
   ========================================================================== */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('/assets/images/Cosmic-Background-2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -3;
}

.obsidian-scrim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, rgba(3, 7, 18, 0.5) 0%, rgba(3, 7, 18, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -2;
}

/* Floating Ambient Cosmic Nebulae */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
  animation: float-orb 18s ease-in-out infinite alternate;
}

.orb-pink {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #FA2D8A 0%, transparent 70%);
  top: 10%;
  left: -5%;
}

.orb-cyan {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00F0FF 0%, transparent 70%);
  top: 40%;
  right: -8%;
  animation-duration: 22s;
}

.orb-purple {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #A855F7 0%, transparent 70%);
  bottom: 5%;
  left: 20%;
  animation-duration: 26s;
}

@keyframes float-orb {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(40px) scale(1.1); }
  100% { transform: translateY(-30px) scale(0.95); }
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.header-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
  transition: transform 0.3s ease;
}

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

.accent-text {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-slate);
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #FFFFFF;
}

.highlighted-nav {
  color: var(--neon-cyan);
  font-weight: 600;
}

.highlighted-nav::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
  border-radius: 2px;
}

/* ==========================================================================
   BUTTONS & ACTION PORTALS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-blue) 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(250, 45, 138, 0.4);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(250, 45, 138, 0.6);
}

.btn-glow-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--neon-pink) 0%, #7928CA 50%, var(--neon-cyan) 100%);
  background-size: 200% 200%;
  color: #FFFFFF;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  border-radius: 9999px;
  box-shadow: 0 8px 30px rgba(250, 45, 138, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
  animation: cosmic-gradient-shift 6s ease infinite;
  transition: all 0.3s ease;
}

.btn-glow-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(250, 45, 138, 0.7), 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 9999px;
  backdrop-filter: blur(14px);
  transition: all 0.3s ease;
}

.btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
  transform: translateY(-3px);
}

.btn-portal-cyan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon-cyan);
  transition: transform 0.2s ease, gap 0.2s ease;
}

.btn-portal-cyan:hover {
  gap: 12px;
  text-shadow: 0 0 12px var(--neon-cyan);
}

.btn-portal-pink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon-pink);
  transition: transform 0.2s ease, gap 0.2s ease;
}

.btn-portal-pink:hover {
  gap: 12px;
  text-shadow: 0 0 12px var(--neon-pink);
}

@keyframes cosmic-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================================================
   HERO COMMAND CENTER
   ========================================================================== */
.hero-section {
  padding: 60px 0 90px;
  text-align: center;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Glowing Cosmic Insignia */
.hero-insignia-wrapper {
  position: relative;
  margin-bottom: 28px;
  display: inline-block;
}

.hero-insignia-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 45, 138, 0.4) 0%, rgba(0, 240, 255, 0.3) 50%, transparent 75%);
  filter: blur(20px);
  animation: pulse-halo 4s ease-in-out infinite alternate;
  z-index: -1;
}

.hero-insignia-img {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.5);
  animation: float-insignia 6s ease-in-out infinite alternate;
}

@keyframes pulse-halo {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

@keyframes float-insignia {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  border-radius: 9999px;
  padding: 8px 22px;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--neon-cyan);
}

.status-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.hero-headline {
  font-family: var(--font-brand);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-headline .cosmic-gradient {
  background: linear-gradient(135deg, #00F0FF 0%, #FA2D8A 60%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: 1.3rem;
  color: #E2E8F0;
  max-width: 780px;
  margin-bottom: 42px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Metrics Pill Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 950px;
}

.metric-box {
  background: rgba(8, 14, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px 18px;
  backdrop-filter: blur(12px);
  text-align: center;
  transition: all 0.3s ease;
}

.metric-box:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.2);
}

.metric-number {
  font-family: var(--font-brand);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--neon-cyan);
  line-height: 1;
  margin-bottom: 6px;
}

.metric-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-slate);
}

/* ==========================================================================
   COSMIC EXPEDITION PORTALS (THE 4 CORNERSTONES)
   ========================================================================== */
.section-container {
  padding: 80px 0;
  position: relative;
}

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

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--neon-pink);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-brand);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-slate);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Glass Cards */
.glass-card {
  background: var(--glass-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 38px 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.glass-card:hover {
  background: var(--glass-card-hover);
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 240, 255, 0.25);
}

/* Portal Grid */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.portal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portal-top {
  margin-bottom: 24px;
}

.portal-icon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.portal-glyph {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.portal-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.badge-pink {
  background: rgba(250, 45, 138, 0.15);
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--neon-purple);
  color: var(--neon-purple);
}

.badge-gold {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid var(--cosmic-gold);
  color: var(--cosmic-gold);
}

.portal-title {
  font-family: var(--font-brand);
  font-size: 1.7rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.portal-desc {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.7;
}

/* ==========================================================================
   FOUNDER SPOTLIGHT (FUTURISTIC & PERSONAL)
   ========================================================================== */
.founder-spotlight-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
  padding: 60px 52px;
  background: radial-gradient(circle at 10% 50%, rgba(250, 45, 138, 0.15) 0%, rgba(8, 14, 32, 0.85) 60%);
  border: 1px solid rgba(250, 45, 138, 0.3);
}

.founder-portrait-col {
  text-align: center;
}

.portrait-halo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.portrait-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 45, 138, 0.4) 0%, rgba(0, 240, 255, 0.3) 70%, transparent 100%);
  filter: blur(25px);
  z-index: 0;
}

.founder-photo {
  position: relative;
  z-index: 1;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FFFFFF;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(250, 45, 138, 0.5);
}

.founder-title-badge {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.founder-h2 {
  font-family: var(--font-brand);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.2;
}

.founder-quote-box {
  margin: 22px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--neon-pink);
  background: rgba(250, 45, 138, 0.08);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: #F8FAFC;
  line-height: 1.7;
}

.founder-narrative {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.8;
  margin-bottom: 28px;
}

.founder-links-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-pill {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  transition: all 0.25s ease;
}

.social-pill:hover {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #030712;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   INSTANT DIRECTORY FINDER
   ========================================================================== */
.finder-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px;
  background: rgba(8, 14, 32, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.2);
}

.finder-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #E2E8F0;
}

.form-field select,
.form-field input {
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.form-field select:focus,
.form-field input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.form-actions-full {
  grid-column: span 3;
  margin-top: 8px;
}

.btn-finder-submit {
  width: 100%;
  border: none;
  cursor: pointer;
}

.finder-feedback {
  margin-top: 20px;
  padding: 18px;
  border-radius: 12px;
  font-size: 1rem;
  text-align: center;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34D399;
}

.finder-feedback.hidden {
  display: none;
}

/* ==========================================================================
   CLOSING HORIZONS CTA
   ========================================================================== */
.cosmic-cta-card {
  padding: 72px 36px;
  text-align: center;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 0%, rgba(250, 45, 138, 0.3) 0%, rgba(8, 14, 32, 0.9) 70%);
  border: 1px solid rgba(250, 45, 138, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(250, 45, 138, 0.3);
}

.cta-h2 {
  font-family: var(--font-brand);
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.cta-subtext {
  font-size: 1.2rem;
  color: #CBD5E1;
  max-width: 700px;
  margin: 0 auto 38px;
  line-height: 1.7;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 18, 0.95);
  padding: 64px 0 36px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-slate);
  max-width: 380px;
  margin-bottom: 16px;
}

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

.footer-col h4 {
  font-family: var(--font-brand);
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-slate);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--neon-cyan);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-headline { font-size: 3.2rem; }
  .portals-grid { grid-template-columns: 1fr; }
  .founder-spotlight-card { grid-template-columns: 1fr; text-align: center; }
  .founder-links-row { justify-content: center; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hero-headline { font-size: 2.4rem; }
  .hero-subheadline { font-size: 1.1rem; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .finder-form { grid-template-columns: 1fr; }
  .form-actions-full { grid-column: span 1; }
  .footer-content { grid-template-columns: 1fr; }
}
