:root {
  --ld-bg: #ffffff;
  --ld-text: #111111;
  --ld-accent: #ff4a00;
  --ld-accent-2: #ff6b00;
  --ld-muted: #666666;

  --pattern-alpha: 0.08;
  --grain-alpha: 0.03;
}

body {
  height: 100vh;
  overflow: hidden;
  background: var(--ld-bg);
  position: relative;
}

.neural-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;

  background: radial-gradient(
      1200px 1200px at 20% 80%,
      rgba(255, 74, 0, var(--pattern-alpha)) 0%,
      rgba(255, 74, 0, 0) 60%
    ),
    radial-gradient(
      1200px 1200px at 80% 20%,
      rgba(255, 107, 0, var(--pattern-alpha)) 0%,
      rgba(255, 107, 0, 0) 60%
    ),
    radial-gradient(rgba(17, 17, 17, var(--grain-alpha)) 1px, transparent 1px);

  background-size: auto, auto, 18px 18px;
  background-position: center, center, 0 0;
  background-repeat: no-repeat, no-repeat, repeat;
  background-blend-mode: normal, normal, multiply;
}

.neuron {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 74, 0, 0.12); /* was 0.10 */
  border-radius: 50%;
  animation: gentlePulse 4s infinite ease-in-out;
  will-change: transform, opacity;
}

@keyframes gentlePulse {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.2);
  }
}

.splash-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  opacity: 0;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}

.logo-main {
  color: var(--ld-text);
  display: block;
  position: relative;
  margin-bottom: 8px;
}

.logo-sub {
  color: var(--ld-accent);
  font-weight: 400;
  font-size: 0.2em;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.9;
}

.progress-container {
  width: 240px;
  height: 2px;
  margin: 32px auto 24px;
  background: rgba(17, 17, 17, 0.05);
  border-radius: 1px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--ld-accent);
  border-radius: 1px;
  animation: smoothProgress 3s ease-out forwards;
}

@keyframes smoothProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.loading-text {
  color: var(--ld-muted);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 16px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

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

.animate-entrance {
  animation: elegantEntrance 1.2s ease-out forwards;
}
.animate-exit {
  animation: elegantExit 0.8s ease-in forwards;
}

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

@keyframes elegantExit {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
}

/* Subtle floating elements for visual interest */
.floating-element {
  position: absolute;
  z-index: 3;
  opacity: 0.03;
  animation: gentleFloat 12s infinite ease-in-out;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(90deg);
  }
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(255, 74, 0, 0.05);
  animation: gentleDrift 8s infinite linear;
}

@keyframes gentleDrift {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0.8);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .logo-text {
    font-size: clamp(36px, 10vw, 72px);
  }
  .progress-container {
    width: 200px;
  }
  .loading-text {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    margin-bottom: 12px;
  }
  .progress-container {
    width: 180px;
    margin: 24px auto 20px;
  }
}


.splash-screen {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
}