:root {
  --bg: #f8fafc;
  --card: rgba(255, 255, 255, 0.85);
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(0, 0, 0, 0.08);
  --primary: #6366f1;
  --primary-soft: rgba(99, 102, 241, 0.15);
  --accent: #3b82f6;
  --shadow: 0 32px 64px rgba(0, 0, 0, 0.08);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 40%, #e0e7ff 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: transparent;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
}

/* Ambient Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: float-slow 15s ease-in-out infinite alternate;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  bottom: -150px;
  right: -50px;
  animation: float-slow 18s ease-in-out infinite alternate-reverse;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 64px);
  position: relative;
  z-index: 1;
}

.maintenance-card {
  position: relative;
  width: min(100%, 1400px);
  min-height: min(84vh, 850px);
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: var(--shadow), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 180ms ease;
  overflow: hidden;
}

/* Add an internal subtle glow to the card */
.maintenance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.6), transparent 50%);
  pointer-events: none;
}

.topbar, .content-grid, .card-footer {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.brand-wordmark {
  width: min(30vw, 240px);
  min-width: 160px;
  height: auto;
  display: block;
}

.content-grid {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0 40px;
}

.copy-block {
  max-width: 540px;
}

/* Status Badge with Pulse */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--primary-soft);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #4338ca;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  animation: pulse 2s infinite;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.text-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #60a5fa 50%, #4f46e5 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: shimmer 4s linear infinite;
}

.lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  font-weight: 400;
}

.divider {
  width: 100px;
  height: 2px;
  margin: 40px 0;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

.info-cluster {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Countdown Styles */
.countdown-container {
  background: rgba(255, 255, 255, 0.6);
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 2px 10px rgba(255,255,255,0.8);
}

.countdown-label {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

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

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  min-width: 75px;
}

.time-box span {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.time-box small {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 6px;
}

.colon {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--muted);
  padding-bottom: 16px;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.cta-btn svg {
  width: 20px;
  height: 20px;
}

.btn-wa {
  background: #25D366;
  color: white;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  background: #1ebc5a;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.btn-email {
  background: white;
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.btn-email:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.support-card:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
  transform: translateX(8px);
}

.support-card:hover .icon-box {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.support-text em {
  font-style: normal;
  display: block;
  margin-top: 4px;
  color: #2563eb;
}

/* Illustration Container */
.illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.illustration-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: inline-size;
}

/* Floating Glass Monitor */
.floating-monitor {
  position: absolute;
  /* Centered in the illustration container */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90cqw;
  height: 65cqw;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.monitor-glass {
  width: 100%;
  height: 100%;
  border-radius: 4cqw;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 1);
  padding: 2.5cqw;
  position: relative;
  overflow: hidden;
}

.screen-content {
  width: 100%;
  height: 100%;
  background: #0f172a; /* Keep dark for contrast */
  border-radius: 2cqw;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.5);
  display: grid;
  place-items: center;
}

/* Terminal Overlay */
.terminal-overlay {
  position: absolute;
  top: 5cqw;
  left: 5cqw;
  right: 5cqw;
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.2cqw;
  color: #38bdf8;
  z-index: 5;
  text-align: left;
  line-height: 1.5;
  white-space: pre-wrap;
  opacity: 0.6;
}

.cursor {
  animation: blink 1s step-end infinite;
  display: inline-block;
  vertical-align: bottom;
  width: 1.5cqw;
  height: 3cqw;
  background: #38bdf8;
  margin-left: 2px;
}

/* Music Toggle Button */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  z-index: 100;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6);
}

.music-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.music-btn.playing {
  animation: pulse-music 2s infinite;
}

/* Animations */
@keyframes pulse-music {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Gears Animation inside screen */
.gear-container {
  position: relative;
  width: 32cqw;
  height: 32cqw;
}

.gear {
  position: absolute;
}

.main-gear {
  width: 100%;
  height: 100%;
  animation: spin 10s linear infinite;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)) drop-shadow(0 -2px 4px rgba(255,255,255,0.2));
}

.small-gear {
  width: 60%;
  height: 60%;
  bottom: -15%;
  right: -15%;
  animation: spin 6s linear infinite reverse;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.5)) drop-shadow(0 -2px 4px rgba(255,255,255,0.2));
}

/* Scanner Line */
.scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2cqw;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), transparent);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  animation: scan 3s ease-in-out infinite;
  z-index: 4;
}

.card-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  color: var(--muted);
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.card-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.card-footer a:hover {
  color: #1d4ed8;
}

/* Animations */
@keyframes float {
  0% { transform: translate(-50%, -50%) translateY(0px) rotate(0deg); }
  50% { transform: translate(-50%, -50%) translateY(-15px) rotate(1deg); }
  100% { transform: translate(-50%, -50%) translateY(0px) rotate(0deg); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes float-slow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@keyframes scan {
  0% { top: -10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* Responsive Breakpoints - Mobile Optimization */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .copy-block {
    max-width: 100%;
    text-align: center;
  }

  .status-badge {
    margin: 0 auto 24px;
  }

  .divider {
    margin: 40px auto;
  }

  .info-cluster {
    align-items: center;
  }

  .support-card {
    margin-left: 0;
  }
  
  .support-card:hover {
    transform: translateY(-4px);
  }

  .illustration-container {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 12px;
  }

  .maintenance-card {
    padding: 32px 20px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .floating-monitor {
    width: 95cqw;
    height: 70cqw;
  }
  
  .countdown-timer {
    justify-content: center;
  }
  
  .time-box {
    min-width: 65px;
    padding: 10px 12px;
  }

  .cta-group {
    justify-content: center;
    flex-direction: column;
  }
  
  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}
