*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ashar-bg: #0D0D0D;
  --ashar-fg: #F5F4F1;
  --ashar-fg-subtle: #8C887E;
  --ashar-fg-muted: #B7B2A7;
  --ashar-accent: #A8B98C;
  --ashar-accentbd: #4A5340;
  --ashar-border: #2E312B;
  --ashar-hl: #12150F;
  --ashar-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --ashar-font-sans: 'Inter', system-ui, sans-serif;
  --ashar-font-display: 'Cormorant Garamond', 'Georgia', serif;
  --ashar-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.ashar-splash-body {
  background: var(--ashar-bg);
  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-bg);
  font-family: var(--ashar-font-mono);
}

.ashar-splash.fade-out {
  animation: ashar-splash-fade-out 400ms var(--ashar-ease) forwards;
  pointer-events: none;
}

.ashar-splash-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 244, 241, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 244, 241, 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.06;
  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 280ms var(--ashar-ease) forwards;
}

.ashar-splash-check {
  margin-left: auto;
  color: var(--ashar-accent);
}

.ashar-splash-cursor {
  display: inline-block;
  color: var(--ashar-accent);
  animation: ashar-cursor-blink 1s step-end infinite;
}

.ashar-splash-bar-track {
  margin-top: 16px;
  height: 2px;
  background: rgba(245, 244, 241, 0.06);
  overflow: hidden;
}

.ashar-splash-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--ashar-accent);
  transition: width 0.3s var(--ashar-ease);
}

.ashar-splash-welcome {
  margin-top: 20px;
  font-family: var(--ashar-font-display);
  font-size: 16px;
  color: var(--ashar-fg-muted);
  font-style: italic;
  font-weight: 300;
  opacity: 0;
  animation: ashar-fade-in-up 400ms var(--ashar-ease) forwards;
  animation-delay: 0.8s;
}

.ashar-splash-skip {
  margin-top: 12px;
  font-size: 10px;
  font-family: var(--ashar-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ashar-fg-subtle);
  opacity: 0;
  animation: ashar-fade-in 300ms 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);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.ashar-splash-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--ashar-accent);
  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;
  }
}
