/* Tokens do blueprint (referência: telecom.vcx.solutions). Editar aqui, não caçar hex no meio do arquivo. */
:root {
  --bg-dark: #14152A;
  --bg-tint: #F6F6F8;
  --footer-bg: #121218;
  --ink: #EEF3FC;
  --ink-soft: #B0B0BE;
  --body: #384651;
  --dark: #282837;
  --muted: #75757D;
  --indigo: #4253A0;
  --indigo-hover: #364489;
  --peri: #8AA5FF;
  --blue-tint: rgba(66, 83, 160, 0.10);
  --line: rgba(40, 40, 55, 0.08);
  --horizon: radial-gradient(55% 110% at 50% 114%,
      rgba(222, 231, 255, 0.85) 0%, rgba(130, 152, 238, 0.6) 26%,
      rgba(66, 83, 160, 0.42) 48%, rgba(40, 40, 55, 0) 74%);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-h2: clamp(1.75rem, 1.55rem + 1vw, 2rem);
  --sp-1: 8px; --sp-2: 12px; --sp-3: 16px; --sp-4: 24px;
  --sp-5: 32px; --sp-6: 48px; --sp-7: 64px; --sp-8: 112px;
  --radius-card: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 6px 8px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 4px 8px -4px rgba(97, 100, 107, 0.3), 0 12px 18px -2px rgba(97, 100, 107, 0.1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.32px;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 88%;
  max-width: 1200px;
  margin: 0 auto;
}

.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- topbar ---------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: var(--sp-3) 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.36px;
}

/* ---------- botões ---------- */
.btn {
  display: inline-block;
  background: var(--indigo);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.18s var(--spring), background-color 0.18s;
}
.btn:hover { background: var(--indigo-hover); transform: translateY(-1px); }
.btn-small { font-size: 14px; padding: 9px 18px; }
.btn-large { font-size: 16px; padding: 14px 32px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--ink);
  padding: calc(var(--sp-8) - 24px) 0 var(--sp-7);
  overflow: hidden;
}
/* Palco do globo de partículas (three.js), copiado da referência */
.hero-stage { position: absolute; inset: 0; z-index: 0; }
.hero-stage canvas { display: block; }
/* Scrim: garante leitura do texto por cima das partículas */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 21, 50, 0.92) 0%, rgba(17, 21, 50, 0.72) 55%, rgba(17, 21, 50, 0.45) 100%);
}
@media (min-width: 900px) {
  .hero-scrim {
    background: linear-gradient(90deg, rgba(17, 21, 50, 0.85) 0%, rgba(17, 21, 50, 0.62) 40%, rgba(17, 21, 50, 0.28) 66%, rgba(17, 21, 50, 0) 88%);
  }
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.96px;
  color: var(--peri);
  margin-bottom: var(--sp-3);
}
.hero h1 {
  font-size: clamp(2rem, 1.4rem + 3.2vw, 3.45rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.96px;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.hero-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: var(--sp-5);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(138, 165, 255, 0.35);
  border-radius: 999px;
  background: rgba(138, 165, 255, 0.08);
  color: var(--ink-soft);
  font-size: 14px;
}
.hero-badge svg { color: var(--peri); flex: none; }
.hero-badge strong { color: var(--ink); font-weight: 600; }

/* ---------- card do form ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  align-self: start;
  scroll-margin-top: var(--sp-4);
}
.form-card-head {
  background: var(--bg-dark);
  padding: var(--sp-4);
  text-align: center;
}
.form-card-head h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.36px;
  margin-bottom: 6px;
}
.form-card-head p { font-size: 13px; color: var(--ink-soft); }
.form-card-body { padding: 0; }
.paperform-slot { min-height: 320px; }

/* ---------- mock do form (trocar pelo Paperform) ---------- */
.mock-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
}
.field input {
  font: inherit;
  font-size: 15px;
  color: var(--dark);
  padding: 10px var(--sp-2);
  border: 1px solid rgba(40, 40, 55, 0.18);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input::placeholder { color: rgba(117, 117, 125, 0.6); }
.field select {
  font: inherit;
  font-size: 15px;
  color: var(--dark);
  padding: 10px var(--sp-2);
  border: 1px solid rgba(40, 40, 55, 0.18);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field select:has(option:checked[value=""]) { color: rgba(117, 117, 125, 0.75); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.btn-form {
  width: 100%;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 13px;
  margin-top: var(--sp-1);
}
.form-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---------- seções ---------- */
.section { padding: var(--sp-8) 0; }
.section-tint { background: var(--bg-tint); }
.section h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.48px;
  color: var(--dark);
  margin-bottom: var(--sp-3);
}
.section h2 + p { margin-bottom: var(--sp-4); }

/* ---------- citação da Meta ---------- */
.section-quote { text-align: center; }
.eyebrow-dark { color: var(--indigo); }
.section-quote blockquote p {
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.48px;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: var(--sp-2);
}
.section-quote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.quote-context { margin-bottom: var(--sp-2); }
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 900px) {
  .press-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
    max-width: 1080px;
  }
}
.press-card {
  display: block;
  text-decoration: none;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s var(--spring), box-shadow 0.18s;
}
.press-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.press-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.press-body {
  display: block;
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
}
.press-source {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.96px;
  color: var(--indigo);
  margin-bottom: 4px;
}
.press-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.15px;
  line-height: 1.4;
  color: var(--dark);
}
.quote-pivot {
  margin-top: var(--sp-5);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.36px;
  color: var(--dark);
}

/* ---------- lista de dor ---------- */
.pain-list { list-style: none; margin-top: var(--sp-4); }
.pain-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-2);
}
.pain-list strong {
  display: block;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 2px;
}
.pain-list span { color: var(--muted); font-size: 14px; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--sp-5);
  transition: transform 0.18s var(--spring), box-shadow 0.18s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--indigo);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--sp-3);
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.36px;
  color: var(--dark);
  margin-bottom: var(--sp-1);
}
.card p { font-size: 14px; color: var(--muted); }

/* ---------- seção escura / CTA ---------- */
.section-dark {
  background: var(--bg-dark);
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.section-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--horizon);
  pointer-events: none;
}
.section-dark .narrow { position: relative; z-index: 1; }
.section-dark h2 { color: #fff; }
.dark-intro { margin-bottom: var(--sp-6); }

/* as 3 regras: passos numerados lado a lado */
.rules-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  max-width: 720px;
  margin: 0 auto var(--sp-7);
}
@media (min-width: 900px) {
  .rules-row { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); max-width: 1080px; }
}
.rule {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  background: rgba(238, 243, 252, 0.04);
  border: 1px solid rgba(238, 243, 252, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-3);
}
.rule-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(138, 165, 255, 0.14);
  color: var(--peri);
  font-size: 13px;
  font-weight: 600;
}
.rule p {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  padding-top: 3px;
}

/* painel do produto: card gradiente com glow, estilo da referência */
.connect-panel {
  position: relative;
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
  background: linear-gradient(160deg, #282837 0%, #292A51 100%);
  border: 1px solid rgba(238, 243, 252, 0.08);
  border-radius: 28px;
  padding: var(--sp-6) var(--sp-4);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
@media (min-width: 900px) {
  .connect-panel { padding: var(--sp-7); }
}
.connect-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--horizon);
  pointer-events: none;
}
.connect-head, .connect-grid, .connect-cta { position: relative; z-index: 1; }
.connect-head { text-align: center; max-width: 640px; margin: 0 auto var(--sp-5); }
.connect-head h3 {
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.36px;
  color: #fff;
  margin-bottom: var(--sp-2);
}
.connect-lead { color: var(--ink-soft); font-size: 15px; }
.connect-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
@media (min-width: 900px) {
  .connect-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
}
.connect-item {
  background: rgba(20, 21, 42, 0.55);
  border: 1px solid rgba(238, 243, 252, 0.07);
  border-radius: var(--radius-card);
  padding: var(--sp-4);
}
.connect-item h4 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.15px;
  margin-bottom: var(--sp-1);
}
.connect-item p { color: var(--ink-soft); font-size: 14px; }
.connect-cta {
  text-align: center;
  border-top: 1px solid rgba(238, 243, 252, 0.08);
  padding-top: var(--sp-5);
}
.cta-question {
  font-size: 18px;
  color: #fff;
  font-weight: 500;
  margin-bottom: var(--sp-4);
}

/* ---------- letreiro de clientes (mesma mecânica da referência) ---------- */
.marquee-sec {
  background: linear-gradient(180deg, #F2F6FE 0%, #FBFDFF 100%);
  padding: 56px 0 72px;
  overflow: hidden;
}
.marquee-sec .lbl {
  text-align: center;
  font-size: var(--fs-h2);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--dark);
  max-width: 640px;
  margin: 0 auto 48px;
  text-wrap: balance;
}
.marquee-sec .lbl strong { font-weight: 700; color: var(--indigo); white-space: nowrap; }
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(64px, 8vw, 108px);
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 40px;
  width: auto;
  flex: none;
  opacity: 0.9;
  filter: grayscale(1) brightness(0.6) contrast(3);
}
/* Ajustes por logo, herdados da referência */
.marquee-track img[src*="vcx-sbt"] { filter: grayscale(1); opacity: 0.7; }
.marquee-track img[src*="vcx-unicred"] { height: 26px; }
.marquee-track img[src*="vcx-cimed"] { height: 20px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- carrossel de dores (dorecar da referência) ---------- */
.dores-head { text-align: center; margin-bottom: var(--sp-5); }
.dorecar {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.dorecar-track {
  display: flex;
  align-items: stretch;
  gap: var(--sp-4);
  width: max-content;
  padding: 4px 0 12px;
  animation: marquee 70s linear infinite;
}
.dorecar:hover .dorecar-track { animation-play-state: paused; }
.dorecar .card { flex: none; width: 320px; }

@media (max-width: 640px) {
  .marquee-sec { padding: 40px 0 48px; }
  .marquee-sec .lbl { margin-bottom: 32px; }
  .marquee-track img { height: 30px; }
  .dorecar .card { width: 264px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .dorecar-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    row-gap: 28px;
  }
  .marquee-track [aria-hidden], .dorecar-track [aria-hidden] { display: none; }
}

/* ---------- recursos do Connect ---------- */
.features-intro { text-align: center; margin-bottom: var(--sp-2); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--blue-tint);
  color: var(--indigo);
  margin-bottom: var(--sp-3);
}
.features-grid .card { background: #fff; }
.pabx-bar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-top: var(--sp-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4);
}
.pabx-bar p { color: var(--muted); font-size: 14px; }
.pabx-bar strong { color: var(--dark); }
@media (min-width: 900px) {
  .pabx-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
    padding: var(--sp-4) var(--sp-5);
  }
  .pabx-bar .btn { flex: 0 0 auto; }
}

/* ---------- FAQ (estrutura da referência) ---------- */
.faq__item { background: #fff; border: 1px solid #E7E7EC; border-radius: var(--radius-sm); }
.faq__item + .faq__item { margin-top: var(--sp-1); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 20px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron {
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.faq__item[open] .faq__chevron { transform: rotate(225deg); }
.faq__item p { padding: 0 20px var(--sp-3); font-size: 0.9375rem; line-height: 1.6; }
.faq-cta { text-align: center; margin-top: var(--sp-6); }
.faq-cta p { color: var(--muted); margin-bottom: var(--sp-3); }

/* ---------- footer (copiado da referência) ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--ink-soft);
  padding: var(--sp-7) 0 var(--sp-4);
}
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
}
.footer__logos { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-2); }
.footer__logos img { height: 18px; width: auto; filter: brightness(0) invert(1); }
.footer__about p { font-size: 0.875rem; line-height: 1.6; color: #8A8A94; max-width: 320px; }
.footer__title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.footer nav a, .footer div > a {
  display: block;
  font-size: 0.875rem;
  color: var(--peri);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.18s ease;
}
.footer a:hover { color: #fff; }
.footer__addr { font-size: 0.875rem; padding: 4px 0; color: var(--ink-soft); }
.footer__bottom { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__bottom p { font-size: 0.8125rem; color: #8A8A94; }
.footer__bottom a { color: var(--peri); text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* ---------- reveal ---------- */
/* Escondido só quando o JS confirmou presença (html.js): sem JS, tudo visível. */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: var(--sp-7); align-items: center; }
  .hero { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
