/* Splash Screen Enhanced Styles */

:root {
  --cyan-primary: #00BEEA;
  --cyan-bright: #00D9FF;
  --purple-quantum: #8B5CF6;
  --green-neural: #10B981;
}

/* SPLASH CONTAINER */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* NETWORK CANVAS */
#networkCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

/* VIGNETTE */
.vignette {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

/* EQUATIONS */
.equation-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
}

.equation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 6rem;
  opacity: 0;
  white-space: nowrap;
}

.eq-1 {
  color: #00D9FF;
  text-shadow:
    0 0 40px rgba(0, 217, 255, 1),
    0 0 80px rgba(0, 217, 255, 0.5);
  animation: eqReveal 1.5s ease-out 0s forwards;
}

.eq-2 {
  color: #10B981;
  text-shadow:
    0 0 40px rgba(16, 185, 129, 1),
    0 0 80px rgba(16, 185, 129, 0.5);
  animation: eqReveal 1.5s ease-out 1.2s forwards;
}

@keyframes eqReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    filter: blur(30px);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    filter: blur(0);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
    filter: blur(20px);
  }
}

/* MAIN CONTENT */
.content-layer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  padding: 0 40px;
  opacity: 0;
  animation: contentFadeIn 1s ease-out 2.2s forwards;
}

@keyframes contentFadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* TOP BADGE */
.top-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--purple-quantum);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-badge::before,
.top-badge::after {
  content: '◆';
  font-size: 0.7rem;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* LOGO */
.logo-container {
  margin-bottom: 30px;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* TITLE */
.main-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 5.5rem;
  font-weight: 900;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 0 0 60px rgba(0, 217, 255, 0.3);
}

/* SCALING LINE */
.scaling-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-neural);
  margin-bottom: 25px;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  text-align: center;
}

/* TAGLINE */
.tagline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 2px;
  max-width: 700px;
}

/* STATS ROW */
.stats-row {
  display: flex;
  gap: 35px;
  margin-bottom: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 140px;
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--cyan-bright);
  display: block;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
}

.stat-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* MISSION LINE */
.mission-line {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  color: var(--purple-quantum);
  text-align: center;
  margin-bottom: 40px;
  max-width: 650px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ENTER BUTTON */
#enterBtn {
  position: relative;
  padding: 26px 75px;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--cyan-primary) 0%, var(--cyan-bright) 100%);
  border: 3px solid var(--cyan-bright);
  color: white;
  cursor: pointer;
  border-radius: 60px;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 5px;
  transition: all 0.4s ease;
  box-shadow:
    0 0 60px rgba(0, 190, 234, 0.8),
    0 20px 50px rgba(0, 0, 0, 0.7),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

#enterBtn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 100%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s;
}

#enterBtn:hover::before {
  left: 200%;
}

#enterBtn:hover {
  background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--cyan-primary) 100%);
  transform: translateY(-5px) scale(1.05);
  box-shadow:
    0 0 100px rgba(0, 217, 255, 1),
    0 25px 60px rgba(0, 0, 0, 0.9),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

/* BOTTOM INFO */
.bottom-info {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  justify-content: center;
}

.bottom-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-item::before {
  content: '◆';
  color: var(--purple-quantum);
  font-size: 0.6rem;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .equation {
    font-size: 3.5rem;
  }
  .main-title {
    font-size: 3.5rem;
  }
  .scaling-line {
    font-size: 1.3rem;
  }
  .tagline {
    font-size: 1.2rem;
  }
  .stats-row {
    gap: 20px;
  }
  .stat-number {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  #splash {
    position: fixed;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 0 40px 0;
  }
  .content-layer {
    padding: 20px;
    margin-top: 20px;
    flex-shrink: 0;
  }
  .equation {
    font-size: 2rem;
  }
  .main-title {
    font-size: 2.2rem;
  }
  .logo-container img {
    width: 120px !important;
    height: 120px !important;
  }
  #enterBtn {
    padding: 18px 40px;
    font-size: 1.1rem;
    letter-spacing: 2px;
  }
  .bottom-info {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    margin-top: 40px;
    padding: 0 20px;
  }
  .scaling-line {
    font-size: 1rem;
  }
  .tagline {
    font-size: 1rem;
    padding: 0 20px;
  }
  .mission-line {
    font-size: 0.9rem;
    padding: 0 15px;
  }
  .stats-row {
    flex-direction: column;
    gap: 15px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }
  #clickHint {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 400px) {
  .equation {
    font-size: 1.6rem;
  }
  .main-title {
    font-size: 1.8rem;
  }
  .logo-container img {
    width: 100px !important;
    height: 100px !important;
  }
  #enterBtn {
    padding: 15px 35px;
    font-size: 1rem;
  }
  .tagline {
    font-size: 0.9rem;
  }
}
