/* ===== Base / Reset ===== */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #0b1020;
  --bg-2: #0e1430;
  --card: #121836;
  --text: #e8ecf3;
  --muted: #a9b3c7;
  --accent: #7aa2ff;
  --accent-2: #67e8f9;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, #1b2550 0%, transparent 60%),
              radial-gradient(1200px 800px at 80% 90%, #0f2447 0%, transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  display: grid;
  place-items: center;
}

/* ===== Layout ===== */
.wrap {
  width: min(92vw, 780px);
  padding: 24px 0 40px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: clamp(20px, 3.5vw, 40px);
  box-shadow: var(--shadow);
  text-align: center;
}

/* ===== Icon ===== */
.icon {
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: var(--accent);
  filter: drop-shadow(0 10px 25px rgba(122,162,255,.25));
  animation: float 4s ease-in-out infinite;
}

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

/* ===== Typography ===== */
.title {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.1;
  margin: 6px 0 8px;
  letter-spacing: .2px;
}

.subtitle {
  color: var(--muted);
  font-size: clamp(1rem, .9rem + .6vw, 1.2rem);
  margin: 0 0 18px;
}

.cursor {
  display: inline-block;
  animation: blink 1.2s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== Progress ===== */
.progress {
  --height: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  height: var(--height);
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 10px auto 14px;
}

.progress .bar {
  width: var(--val, 50%);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  position: relative;
  transform-origin: left center;
  animation: grow 1.6s cubic-bezier(.22,.8,.24,1) forwards,
             barber 1s linear infinite;
  background-size: 200% 100%;
  background-position: 0 0;
}

@keyframes barber {
  to { background-position: 200% 0; }
}
@keyframes grow {
  from { width: 0; }
  to   { width: var(--val, 50%); }
}

/* ===== Info row ===== */
.info {
  list-style: none;
  padding: 0;
  margin: 10px 0 22px;
  display: flex;
  gap: 14px 22px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .98rem;
}

.info strong { color: var(--text); }

.status-dot {
  --s: 9px;
  display: inline-block;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #33e59a;
  box-shadow: 0 0 0 0 rgba(51,229,154,.6);
  margin-right: 6px;
  animation: pulse 1.8s infinite;
  vertical-align: middle;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(51,229,154,.6); }
  70% { box-shadow: 0 0 0 12px rgba(51,229,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(51,229,154,0); }
}

/* ===== Buttons ===== */
.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.button,
.link {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
}

.button {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #0b1020;
  border: 0;
  box-shadow: 0 8px 24px rgba(122,162,255,.25);
  transform: translateY(0);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.button:active { transform: translateY(1px); }

.link {
  color: var(--accent);
  border: 1px dashed rgba(122,162,255,.5);
  background: rgba(122,162,255,.06);
  cursor: not-allowed; /* demo placeholder */
}

/* ===== Footer ===== */
.footer {
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
  font-size: .9rem;
}

/* ===== Accessibility helper ===== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===== Responsive polish ===== */
@media (max-width: 420px) {
  .button, .link { width: 100%; }
}
