/* ═══════════════════════════════════════════════════════════════
   WNEXO — UI inspirada em landing pages SaaS modernas (Avante)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --wnx-accent: var(--blue, #2B6CB0);
  --wnx-accent-dark: var(--blue-dark, #1E5A96);
  --wnx-accent-soft: var(--blue-light, #F0F7FC);
  --wnx-ink: #0f172a;
  --wnx-muted: #64748b;
  --wnx-line: #e2e8f0;
  --wnx-radius: 16px;
  --wnx-radius-pill: 999px;
  --wnx-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
  --wnx-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* ——— Subpáginas: hero split (imagem limpa, sem overlay roxo) ——— */
.page-hero-cinema,
.hero-cinema {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: auto;
  padding: calc(var(--nav-h) + 36px) 28px 64px;
  margin-top: 0;
  overflow: visible;
  isolation: isolate;
  background: transparent;
  max-width: var(--max, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.page-hero-cinema .hero-cinema-content,
.hero-cinema .hero-cinema-content {
  position: relative;
  z-index: 2;
  order: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
}

.page-hero-cinema .hero-cinema-content h1,
.hero-cinema .hero-cinema-content h1 {
  color: var(--ink, #1D1D1F) !important;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 14ch;
}

.page-hero-cinema .hero-cinema-content .hero-sub,
.hero-cinema .hero-cinema-content .hero-sub {
  color: var(--text, #424245) !important;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 42ch;
}

.page-hero-cinema .hero-cinema-media,
.hero-cinema .hero-cinema-media {
  position: relative;
  order: 2;
  inset: auto !important;
  z-index: 1;
  width: 100%;
  height: clamp(260px, 46vw, 480px);
  margin: 0;
  padding: 0 !important;
  border-radius: var(--wnx-radius, 16px);
  overflow: hidden;
  box-shadow: var(--wnx-shadow, 0 24px 64px rgba(15, 23, 42, 0.1));
  border: 1px solid var(--line, #E8E8ED);
}

.page-hero-cinema .hero-cinema-media img,
.hero-cinema .hero-cinema-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: none;
  border-radius: 0;
  box-shadow: none !important;
}

.page-hero-cinema .hero-cinema-scrim,
.hero-cinema .hero-cinema-scrim {
  display: none !important;
}

.page-hero-cinema--planos .hero-cinema-media {
  background: #fff;
}

.page-hero-cinema--radar .hero-cinema-media {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.page-hero-cinema--radar .hero-cinema-media img {
  object-fit: contain;
  object-position: center;
  padding: 0;
}

@media (min-width: 960px) {

  .page-hero-cinema,
  .hero-cinema {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 48px 56px;
    padding: calc(var(--nav-h) + 48px) 28px 72px;
  }

  .page-hero-cinema .hero-cinema-content,
  .hero-cinema .hero-cinema-content {
    grid-column: 1;
    grid-row: 1;
  }

  .page-hero-cinema .hero-cinema-media,
  .hero-cinema .hero-cinema-media {
    grid-column: 2;
    grid-row: 1;
    height: clamp(380px, 36vw, 520px);
  }
}

.btn-primary,
.btn-blue {
  background: var(--wnx-accent) !important;
}

.btn-primary:hover,
.btn-blue:hover {
  background: var(--wnx-accent-dark) !important;
}

/* ——— Navbar estilo Avante ——— */
.navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: none !important;
}

.nav-inner {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1320px;
}

.nav-links {
  justify-content: center;
  gap: 32px !important;
}

.nav-links>a,
.nav-item>a {
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  transition: color 0.2s ease !important;
}

.navbar.scrolled .nav-links>a,
.navbar.scrolled .nav-item>a {
  color: var(--text, #424245) !important;
}

.navbar.scrolled .nav-links>a:hover,
.navbar.scrolled .nav-item>a:hover,
.navbar.scrolled .nav-links>a.active {
  color: var(--blue, #2B6CB0) !important;
  background: transparent !important;
}

.nav-actions .btn-primary {
  background: var(--wnx-accent) !important;
  box-shadow: 0 4px 14px rgba(29, 80, 220, 0.28) !important;
  border-radius: var(--wnx-radius-pill) !important;
  padding: 11px 22px !important;
  font-size: 0.875rem !important;
}

.nav-actions .btn-primary:hover {
  background: var(--wnx-accent-dark) !important;
}

.nav-actions .btn-outline {
  border-radius: var(--wnx-radius-pill) !important;
  font-size: 0.875rem !important;
}

/* ——— Hero cinema (full bleed) ——— */
.wnx-hero-cinema {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  margin-top: var(--nav-h);
  padding-top: 0;
}

.wnx-hero-cinema__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.02);
  pointer-events: none;
}

.wnx-hero-cinema__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.72) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(29, 80, 220, 0.18) 0%, transparent 70%);
}

.wnx-hero-cinema__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 28px 72px;
  max-width: 920px;
}

.wnx-hero-cinema__content h1 {
  color: #fff !important;
  font-size: clamp(2.25rem, 5.5vw, 4rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 20px;
}

.wnx-hero-cinema__sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
  max-width: 36em;
  margin: 0 auto 32px;
}

.wnx-hero-cinema__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: var(--wnx-radius-pill);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-1px);
}

.wnx-hero-cinema .btn-primary {
  background: var(--wnx-accent) !important;
  border-radius: var(--wnx-radius-pill) !important;
  box-shadow: 0 8px 28px rgba(29, 80, 220, 0.35) !important;
}

/* ——— Seções título Avante ——— */
.wnx-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.wnx-section-head .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wnx-accent);
  margin-bottom: 12px;
}

.wnx-section-head h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem) !important;
  letter-spacing: -0.025em !important;
  color: var(--wnx-ink) !important;
  margin-bottom: 14px;
}

.wnx-section-head p {
  color: var(--wnx-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ——— Carrossel de produtos ——— */
.wnx-carousel {
  position: relative;
}

.wnx-carousel__track-wrap {
  overflow: hidden;
  border-radius: var(--wnx-radius);
}

.wnx-carousel__track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.wnx-product-slide {
  flex: 0 0 min(100%, 340px);
  scroll-snap-align: start;
}

.wnx-product-slide__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--wnx-line);
  border-radius: var(--wnx-radius);
  overflow: hidden;
  box-shadow: var(--wnx-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
}

.wnx-product-slide__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wnx-shadow);
}

.wnx-product-slide__visual {
  aspect-ratio: 16 / 10;
  background: var(--wnx-accent-soft);
  overflow: hidden;
}

.wnx-product-slide__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.wnx-product-slide__body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wnx-product-slide__body h3 {
  font-size: 1.25rem !important;
  margin-bottom: 8px;
  color: var(--wnx-ink) !important;
}

.wnx-product-slide__body p {
  font-size: 0.9375rem;
  color: var(--wnx-muted);
  line-height: 1.55;
  flex: 1;
}

.wnx-product-slide__link {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--wnx-accent);
}

.wnx-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.wnx-carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--wnx-line);
  background: #fff;
  color: var(--wnx-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wnx-carousel__btn:hover {
  background: var(--wnx-accent-soft);
  border-color: rgba(29, 80, 220, 0.25);
  color: var(--wnx-accent);
}

.wnx-carousel__dots {
  display: flex;
  gap: 8px;
}

.wnx-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.wnx-carousel__dot.is-active {
  background: var(--wnx-accent);
  transform: scale(1.15);
}

/* ——— Stats ——— */
.wnx-stats {
  padding: 72px 0;
}

.wnx-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.wnx-stat {
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border-radius: var(--wnx-radius);
  border: 1px solid var(--wnx-line);
  box-shadow: var(--wnx-shadow-sm);
}

.wnx-stat__value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--wnx-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.wnx-stat__suffix {
  font-size: 0.55em;
  font-weight: 700;
  vertical-align: super;
}

.wnx-stat__label {
  font-size: 0.9375rem;
  color: var(--wnx-muted);
  line-height: 1.45;
}

/* ——— Segmentos (tabs + painel) ——— */
.wnx-segments {
  padding: 80px 0;
}

.wnx-segment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.wnx-segment-tab {
  padding: 12px 20px;
  border-radius: var(--wnx-radius-pill);
  border: 1px solid var(--wnx-line);
  background: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--wnx-ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wnx-segment-tab.is-active,
.wnx-segment-tab:hover {
  background: var(--wnx-accent);
  border-color: var(--wnx-accent);
  color: #fff;
}

.wnx-segment-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--wnx-line);
  border-radius: calc(var(--wnx-radius) + 4px);
  padding: 36px;
  box-shadow: var(--wnx-shadow-sm);
}

.wnx-segment-panel.is-active {
  display: grid;
}

.wnx-segment-panel h3 {
  font-size: 1.75rem !important;
  margin-bottom: 12px;
  color: var(--wnx-ink) !important;
}

.wnx-segment-panel p {
  color: var(--wnx-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.wnx-segment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.wnx-segment-chips a {
  padding: 8px 14px;
  border-radius: var(--wnx-radius-pill);
  background: var(--wnx-accent-soft);
  color: var(--wnx-accent-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.wnx-segment-chips a:hover {
  background: #dce6ff;
}

.wnx-segment-panel__visual {
  border-radius: var(--wnx-radius);
  overflow: hidden;
  box-shadow: var(--wnx-shadow);
}

.wnx-segment-panel__visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ——— Depoimentos carousel ——— */
.wnx-testimonials {
  padding: 80px 0;
  background: var(--soft);
}

.wnx-testimonial-slide {
  flex: 0 0 min(100%, 520px);
}

.wnx-testimonial-card {
  background: #fff;
  border: 1px solid var(--wnx-line);
  border-radius: var(--wnx-radius);
  padding: 32px 28px;
  box-shadow: var(--wnx-shadow-sm);
  height: 100%;
}

.wnx-testimonial-card q {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--wnx-ink);
  quotes: none;
  margin-bottom: 20px;
}

.wnx-testimonial-card cite {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wnx-muted);
}

/* ——— CTA final ——— */
.cta-section {
  border-top: 1px solid var(--wnx-border, var(--line, #E8E8ED)) !important;
  border-radius: 0 !important;
}

.cta-section h2 {
  color: var(--wnx-ink, var(--ink-soft, #1D1D1F)) !important;
}

.cta-section p {
  color: var(--wnx-muted, var(--muted, #6E6E73)) !important;
}

.cta-section .btn-primary {
  background: var(--wnx-accent, var(--blue, #2B6CB0)) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--blue) 18%, transparent) !important;
}

/* ——— Cards produto / módulo refinados ——— */
.product-card,
.module-card {
  border-radius: var(--wnx-radius) !important;
  border: 1px solid var(--wnx-line) !important;
  box-shadow: var(--wnx-shadow-sm) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.product-card:hover,
.module-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--wnx-shadow) !important;
}

/* ——— Responsivo ——— */
@media (max-width: 991px) {
  .nav-inner {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .wnx-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wnx-segment-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .wnx-segment-panel__visual {
    order: -1;
  }
}

@media (max-width: 575px) {
  .wnx-stats-grid {
    grid-template-columns: 1fr;
  }

  .wnx-product-slide {
    flex: 0 0 88%;
  }
}