/* ==========================================================================
   myDigiBill — Features Page Hero Section (Compact, Static & Fully Responsive)
   ========================================================================== */

.fh-hero {
  --navy-0: #050a1a;
  --navy-1: #0a1229;
  --navy-2: #0f1c3d;
  --line: rgba(255, 255, 255, .08);
  --ink: #ffffff;
  --muted: #94a3b8;
  --blue-1: #3b82f6;
  --blue-2: #60a5fa;

  position: relative;
  overflow: hidden;
  background: var(--navy-1);
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px !important;
  margin-bottom: 0 !important;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
}

/* Ambient backdrop grid */
.fh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 40%, transparent 85%);
  opacity: .45;
  pointer-events: none;
}

.fh-hero::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -140px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(59, 130, 246, .22), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.fh-wrap {
  position: relative;
  max-width: 1440px !important;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
}

/* Left Column Text */
.fh-copy {
  display: flex;
  flex-direction: column;
}

.fh-title {
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
}

.fh-title .fh-grad {
  background: linear-gradient(100deg, var(--blue-2) 10%, #a5c8ff 45%, var(--blue-2) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fh-sub {
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.65;
  max-width: 660px;
  margin: 16px 0 0;
  font-weight: 400;
}

/* Action Buttons (Static, No Hover Scale/Shadow) */
.fh-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px !important;
}

.fh-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  padding: 9.5px 18px !important;
  border-radius: 9px !important;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.15s ease, transform 0.12s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fh-btn--primary {
  color: #ffffff;
  background: linear-gradient(110deg, #0052cc 0%, #2563eb 40%, #38bdf8 50%, #2563eb 60%, #0052cc 100%);
  background-size: 220% 100%;
  animation: btnGradientShimmer 4.5s ease infinite;
  border: none;
  box-shadow: none !important;
  transform: none !important;
}

.fh-btn--primary:hover {
  transform: none !important;
  box-shadow: none !important;
  filter: brightness(1.08);
}

.fh-btn--primary:active {
  transform: scale(0.96) !important;
  opacity: 0.9;
}

.fh-btn--primary svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.fh-btn--ghost {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 700 !important;
  box-shadow: none !important;
  transform: none !important;
}

.fh-btn--ghost .fh-play-ic {
  width: 12px;
  height: 12px;
  fill: #ffffff !important;
  margin-right: 2px;
}

.fh-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  transform: none !important;
  box-shadow: none !important;
}

.fh-btn--ghost:active {
  transform: scale(0.96) !important;
  opacity: 0.92 !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

@keyframes btnGradientShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Right Column Static Image (No Animation/No Floating) */
.fh-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.fh-hero-img {
  width: 100%;
  max-width: 660px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.45);
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.fh-hero-img:hover {
  transform: none !important;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.45) !important;
}

/* Scroll Cue */
.fh-scroll {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 20px auto 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #64748b;
  width: fit-content;
}

.fh-scroll svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Responsive Adaptations Across All Devices
   ========================================================================== */

/* Laptop / Medium Desktop (1024px - 1279px) */
@media (max-width: 1279px) {
  .fh-hero {
    padding: 38px 20px 20px !important;
  }
  .fh-wrap {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 28px;
  }
  .fh-title {
    font-size: clamp(26px, 2.4vw, 34px);
  }
  .fh-sub {
    font-size: 15px;
  }
  .fh-hero-img {
    max-width: 500px;
  }
}

/* Tablet Layout (640px - 1023px, e.g. iPad / iPad Air 820px) — Center Aligned */
@media (min-width: 640px) and (max-width: 1023px) {
  .fh-hero {
    padding: 36px 20px 20px !important;
  }
  .fh-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .fh-copy {
    text-align: center !important;
    align-items: center !important;
  }
  .fh-title {
    text-align: center !important;
    max-width: 100% !important;
  }
  .fh-sub {
    text-align: center !important;
    max-width: 640px !important;
    margin: 16px auto 0 !important;
  }
  .fh-cta-row {
    justify-content: center !important;
    margin-top: 22px !important;
  }
  .fh-visual {
    width: 100%;
    margin-top: 8px;
  }
  .fh-hero-img {
    max-width: 540px;
    margin: 0 auto;
  }
}

/* Small Mobile Devices (< 640px) — Text Left Aligned, Buttons Full Width/Centered */
@media (max-width: 639px) {
  .fh-hero {
    padding: 28px 16px 16px !important;
  }
  .fh-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .fh-copy {
    text-align: left !important;
    align-items: flex-start !important;
  }
  .fh-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }
  .fh-sub {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-top: 12px !important;
    text-align: left !important;
    max-width: 100% !important;
  }
  .fh-cta-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 18px !important;
    align-items: stretch !important;
  }
  .fh-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
  .fh-hero-img {
    max-width: 100% !important;
    border-radius: 10px !important;
  }
  .fh-scroll {
    margin-top: 14px;
    display: none;
  }
}

/* Extra Small Devices (< 400px) */
@media (max-width: 399px) {
  .fh-hero {
    padding: 22px 12px 14px !important;
  }
  .fh-title {
    font-size: 21px;
  }
  .fh-sub {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fh-hero * {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Centered Compact Hero for Tools, Calculators, Generators & Utilities
   ========================================================================== */
.fh-hero--centered,
.tools-hero,
.pricing-hero {
  min-height: unset !important;
  padding: 44px 24px 38px !important;
}

.fh-hero--centered .fh-wrap,
.tools-hero .fh-wrap,
.pricing-hero .fh-wrap {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  max-width: 860px !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.fh-hero--centered .fh-copy,
.tools-hero .fh-copy,
.pricing-hero .fh-copy {
  align-items: center !important;
  text-align: center !important;
}

.fh-hero--centered .fh-title,
.tools-hero .fh-title,
.pricing-hero .fh-title {
  text-align: center !important;
  font-size: clamp(24px, 3vw, 38px) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.fh-hero--centered .fh-sub,
.tools-hero .fh-sub,
.pricing-hero .fh-sub {
  text-align: center !important;
  max-width: 680px !important;
  margin: 14px auto 0 !important;
}

.fh-hero--centered .fh-cta-row,
.tools-hero .fh-cta-row,
.pricing-hero .fh-cta-row {
  justify-content: center !important;
  align-items: center !important;
  margin-top: 18px !important;
}

.fh-hero--centered .fh-visual,
.tools-hero .fh-visual,
.pricing-hero .fh-visual {
  display: none !important;
}

@media (max-width: 639px) {
  .fh-hero--centered,
  .tools-hero,
  .pricing-hero {
    padding: 30px 16px 24px !important;
  }
  .fh-hero--centered .fh-copy,
  .tools-hero .fh-copy,
  .pricing-hero .fh-copy {
    align-items: center !important;
    text-align: center !important;
  }
  .fh-hero--centered .fh-title,
  .tools-hero .fh-title,
  .pricing-hero .fh-title {
    text-align: center !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
  }
  .fh-hero--centered .fh-sub,
  .tools-hero .fh-sub,
  .pricing-hero .fh-sub {
    text-align: center !important;
    font-size: 13.5px !important;
    margin-top: 10px !important;
  }
  .fh-hero--centered .fh-cta-row,
  .tools-hero .fh-cta-row,
  .pricing-hero .fh-cta-row {
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: auto !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }
  .fh-hero--centered .fh-btn,
  .tools-hero .fh-btn,
  .pricing-hero .fh-btn {
    width: auto !important;
  }
}
