:root {
  --navy: #0B1026;
  --ink: #E8ECF6;
  --muted: #8A93AD;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #22D3EE;
  --blue: #5B8DEF;
  --violet: #8B5CF6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* background layers ---------------------------------------------- */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 42%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 42%, #000 30%, transparent 78%);
}

.glow {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

.glow-a {
  width: 460px;
  height: 460px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.30), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

.glow-b {
  width: 520px;
  height: 520px;
  bottom: -200px;
  right: -140px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(50px, 40px, 0) scale(1.12); }
}

/* layout ---------------------------------------------------------- */

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 84px 28px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-wrap {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(11, 16, 38, 0.55);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  display: block;
  width: 132px;
  height: 132px;
}

/* headline -------------------------------------------------------- */

.brand {
  margin: 30px 0 0;
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rise 0.8s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.typed { color: var(--ink); }

.caret {
  display: inline-block;
  width: 3px;
  height: 0.92em;
  margin-left: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  animation: blink 1.05s step-end infinite;
}

@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.tagline {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.01em;
  animation: rise 0.8s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* progress -------------------------------------------------------- */

.progress {
  width: 100%;
  max-width: 420px;
  margin-top: 46px;
  animation: rise 0.8s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  box-shadow: 0 0 14px rgba(91, 141, 239, 0.55);
  transition: width 0.4s ease;
}

.pct {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* status list ----------------------------------------------------- */

.status {
  width: 100%;
  max-width: 420px;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(11, 16, 38, 0.5);
  backdrop-filter: blur(6px);
  overflow: hidden;
  animation: rise 0.8s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  text-align: left;
  font-size: 0.92rem;
}

.row + .row { border-top: 1px solid var(--line); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot[data-state="done"] {
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

.dot[data-state="busy"] {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.82); }
}

.row .k { color: var(--ink); flex: 1; }

.row .v {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* links ----------------------------------------------------------- */

.links {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  animation: rise 0.8s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}

.sep { color: rgba(148, 163, 184, 0.4); }

/* footer ---------------------------------------------------------- */

.foot {
  position: relative;
  z-index: 1;
  padding: 26px 24px 34px;
  text-align: center;
}

.foot p {
  margin: 0;
  color: rgba(138, 147, 173, 0.75);
  font-size: 0.8rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .fill { width: 62%; }
}

@media (max-width: 480px) {
  .stage { padding: 56px 20px 40px; }
  .logo { width: 104px; height: 104px; }
  .status { max-width: 100%; }
}
