/* ═════════════════════════════════════════════════════════════
   MINIMAL ANIMATED HERO SECTION (Cycling Word Showcase)
   Theme: Ultra-Matte Charcoal Grey & Brushed Dark Silver / Liquid Platinum
   ═════════════════════════════════════════════════════════════ */

.animated-hero-section {
  position: relative;
  width: 100%;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 1.5rem 10px;
  margin-top: 0;
  margin-bottom: 0;
  background-color: transparent;
  overflow: hidden;
  z-index: 3;
}

/* Subtle matte silver ambient backdrop */
.animated-hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 40%, rgba(197, 203, 211, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 20% 75%, rgba(58, 64, 77, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 25%, rgba(168, 178, 193, 0.08) 0%, transparent 50%);
  z-index: 1;
}

/* Minimal enterprise grid / crosshair accents */
.animated-hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(197, 203, 211, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(197, 203, 211, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.animated-hero-container {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* ── Top Pill Badge Button ── */
.animated-hero-badge-wrap {
  display: inline-flex;
}

.animated-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.3rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: clamp(0.72rem, 1.2vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E2E6EC;
  background: rgba(26, 29, 36, 0.85);
  border: 1px solid rgba(197, 203, 211, 0.3);
  border-radius: 9999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 15px rgba(197, 203, 211, 0.15);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.animated-hero-badge:hover {
  background: rgba(42, 46, 56, 0.95);
  border-color: #FFFFFF;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7), 0 0 20px rgba(226, 230, 236, 0.35);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.animated-hero-badge-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.animated-hero-badge:hover .animated-hero-badge-icon {
  transform: translateX(4px);
}

/* ── Animated Heading with Rotating Words ── */
.animated-hero-heading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 900px;
}

.animated-hero-heading {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #F5F7FA;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.animated-hero-static {
  color: #F5F7FA;
  font-weight: 500;
}

/* Word Rotator Slot */
.animated-hero-rotator {
  position: relative;
  display: block;
  text-align: center;
  width: 100%;
  height: 1.35em;
  line-height: 1.35em;
  overflow: hidden;
  contain: layout size;
  padding-bottom: 0;
  margin-top: 0;
}

.animated-hero-word {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  font-weight: 800;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E6EC 35%, #A8B2C1 70%, #586070 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(100%);
  will-change: transform, opacity;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 4px 30px rgba(197, 203, 211, 0.25);
}

.animated-hero-word.active {
  opacity: 1;
  transform: translateY(0);
}

.animated-hero-word.exit-up {
  opacity: 0;
  transform: translateY(-100%);
}

.animated-hero-word.enter-down {
  opacity: 0;
  transform: translateY(100%);
}

.animated-hero-desc {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.65;
  color: #C0C7D2;
  max-width: 680px;
  margin: 0.5rem auto 0;
}

.animated-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .animated-hero-section {
    padding: 8px 12px 10px;
  }
  .animated-hero-heading {
    font-size: clamp(1.45rem, 6vw, 1.95rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
  }
  .animated-hero-rotator {
    height: 1.25em !important;
  }
  .animated-hero-desc {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
    margin: 4px auto 0 !important;
  }
  .animated-hero-badge {
    padding: 4px 10px !important;
    font-size: 0.68rem !important;
    margin-bottom: 0.4rem !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(26, 29, 36, 0.95) !important;
  }
  .animated-hero-actions {
    gap: 8px !important;
    margin-top: 0.4rem !important;
  }
}

