*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0f;
  --text: #f0f0f5;
  --text-muted: rgba(240, 240, 245, 0.55);
  --accent: #6ee7a0;
  --accent-bright: #a3f5c4;
  --accent-glow: rgba(110, 231, 160, 0.35);
  --claude-orange: #d97757;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

em {
  font-style: normal;
  font-weight: 500;
  color: var(--claude-orange);
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.ambient--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(110, 231, 160, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: drift 20s ease-in-out infinite alternate;
}

.ambient--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(100, 80, 200, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: drift 25s ease-in-out infinite alternate-reverse;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

@keyframes drift {
  to { transform: translate(40px, 30px); }
}

.splash {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  text-align: center;
}

.splash__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash__content {
  max-width: 520px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.splash__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.splash__desc {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
}

.battery-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.battery-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.battery-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 160, 0.15);
}

.battery-ring--outer {
  width: 280px;
  height: 280px;
  animation: spin 20s linear infinite;
  border-style: dashed;
}

.battery-ring--inner {
  width: 230px;
  height: 230px;
  animation: spin 15s linear infinite reverse;
  border-color: rgba(110, 231, 160, 0.08);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.battery {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.battery__cap {
  width: 44px;
  height: 11px;
  background: linear-gradient(180deg, #3a3a48 0%, #2a2a35 100%);
  border-radius: 4px 4px 0 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
}

.battery__body {
  position: relative;
  width: 120px;
  height: 190px;
  background: linear-gradient(145deg, #1a1a24 0%, #12121a 100%);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    inset 0 2px 20px rgba(0, 0, 0, 0.5),
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(110, 231, 160, 0.08);
}

.battery__fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15%;
  background: linear-gradient(
    180deg,
    var(--accent-bright) 0%,
    var(--accent) 40%,
    #3dba72 100%
  );
  animation: charge-fill 12s ease-in-out infinite;
}

@keyframes charge-fill {
  0% { height: 15%; }
  50% { height: 85%; }
  100% { height: 15%; }
}

.battery__wave {
  position: absolute;
  top: -8px;
  left: -50%;
  width: 200%;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: wave 6s ease-in-out infinite;
}

.battery__wave--2 {
  top: -6px;
  opacity: 0.5;
  animation-delay: -3s;
  animation-duration: 7.5s;
}

@keyframes wave {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(10%) scaleY(1.3); }
}

.battery__shine {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 60%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  border-radius: 8px;
  pointer-events: none;
}

.battery__bolt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 8px rgba(110, 231, 160, 0.6));
  animation: bolt-pulse 4s ease-in-out infinite;
  z-index: 3;
}

@keyframes bolt-pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.battery__percent {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
  z-index: 3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.charge-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: particle-rise 9s ease-in-out infinite;
}

.charge-particles span:nth-child(1) { left: 30%; bottom: 20%; animation-delay: 0s; }
.charge-particles span:nth-child(2) { left: 50%; bottom: 10%; animation-delay: 1.5s; }
.charge-particles span:nth-child(3) { left: 70%; bottom: 25%; animation-delay: 3s; }
.charge-particles span:nth-child(4) { left: 40%; bottom: 5%; animation-delay: 4.5s; }
.charge-particles span:nth-child(5) { left: 60%; bottom: 15%; animation-delay: 6s; }
.charge-particles span:nth-child(6) { left: 45%; bottom: 30%; animation-delay: 7.5s; }

@keyframes particle-rise {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 1; }
  80% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-160px) scale(0); }
}

@media (max-width: 480px) {
  .splash {
    gap: 2rem;
    padding: 1.5rem;
  }

  .battery-ring--outer {
    width: 240px;
    height: 240px;
  }

  .battery-ring--inner {
    width: 200px;
    height: 200px;
  }

  .battery-glow {
    width: 200px;
    height: 200px;
  }
}
