/* Design system: type scale, header navigation, buttons, lime dots, then the
   Home loop, benefits, partner marquee and parallax layers. */

/* ==========================================================================
   DESIGN SYSTEM v16
   Una sola scala tipografica, due famiglie di bottoni, un solo stile di
   pallino lime. Questo blocco è l'ultimo del file e ha la precedenza.
   ========================================================================== */
/* ---------- Tipografia ---------- */
h1,
.hero-title {
  font-size: var(--fs-h1);
  line-height: 1.02;
}
h2,
.how-intro-home h2,
.results-intro-home h2 {
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.area-copy h3,
.how-intro-home h3,
.hero-subline {
  font-size: var(--fs-h3-lg) !important;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h3,
.loop-card h3,
.benefit-with-icon h3,
.card h3,
.timeline-item h3,
.case-card h3,
.module-card h3 {
  font-size: var(--fs-h3) !important;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.result-card-home h3,
.how-node-home strong,
.benefit > strong,
.dash-top strong,
summary,
.step-icon-lime b {
  font-size: var(--fs-h4) !important;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.hero-copy {
  font-size: var(--fs-lead);
  line-height: 1.65;
}
.section-head p,
.lead,
.area-copy p,
.how-intro-home p,
.results-intro-home p,
.cta-box p {
  font-size: var(--fs-body) !important;
  line-height: 1.65;
}
.card p,
.loop-card p,
.benefit span,
.benefit-with-icon span,
details p,
.result-card-home p,
.area-list span,
.case-card p,
.notice {
  font-size: var(--fs-small);
  line-height: 1.6;
}
.eyebrow,
.how-eyebrow,
.partners-kicker {
  font-size: var(--fs-eyebrow) !important;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-transform: uppercase;
}
.card-num,
.case-meta,
.area-kicker,
.result-top-home span,
.result-top-home i,
.benefit-with-icon strong,
.journey-label,
.how-flow-line,
.tag,
.pill,
.area-benefits span,
.timeline-item .time,
.arch-stage-label,
.stack-label {
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
}
label {
  font-size: 14px;
}
/* ---------- Navbar: logo + nome + tagline allineati a sinistra ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 0;
}
.brand img {
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.brand-name {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-text-on-dark);
}
.brand-tagline {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-accent);
  white-space: nowrap;
}
.footer-brand img {
  width: 28px;
  height: 28px;
}
/* ---------- Pallini lime: tutti "lampadina" ---------- */
.eyebrow:before,
.how-eyebrow-dot,
.hero-live-dot,
.partners-kicker span,
.lime-mark,
.how-kleecks-home > i,
.compact-kleecks > i,
.geo-dot,
.card-num::before,
.case-meta::before,
.area-kicker::before,
.journey-node,
.journey-spark,
.theme-light .eyebrow:before,
.theme-light .how-eyebrow-dot,
.theme-light .card-num::before,
.theme-light .case-meta::before,
.theme-light .area-kicker::before {
  background: var(--lime-bulb) !important;
  box-shadow: var(--lime-glow);
  border: 0;
}
.eyebrow:before,
.how-eyebrow-dot,
.partners-kicker span,
.card-num::before,
.case-meta::before,
.area-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
/* ---------- Bottoni ----------
   A. Primario lime: testo scuro, luce "lampadina", in hover si accende di più e si solleva.
   B. Secondario (bianco su chiaro / nero-vetro su scuro): in hover bordo lime e alone lime;
      se è un toggle (tab) o viene premuto, si inverte (bianco ↔ nero). */
.btn,
.nav-cta,
.area-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "DM Sans", sans-serif;
  font-size: var(--fs-btn) !important;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}
.nav-cta {
  min-height: 42px;
  padding: 10px 20px;
}
/* A — primario lime */
.btn-primary,
.btn-dark,
.nav-cta,
.cta-box .btn-primary {
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg) !important;
  box-shadow:
    0 0 0 3px rgb(from var(--btn-primary-glow) r g b / 0.1),
    0 0 18px rgb(from var(--btn-primary-glow) r g b / 0.32);
}
.btn-primary:hover,
.btn-dark:hover,
.nav-cta:hover,
.cta-box .btn-primary:hover {
  transform: translateY(-3px);
  color: var(--btn-primary-text);
  box-shadow:
    0 0 0 4px rgb(from var(--btn-primary-glow) r g b / 0.18),
    0 0 34px rgb(from var(--btn-primary-glow) r g b / 0.6),
    0 12px 26px rgb(from var(--btn-primary-glow) r g b / 0.22) !important;
}
.btn-primary:active,
.btn-dark:active,
.nav-cta:active {
  transform: translateY(-1px);
}
.theme-light .btn-primary {
  box-shadow:
    0 0 18px rgb(from var(--btn-primary-glow) r g b / 0.45),
    0 8px 20px rgb(from var(--navy) r g b / 0.12) !important;
}
/* B — secondario, su scuro (nero-vetro) */
.btn-secondary,
.area-tab {
  color: var(--btn-secondary-text);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.btn-secondary:hover,
.area-tab:hover {
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-accent);
  box-shadow:
    0 0 0 1px rgb(from var(--btn-secondary-accent) r g b / 0.55),
    0 0 24px rgb(from var(--btn-secondary-accent) r g b / 0.32);
  transform: none;
}
.btn-secondary:active,
.area-tab.active,
.area-tab[aria-selected="true"] {
  color: var(--color-text-on-light);
  border-color: var(--slate-50);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}
/* B — secondario, su chiaro (bianco) */
.theme-light .btn-secondary,
.theme-light .area-tab {
  color: var(--color-text-on-light);
  border-color: rgb(from var(--navy) r g b / 0.18);
}
.theme-light .btn-secondary:hover,
.theme-light .area-tab:hover {
  color: var(--color-text-on-light);
  border-color: var(--color-accent);
  box-shadow:
    0 0 0 1px rgb(from var(--color-accent) r g b / 0.9),
    0 0 26px rgb(from var(--color-accent) r g b / 0.55);
}
.theme-light .btn-secondary:active,
.theme-light .area-tab.active,
.theme-light .area-tab[aria-selected="true"] {
  color: var(--color-text-on-dark);
  border-color: var(--navy);
  box-shadow: 0 10px 26px rgb(from var(--navy) r g b / 0.18);
}
.area-tab.active:hover {
  box-shadow:
    0 0 0 1px rgb(from var(--btn-secondary-accent) r g b / 0.9),
    0 0 26px rgb(from var(--btn-secondary-accent) r g b / 0.45);
}
.areas-tabs {
  gap: 10px;
}
/* Link testuali (non bottoni) */
.inline-link {
  font-size: var(--fs-small);
  transition: color 0.2s;
}
.theme-light .inline-link:hover {
  color: var(--color-brand);
}
/* ---------- Loop: grafico Traffic acquisition → conversion ---------- */
.journey {
  margin: 4px 0 52px;
  justify-content: space-between;
}
.journey-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.journey-label-start {
  transform: translateX(-6px);
  box-shadow: 0 0 18px rgb(from var(--color-brand) r g b / 0.35);
}
.journey-label-end {
  transform: translateX(6px);
  color: var(--color-text-on-dark);
}
.journey-label-start:after,
.journey-label-end:after {
  content: "";
  position: absolute;
  width: 1px;
  height: 14px;
  top: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.35), transparent);
}
.journey-label-start:after {
  left: 22px;
}
.journey-label-end:after {
  right: 22px;
}
.journey-rail {
  margin: 0;
}
.journey-base {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
}
.journey-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  height: 5px;
}
.journey-spark {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  right: -8px;
}
.journey-spark:after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  filter: blur(1px);
  width: 110px;
  height: 3px;
}
.journey-tick {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--panel-3);
  border: 2px solid rgba(255, 255, 255, 0.35);
}
@keyframes journeyFill {
  0% {
    width: 0;
    opacity: 1;
  }
  80% {
    width: 100%;
    opacity: 1;
  }
  92% {
    width: 100%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}
@media (max-width: 850px) {
  .journey-tick {
    display: none;
  }
}
/* ---------- Main Business Benefits: icone lime, hover non "cliccabile" ---------- */
.theme-light .benefit-icon,
.benefit-icon {
  color: var(--color-text-on-light);
  transition: none;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-accent) !important;
  box-shadow:
    0 0 0 4px rgb(from var(--color-accent) r g b / 0.16),
    0 0 22px rgb(from var(--color-accent) r g b / 0.4),
    0 10px 22px rgb(from var(--navy) r g b / 0.1);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.benefit-with-icon {
  cursor: default;
  position: relative;
}
.benefit-icon {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.benefit-with-icon .benefit-icon:after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.75) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.9s ease;
  display: none;
}
.benefit-with-icon:hover .benefit-icon:after {
  transform: translateX(120%);
}
.benefit-with-icon:hover .benefit-icon {
  transform: none;
}
/* ---------- Carosello partner con loghi ---------- */
.partners-track {
  gap: 64px;
  animation-duration: 42s;
}
.partner-logo-item {
  flex: 0 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
}
.partner-logo-item img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.92;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.partner-logo-item.tall img {
  height: 58px;
}
.partner-logo-item img:hover {
  opacity: 1;
  transform: scale(1.05);
}
.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}
/* ---------- Parallasse: orb decorativi e livelli ---------- */
.orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}
.orb-violet {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -60px;
  background: radial-gradient(circle, rgb(from var(--color-brand) r g b / 0.45), rgb(from var(--violet) r g b / 0) 70%);
}
.orb-green {
  width: 320px;
  height: 320px;
  left: 8%;
  bottom: -140px;
  background: radial-gradient(circle, rgb(from var(--green) r g b / 0.28), rgb(from var(--green) r g b / 0) 70%);
}
.orb-right {
  left: auto;
  right: -80px;
  top: 20%;
  bottom: auto;
}
.orb-left {
  right: auto;
  left: -160px;
  top: auto;
  bottom: -120px;
}
[data-speed] {
  will-change: transform;
}
.hero-parallax {
  position: relative;
  z-index: 2;
}
section.theme-dark + section.theme-dark {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
@media (prefers-reduced-motion: reduce) {
  .journey-fill,
  .journey-node-end,
  .journey-tick {
    animation: none !important;
  }
  [data-speed] {
    transform: none;
    opacity: 1;
  }
}
