/* ============================================================
   Work-in-progress page — styles
   Edit the colours in :root to match your brand.
   ============================================================ */
:root {
  --bg: #0b1424;
  --bg-2: #12223b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --teal: #2dd4bf;
  --amber: #f59e0b;
  --card: rgba(15, 28, 50, 0.72);
  --border: rgba(148, 163, 184, 0.18);
  --progress: 72%; /* set your progress here (also update PROGRESS in script.js) */
}

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

html, body { height: 100%; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(ellipse at 20% 10%, var(--bg-2) 0%, var(--bg) 60%) fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  overflow-x: hidden;
}

#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  text-align: center;
  padding: 48px 40px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both;
}

/* ---------- Logo animation ---------- */
.logo { width: 110px; height: 110px; margin: 0 auto 24px; }
.logo svg { width: 100%; height: 100%; overflow: visible; }
.logo .hex   { transform-origin: 60px 60px; animation: spin 14s linear infinite; }
.logo .core  { transform-origin: 60px 60px; animation: pulse 2.4s ease-in-out infinite; }
.logo .orbit { transform-origin: 60px 60px; animation: spin 3s linear infinite reverse; }

h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #ffffff, var(--teal), var(--amber), #ffffff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.nowrap { white-space: nowrap; }

.dots span {
  display: inline-block;
  color: var(--amber);
  -webkit-text-fill-color: var(--amber);
  animation: bounce 1.4s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 30px;
}

/* ---------- Progress bar ---------- */
.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  position: relative;
  animation: fill 2.2s cubic-bezier(.2,.8,.2,1) 0.4s forwards;
}
.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-100%);
  animation: sweep 2s ease-in-out 2.6s infinite;
}
.progress-label {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

footer {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.8;
  text-align: center;
}

/* ---------- Keyframes ---------- */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse   { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .8; } }
@keyframes shimmer { to { background-position: 300% 0; } }
@keyframes bounce  { 0%,80%,100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-8px); opacity: 1; } }
@keyframes fill    { to { width: var(--progress); } }
@keyframes sweep   { to { transform: translateX(100%); } }
@keyframes rise    { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .card { padding: 36px 22px 30px; border-radius: 18px; }
  .logo { width: 88px; height: 88px; }
}

/* ---------- Accessibility: respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .progress-fill { width: var(--progress); }
}
