/**
 * WGS Solutions to Mugin Technologies
 * Wide, Minimalist, Single-Screen Redirect Page Stylesheet
 * Optimized for SEO, GEO (Generative Engine), and AEO (Answer Engine)
 */

:root {
  /* Color Palette */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  
  --primary-blue: #2563EB;
  --light-blue: #60A5FA;
  --soft-blue-tint: #EFF6FF;
  
  --accent-purple: #8B5CF6;
  --accent-gradient: linear-gradient(135deg, #2563EB 0%, #8B5CF6 100%);
  --button-gradient: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-color: #E2E8F0;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout Widths */
  --max-content-width: 1160px;
  --border-radius-card: 28px;
  --border-radius-pill: 9999px;

  /* Elevation Shadows */
  --shadow-card: 0 25px 60px -15px rgba(15, 23, 42, 0.07),
                 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-cta: 0 12px 28px -4px rgba(37, 99, 235, 0.35);
  --shadow-cta-hover: 0 18px 36px -4px rgba(37, 99, 235, 0.45);

  /* Animation Timings */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 45%, #EFF6FF 100%);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

/* Ambient Canvas Particles (Ultra-subtle) */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Subtle Blurred Blue Gradient Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
  will-change: transform;
  animation: orbDrift 24s infinite alternate ease-in-out;
}

.orb-primary {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  top: -120px;
  left: calc(50% - 480px);
}

.orb-secondary {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, transparent 70%);
  bottom: -140px;
  right: calc(50% - 480px);
  animation-delay: -10s;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(25px, -20px); }
  100% { transform: translate(-20px, 20px); }
}

/* Minimal Subtle Grid Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

/* Wide Container (~90% of screen width, max 1160px) */
.page-container {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Clean, Spacious Content Card */
.wide-content-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  padding: 48px 56px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  animation: cardFadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Subtle Top Accent Gradient Line */
.wide-content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-top-left-radius: var(--border-radius-card);
  border-top-right-radius: var(--border-radius-card);
  background: var(--accent-gradient);
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Small Top Eyebrow Label */
.eyebrow-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-blue);
  background: var(--soft-blue-tint);
  border: 1px solid #DBEAFE;
  padding: 6px 18px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 20px;
  display: inline-block;
  animation: fadeInDown 0.6s ease-out both;
}

/* Main Heading (Desktop: 56px to 68px) */
.main-heading {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 22px;
  max-width: 960px;
  animation: fadeIn 0.8s ease-out both;
  text-wrap: balance;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  white-space: nowrap;
}

/* Brand Transition Flow Animation (WGS SOLUTIONS ↓ MUGIN TECHNOLOGIES) */
.brand-transition-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 6px 16px;
  animation: fadeIn 0.9s ease-out both;
}

.flow-brand {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition-normal);
}

.flow-wgs {
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.9;
}

.flow-mugin {
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: 0.06em;
}

/* Flow Arrow & Subtle Pulse Indicator */
.flow-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.flow-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft-blue-tint);
  border: 1px solid #DBEAFE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
  animation: subtleBounce 2s infinite ease-in-out;
}

.flow-arrow-svg {
  width: 16px;
  height: 16px;
}

@keyframes subtleBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

/* Supporting Text (Clean, High-Readability GEO Statement) */
.supporting-block {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 900px;
}

.supporting-line {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.62;
}

.supporting-line.primary-line {
  color: #1E293B;
  font-weight: 500;
}

.supporting-line.secondary-line {
  color: #475569;
  font-weight: 400;
}

/* Action Area (CTA Button + Minimal Integrated Countdown) */
.action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  width: 100%;
}

/* Large Primary CTA Button */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 42px;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-decoration: none;
  background: var(--button-gradient);
  border-radius: var(--border-radius-pill);
  box-shadow: var(--shadow-cta);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transition: left 0.75s ease-in-out;
}

.cta-button:hover .btn-shine {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

.cta-button:active {
  transform: translateY(1px);
}

.btn-text {
  position: relative;
  z-index: 2;
}

/* Minimal Integrated Countdown & Progress Bar (No separate card) */
.countdown-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  max-width: 260px;
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: var(--border-radius-pill);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: var(--border-radius-pill);
  transition: width 0.1s linear;
}

.countdown-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.countdown-count {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 0.98rem;
}

/* Minimal Subtle Footer */
.minimal-footer {
  margin-top: 8px;
}

.footer-link {
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Focus Visible for Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 3px;
}

/* Animation Keyframes */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tablet Responsiveness */
@media (max-width: 900px) {
  body {
    padding: 24px 16px;
  }

  .page-container {
    width: 94%;
  }

  .wide-content-card {
    padding: 38px 28px 28px;
  }

  .main-heading {
    font-size: 42px; /* Standard tablet specification */
    margin-bottom: 18px;
  }

  .supporting-line {
    font-size: 1.02rem;
  }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  body {
    padding: 16px 12px;
  }

  .page-container {
    width: 100%;
  }

  .wide-content-card {
    padding: 30px 16px 24px;
    border-radius: 20px;
  }

  .eyebrow-label {
    font-size: 0.72rem;
    padding: 5px 14px;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
  }

  .main-heading {
    font-size: 32px; /* Standard mobile specification */
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .brand-transition-flow {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }

  .flow-brand {
    font-size: 0.95rem;
  }

  .supporting-block {
    margin-bottom: 20px;
  }

  .supporting-line {
    font-size: 0.94rem;
  }

  .action-area {
    width: 100%;
  }

  .cta-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.02rem;
  }

  .countdown-minimal {
    max-width: 100%;
    width: 85%;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .glow-orb,
  .flow-arrow-circle {
    animation: none;
  }

  #ambient-canvas {
    display: none;
  }
}
