@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --accent: #00b4f5;
  --accent2: #0070e0;
  --accent-glow: rgba(0, 180, 245, 0.28);
  --accent-glow2: rgba(0, 180, 245, 0.08);
  --bg: #050a14;
  --bg2: #080f1e;
  --text: #e8f4ff;
  --text-muted: #7a9ab8;
  --card-bg: rgba(10, 20, 40, 0.65);
  --card-border: rgba(0, 180, 245, 0.2);
  --card-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.06) inset;
  --step-done: #00d4a0;
  --step-active: #00b4f5;
  --step-pending: #334155;
  --badge-bg: rgba(0,180,245,0.1);
  --badge-color: #00b4f5;
  --badge-border: rgba(0,180,245,0.28);
}

body.theme-dns          { --accent:#a855f7;--accent2:#7c3aed;--accent-glow:rgba(168,85,247,0.28);--accent-glow2:rgba(168,85,247,0.07);--badge-bg:rgba(168,85,247,0.1);--badge-color:#a855f7;--badge-border:rgba(168,85,247,0.28);--card-border:rgba(168,85,247,0.18); }
body.theme-critical     { --accent:#ef4444;--accent2:#b91c1c;--accent-glow:rgba(239,68,68,0.28);--accent-glow2:rgba(239,68,68,0.07);--badge-bg:rgba(239,68,68,0.1);--badge-color:#ef4444;--badge-border:rgba(239,68,68,0.28);--card-border:rgba(239,68,68,0.18); }
body.theme-technical    { --accent:#38bdf8;--accent2:#0284c7;--accent-glow:rgba(56,189,248,0.28);--accent-glow2:rgba(56,189,248,0.07); }
body.theme-offline,
body.theme-offline_permanent { --accent:#64748b;--accent2:#475569;--accent-glow:rgba(100,116,139,0.22);--accent-glow2:rgba(100,116,139,0.06);--badge-bg:rgba(100,116,139,0.1);--badge-color:#94a3b8;--badge-border:rgba(100,116,139,0.25);--card-border:rgba(100,116,139,0.15); }
body.theme-maintenance  { --accent:#f59e0b;--accent2:#d97706;--accent-glow:rgba(245,158,11,0.28);--accent-glow2:rgba(245,158,11,0.07);--badge-bg:rgba(245,158,11,0.1);--badge-color:#f59e0b;--badge-border:rgba(245,158,11,0.28);--card-border:rgba(245,158,11,0.18); }
body.theme-security     { --accent:#22c55e;--accent2:#15803d;--accent-glow:rgba(34,197,94,0.28);--accent-glow2:rgba(34,197,94,0.07);--badge-bg:rgba(34,197,94,0.1);--badge-color:#22c55e;--badge-border:rgba(34,197,94,0.28);--card-border:rgba(34,197,94,0.18); }
body.theme-deploiement  { --accent:#6366f1;--accent2:#4338ca;--accent-glow:rgba(99,102,241,0.28);--accent-glow2:rgba(99,102,241,0.07);--badge-bg:rgba(99,102,241,0.1);--badge-color:#818cf8;--badge-border:rgba(99,102,241,0.28);--card-border:rgba(99,102,241,0.18); }
body.theme-migration    { --accent:#06b6d4;--accent2:#0891b2;--accent-glow:rgba(6,182,212,0.28);--accent-glow2:rgba(6,182,212,0.07);--badge-bg:rgba(6,182,212,0.1);--badge-color:#22d3ee;--badge-border:rgba(6,182,212,0.28);--card-border:rgba(6,182,212,0.18); }

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ——— CANVAS STARS ——— */
#stars-canvas {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ——— BG AURORA ——— */
.bg-aurora {
  position: fixed;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 160vw; height: 90vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% 10%, var(--accent-glow) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 25% 80%, var(--accent-glow2) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 75% 90%, var(--accent-glow2) 0%, transparent 55%);
  z-index: 0; pointer-events: none;
  animation: auroraDrift 12s ease-in-out infinite alternate;
  transition: background 0.8s ease;
}

@keyframes auroraDrift {
  0%   { opacity: 0.7; transform: translateX(-50%) scaleX(1) scaleY(1); }
  50%  { opacity: 1;   transform: translateX(-50%) scaleX(1.08) scaleY(1.04); }
  100% { opacity: 0.7; transform: translateX(-50%) scaleX(0.96) scaleY(1.02); }
}

/* ——— BG GRID ——— */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,180,245,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,245,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 40%, black 10%, transparent 70%);
}

/* ——— LAYOUT ——— */
.page-wrapper {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px 80px;
}

.container {
  width: 100%; max-width: 840px;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
}

/* ——— LOGO ——— */
.logo-wrap {
  display: flex; flex-direction: column; align-items: center;
  animation: fadeInDown 0.9s ease both;
  position: relative;
}

.logo-halo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  animation: haloBreath 4s ease-in-out infinite;
}

@keyframes haloBreath {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}

.logo-ring {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  border-radius: 50%;
}

.logo-ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--card-border);
  animation: ringPulse 3.5s ease-in-out infinite;
}

.logo-ring::after {
  content: ''; position: absolute; inset: -18px; border-radius: 50%;
  border: 1px solid rgba(0,180,245,0.07);
  animation: ringPulse 3.5s ease-in-out 0.9s infinite;
}

.logo-ring-outer {
  position: absolute; inset: -38px; border-radius: 50%;
  border: 1px solid rgba(0,180,245,0.04);
  animation: ringPulse 3.5s ease-in-out 1.8s infinite;
  pointer-events: none;
}

@keyframes ringPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.25; transform: scale(1.05); }
}

.logo-wrap img {
  height: 168px;
  width: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 40px var(--accent-glow))
    drop-shadow(0 0 80px var(--accent-glow2))
    drop-shadow(0 6px 32px rgba(0,0,0,0.55));
  transition: filter 0.6s ease;
  position: relative; z-index: 1;
}

/* ——— BADGE ——— */
.incident-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 20px; border-radius: 100px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  animation: fadeInDown 0.7s 0.1s ease both;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.03) inset;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--badge-color);
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px var(--badge-color);
  flex-shrink: 0;
}

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

/* ——— HEADINGS ——— */
.main-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 700; text-align: center; line-height: 1.08;
  background: linear-gradient(140deg, #ffffff 0%, rgba(255,255,255,0.95) 30%, var(--accent) 65%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: fadeInDown 0.7s 0.15s ease both;
  letter-spacing: -0.025em;
  text-shadow: none;
}

.subtitle {
  font-size: clamp(1.02rem, 2.5vw, 1.2rem);
  color: var(--text-muted); text-align: center; line-height: 1.7;
  max-width: 580px;
  animation: fadeInDown 0.7s 0.2s ease both;
  font-weight: 400;
}

.message-text {
  font-size: 0.91rem; color: var(--text-muted);
  text-align: center; line-height: 1.8; max-width: 620px;
  animation: fadeInDown 0.7s 0.25s ease both;
  opacity: 0.78;
}

/* ——— CARDS ——— */
.card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px; padding: 32px 38px;
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  animation: fadeInUp 0.7s 0.3s ease both;
  transition: border-color 0.5s, box-shadow 0.5s;
  box-shadow: var(--card-shadow);
  position: relative; overflow: hidden;
}

.card::before {
  content: ''; position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.card::after {
  content: ''; position: absolute;
  inset: 0; border-radius: 24px;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 100%);
  pointer-events: none;
}

.section-title {
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--text-muted); font-weight: 600;
  margin-bottom: 22px; display: flex; align-items: center; gap: 10px;
}

.section-title::before {
  content: ''; display: block; width: 18px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px; flex-shrink: 0;
}

/* ——— COUNTDOWN ——— */
.countdown-grid {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 10px; flex-wrap: wrap;
}

.countdown-unit {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 90px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--card-border);
  border-radius: 18px; padding: 18px 12px 14px;
  position: relative; overflow: hidden;
}

.countdown-unit::before {
  content: ''; position: absolute;
  top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.09), transparent);
}

.countdown-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  background: linear-gradient(160deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; min-width: 68px; text-align: center;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.countdown-num.flip {
  transform: scale(1.15);
}

.countdown-sep {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700; color: var(--accent);
  opacity: 0.3; align-self: flex-start; padding-top: 14px;
  animation: blink 1.2s infinite;
  user-select: none;
}
@keyframes blink { 0%, 100% { opacity: 0.3 } 50% { opacity: 0.07 } }

.countdown-label {
  font-size: 9.5px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-muted); font-weight: 600;
}

/* ——— PROGRESS ——— */
.progress-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}

.progress-bar-label { font-size: 14px; font-weight: 500; color: var(--text); }

.progress-pct {
  font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 28px var(--accent-glow);
}

.progress-track {
  width: 100%; height: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 100px; overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent), rgba(255,255,255,0.4));
  background-size: 200% 100%;
  border-radius: 100px;
  transition: width 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  box-shadow: 0 0 22px var(--accent-glow);
  animation: progressShimmer 3s linear infinite;
}

@keyframes progressShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ——— STEPS ——— */
.steps-list { display: flex; flex-direction: column; gap: 0; }

.step-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; position: relative;
}

.step-item + .step-item { border-top: 1px solid rgba(255,255,255,0.04); }

.step-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px; font-weight: 700;
  transition: all 0.4s;
}

.step-icon.done    { background: rgba(0,212,160,0.1); border: 1.5px solid #00d4a0; color: #00d4a0; }
.step-icon.active  { background: var(--badge-bg); border: 1.5px solid var(--accent); color: var(--accent); animation: stepPulse 2s infinite; box-shadow: 0 0 18px var(--accent-glow); }
.step-icon.pending { background: rgba(51,65,85,0.3); border: 1.5px solid #2d3f55; color: #475569; }

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 18px var(--accent-glow); }
  50%       { box-shadow: 0 0 30px var(--accent-glow), 0 0 8px var(--accent); }
}

.step-label          { font-size: 14px; font-weight: 500; flex: 1; line-height: 1.4; }
.step-label.done     { color: var(--text); }
.step-label.active   { color: var(--text); }
.step-label.pending  { color: var(--text-muted); }

.step-status {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; padding: 3px 10px; border-radius: 100px;
  white-space: nowrap;
}
.step-status.done    { color: #00d4a0; background: rgba(0,212,160,0.07); border: 1px solid rgba(0,212,160,0.2); }
.step-status.active  { color: var(--accent); background: var(--badge-bg); border: 1px solid var(--badge-border); }
.step-status.pending { color: #475569; background: rgba(71,85,105,0.08); border: 1px solid rgba(71,85,105,0.18); }

/* ——— CONTACT ——— */
.contact-links {
  display: flex; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}

.contact-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 100px;
  border: 1px solid var(--card-border);
  color: var(--text-muted); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: all 0.3s;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}

.contact-link:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--badge-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3), 0 0 0 1px var(--badge-border) inset;
}

/* ——— FOOTER ——— */
.footer {
  position: relative; z-index: 1; text-align: center;
  padding: 28px; font-size: 12px; color: var(--text-muted); opacity: 0.45;
}

/* ——— ANIMATIONS ——— */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.hidden { display: none !important; }

/* ——— RESPONSIVE ——— */
@media (max-width: 640px) {
  .card { padding: 22px 18px; border-radius: 18px; }
  .countdown-grid { gap: 6px; }
  .countdown-unit { min-width: 68px; padding: 14px 8px 10px; border-radius: 14px; }
  .countdown-num { min-width: 52px; }
  .countdown-sep { font-size: 1.8rem; padding-top: 10px; }
  .contact-links { flex-direction: column; align-items: center; }
  .logo-wrap img { height: 120px; }
  .logo-ring { padding: 20px; }
  .logo-halo { width: 200px; height: 200px; }
  .main-title { font-size: clamp(2rem, 8vw, 2.8rem); }
}

@media (max-width: 400px) {
  .logo-wrap img { height: 96px; }
  .countdown-unit { min-width: 58px; }
}
