/* ---------- Tokens ---------- */
:root {
  --bg: #14171c;
  --bg-elevated: #1a1e25;
  --bg-card: #1c212a;
  --bg-card-hover: #212734;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f6;
  --text-muted: #a0a8b8;
  --text-faint: #6b7385;
  --accent: #5c86ff;
  --accent-light: #86a7ff;
  --accent-deep: #3f66e0;
  --accent-dim: rgba(92, 134, 255, 0.16);
  --flag: #5c86ff;
  --whatsapp: #22c55e;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  --max-width: 1180px;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal--d1.is-visible { transition-delay: 0.08s; }
  .reveal--d2.is-visible { transition-delay: 0.16s; }
  .reveal--d3.is-visible { transition-delay: 0.24s; }
  .reveal--d4.is-visible { transition-delay: 0.32s; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(92, 134, 255, 0.65);
}
.btn--primary:hover { box-shadow: 0 10px 30px -6px rgba(92, 134, 255, 0.8); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent-light); background: var(--accent-dim); }

.btn--outline {
  background: transparent;
  color: var(--accent-light);
  border-color: rgba(92, 134, 255, 0.4);
}
.btn--outline:hover { background: var(--accent-dim); border-color: var(--accent-light); }

.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--nav { display: none; }

.btn--magnetic {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn--magnetic::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 65%);
  transition: opacity 0.25s ease;
}
.btn--magnetic:hover::before { opacity: 1; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 13, 19, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.header.is-scrolled {
  background: rgba(10, 13, 19, 0.88);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.brand__mark {
  display: block;
  transition: transform 0.15s ease;
  will-change: transform;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
}
.nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }

@media (min-width: 761px) {
  .btn--nav { display: inline-flex; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.hero__blob--1 {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle, rgba(92, 134, 255, 0.55), transparent 70%);
  animation: blobDrift 16s ease-in-out infinite;
}
.hero__blob--2 {
  width: 360px;
  height: 360px;
  bottom: -140px;
  left: -60px;
  background: radial-gradient(circle, rgba(92, 134, 255, 0.3), transparent 70%);
  animation: blobDrift 20s ease-in-out infinite reverse;
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
}

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 60% at 60% 20%, black, transparent 75%);
  mask-image: radial-gradient(60% 60% at 60% 20%, black, transparent 75%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__content, .hero__visual { min-width: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid rgba(92, 134, 255, 0.3);
  padding: 8px 26px 8px 16px;
  margin-bottom: 20px;
  clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
}
.eyebrow--center { display: block; width: fit-content; margin-left: auto; margin-right: auto; }

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 1.08rem;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

/* Audience toggle */
.audience-toggle {
  display: inline-flex;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.audience-toggle button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.audience-toggle button.is-active {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(92, 134, 255, 0.7);
}

/* Phone mock */
.phone-mock {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 400px;
  margin-left: auto;
  animation: phoneFloat 6s ease-in-out infinite;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.2s ease;
}
@keyframes phoneFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-mock { animation: none; }
}

.phone-mock__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.phone-mock__bar strong { display: block; font-size: 0.92rem; }
.phone-mock__bar small { color: var(--whatsapp); font-size: 0.75rem; }

.phone-mock__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.phone-mock__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.phone-mock__body.is-swapping {
  opacity: 0;
  transform: translateY(6px);
}

.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  max-width: 88%;
  line-height: 1.45;
  color: var(--text);
}
.bubble--in {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
  align-self: flex-start;
}
.bubble--out {
  background: var(--accent);
  border-top-right-radius: 4px;
  align-self: flex-end;
  color: #fff;
}
.bubble--typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}
.bubble--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: typingDot 1.2s ease-in-out infinite;
}
.bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.bubble--system {
  align-self: center;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #6ee7a8;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 4px;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section__lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 1.02rem;
}

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Cards (problema) */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; margin-bottom: 0; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
}
.step__number {
  width: 46px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
  color: #0b0e13;
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 6px;
  margin-bottom: 20px;
  clip-path: polygon(0 0, 74% 0, 100% 50%, 74% 100%, 0 100%);
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: 0.93rem; margin-bottom: 0; }

/* Stats */
.stats { text-align: center; }
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  background: linear-gradient(180deg, #fff, var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.stat__label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  padding: 72px 0;
  background: linear-gradient(135deg, rgba(92, 134, 255, 0.14), rgba(92, 134, 255, 0.02) 60%), var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}
.cta-band__flag {
  position: relative;
  width: 56px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
  clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%);
}
.cta-band__flag::after {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 134, 255, 0.45), transparent 70%);
  animation: flagPulse 2.4s ease-in-out infinite;
}
@keyframes flagPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band__flag::after { animation: none; }
}
.cta-band__title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.cta-band__lead {
  margin: 0;
  font-size: 0.96rem;
  max-width: 640px;
}

/* FAQ Accordion */
.accordion__item {
  border-bottom: 1px solid var(--border);
}
.accordion__trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 20px;
}
.accordion__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  position: relative;
}
.accordion__icon::before, .accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--accent-light);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.accordion__icon::before { width: 10px; height: 2px; }
.accordion__icon::after { width: 2px; height: 10px; }
.accordion__item.is-open .accordion__icon::after { opacity: 0; }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.accordion__panel > p {
  overflow: hidden;
  font-size: 0.94rem;
  margin: 0 4px 22px;
}
.accordion__item:not(.is-open) .accordion__panel { grid-template-rows: 0fr; }
.accordion__item:not(.is-open) .accordion__panel > p { margin-bottom: 0; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel { overflow: hidden; }
.accordion__panel > p { min-height: 0; }

/* ---------- Form ---------- */
.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.field input, .field select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 16px;
  font-family: var(--font-body);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form__note {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  margin: 16px 0 0;
}

.form__success {
  background: var(--bg-card);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.form__success h3 { font-size: 1.3rem; }
.form__success .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; }
.footer__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand--footer { justify-content: center; }
.footer__tag { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.footer__copy { color: var(--text-faint); font-size: 0.8rem; margin: 0; }

/* ---------- Robô que segue o cursor ---------- */
.cursor-bot {
  position: fixed;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  pointer-events: none;
  z-index: 300;
  opacity: 0;
  filter: drop-shadow(0 10px 18px rgba(92, 134, 255, 0.45));
  transition: opacity 0.3s ease;
  will-change: transform;
}
.cursor-bot.is-active { opacity: 1; }
@media (pointer: coarse) {
  .cursor-bot { display: none; }
}

/* ---------- Card tilt interativo ---------- */
.card {
  will-change: transform;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #12161f;
  border: 1px solid rgba(34, 197, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(34, 197, 94, 0.55);
  z-index: 200;
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { align-items: center; }
  .phone-mock { margin: 0 auto; }
  .cta-band__inner { grid-template-columns: 1fr; text-align: center; }
  .cta-band__flag { margin: 0 auto; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .btn--nav { display: none; }
  .nav-toggle { display: flex; }

  .header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
  }
  .header.is-open .nav a { padding: 10px 0; width: 100%; }

  .section { padding: 64px 0; }
  .hero { padding: 56px 0 56px; }
  .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 28px 20px; }
  .whatsapp-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }

  .audience-toggle { width: 100%; }
  .audience-toggle button {
    flex: 1;
    white-space: normal;
    font-size: 0.76rem;
    padding: 9px 8px;
  }
  .phone-mock { max-width: 100%; }
}
