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

:root {
  --ashar-carvao: #0D0D0D;
  --ashar-fg: #EAEAEA;
  --ashar-fg-subtle: #666666;
  --ashar-fg-muted: #9A9A9A;
  --ashar-live: #4ADE80;
  --ashar-areia: #D4A853;
  --ashar-border: rgba(255, 255, 255, 0.08);
  --ashar-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --ashar-font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.ashar-splash-body {
  background: var(--ashar-carvao);
  color: var(--ashar-fg);
  overflow: hidden;
}

.ashar-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ashar-carvao);
  font-family: var(--ashar-font-mono);
}

.ashar-splash.fade-out {
  animation: ashar-splash-fade-out 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

.ashar-splash-bg {
  position: absolute;
  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: 40px 40px;
  pointer-events: none;
}

.ashar-splash-mark {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.15;
  color: var(--ashar-fg);
  animation: ashar-seal-breathe 2.4s ease-in-out infinite;
}

.ashar-splash-mark-svg {
  width: 120px;
  height: auto;
}

.ashar-splash-terminal {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 0 24px;
}

.ashar-splash-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ashar-fg-subtle);
  line-height: 2;
  opacity: 0;
  animation: ashar-tx-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ashar-splash-check {
  margin-left: auto;
  color: var(--ashar-live);
}

.ashar-splash-cursor {
  display: inline-block;
  color: var(--ashar-live);
  animation: ashar-cursor-blink 1s step-end infinite;
}

.ashar-splash-bar-track {
  margin-top: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  overflow: hidden;
}

.ashar-splash-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ashar-fg-subtle), var(--ashar-live));
  border-radius: 1px;
  transition: width 0.3s ease;
}

.ashar-splash-welcome {
  margin-top: 20px;
  font-family: var(--ashar-font-display);
  font-size: 16px;
  color: var(--ashar-fg);
  font-style: italic;
  opacity: 0;
  animation: ashar-fade-in-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
}

.ashar-splash-skip {
  margin-top: 12px;
  font-size: 10px;
  color: var(--ashar-fg-subtle);
  opacity: 0;
  animation: ashar-fade-in 0.3s ease forwards;
  animation-delay: 1.2s;
}

.ashar-splash-meta {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: var(--ashar-fg-subtle);
  font-family: var(--ashar-font-mono);
}

.ashar-splash-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ashar-live);
  animation: ashar-pulse-live 2s ease-in-out infinite;
}

@keyframes ashar-splash-fade-out {
  from { opacity: 1; filter: blur(0); transform: scale(1); }
  to { opacity: 0; filter: blur(4px); transform: scale(1.02); }
}

@keyframes ashar-seal-breathe {
  0%, 100% { transform: translateY(-50%) scale(0.97); }
  50% { transform: translateY(-50%) scale(1); }
}

@keyframes ashar-tx-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ashar-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes ashar-fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ashar-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ashar-pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
