/* =========================================================
   Maintenance Page — Stylesheet
   ========================================================= */

:root {
  --bg-1: #0f172a;
  --bg-2: #14213d;
  --accent: #6ee7f9;
  --accent-2: #a78bfa;
  --accent-3: #f472b6;
  --text: #f1f5f9;
  --text-dim: #a8b3cf;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);
  --radius: 24px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-1);
  display: grid;
  place-items: center;
  padding: 28px 20px;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Animated aurora background ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 60rem at 12% 18%, rgba(110, 231, 249, 0.20), transparent 60%),
    radial-gradient(50rem 50rem at 85% 12%, rgba(167, 139, 250, 0.22), transparent 60%),
    radial-gradient(55rem 55rem at 70% 88%, rgba(244, 114, 182, 0.18), transparent 60%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 55%, #0b1120 100%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  100% { background-position: 30% 40%, 60% 30%, 20% 60%, 0 0; }
}

/* Subtle grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 78%);
  pointer-events: none;
}

/* ---------- Card ---------- */
.card {
  width: min(680px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 56px 46px 44px;
  text-align: center;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  overflow: hidden;
}

/* Light sweep across the card */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: skewX(-18deg);
  animation: sweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sweep {
  0%, 65%  { left: -60%; }
  100%     { left: 130%; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Icon ---------- */
.icon-wrap {
  width: 104px;
  height: 104px;
  margin: 0 auto 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(110, 231, 249, 0.18), rgba(167, 139, 250, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.03), 0 16px 40px -14px rgba(110, 231, 249, 0.55);
  animation: float 5s ease-in-out infinite;
}

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

.icon-wrap svg {
  width: 52px;
  height: 52px;
}

.gear-spin {
  transform-origin: 32px 32px;
  animation: spin 9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Text ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(110, 231, 249, 0.10);
  border: 1px solid rgba(110, 231, 249, 0.28);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(110, 231, 249, 0.7);
  animation: pulse 1.9s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(110, 231, 249, 0.65); }
  70%  { box-shadow: 0 0 0 11px rgba(110, 231, 249, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 249, 0); }
}

h1 {
  font-size: clamp(1.75rem, 4.6vw, 2.7rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #ffffff 0%, var(--accent) 48%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  text-wrap: balance;
}

.subtitle {
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 auto 34px;
  text-wrap: pretty;
}

/* ---------- Progress bar ---------- */
.progress {
  height: 7px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  animation: slide 2.4s ease-in-out infinite;
}

@keyframes slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

/* ---------- Footer / contact ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  margin: 0 0 26px;
}

.meta {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.meta a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 231, 249, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.meta a:hover,
.meta a:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-3px);
  color: #ffffff;
  background: rgba(110, 231, 249, 0.16);
}

.socials svg {
  width: 18px;
  height: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  .card { padding: 42px 24px 34px; border-radius: 20px; }
  .icon-wrap { width: 88px; height: 88px; margin-bottom: 24px; }
  .icon-wrap svg { width: 44px; height: 44px; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Print ---------- */
@page { size: A4; margin: 18mm; }

@media print {
  body { background: #ffffff; color: #111827; }
  .backdrop, .grid-overlay, .card::after, .progress { display: none; }
  .card {
    box-shadow: none;
    border: 1px solid #d1d5db;
    background: #ffffff;
    backdrop-filter: none;
  }
  h1 { color: #111827; background: none; -webkit-text-fill-color: #111827; }
  .subtitle, .meta { color: #374151; }
}
