/* ============================================
   GNASP Technologies - Under Maintenance
   Damu ya mzee red gradient, corporate tech
   ============================================ */

:root {
  /* Damu ya mzee palette: deep blood red → crimson → near-black */
  --red-deep: #1a0505;
  --red-maroon: #2d0a0a;
  --red-crimson: #5c1515;
  --red-rich: #8b2020;
  --red-soft: #6b1818;
  --black-blend: #0d0303;
  --text-primary: #f5f5f5;
  --text-secondary: #c9c9c9;
  --text-muted: #a0a0a0;
  --accent-glow: rgba(180, 40, 40, 0.15);
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-primary);
  position: relative;
}

/* Full-screen background: damu ya mzee gradient */
.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, var(--red-crimson) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 50% 80%, var(--red-maroon) 0%, transparent 45%),
    linear-gradient(180deg, var(--red-deep) 0%, var(--red-maroon) 25%, var(--red-soft) 50%, var(--red-maroon) 75%, var(--black-blend) 100%);
  z-index: 0;
}

/* Subtle animated glow */
.bg-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle 40vmax at 50% 30%,
    var(--accent-glow) 0%,
    transparent 60%
  );
  animation: glowPulse 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

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

/* Main layout */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 1.5rem;
}

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

/* Logo */
.logo-wrap {
  margin: 0 auto 1.75rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.logo-img {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* Company name */
.company-name {
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.15s forwards;
}

/* Headline */
.headline {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

/* Subtext */
.subtext {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.45s forwards;
}

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

/* Optional: spinner + countdown */
.optional-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.countdown-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Contact section */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.75s forwards;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.contact-link:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.contact-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.9s forwards;
}

.footer p {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
}

/* Responsive */
@media (max-width: 480px) {
  .page {
    padding: 1.5rem 1rem 1rem;
  }

  .logo-img {
    max-width: 160px;
  }

  .company-name {
    letter-spacing: 0.2em;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }

  .countdown {
    gap: 0.75rem;
  }

  .countdown-item {
    min-width: 56px;
    padding: 0.5rem 0.75rem;
  }

  .countdown-value {
    font-size: 1.25rem;
  }
}
