* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a0a;
  color: #e8e8e8;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  padding: 32px 0 48px;
}

/* Subtle grid background */
.bg-grid {
  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: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  animation: glowDrift 12s ease-in-out infinite alternate;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: #1a1a2e;
  top: -150px;
  left: -100px;
  opacity: 0.4;
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  background: #16213e;
  bottom: -100px;
  right: -80px;
  opacity: 0.35;
  animation-delay: -6s;
}

@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 20px) scale(1.08); }
}

/* Floating particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: floatUp linear infinite;
}

.particles span:nth-child(1)  { left: 10%; animation-duration: 14s; animation-delay: 0s; }
.particles span:nth-child(2)  { left: 20%; animation-duration: 18s; animation-delay: 2s; width: 2px; height: 2px; }
.particles span:nth-child(3)  { left: 35%; animation-duration: 12s; animation-delay: 4s; }
.particles span:nth-child(4)  { left: 50%; animation-duration: 16s; animation-delay: 1s; }
.particles span:nth-child(5)  { left: 65%; animation-duration: 20s; animation-delay: 3s; width: 2px; height: 2px; }
.particles span:nth-child(6)  { left: 75%; animation-duration: 13s; animation-delay: 5s; }
.particles span:nth-child(7)  { left: 85%; animation-duration: 17s; animation-delay: 2s; }
.particles span:nth-child(8)  { left: 92%; animation-duration: 15s; animation-delay: 6s; width: 2px; height: 2px; }
.particles span:nth-child(9)  { left: 45%; animation-duration: 19s; animation-delay: 7s; }
.particles span:nth-child(10) { left: 58%; animation-duration: 11s; animation-delay: 4s; }

@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.container {
  text-align: center;
  padding: 32px 24px 24px;
  max-width: 520px;
  width: 100%;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Staggered entrance */
.anim-item {
  opacity: 0;
  animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo with pulse ring */
.logo-wrap {
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeIn 1s ease-out;
}

.logo-ring {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: ringPulse 3s ease-in-out infinite;
}

.logo-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.03);
  animation: ringPulse 3s ease-in-out infinite 0.5s;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.04); opacity: 1; }
}

.logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 32px rgba(255, 255, 255, 0.1));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Badge with live dot */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid #333;
  color: #aaa;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

h1 {
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.description {
  font-size: 16px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Loading bar */
.loader-wrap {
  margin-bottom: 28px;
}

.loader-track {
  width: 100%;
  max-width: 320px;
  height: 4px;
  background: #1a1a1a;
  border-radius: 4px;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
}

.loader-bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, #666, #aaa, #666, transparent);
  border-radius: 4px;
  animation: loaderSlide 2s ease-in-out infinite;
}

@keyframes loaderSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.loader-text {
  font-size: 13px;
  color: #666;
  letter-spacing: 0.3px;
}

.loading-dots span {
  animation: dotBounce 1.4s ease-in-out infinite;
  display: inline-block;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* Status steps */
.status-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.status-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1px solid #2a2a2a;
  background: #141414;
}

.status-icon.done {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

.status-icon.active {
  border-color: rgba(170, 170, 170, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.status-icon.pending {
  color: #333;
  font-size: 8px;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #333;
  border-top-color: #aaa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-item:nth-child(2) span:last-child {
  color: #888;
}

.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #444, transparent);
  margin: 0 auto 28px;
}

.contact-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.contact-link {
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s, letter-spacing 0.2s;
  word-break: break-word;
  display: inline-block;
  max-width: 100%;
}

.contact-link:hover {
  color: #fff;
  letter-spacing: 0.5px;
}

.footer {
  margin-top: 32px;
  padding-bottom: 16px;
  font-size: 12px;
  color: #444;
}

/* Tall screens — vertically center content */
@media (min-height: 860px) {
  body {
    align-items: center;
    padding: 24px 0;
  }
}

/* Laptop / PC — short screen height fix */
@media (max-height: 859px) and (min-width: 481px) {
  .logo {
    max-width: 150px;
  }

  .logo-ring {
    width: 170px;
    height: 170px;
  }

  .logo-wrap {
    margin-bottom: 20px;
  }

  h1 {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .description {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
  }

  .badge {
    margin-bottom: 14px;
    font-size: 11px;
  }

  .loader-wrap {
    margin-bottom: 20px;
  }

  .status-row {
    margin-bottom: 20px;
    gap: 20px;
  }

  .divider {
    margin-bottom: 20px;
  }

  .footer {
    margin-top: 20px;
  }

  .container {
    padding: 20px 24px 16px;
  }
}

/* Very short laptop screens */
@media (max-height: 680px) and (min-width: 481px) {
  .logo {
    max-width: 120px;
  }

  .logo-ring {
    width: 140px;
    height: 140px;
  }

  .logo-wrap {
    margin-bottom: 14px;
  }

  h1 {
    font-size: 22px;
  }

  .description {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .status-row {
    margin-bottom: 14px;
    gap: 14px;
  }

  .footer {
    margin-top: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 32px 20px;
  }

  .description {
    font-size: 15px;
  }

  .status-row {
    gap: 16px;
  }

  .logo-ring {
    width: 200px;
    height: 200px;
  }
}
