/* Cláudio's transparent silhouette sits outside real landing surfaces. */
.landing-claudio {
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: none;
}

.landing-cta-mascot-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr);
  align-items: center;
  gap: 24px;
  padding: 48px;
  border: 1px solid hsl(var(--border));
  border-radius: 24px;
  background: #07135e;
  text-align: left;
}

.landing-cta-mascot-card::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  border-radius: inherit;
  background: url('/images/claudio/cta-bugee-blue.webp') center / cover no-repeat;
}

.landing-cta-mascot-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(3, 8, 50, .72), rgba(3, 8, 50, .38) 58%, rgba(3, 8, 50, .04));
}
.landing-cta-mascot-copy { min-width: 0; }
.landing-cta-mascot-copy h2 { font-size: clamp(30px, 3.7vw, 48px); line-height: 1.15; text-wrap: balance; text-align: left; }
.landing-cta-mascot-copy h2 .hero-grad-text { color: #dce5ff; background: none; -webkit-text-fill-color: currentColor; }
.landing-cta-mascot-copy p { margin-left: 0; margin-right: 0; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.6; }
.landing-cta-avatar-clip { position: absolute; width: clamp(360px, 37vw, 470px); right: -24px; top: -88px; bottom: 0; overflow: hidden; pointer-events: none; }
.landing-cta-avatar-clip .landing-claudio { position: absolute; width: 100%; bottom: -25px; }

@media (max-width: 767px) {
  .landing-cta-mascot-card { grid-template-columns: minmax(0, 1fr); padding: 28px; gap: 22px; }
  .landing-cta-avatar-clip { position: relative; right: auto; top: auto; bottom: auto; grid-row: 1; width: min(250px, 78%); aspect-ratio: 1; justify-self: center; margin-top: -90px; margin-bottom: 0; overflow: hidden; }
  .landing-cta-avatar-clip .landing-claudio { bottom: -14px; }
  .landing-cta-mascot-copy { grid-row: 2; }
  .landing-cta-mascot-card::after { background: linear-gradient(180deg, rgba(3, 8, 50, .15), rgba(3, 8, 50, .78) 48%); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-claudio { animation: none; transition: none; }
}


/* Public landing CTAs; no artificial letter spacing. */
#cta-final .landing-cta-mascot-card { max-width: 1280px; margin-inline: auto; }
.landing-engineering-card { min-height: 360px; }
.landing-engineering-card .landing-cta-avatar-clip { top: -65px; right: 0; }
@media (min-width: 768px) { .landing-engineering-card .landing-cta-mascot-copy { padding-right: 12px; } }
@media (max-width: 767px) { .landing-engineering-card .landing-cta-avatar-clip { top: auto; } }
#hero button,
#what-we-do button,
#plans button,
#cta-final button { text-transform: uppercase; letter-spacing: normal; }

:root:not(.dark) .landing-typography :is(h1, h2, h3, h4, h5, h6),
:root:not(.dark) .landing-typography :is(h1, h2, h3, h4, h5, h6) * {
  text-shadow: none !important;
  filter: none !important;
}

/* Compatibility with the published landing's existing module graph. */
.landing-hero-avatar-clip { display: none !important; }
.landing-hero-mascot-stage { padding: 0 !important; }
:root:not(.dark) #hero [style*="blur(40px)"] { display: none; }
.landing-cta-mascot-card::before,
.dark .landing-cta-mascot-card::before { opacity: 1; }
.landing-cta-mascot-copy h2 { color: #fff; }
.landing-cta-mascot-copy p { color: rgba(255, 255, 255, .9); }
.landing-cta-mascot-copy > span { color: #fff; background: rgba(255, 255, 255, .15); }
#cta-final button { background-image: none !important; background-color: #fff !important; color: #002fa7 !important; height: auto; min-height: 44px; }
#cta-final button:hover { background-color: #eef1ff !important; }

#hero button.bg-brand-gradient,
#cta-final button { position: relative; overflow: visible; }
#hero button.bg-brand-gradient::after,
#cta-final button::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid rgba(45, 70, 254, .5);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  animation: bugeeCtaRadar 7s ease-out infinite;
}
#cta-final button::after { border-color: rgba(255, 255, 255, .6); }
@keyframes bugeeCtaRadar {
  0%, 65% { opacity: 0; transform: scale(1); }
  70% { opacity: .6; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(1.12, 1.45); }
}
@media (prefers-reduced-motion: reduce) {
  #hero button.bg-brand-gradient::after,
  #cta-final button::after { animation: none; }
}
