/* hero.css - Refined Editorial Dark Hero with Oversized Ghost Background Word & 4 Organic Badges */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: 0;
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background Layer Box (Particles, Dot Grid, Ambient Glow, Vignette) */
.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Dedicated Watermark Background Layer */
.hero__watermark-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Canvas for floating particles */
.hero__particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Subtle Purple Dot Grid Pattern */
.hero__dot-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(139, 92, 246, 0.16) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, black 20%, transparent 85%);
}

/* Subtle Radial Ambient Glow Overlay */
.hero__ambient-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 680px;
  height: 480px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, transparent 70%);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

/* Vignette Mask */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  box-shadow: inset 0 0 140px rgba(5, 5, 5, 0.95);
  pointer-events: none;
}

/* Hero Container & Content Box */
.hero__container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero__content {
  max-width: clamp(980px, 780px + 14vw, 1120px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
}

/* ==========================================================================
   OVERSIZED BACKGROUND OUTLINE WATERMARK ("CREWIFY" - 110–130% CONTENT WIDTH)
   ========================================================================== */

.hero__ghost-word-wrapper {
  position: absolute;
  top: 37%;
  /* Lowered 20-30px to sit behind Built to Scale & Paragraph */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero__ghost-word {
  /* Increased width to 100% of content width (spans ~100vw horizontally) */
  font-size: clamp(180px, 20vw, 260px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  color: transparent;
  white-space: nowrap;
}

/* Layer 1: Permanent base outline (2px stroke, 8–10% opacity, no fill, no permanent glow) */
.hero__ghost-word--base {
  -webkit-text-stroke: 2px rgba(139, 92, 246, 0.45);
  opacity: 0.2;
}

/* Layer 2, 3 & 4: Primary Warm Purple Light Sweep (35–45% opacity, 2x wider band, 18-24px blur bloom, inner stroke glow) */
.hero__ghost-word--reveal {
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 2.2px rgba(167, 139, 250, 0.95);
  opacity: 0.5;
  /* 30-40% brighter intensity sweep */
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.55)) drop-shadow(0 0 6px rgba(196, 181, 253, 0.60));
  /* Layer 3 soft bloom (22px) + Layer 4 inner stroke glow */
  mask-image: radial-gradient(ellipse 320px 180px at var(--scan-x, -500px) var(--scan-y, -500px), black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 320px 180px at var(--scan-x, -500px) var(--scan-y, -500px), black 0%, transparent 80%);
  z-index: 3;
  transition: opacity 300ms ease;
}

/* Secondary Coordinated Purple Reflection Trail Layer (20–30% intensity, trailing behind) */
.hero__ghost-word--trail {
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 2px rgba(139, 92, 246, 0.70);
  opacity: 0.5;
  /* 25% intensity trailing purple reflection */
  filter: drop-shadow(0 0 16px rgba(109, 40, 217, 0.35));
  mask-image: radial-gradient(ellipse 260px 140px at var(--trail-x, -500px) var(--trail-y, -500px), black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 260px 140px at var(--trail-x, -500px) var(--trail-y, -500px), black 0%, transparent 80%);
  z-index: 2;
  transition: opacity 600ms ease;
}

/* Cursor-follow reveal state when mouse is inside 20% local interaction zone around watermark (140-180px radius reveal) */
.hero__ghost-word-wrapper.is-cursor-active .hero__ghost-word--reveal {
  mask-image: radial-gradient(circle 160px at var(--mouse-x, -500px) var(--mouse-y, -500px), black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle 160px at var(--mouse-x, -500px) var(--mouse-y, -500px), black 0%, transparent 75%);
  opacity: 1;
}

.hero__ghost-word-wrapper.is-cursor-active .hero__ghost-word--trail {
  opacity: 0;
  /* Hide trailing pass during direct cursor spotlight */
}

/* ==========================================================================
   EDITORIAL HEADING & STATIC "BUILT TO SCALE" FOCAL POINT
   ========================================================================== */

.hero__title {
  position: relative;
  z-index: 3;
  font-size: clamp(2.6rem, 6vw, 5.0rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin: 0 0 clamp(1.125rem, 2vw, 1.625rem) 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title-line {
  display: block;
}

/* Dedicated Static "Built to Scale." Focal Block */
.hero__focal-block {
  margin: 0 0 44px 0;
  /* Generous spacing to paragraph */
  position: relative;
  z-index: 4;
}

/* Static typography without pop, scale, or hover translate */
.hero__static-word {
  position: relative;
  display: inline-block;
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  /* Pure static white text */
  user-select: none;
}

/* Purple Gradient Accent matching Services page hero */
.hero__orange-accent {
  background: var(--gradient-purple-text, linear-gradient(135deg, #FFFFFF 0%, #D8B4FE 30%, #A78BFA 70%, #8B5CF6 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero__layered-word:hover .hero__layered-word-bg {
  transform: translate(9px, 9px);
  opacity: 0.60;
}

/* Supporting Paragraph with Selective Purple Gradient Phrase Highlights */
.hero__description {
  font-size: var(--font-size-md);
  font-weight: 400;
  color: #9A9A9A;
  /* Neutral gray base */
  line-height: 1.65;
  max-width: clamp(650px, 530px + 8vw, 720px);
  margin: 0 auto clamp(1.5rem, 2.8vw, 2.625rem) auto;
  position: relative;
  z-index: 4;
}

/* Selective Purple Gradient Phrase Highlights in Paragraph */
.hero__para-highlight {
  background: var(--gradient-purple-text, linear-gradient(135deg, #FFFFFF 0%, #D8B4FE 30%, #A78BFA 70%, #8B5CF6 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  display: inline;
}

/* Hero CTA Buttons Container */
.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: clamp(2rem, 3.5vw, 3.5rem);
  position: relative;
  z-index: 4;
}

/* ==========================================================================
   4 SCATTERED FLOATING GLASS BADGES (WordPress, Shopify, AI, Webflow)
   ========================================================================== */

.hero__floating-badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: rgba(245, 245, 245, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  user-select: none;
  animation: badge-float 7s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  transition: border-color 300ms ease, box-shadow 300ms ease, color 300ms ease, transform 300ms ease;
}

.hero__floating-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

/* Soft Purple Glow on Hover */
.hero__floating-badge:hover {
  border-color: var(--color-purple-border);
  box-shadow: 0 0 16px var(--color-primary-glow), 0 4px 20px rgba(139, 92, 246, 0.20);
  color: #FFFFFF;
  transform: translateY(-4px) scale(1.04);
}

/* Continuous Floating Animation */
@keyframes badge-float {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-10px);
  }
}

/* Asymmetrical Framing Placement (Away from main text) */
.hero__floating-badge--wp {
  /* WordPress - Top Left */
  top: 5%;
  left: 2%;
}

.hero__floating-badge--ai {
  /* AI Automation - Upper Right */
  top: 8%;
  right: 2%;
}

.hero__floating-badge--webflow {
  /* Webflow - Middle Left */
  top: 48%;
  left: -2%;
}

.hero__floating-badge--shopify {
  /* Shopify - Middle Right */
  top: 46%;
  right: -2%;
}

/* ==========================================================================
   CLIENT LOGOS / TRUST STRIP
   ========================================================================== */

.client-strip {
  width: 100%;
  position: relative;
  z-index: 10;
  padding-top: clamp(24px, 2.5vw, 36px);
  padding-bottom: clamp(28px, 3.2vw, 44px);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.client-strip__heading {
  font-size: clamp(0.68rem, 0.62rem + 0.28vw, 0.875rem);
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: clamp(1.2px, 0.12em, 2px);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-bottom: clamp(var(--space-sm), 1.5vw, var(--space-lg));
  max-width: var(--container-max-width);
  width: 100%;
  padding: 0 var(--space-md);
}

.client-strip__marquee {
  width: 100%;
  max-width: clamp(100%, calc(var(--container-max-width) + 180px), 1680px);
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.client-strip__track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  will-change: transform;
  animation: marquee-infinite 45s linear infinite;
}

.client-strip__list {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.client-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 88px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  box-sizing: border-box;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.client-strip__logo {
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(147, 51, 234, 0.10)) drop-shadow(0 0 32px rgba(147, 51, 234, 0.05));
  display: block;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), filter 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.client-strip__logo--wide {
  max-height: 44px;
  max-width: 190px;
}

/* Specific visual weight boost for Maishwari and Celebrity Cruises */
.client-strip__logo[src*="maishwari"],
.client-strip__logo[src*="celebrity-cruises"] {
  max-height: 56px;
  max-width: 220px;
}

.client-strip__logo--square {
  max-height: 52px;
  max-width: 110px;
}

.client-strip__logo--compact {
  max-height: 46px;
  max-width: 150px;
}

@media (hover: hover) {
  .client-strip__item:hover .client-strip__logo {
    transform: scale(1.03);
    filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.25)) drop-shadow(0 0 36px rgba(147, 51, 234, 0.12));
  }
}

@media (max-width: 992px) {
  .client-strip {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-2xl);
  }

  .client-strip__track,
  .client-strip__list {
    gap: 34px;
  }

  .client-strip__item {
    height: 78px;
    padding: 10px 14px;
  }

  .client-strip__logo {
    max-height: 40px;
  }

  .client-strip__logo--wide {
    max-height: 36px;
    max-width: 160px;
  }

  .client-strip__logo[src*="maishwari"],
  .client-strip__logo[src*="celebrity-cruises"] {
    max-height: 46px;
    max-width: 190px;
  }

  .client-strip__logo--square {
    max-height: 42px;
    max-width: 95px;
  }

  .client-strip__logo--compact {
    max-height: 38px;
    max-width: 130px;
  }
}

@media (max-width: 576px) {
  .client-strip {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-xl);
  }

  .client-strip__track,
  .client-strip__list {
    gap: 24px;
  }

  .client-strip__item {
    height: 70px;
    padding: 8px 10px;
  }

  .client-strip__logo {
    max-height: 32px;
  }

  .client-strip__logo--wide {
    max-height: 30px;
    max-width: 130px;
  }

  .client-strip__logo[src*="maishwari"],
  .client-strip__logo[src*="celebrity-cruises"] {
    max-height: 38px;
    max-width: 155px;
  }

  .client-strip__logo--square {
    max-height: 34px;
    max-width: 80px;
  }

  .client-strip__logo--compact {
    max-height: 32px;
    max-width: 105px;
  }
}

@keyframes marquee-infinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Media Queries */
/* Desktop default for badges wrapper */
.hero__badges-wrapper {
  display: contents;
}

/* Tablet / Intermediate (768px - 1199px): Badges positioned safely in peripheral margins outside hero text */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero__floating-badge {
    padding: 7px 13px;
    font-size: 0.72rem;
    gap: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }

  .hero__floating-icon svg {
    width: 12px;
    height: 12px;
  }

  /* Peripheral positioning outside centered hero content */
  .hero__floating-badge--wp {
    top: 4%;
    left: 1%;
  }

  .hero__floating-badge--ai {
    top: 6%;
    right: 1%;
  }

  .hero__floating-badge--shopify {
    top: 50%;
    right: 1%;
  }
}

@media (max-width: 992px) {
  .hero__title {
    font-size: clamp(2.4rem, 7vw, 4.2rem);
  }

  .hero__title-line--1,
  .hero__title-line--2,
  .hero__title-line--3 {
    transform: none;
  }

  .hero__ghost-word {
    font-size: clamp(80px, 16vw, 150px);
  }
}

@media (max-width: 640px) {
  .hero__title {
    font-size: 2.1rem;
    line-height: 1.08;
  }

  .hero__ghost-word {
    display: none;
    /* Hide watermark on small mobile screens */
  }
}

/* Mobile (<= 767px): Completely hide decorative floating badges for clean, unobstructed hierarchy */
@media (max-width: 767px) {
  .hero__badges-wrapper,
  .hero__floating-badge {
    display: none !important;
  }
}