/* Home: hero, traffic journey, architecture and results refinements. */

/* HOME / expanded architecture */
.hero-home {
  padding-bottom: 105px;
}
.hero-message-title {
  min-height: 1.12em;
}
.hero-message-stage {
  display: inline-block;
  position: relative;
  height: 1.12em;
  width: var(--message-width, 10em);
  overflow: visible;
  vertical-align: bottom;
  transition: width 0.52s cubic-bezier(0.22, 0.75, 0.2, 1);
}
.hero-message {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(85%);
  font-style: normal;
}
.hero-message.is-current {
  opacity: 1;
  transform: translateY(0);
}
.hero-message.is-in {
  animation: messageIn 0.62s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
}
.hero-message.is-out {
  animation: messageOut 0.52s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(85%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes messageOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-85%);
  }
}
.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.loop-card {
  padding: 34px;
  border: 1px solid rgba(8, 20, 38, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 55px rgba(10, 25, 45, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  z-index: 2;
}
.loop-card:hover {
  transform: translateY(-5px);
  border-color: rgb(from var(--color-brand) r g b / 0.24);
  box-shadow: 0 24px 65px rgba(10, 25, 45, 0.12);
}
.loop-card h3 {
  margin: 10px 0 13px;
}
.loop-card p {
  color: #526173;
  margin: 0 0 25px;
}
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #14243a;
  font-weight: 800;
}
.inline-link span {
  color: var(--color-brand);
  transition: transform 0.2s ease;
}
.inline-link:hover span {
  transform: translateX(4px);
}
.benefit-grid-six {
  grid-template-columns: repeat(2, 1fr);
}
.benefit-with-icon {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  min-width: 0;
}
.benefit-icon {
  font-weight: 800;
  border-radius: 22px;
  display: grid;
  place-items: center;
  min-width: 78px;
  font-size: 34px;
  box-sizing: border-box;
}
.benefit-with-icon h3 {
  margin-bottom: 7px;
}
.module-card .inline-link {
  position: absolute;
  left: 30px;
  bottom: 28px;
  color: var(--white);
}
.cta-home {
  padding-top: 75px;
}
@media (max-width: 850px) {
  .loop-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }
  .benefit-grid-six {
    grid-template-columns: 1fr;
  }
  .hero-message-stage {
    max-width: 100%;
  }
  .hero-message {
    white-space: normal;
  }
}
/* HOME refinement: traffic journey */
.loop-section {
  position: relative;
  overflow: hidden;
}
.loop-section:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: 80px;
  border-radius: 50%;
  border: 1px solid rgb(from var(--color-accent) r g b / 0.18);
  box-shadow:
    0 0 0 18px rgb(from var(--color-accent) r g b / 0.025),
    0 0 0 36px rgb(from var(--color-brand) r g b / 0.025);
  pointer-events: none;
}
.loop-card {
  position: relative;
}
/* HOME refinement: lighter sections, restrained lime accents */
/* HOME refinement: GEO Audit card sits outside the module */
/* HOME refinement: architecture animation inspired by the supplied infrastructure diagram */
.hero-message.is-flight-source-hidden {
  opacity: 0 !important;
  transform: none !important;
  animation: none !important;
}
/* FINAL HOME REFINEMENT */
.step-icon {
  font-weight: 900;
}
/* Vertical pyramid architecture */
/* Keep the final hero phrase as a single clean visual beat before the flight. */
.hero-complexity .hero-final-accent {
  opacity: 0;
  display: inline-block;
  color: var(--color-accent);
  margin-left: 0.35em;
  transform: translateX(-0.15em);
  transition:
    opacity 0.48s ease,
    transform 0.48s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-complexity.is-final .hero-final-accent,
.hero-complexity .hero-final-accent.is-visible {
  opacity: 1;
  transform: none;
}
.hero-final-message.is-in {
  animation: finalMessageIn 0.62s cubic-bezier(0.18, 0.82, 0.18, 1) forwards;
}
@keyframes finalMessageIn {
  from {
    opacity: 0;
    transform: translateY(70%) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Architecture: larger editorial-style illustrations */
/* FINAL COMPACT ARCHITECTURE PASS */
/* V5: cleaner architecture visuals + stronger Kleecks focus */
/* Small GEO Audit callout: sits above the card instead of covering its copy */
/* v6 refinement */
/* Traffic journey: constant velocity, no easing pauses */
/* Architecture: one coherent icon language */
/* GEO Audit: larger lime pill, safely above the Search Ready content */
/* Refined Home intro */
.hero-message-title {
  display: block;
}
.hero-final-accent {
  margin-left: 0.35em;
  background: linear-gradient(90deg, var(--white) 0%, #aeb8c8 52%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subline {
  margin-top: 12px;
  color: var(--color-accent);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-live-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  animation: heroLiveBlink 1.05s ease-in-out infinite;
}
@keyframes heroLiveBlink {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.88);
    box-shadow:
      0 0 0 0 rgb(from var(--color-accent) r g b / 0.65),
      0 0 12px rgb(from var(--color-accent) r g b / 0.65);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
    box-shadow:
      0 0 0 7px rgb(from var(--color-accent) r g b / 0.1),
      0 0 22px var(--color-accent);
  }
}
.hero-copy {
  max-width: 690px;
  margin-top: 22px;
}
@media (max-width: 850px) {
  .hero-subline {
    margin-top: 10px;
  }
}
/* Current Home intro: final phrase stays in place; no duplicate/flying copy. */
.hero-final-accent {
  display: inline-block;
  background-clip: text;
  color: transparent;
}
/* Final Home navigation refinement */
@media (max-width: 850px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
}
/* Home update refinements */
.step-icon-lime {
  width: auto;
  height: auto;
  min-height: 44px;
  position: relative;
  margin-bottom: 22px !important;
  display: flex;
  padding: 0 !important;
}
/* V11: Home ordering, compact technical layer and results refinement */
.benefits-section {
  background: linear-gradient(180deg, #0a192b, var(--bg2));
}
.benefits-section .section-head p {
  color: var(--color-text-on-dark-muted);
}
.benefit-grid-six {
  column-gap: 56px;
  row-gap: 8px;
}
.benefit-with-icon {
  align-items: center;
}
.benefit-icon {
  width: 78px;
  height: 78px;
}
.benefit-with-icon > div:last-child {
  min-width: 0;
}
.benefit-with-icon h3,
.benefit-with-icon span {
  max-width: 520px;
}
@media (max-width: 900px) {
  .benefit-grid-six {
    column-gap: 28px;
  }
}
@media (max-width: 850px) {
  .benefit-with-icon {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  .benefit-icon {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
  }
}
/* V12: redesigned How it works + Results sections */
.how-section-home {
  background: linear-gradient(180deg, #edf1f6 0%, #e5eaf1 100%);
  color: var(--bg2);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(6, 19, 37, 0.08);
  padding-top: 92px;
  padding-bottom: 92px;
}
.results-section-home {
  background: var(--bg2);
  color: var(--white);
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}
.results-section-home:before {
  content: "";
  position: absolute;
  width: 600px;
  height: 320px;
  left: -200px;
  top: -180px;
  background: radial-gradient(circle, rgb(from var(--color-brand) r g b / 0.2), transparent 68%);
  pointer-events: none;
}
.results-wrap-home {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.55fr);
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.results-intro-home {
  max-width: 390px;
}
.results-intro-home .eyebrow {
  color: var(--color-accent);
  margin-bottom: 17px;
}
.results-intro-home h2 {
  margin: 0;
}
.results-intro-home p {
  color: var(--color-text-on-dark-muted);
  margin: 20px 0 27px;
}
.results-cards-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.result-card-home {
  min-height: 285px;
  border-radius: 22px;
  padding: 24px 22px;
  background: linear-gradient(155deg, #122941 0%, #0a192b 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 42px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.result-card-home:after {
  content: "";
  position: absolute;
  right: -50px;
  top: -55px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: rgb(from var(--color-accent) r g b / 0.08);
  border: 1px solid rgb(from var(--color-accent) r g b / 0.08);
}
.result-top-home {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.result-top-home span {
  font-weight: 900;
  color: var(--color-accent);
}
.result-top-home i {
  font-style: normal;
  color: #718095;
}
.result-number-home {
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: var(--color-accent);
  text-shadow: 0 0 24px rgb(from var(--color-accent) r g b / 0.1);
}
.result-card-home h3 {
  margin: 13px 0 7px;
  color: var(--white);
}
.result-card-home p {
  color: var(--slate-400);
  margin: 0;
  max-width: none;
}
@media (max-width: 1050px) {
  .results-wrap-home {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .results-intro-home {
    max-width: 650px;
  }
  .results-cards-home {
    max-width: 900px;
  }
}
@media (max-width: 720px) {
  .how-section-home,
  .results-section-home {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .results-cards-home {
    grid-template-columns: 1fr;
  }
  .result-card-home {
    min-height: 215px;
  }
}
/* v13 refinements */
.areas-section-home {
  background: linear-gradient(180deg, #f4f7fb 0%, #e9eef5 100%);
  color: var(--color-text-on-light);
  border-top: 1px solid rgba(8, 20, 38, 0.05);
  border-bottom: 1px solid rgba(8, 20, 38, 0.06);
}
.areas-section-home .section-head p {
  color: #59677a;
}
.areas-section-home .area-tab {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-2);
  border: 1px solid rgba(8, 20, 38, 0.12);
}
.areas-section-home .area-tab.active {
  background: var(--navy);
  color: var(--btn-secondary-accent);
  border-color: var(--navy);
  box-shadow: 0 10px 28px rgba(8, 20, 38, 0.12);
}
.loop-section-dark {
  background: var(--navy);
  color: var(--color-text-on-dark);
}
.loop-section-dark .section-head p {
  color: var(--color-text-on-dark-muted);
}
.loop-section-dark .section-head h2 {
  color: var(--color-text-on-dark);
}
.loop-section-dark .loop-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}
.loop-section-dark .loop-card h3 {
  color: var(--color-text-on-dark);
}
.loop-section-dark .loop-card p {
  color: var(--color-text-on-dark-muted);
}
.loop-section-dark .inline-link {
  color: var(--color-accent);
}
.step-icon-lime {
  align-items: center;
  gap: 12px !important;
}
.step-icon-lime span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--color-text-on-light);
  font-size: 12px;
  font-weight: 900;
}
.step-fix span {
  box-shadow: 0 0 0 0 rgb(from var(--color-accent) r g b / 0.55);
}
@keyframes fixPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes fixGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgb(from var(--color-accent) r g b / 0.5),
      0 0 0 rgb(from var(--color-accent) r g b / 0);
  }
  50% {
    box-shadow:
      0 0 0 8px rgb(from var(--color-accent) r g b / 0.08),
      0 0 24px rgb(from var(--color-accent) r g b / 0.28);
  }
}
.partners-marquee-section {
  padding: 28px 0 30px;
  background: rgba(239, 243, 248, 0.72);
  border-top: 1px solid rgba(8, 20, 38, 0.07);
  border-bottom: 1px solid rgba(8, 20, 38, 0.07);
  overflow: hidden;
}
.partners-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.partners-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.partners-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: partnerScroll 32s linear infinite;
}
@keyframes partnerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 850px) {
  .partners-marquee-section {
    padding: 22px 0;
  }
}
