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

:root {
  --bg-primary: #06090f;
  --bg-secondary: #0c1220;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.12);
  --text-primary: #f0f4f8;
  --text-secondary: rgba(240,244,248,0.6);
  --text-muted: rgba(240,244,248,0.35);
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99,102,241,0.3);
  --success: #22c55e;
  --gradient-1: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  --gradient-2: linear-gradient(135deg, #06b6d4, #6366f1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

html { scroll-behavior: smooth }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== BACKGROUND EFFECTS ========== */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(99,102,241,0.12);
  top: -200px;
  right: -100px;
  animation: glowFloat 20s ease-in-out infinite;
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  background: rgba(168,85,247,0.08);
  bottom: -150px;
  left: -100px;
  animation: glowFloat 25s ease-in-out infinite reverse;
}

.bg-glow--3 {
  width: 350px;
  height: 350px;
  background: rgba(236,72,153,0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowFloat 18s ease-in-out infinite 5s;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1) }
  25% { transform: translate(30px, -20px) scale(1.05) }
  50% { transform: translate(-20px, 30px) scale(0.95) }
  75% { transform: translate(20px, 20px) scale(1.02) }
}

/* ========== PARTICLES ========== */

.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0 }

.particle {
  position: absolute;
  bottom: -10px;
  background: var(--accent);
  border-radius: 50%;
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0% { transform: translateY(0) translateX(0); opacity: 0 }
  10% { opacity: 1 }
  90% { opacity: 1 }
  100% { transform: translateY(-100vh) translateX(40px); opacity: 0 }
}

/* ========== LAYOUT ========== */

.maintenance-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== TOP BAR ========== */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  backdrop-filter: blur(20px);
  background: rgba(6,9,15,0.6);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-light);
  transition: transform 0.3s ease;
}

.logo-icon:hover { transform: rotate(-10deg) scale(1.1) }

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5) }
  50% { box-shadow: 0 0 0 6px rgba(245,158,11,0) }
}

/* ========== MAIN CONTENT ========== */

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.content-wrapper {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

/* ========== GEAR ICONS ========== */

.icon-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 48px;
}

.gear {
  position: absolute;
  color: var(--accent-light);
}

.gear--large {
  width: 100px;
  height: 100px;
  top: 0;
  left: 0;
  animation: gearSpin 8s linear infinite;
}

.gear--small {
  width: 64px;
  height: 64px;
  bottom: 0;
  right: 0;
  color: #a855f7;
  animation: gearSpinReverse 6s linear infinite;
}

@keyframes gearSpin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
@keyframes gearSpinReverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }

/* ========== TITLE ========== */

.title {
  margin-bottom: 24px;
}

.title-line {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.title-line--1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--text-primary);
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.title-line--2 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideUp 0.8s ease-out 0.4s both;
}

/* ========== SUBTITLE ========== */

.subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 48px;
  animation: fadeSlideUp 0.8s ease-out 0.6s both;
}

/* ========== COUNTDOWN ========== */

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  animation: fadeSlideUp 0.8s ease-out 0.8s both;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.countdown-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.countdown-separator {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 20px;
  animation: separatorBlink 1s step-end infinite;
}

@keyframes separatorBlink {
  0%, 100% { opacity: 1 }
  50% { opacity: 0.2 }
}

/* ========== PROGRESS BAR ========== */

.progress-section {
  margin-bottom: 48px;
  animation: fadeSlideUp 0.8s ease-out 1s both;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress-text,
.progress-percent {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-percent { color: var(--accent-light) }

.progress-bar {
  height: 6px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: var(--gradient-1);
  transition: width 1s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-glow);
}

/* ========== NOTIFY FORM ========== */

.notify-form {
  animation: fadeSlideUp 0.8s ease-out 1.2s both;
}

.notify-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.form-row {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.form-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
}

.form-input::placeholder { color: var(--text-muted) }

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--gradient-1);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.form-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.35);
}

.form-button:active { transform: translateY(0) }

.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  color: var(--success);
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}

.form-success.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOOTER ========== */

.footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  background: rgba(6,9,15,0.4);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-link:hover { color: var(--accent-light) }

.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========== ANIMATIONS ========== */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 640px) {
  .top-bar { padding: 16px 20px }

  .logo-text { display: none }

  .main-content { padding: 40px 20px }

  .title-line--1,
  .title-line--2 { font-size: 2.2rem }

  .subtitle { font-size: 0.95rem }

  .countdown { gap: 4px }

  .countdown-item { min-width: 60px }

  .countdown-number { font-size: 2.2rem }

  .form-row {
    flex-direction: column;
  }

  .form-button { justify-content: center }

  .footer { padding: 24px 20px }

  .footer-links { flex-direction: column; align-items: center; gap: 16px }
}
