:root {
  --accent: #7b3fe4;
  --accent-strong: #8f5bf0;
  --accent-soft: #2a1c4d;
  --fundo-moldura: #0f0f12;
  --fundo-painel: #18181c;
  --fundo-cartao: #202027;
  --borda: #2a2a32;
  --texto: #e9e9ee;
  --texto-forte: #f4f4f7;
  --texto-medio: #a2a2af;
  --texto-fraco: #71717f;
  --verde: #2fb574;
  --laranja: #ff6a13;
  --vermelho: #f04444;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fundo-moldura);
  color: var(--texto);
  font-family: 'Public Sans', system-ui, sans-serif;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3 { font-family: 'Space Grotesk', system-ui, sans-serif; color: var(--texto-forte); margin: 0; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 64px; }
.accent { color: var(--accent); }

.eyebrow {
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 7px 14px;
  border-radius: 999px;
}
.eyebrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shimmer 3.2s ease-in-out infinite;
}
@keyframes shimmer {
  0% { left: -60%; }
  60%, 100% { left: 130%; }
}

.grad-text {
  background: linear-gradient(90deg, var(--accent-strong), #f2823a, var(--accent-strong));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 5s linear infinite;
}
@keyframes gradientShift {
  to { background-position: 200% center; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #f2823a);
  z-index: 100;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease, color .2s ease;
}
.btn .ripple {
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: rippleAnim .6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(3.2); opacity: 0; }
}
.btn-primary { color: #ffffff; background: var(--accent); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-outline { color: var(--texto); background: transparent; border: 1px solid var(--borda); }
.btn-outline:hover { border-color: var(--accent-strong); color: var(--accent-strong); transform: translateY(-2px); }
.btn-white { color: var(--accent); background: #ffffff; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.25); }

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(123,63,228,0.45); }
  70% { box-shadow: 0 0 0 16px rgba(123,63,228,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,63,228,0); }
}
.btn-pulse { animation: pulseGlow 2.8s ease-in-out infinite; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18,18,22,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda);
}
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 20px; font-weight: 700; }
.logo img { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.logo:hover img { transform: rotate(-10deg) scale(1.1); }
.logo-sm { font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link { position: relative; padding-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--texto-medio); transition: color .2s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent-strong); transition: width .25s ease; }
.nav-link:hover { color: var(--texto); }
.nav-link:hover::after { width: 100%; }
.header-cta { padding: 10px 22px; font-size: 14px; }

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--borda);
  border-radius: 8px;
  color: var(--texto);
}
.mobile-toggle svg[hidden] { display: none !important; }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: #121216;
  border-bottom: 1px solid var(--borda);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 28px;
}
.mobile-menu a { font-size: 15px; font-weight: 600; color: var(--texto); opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease; }
.mobile-menu .btn { text-align: center; }
.mobile-menu.open { max-height: 420px; padding: 20px 28px 28px; }
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: .05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .2s; }

/* Reveal animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in-view { animation: fadeUp .8s ease both; }
.reveal-delay-1.in-view { animation-delay: .12s; }
.reveal-delay-2.in-view { animation-delay: .24s; }
.reveal-delay-3.in-view { animation-delay: .36s; }

@keyframes popIn {
  0% { opacity: 0; transform: scale(.4) rotate(-8deg); }
  60% { opacity: 1; transform: scale(1.15) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.reveal.in-view .feature-icon,
.reveal.in-view .step-number {
  animation: popIn .6s cubic-bezier(.34,1.56,.64,1) .18s backwards;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 110px 0 96px; }
.hero-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "text video" "cta video";
  align-items: center;
  column-gap: 64px;
  row-gap: 24px;
}
.hero-text { grid-area: text; position: relative; z-index: 1; }
.hero-title { font-size: 50px; line-height: 1.12; font-weight: 700; margin-top: 24px; }
.hero-desc { font-size: 18px; line-height: 1.6; color: var(--texto-medio); margin: 20px 0 0; max-width: 500px; }
.hero-ctas { grid-area: cta; display: flex; gap: 16px; align-self: start; }
.hero-note { grid-area: cta; align-self: end; font-size: 13px; color: var(--texto-fraco); margin: 96px 0 0; }
.hero-media-wrap { grid-area: video; position: relative; z-index: 1; }
.hero-media {
  position: relative;
  z-index: 1;
  background: var(--fundo-cartao);
  border: 1px solid var(--borda);
  border-radius: 16px;
  padding: 12px;
  animation: heroGlow 4s ease-in-out infinite alternate;
}
.hero-media video { width: 100%; display: block; border-radius: 10px; background: #000; pointer-events: auto; }
@keyframes heroGlow {
  0% { box-shadow: 0 0 0 0 rgba(123,63,228,0.28), 0 20px 50px rgba(0,0,0,0.35); }
  100% { box-shadow: 0 0 46px 6px rgba(123,63,228,0.4), 0 20px 50px rgba(0,0,0,0.35); }
}

.float-card {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  max-width: 210px;
  background: var(--fundo-cartao);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.6);
}
.float-card-a { top: -74px; left: -38px; border-left: 3px solid var(--accent); animation: floatA 6s ease-in-out infinite; }
.float-card-b { bottom: -160px; right: -34px; animation: floatB 7s ease-in-out infinite .4s; }
@keyframes floatA {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-10px); }
}
@keyframes floatB {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-10px); }
}
.float-card-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--texto-forte); }
.float-card-icon { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; }
.float-card-body { font-size: 11.5px; color: var(--texto-medio); margin-top: 8px; line-height: 1.6; }
.float-card-body .badge { font-size: 10px; padding: 3px 8px; }
.chat-card-header { display: flex; align-items: center; gap: 6px; color: var(--verde); font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.chat-bubble-in { background: var(--fundo-moldura); border-radius: 10px 10px 10px 2px; padding: 8px 12px; font-size: 12px; color: var(--texto); margin-bottom: 8px; }
.chat-bubble-out { background: var(--accent); color: #fff; border-radius: 10px 10px 2px 10px; padding: 8px 12px; font-size: 12px; width: fit-content; margin-left: auto; }

@media (max-width: 1180px) {
  .float-card { display: none; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid var(--borda);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-medio);
  z-index: 1;
  animation: bounceCue 2.2s ease-in-out infinite;
  transition: color .2s ease, border-color .2s ease;
}
.scroll-cue:hover { color: var(--accent-strong); border-color: var(--accent-strong); }
@keyframes bounceCue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

section[id], #video-institucional { scroll-margin-top: 100px; }

.blob { position: absolute; border-radius: 999px; filter: blur(70px); pointer-events: none; z-index: 0; }
.blob-a { width: 420px; height: 420px; background: radial-gradient(circle, rgba(123,63,228,0.5), transparent 70%); top: -140px; right: -80px; animation: floatY 9s ease-in-out infinite; }
.blob-b { width: 320px; height: 320px; background: radial-gradient(circle, rgba(242,127,52,0.35), transparent 70%); bottom: -100px; left: -60px; animation: floatY 11s ease-in-out infinite 1.5s; }
@keyframes floatY {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-22px); }
  100% { transform: translateY(0px); }
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--fundo-painel); }
.section-head { max-width: 720px; margin: 0 auto; text-align: center; }
.section-title { font-size: 36px; font-weight: 700; margin-top: 20px; }
.section-desc { font-size: 16px; line-height: 1.6; color: var(--texto-medio); margin: 16px 0 0; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.feature-card {
  background: var(--fundo-cartao);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 28px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover { border-color: #4a3568; box-shadow: 0 16px 32px rgba(0,0,0,0.35); }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); background: var(--accent); color: #fff; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; line-height: 1.55; color: var(--texto-medio); margin: 0; }

.steps-row { position: relative; display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; }
.step { flex: 1; text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.step-number {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.step h3 { font-size: 16px; font-weight: 600; margin-top: 18px; }
.step p { font-size: 14px; line-height: 1.55; color: var(--texto-medio); margin-top: 8px; }

.ia-row { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.ia-text { flex: 1 1 560px; min-width: 0; }
.check-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.check-item svg { flex-shrink: 0; margin-top: 2px; }
.check-item span { font-size: 15px; line-height: 1.55; color: var(--texto); }
.ia-media { flex: 1 1 480px; min-width: 0; max-width: 480px; background: var(--fundo-cartao); border: 1px solid var(--borda); border-radius: 14px; padding: 8px; }
.ia-row-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--borda); font-size: 14px; font-weight: 600; }
.ia-row-item-last { border-bottom: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.badge-green { color: var(--verde); background: rgba(47,181,116,0.15); }
.badge-orange { color: var(--laranja); background: rgba(255,106,19,0.15); }
.badge-red { color: var(--vermelho); background: rgba(240,68,68,0.15); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { opacity: .55; box-shadow: 0 0 0 4px transparent; }
}
.ia-media { transition: transform .3s ease, box-shadow .3s ease; }
.ia-media:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.ia-row-item { transition: background .2s ease; }
.ia-row-item:hover { background: rgba(255,255,255,0.03); }

.cta { position: relative; overflow: hidden; padding: 96px 0; background: var(--accent); text-align: center; }
.cta::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), transparent 60%);
  animation: ctaGlow 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8%, 8%); }
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-size: 34px; font-weight: 700; color: #fff; max-width: 620px; margin: 0 auto; }
.cta-inner p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.85); margin: 18px auto 0; max-width: 520px; }
.cta-inner .btn { margin-top: 32px; }
.cta-placeholder { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 20px; }

.footer { padding: 40px 0; background: var(--fundo-moldura); border-top: 1px solid var(--borda); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 13px; color: var(--texto-fraco); }

@media (max-width: 960px) {
  .container { padding: 0 28px; }
  .hero { padding: 72px 0 64px; }
  .section, .cta { padding: 72px 0; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .ia-row { flex-direction: column; }
  .hero-col {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "video" "cta" "note";
    row-gap: 28px;
  }
  .hero-note { grid-area: note; align-self: auto; margin: 0; }
  .scroll-cue { display: none; }
  .ia-text, .ia-media { width: 100%; }
  .ia-media { max-width: 560px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { flex-wrap: wrap; row-gap: 36px; }
  .hero-title { font-size: 38px; }
  .section-title { font-size: 30px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  .hero-title { font-size: 32px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
}

