/* =====================================================================
   Home page hero (index.php, section.hero-v2)
   Uses the brand tokens from header-modern.css.
   ===================================================================== */
.hero-v2 {
  --hero-bg: #0c0d18;
  --hero-text: rgba(255, 255, 255, 0.72);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--hero-bg);
  color: #ffffff;
  padding: 160px 0 0;
}

/* ---------- Background: soft brand-colour glows + faint grid ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.hero-blob-1 {
  width: 620px;
  height: 620px;
  right: -120px;
  top: -140px;
  background: var(--brand-pink);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero-blob-2 {
  width: 520px;
  height: 520px;
  right: 22%;
  bottom: -220px;
  background: var(--brand-purple);
  opacity: 0.5;
  animation: hero-drift 22s ease-in-out infinite alternate-reverse;
}
.hero-blob-3 {
  width: 380px;
  height: 380px;
  left: -140px;
  top: 30%;
  background: var(--brand-orange);
  opacity: 0.22;
  animation: hero-drift 20s ease-in-out infinite alternate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
@keyframes hero-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-60px, 40px, 0) scale(1.12); }
}

/* ---------- Layout ---------- */
.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 24px;
}

/* ---------- Text side ---------- */
/* Badge: dark glass pill with a thin brand-gradient border,
   a glowing gradient icon and a light sweep that passes every few seconds */
.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 6px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(22, 19, 40, 0.92), rgba(22, 19, 40, 0.92)) padding-box,
    linear-gradient(100deg, rgba(255, 122, 61, 0.75), rgba(232, 49, 138, 0.75) 50%, rgba(106, 61, 240, 0.75)) border-box;
  box-shadow: 0 10px 30px -12px rgba(232, 49, 138, 0.45);
  overflow: hidden;
}
.hero-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 30%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-20deg);
  animation: hero-badge-shine 5s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes hero-badge-shine {
  0%   { left: -40%; }
  30%  { left: 130%; }
  100% { left: 130%; }
}
.hero-badge-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 12px;
  box-shadow: 0 0 0 4px rgba(232, 49, 138, 0.15), 0 4px 14px -2px rgba(232, 49, 138, 0.6);
}
.hero-badge-text {
  font-family: var(--text-font);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}
.hero-badge-text b {
  font-weight: 700;
  color: #ffffff;
}
@media (max-width: 575.98px) {
  .hero-badge {
    gap: 10px;
    padding-right: 16px;
  }
  .hero-badge-icon {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  .hero-badge-text {
    font-size: 13px;
  }
}

.hero-v2 .hero-title {
  margin: 26px 0 0;
  font-family: var(--title-font);
  font-size: clamp(38px, 4.5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #ffffff;
}
/* desktop: each phrase on exactly one line */
@media (min-width: 992px) {
  .hero-v2 .hero-title {
    white-space: nowrap;
  }
}
.hero-title-grad {
  display: block;
  background: linear-gradient(100deg, #ffb37a 0%, var(--brand-pink) 45%, #a78bfa 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: 0.06em; /* keep descenders from clipping */
}

.hero-v2 .hero-text {
  max-width: 560px;
  margin: 26px 0 0;
  font-family: var(--text-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--hero-text);
}

/* Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--title-font);
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 250ms var(--header-ease), box-shadow 250ms ease, background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}
.hero-btn-primary {
  color: #ffffff;
  background: var(--brand-gradient);
  background-size: 160% 100%;
  box-shadow: 0 14px 30px -12px rgba(232, 49, 138, 0.7);
}
.hero-btn-primary i {
  font-size: 13px;
  transition: transform 250ms var(--header-ease);
}
.hero-btn-primary:hover {
  color: #ffffff;
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(106, 61, 240, 0.75);
}
.hero-btn-primary:hover i {
  transform: translateX(4px);
}
.hero-btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}
.hero-btn-ghost:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ---------- Visual side ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.hero-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  animation: hero-spin 60s linear infinite;
}
.hero-ring::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 49, 138, 0.35), rgba(106, 61, 240, 0.12) 55%, transparent 70%);
}
@keyframes hero-spin {
  to { transform: rotate(360deg); }
}
.hero-phone {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: auto;
  /* flipped like the original banner; shifted so the phone itself is centred
     (inside slider4.png the artwork sits high, with empty space at the bottom) */
  transform: translate(-1.5%, 4%) scaleX(-1);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45));
  animation: hero-float 7s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -16px; }
}

/* ---------- Services ticker ---------- */
.hero-marquee {
  margin-top: 70px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hero-marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: hero-marquee 40s linear infinite;
}
.hero-marquee:hover .hero-marquee-track {
  animation-play-state: paused;
}
.hero-marquee-track span {
  font-family: var(--title-font);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.hero-marquee-star {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: var(--brand-gradient);
  transform: rotate(45deg);
  border-radius: 2px;
}
@keyframes hero-marquee {
  to { transform: translateX(calc(-50% - 18px)); }
}

/* ---------- Entrance animation ---------- */
.hero-in {
  animation: hero-in 900ms var(--header-ease) var(--d, 0s) both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Fit the whole hero inside one screen (100vh) ----------
   Spacing and type are sized from the viewport height, so the headline,
   buttons, stats and the services strip are all visible without scrolling. */
.hero-v2 {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  padding-top: clamp(104px, 15vh, 150px);
}
.hero-container {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.hero-v2 .hero-title {
  font-size: clamp(36px, min(4.3vw, 8vh), 68px);
  margin-top: clamp(14px, 2.6vh, 26px);
}
.hero-v2 .hero-text {
  margin-top: clamp(12px, 2.4vh, 24px);
  font-size: clamp(15.5px, 2.2vh, 18px);
}
.hero-actions {
  margin-top: clamp(18px, 3.6vh, 38px);
}
.hero-btn {
  height: clamp(48px, 6.6vh, 56px);
}
.hero-visual {
  min-height: 0;
  height: 100%;
  max-height: 100%;
}
.hero-phone {
  width: auto;
  max-width: 125%;
  max-height: calc(100svh - clamp(104px, 15vh, 150px) - 60px);
  scale: 1.12;
}
.hero-ring {
  width: auto;
  height: 96%;
}
.hero-marquee {
  flex: 0 0 auto;
  margin-top: clamp(12px, 2.5vh, 32px);
  padding: clamp(12px, 2vh, 22px) 0;
}
.hero-marquee-track span {
  font-size: clamp(15px, 2.2vh, 20px);
}

/* ---------- Responsive ---------- */
/* tablets & phones: text only (the illustration would push past one screen) */
@media (max-width: 991.98px) {
  .hero-container {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 20px;
    text-align: center;
  }
  .hero-visual {
    display: none !important;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-v2 .hero-text {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
}
@media (max-width: 767.98px) {
  .hero-v2 {
    min-height: 560px;
    padding-top: 100px;
  }
  .hero-container {
    padding: 0 20px;
  }
  .hero-v2 .hero-text {
    font-size: 16.5px;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
  }
  .hero-btn {
    width: 100%;
    max-width: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v2 *,
  .hero-v2 *::before,
  .hero-v2 *::after {
    animation: none !important;
  }
}
