:root {
  --bg-dark: #010a05; 
  --card-bg: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.2);
  
  /* Fonts */
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

* { box-sizing: border-box; }

body, html {
  margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
  background-color: var(--bg-dark); 
  color: white;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .head-font { font-family: var(--font-head); }

/* --- LAYER 1: THE ALIVE BACKGROUND --- */
.gradient-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  filter: blur(80px); /* Increased blur back to 80px for softness */
  z-index: 1;
  pointer-events: none;
}

.blob {
  position: absolute; border-radius: 50%;
  animation: morph 20s infinite alternate, spin 50s infinite linear;
  mix-blend-mode: screen;
  opacity: 0.45; /* SIGNIFICANTLY REDUCED from 0.7 for readability */
}

/* Darker, deeper colors to not compete with text */
.blob-1 { top: -10%; left: -10%; width: 90vw; height: 90vw; background: radial-gradient(circle, #065f46 0%, #064e3b 70%); animation-duration: 35s; }
.blob-2 { bottom: -20%; right: -10%; width: 70vw; height: 70vw; background: radial-gradient(circle, #0e7490 0%, #0891b2 70%); animation-duration: 40s; animation-direction: reverse; }
.blob-3 { bottom: 30%; left: 20%; width: 45vw; height: 45vw; background: radial-gradient(circle, #3f6212 0%, #1a2e05 70%); animation-duration: 28s; opacity: 0.4; }
.blob-4 { top: 20%; right: 20%; width: 50vw; height: 50vw; background: radial-gradient(circle, #1d4ed8 0%, #1e3a8a 70%); animation-duration: 25s; }

@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  33% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
  66% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- LAYER 2: THE BUBBLES --- */
.bubble-container {
  position: fixed; width: 100%; height: 100%; 
  z-index: 2;
  pointer-events: none;
}

.bubble {
  position: absolute; bottom: -120px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05) 50%, transparent 80%);
  box-shadow: inset -5px -5px 15px rgba(255, 255, 255, 0.1), inset 2px 2px 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255,255,255,0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: rise var(--duration) ease-in infinite;
  left: var(--left); width: var(--size); height: var(--size);
  opacity: 0;
}
.bubble::after {
  content: ''; position: absolute; top: 15%; left: 20%; width: 25%; height: 15%;
  border-radius: 50%; background: rgba(255, 255, 255, 0.8); filter: blur(1px); transform: rotate(-45deg);
}

@keyframes rise {
  0% { bottom: -120px; transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateX(var(--sway)); }
  90% { opacity: 1; }
  100% { bottom: 120vh; transform: translateX(calc(var(--sway) * -1)); opacity: 0; }
}

/* --- LAYER 3: CONTENT UI --- */
#app {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 10; overflow: hidden;
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; padding: 2rem; overflow-y: auto;
}
.slide.active { pointer-events: auto; }
.slide > * { max-width: 100%; flex-shrink: 0; }
.stagger-el { opacity: 1; transform: translateY(0); }

/* NAVIGATION & UI */
/* Increased Z-Index to ensure they are clickable */
.tap-zone { 
  position: fixed; top: 0; bottom: 0; z-index: 200; 
  cursor: pointer; 
  /* Debug background to see zones if needed: background: rgba(255,0,0,0.1); */
}
.tap-left { left: 0; width: 30%; } 
.tap-right { right: 0; width: 70%; }

.progress-container {
  position: fixed; top: 16px; left: 16px; right: 16px; height: 3px;
  display: flex; gap: 4px; z-index: 210;
  pointer-events: none;
}
.progress-bar { flex: 1; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: white; width: 0%; }

/* Table Styles */
.data-table { width: 100%; text-align: left; border-collapse: separate; border-spacing: 0 8px; }
.data-table th { color: #aaa; font-size: 0.8rem; padding: 0 1rem; font-family: var(--font-head); letter-spacing: 1px;}
.data-table td { background: rgba(255,255,255,0.08); padding: 12px 1rem; }
.data-table td:first-child { border-radius: 12px 0 0 12px; }
.data-table td:last-child { border-radius: 0 12px 12px 0; }

/* Start Screen */
/* Start Screen */
#start-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-color: var(--bg-dark); 
  /* Make background slightly transparent so the vibrant blobs show through */
  background: radial-gradient(circle at center, transparent 0%, rgba(1, 10, 5, 0.8) 100%);
}

.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.8; transform: scale(0.95); } }

.text-gradient {
  background: linear-gradient(to right, #fff, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* New Dazzle Effects */
.shimmer-text {
  background: linear-gradient(90deg, #ffffff 0%, #bbf7d0 20%, #22d3ee 40%, #ffffff 60%, #bbf7d0 80%, #22d3ee 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.glow-btn {
  /* Cleaner glow, less fuzzy */
  box-shadow: 0 0 15px rgba(132, 204, 22, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(132, 204, 22, 0.5);
  background: rgba(0, 0, 0, 0.4); /* Darker btn background for contrast */
  backdrop-filter: blur(4px);
}
.glow-btn:hover {
  box-shadow: 0 0 30px rgba(132, 204, 22, 0.6);
  transform: scale(1.03);
  background: rgba(132, 204, 22, 0.15);
  border-color: rgba(132, 204, 22, 0.8);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .slide { padding: 1.5rem; }
  h1 { font-size: 2.5rem !important; }
  h2 { font-size: 1.75rem !important; }
  .text-7xl { font-size: 3.5rem !important; }
  .text-6xl { font-size: 3rem !important; }
  .text-5xl { font-size: 2.25rem !important; }
}
