:root {
  --bg:         #060a0f;
  --bg2:        #0c1118;
  --card:       #0f1620;
  --card2:      #141d28;
  --accent:     #3b82f6;
  --accent2:    #60a5fa;
  --accent-dim: rgba(59,130,246,0.12);
  --green:      #22c55e;
  --amber:      #f59e0b;
  --text:       #e2eaf4;
  --text2:      #94a3b8;
  --text3:      #4b6080;
  --border:     #1a2535;
  --border2:    #243347;
  --mono:       'JetBrains Mono', monospace;
  --sans:       'Inter', sans-serif;
  --display:    'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* ── GRID BG ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── GLOW ── */
.glow-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(80px);
}
.glow-orb.top {
  width: 600px; height: 400px; top: -150px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(59,130,246,0.14) 0%, transparent 70%);
  animation: floatOrb 8s ease-in-out infinite;
}
.glow-orb.bottom-left {
  width: 300px; height: 300px; bottom: -80px; left: -80px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.07) 0%, transparent 70%);
  animation: floatOrb 11s ease-in-out infinite reverse;
}

/* ── ANIMATIONS ── */
@keyframes floatOrb  { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-20px)} }
@keyframes fadeUp    { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse     { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes spin      { to{transform:rotate(360deg)} }
@keyframes shimmer   { 0%{background-position:-200% center} 100%{background-position:200% center} }
@keyframes blink     { 0%,100%{opacity:1} 49%{opacity:1} 50%{opacity:0} 99%{opacity:0} }
@keyframes progressBar {
  0%   { width: 0% }
  15%  { width: 18% }
  30%  { width: 35% }
  50%  { width: 52% }
  70%  { width: 68% }
  85%  { width: 79% }
  100% { width: 83% }
}
@keyframes gearSpin  { to { transform: rotate(360deg); } }
@keyframes gearSpinR { to { transform: rotate(-360deg); } }

/* ── MAIN CARD ── */
.card {
  position: relative; z-index: 1;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 52px 56px;
  max-width: 620px;
  width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 0 80px rgba(59,130,246,0.08);
  animation: fadeUp .8s ease forwards;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), transparent);
}

/* ── LOGO ── */
.logo-wrap {
  margin-bottom: 32px;
  animation: fadeUp .6s .1s ease both;
}
.logo-wrap img { height: 46px; width: 200px; }

/* ── GEAR ILLUSTRATION ── */
.gear-wrap {
  position: relative;
  width: 96px; height: 96px;
  margin: 0 auto 28px;
  animation: fadeUp .6s .2s ease both;
}
.gear {
  position: absolute;
  font-size: 52px; line-height: 1;
  user-select: none;
}
.gear.g1 {
  top: 0; left: 0;
  animation: gearSpin 4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(59,130,246,0.4));
}
.gear.g2 {
  bottom: 0; right: 0;
  font-size: 34px;
  animation: gearSpinR 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(245,158,11,0.3));
  opacity: .8;
}

/* ── STATUS TAG ── */
.status-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--amber); background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 24px;
  animation: fadeUp .6s .25s ease both;
}
.status-tag .dot { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; animation: pulse 1.5s infinite; }

/* ── HEADING ── */
h1 {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -.4px;
  animation: fadeUp .6s .3s ease both;
}
h1 .shimmer-text {
  background: linear-gradient(90deg, var(--accent2), #fff, var(--accent2));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ── SUBTEXT ── */
.sub {
  font-size: 15px; color: var(--text2); line-height: 1.7;
  max-width: 460px; margin: 0 auto 36px;
  animation: fadeUp .6s .35s ease both;
}

/* ── PROGRESS BAR ── */
.progress-wrap {
  margin-bottom: 10px;
  animation: fadeUp .6s .4s ease both;
}
.progress-label {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--text3);
  margin-bottom: 8px;
}
.progress-track {
  height: 6px; background: var(--bg2); border-radius: 999px;
  border: 1px solid var(--border); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 10px rgba(59,130,246,0.5);
  animation: progressBar 4s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* ── TERMINAL ── */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: left;
  margin-bottom: 32px;
  animation: fadeUp .6s .45s ease both;
}
.terminal-bar {
  display: flex; gap: 6px; margin-bottom: 12px;
}
.terminal-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.terminal-dot:nth-child(1) { background: #ef4444; }
.terminal-dot:nth-child(2) { background: var(--amber); }
.terminal-dot:nth-child(3) { background: var(--green); }
.terminal-line {
  font-family: var(--mono); font-size: 12px; color: var(--text3);
  line-height: 1.9;
}
.terminal-line .prompt { color: var(--accent2); }
.terminal-line .cmd    { color: var(--text2); }
.terminal-line .ok     { color: var(--green); }
.terminal-line .warn   { color: var(--amber); }
.terminal-cursor {
  display: inline-block; width: 8px; height: 13px;
  background: var(--accent2); border-radius: 1px;
  vertical-align: middle; margin-left: 2px;
  animation: blink 1s step-end infinite;
}

/* ── LINKS ── */
.links {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .6s .5s ease both;
}
.link-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  padding: 10px 20px; border-radius: 10px; transition: .2s;
}
.link-btn.primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 20px rgba(59,130,246,0.25);
}
.link-btn.primary:hover { background: #2563eb; transform: translateY(-2px); }
.link-btn.ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border2);
}
.link-btn.ghost:hover { border-color: var(--accent2); color: var(--text); background: var(--accent-dim); }

/* ── FOOTER ── */
.footer-note {
  position: fixed; bottom: 40px; left: 0; right: 0; text-align: center;
  font-size: 12px; color: var(--text3); font-family: var(--mono); z-index: 1;
  animation: fadeUp .6s .6s ease both;
}

/* ── RESPONSIVE ── */
@media(max-width: 500px) {
  .card { padding: 36px 24px; }
  .links { flex-direction: column; align-items: stretch; }
  .link-btn { justify-content: center; }
}
