/**
 * SiteNests Hero Section Styles
 * Footer Blue Gradient with rgba(255, 255, 255, 0.08) Accents & WebGL Transparency
 */

/* 1. Main Hero Container (Exact Footer Blue Gradient) */
.sitenests-hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  background: linear-gradient(120deg, #101828 0%, #172554 55%, #2447B8 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Subtle micro-dot/star texture matching the footer */
.sitenests-hero::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-image: 
    radial-gradient(1px 1px at 30px 40px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 120px 150px, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 240px 80px, rgba(255, 255, 255, 0.3), transparent);
  background-size: 320px 260px !important;
  opacity: 0.32 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* 2. Layer 1: Canvas Background */
#sitenests-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
}

/* 3. Layer 2 & 3: Overlay */
.sitenests-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, transparent 35%, rgba(16, 24, 40, 0.35) 100%);
}

/* 4. Layer 4: Content Container */
.sitenests-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(60px, 7vw, 100px) 24px clamp(80px, 9vw, 120px);
  text-align: center;
  box-sizing: border-box;
}

/* Eyebrow badge (uses rgba(255, 255, 255, 0.08)) */
.sitenests-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(20px, 2.5vw, 30px);
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(11px, 0.8vw + 2px, 13px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.sitenests-hero-eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.95), 0 0 20px rgba(0, 86, 179, 0.80);
  animation: snPulse 2.4s ease-in-out infinite;
}

@keyframes snPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.75;
  }
}

/* Headline */
.sitenests-hero-content h1,
.hero-title {
  color: #FFFFFF !important;
  font-size: clamp(32px, 4.4vw + 8px, 80px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.035em !important;
  text-transform: none !important;
  margin: 0 auto clamp(16px, 1.8vw, 24px) !important;
  max-width: 960px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sitenests-hero-content h1 span,
.hero-title span {
  color: #38BDF8;
  text-shadow: 0 0 35px rgba(0, 86, 179, 0.70), 0 0 60px rgba(0, 86, 179, 0.35);
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 50%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Description */
.sitenests-hero-content p,
.hero-description {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: clamp(14px, 1vw + 2px, 18px) !important;
  line-height: 1.65;
  letter-spacing: -0.01em;
  margin: 0 auto clamp(24px, 2.8vw, 38px) !important;
  max-width: 650px;
}

/* Actions / Buttons */
.sitenests-hero-actions,
.hero-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sitenests-hero-actions a,
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: clamp(13px, 0.85vw + 2px, 15px);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* Primary CTA Button */
.sitenests-hero-actions a:first-child,
.hero-primary-button {
  background: #FFFFFF !important;
  color: #050811 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.sitenests-hero-actions a:first-child span,
.hero-primary-button span {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.sitenests-hero-actions a:first-child:hover,
.hero-primary-button:hover {
  background: #0056B3 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 86, 179, 0.55);
}

.sitenests-hero-actions a:first-child:hover span,
.hero-primary-button:hover span {
  transform: translateX(4px);
}

/* Secondary CTA Button (USES rgba(255, 255, 255, 0.08)!) */
.sitenests-hero-actions a:last-child,
.hero-secondary-button {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sitenests-hero-actions a:last-child:hover,
.hero-secondary-button:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* 5. Layer 5: Scroll Indicator */
.sitenests-scroll-indicator {
  position: absolute;
  bottom: clamp(20px, 2.5vw, 32px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  user-select: none;
}

.sitenests-scroll-indicator span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sitenests-scroll-indicator div {
  position: relative;
  width: 22px;
  height: 36px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  display: flex;
  justify-content: center;
  padding: 5px 0;
  box-sizing: border-box;
}

.sitenests-scroll-indicator div::before {
  content: '';
  width: 4px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.75);
  animation: snScrollBounce 2s ease-in-out infinite;
}

@keyframes snScrollBounce {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(12px);
    opacity: 0.15;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .sitenests-hero {
    min-height: auto;
    padding: clamp(35px, 6.5vw, 55px) 0 clamp(45px, 8vw, 65px);
  }
  .sitenests-hero-content {
    padding: 10px 16px 20px !important;
  }
  .sitenests-hero-eyebrow {
    font-size: 10.5px !important;
    padding: 6px 14px !important;
    margin-bottom: 16px !important;
    letter-spacing: 0.1em !important;
  }
  .sitenests-hero-content h1,
  .hero-title {
    font-size: clamp(26px, 7.6vw, 42px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 16px !important;
  }
  .sitenests-hero-content p,
  .hero-description {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-bottom: 26px !important;
    padding: 0 4px;
  }
  .sitenests-hero-actions,
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .sitenests-hero-actions a,
  .hero-actions a {
    width: 100%;
    max-width: 290px;
    padding: 12px 20px !important;
    font-size: 13.5px !important;
  }
  .sitenests-scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .sitenests-hero-content {
    padding: 10px 12px 24px !important;
  }
  .sitenests-hero-content h1,
  .hero-title {
    font-size: clamp(24px, 6.8vw, 32px) !important;
    line-height: 1.22 !important;
  }
  .sitenests-hero-content p,
  .hero-description {
    font-size: 13.5px !important;
  }
  .sitenests-hero-actions a,
  .hero-actions a {
    max-width: 270px;
    padding: 11px 18px !important;
    font-size: 13px !important;
  }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  .sitenests-hero-eyebrow span,
  .sitenests-scroll-indicator div::before {
    animation: none !important;
  }
}
