:root {
  color-scheme: dark;
  --bg: #070914;
  --bg-2: #0a0f22;
  --neon: #5b6bff;
  --neon-2: #7b2cff;
  --neon-3: #3ee7ff;
  --neon-4: #8a6bff;
  --text: #e8f0ff;
  --muted: #92a1c6;
  --card: rgba(16, 19, 40, 0.88);
  --border: rgba(91, 107, 255, 0.35);
  --shadow: 0 20px 60px rgba(12, 13, 30, 0.55);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Vazirmatn", "Oxanium", sans-serif;
  background: radial-gradient(1200px 600px at 10% 10%, #131831 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, #1a0f3a 0%, transparent 65%),
    radial-gradient(900px 500px at 40% 80%, #0f2236 0%, transparent 65%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
}

canvas#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
  opacity: 0.3;
}

.mesh {
  position: fixed;
  inset: -10%;
  z-index: 1;
  background: radial-gradient(circle at 20% 20%, rgba(91, 107, 255, 0.18), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(123, 44, 255, 0.16), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(62, 231, 255, 0.14), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(138, 107, 255, 0.12), transparent 45%);
  filter: blur(10px);
  opacity: 0.85;
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(rgba(91, 107, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 107, 255, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.12;
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
  animation: gridShift 20s linear infinite;
  pointer-events: none;
}

.orbs {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.65;
  animation: floatOrb 16s ease-in-out infinite;
}

.orb-1 {
  width: 240px;
  height: 240px;
  background: rgba(91, 107, 255, 0.5);
  top: 10%;
  left: 8%;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(123, 44, 255, 0.45);
  bottom: 15%;
  right: 10%;
  animation-delay: -6s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(62, 231, 255, 0.5);
  top: 35%;
  right: 25%;
  animation-delay: -10s;
}

.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 48px 6vw 36px;
  max-width: 980px;
  margin: 0 auto;
}

.brand {
  display: grid;
  gap: 18px;
  place-items: center;
  text-align: center;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding: 6px 0;
}

.logo-text::before,
.logo-text::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 46%;
  top: 100%;
  background: linear-gradient(90deg, transparent, rgba(62, 231, 255, 0.8), transparent);
  filter: drop-shadow(0 0 12px rgba(62, 231, 255, 0.6));
  animation: logoScan 3.6s ease-in-out infinite;
}

.logo-text::before {
  left: 0;
}

.logo-text::after {
  right: 0;
  animation-delay: -1.6s;
}

.logo-word {
  font-family: "Oxanium", sans-serif;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #8a6bff, #3ee7ff, #4b54ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(62, 231, 255, 0.55);
  animation: logoGlow 3.2s ease-in-out infinite;
}

.logo-divider {
  font-family: "Oxanium", sans-serif;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 16px rgba(138, 107, 255, 0.6);
  animation: logoPulse 2.2s ease-in-out infinite;
}

.brand-text h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.brand-text p {
  margin: 8px 0 0;
  color: var(--muted);
}

.status-card {
  width: min(760px, 92vw);
  background: linear-gradient(160deg, rgba(18, 22, 48, 0.96), rgba(8, 10, 26, 0.96));
  border-radius: 20px;
  border: 1px solid rgba(123, 139, 255, 0.4);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(91, 107, 255, 0.25), transparent 55%);
  opacity: 0.6;
}

.status-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  border: 1px solid rgba(62, 231, 255, 0.25);
  filter: drop-shadow(0 0 24px rgba(91, 107, 255, 0.25));
  opacity: 0.6;
  pointer-events: none;
}

.status-card > * {
  position: relative;
  z-index: 1;
}

.status-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.status-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.status-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(62, 231, 255, 0.4);
  background: rgba(62, 231, 255, 0.1);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.chip span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ee7ff;
  box-shadow: 0 0 10px rgba(62, 231, 255, 0.8);
}

.progress {
  display: grid;
  gap: 12px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #4b54ff, #8a6bff);
  animation: progressPulse 2.4s ease-in-out infinite;
  transform: scaleX(1);
  transform-origin: right;
}

.status-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.status-item {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(12, 15, 36, 0.95), rgba(18, 24, 52, 0.85));
  border: 1px solid rgba(123, 139, 255, 0.38);
  box-shadow: 0 12px 26px rgba(9, 10, 24, 0.5);
  position: relative;
  overflow: hidden;
}

.status-item::after {
  content: "";
  position: absolute;
  inset: -30% 30% 30% -30%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: sweep 6s ease-in-out infinite;
}

.status-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(91, 107, 255, 0.35), rgba(62, 231, 255, 0.2));
  display: grid;
  place-items: center;
  color: #ffd166;
  font-size: 1rem;
  box-shadow: 0 8px 16px rgba(72, 86, 255, 0.35);
}

.status-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.status-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.status-actions button {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-actions .primary {
  background: linear-gradient(120deg, #4b54ff, #8a6bff);
  color: #050714;
  box-shadow: 0 16px 40px rgba(75, 84, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-actions .ghost {
  background: rgba(14, 18, 40, 0.9);
  border: 1px solid rgba(123, 139, 255, 0.4);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-actions button:hover {
  transform: translateY(-2px);
}

.countdown {
  width: min(760px, 92vw);
  display: grid;
  gap: 14px;
  align-items: center;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.time-box {
  background: linear-gradient(140deg, rgba(16, 20, 44, 0.95), rgba(10, 14, 34, 0.9));
  border: 1px solid rgba(91, 107, 255, 0.45);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.time-box::after {
  content: "";
  position: absolute;
  inset: -40% 40% 40% -40%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: sweep 5s ease-in-out infinite;
}

.time-box span {
  font-family: "Oxanium", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  display: block;
}

.time-box small {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launch {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes gridShift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 160px 160px;
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-40px, 30px, 0);
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-40%) rotate(10deg);
    opacity: 0;
  }
  20%,
  60% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(60%) rotate(10deg);
    opacity: 0;
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(30px, -20px, 0);
  }
}

@keyframes progressPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.4);
  }
}

@keyframes logoGlow {
  0%,
  100% {
    text-shadow: 0 0 18px rgba(62, 231, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 30px rgba(138, 107, 255, 0.7);
  }
}

@keyframes logoPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes logoScan {
  0%,
  100% {
    opacity: 0.2;
    transform: scaleX(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 780px) {
  .shell {
    padding: 36px 8vw;
  }

  .timer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-actions {
    grid-template-columns: 1fr;
  }

  .launch {
    flex-direction: column;
    gap: 6px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .logo-text {
    gap: 10px;
  }
}
