:root {
  --bg: #050b14;
  --bg-2: #0a1422;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef5ff;
  --muted: #93a7bd;
  --primary: #3dd9b5;
  --secondary: #4db8ff;
  --accent: #8b7cff;
  --grad: linear-gradient(120deg, #3dd9b5 0%, #4db8ff 55%, #8b7cff 100%);
  --radius: 22px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Sora", sans-serif; line-height: 1.12; letter-spacing: -0.02em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Background */
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow::before, .bg-glow::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(120px); opacity: .22;
}
.bg-glow::before { background: var(--primary); top: -25vw; left: -15vw; }
.bg-glow::after { background: var(--accent); top: 10vw; right: -25vw; opacity: .16; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 65%);
  opacity: .5;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; transition: transform .25s, box-shadow .25s, background .25s; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #04121c; box-shadow: 0 10px 30px -10px rgba(61, 217, 181, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(77, 184, 255, .8); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--surface-2); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.header { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 10px 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(5, 11, 20, .55); backdrop-filter: blur(18px); transition: background .3s;
}
.header.scrolled .nav { background: rgba(5, 11, 20, .85); }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Sora"; font-weight: 700; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-size: .92rem; font-weight: 500; transition: .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav .btn { padding: 11px 20px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); width: 42px; height: 42px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px; transition: .3s; }

/* Hero */
.hero { padding: 170px 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: .85rem; color: var(--muted); margin-bottom: 24px;
}
.pill b { background: var(--grad); color: #04121c; padding: 3px 10px; border-radius: 999px; font-size: .75rem; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); margin-bottom: 22px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-meta div strong { display: block; font-family: "Sora"; font-size: 1.6rem; }
.hero-meta div span { color: var(--muted); font-size: .85rem; }

/* Chat mockup */
.mock { position: relative; }
.mock-card {
  border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  backdrop-filter: blur(20px); padding: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.mock-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #04121c; font-weight: 800; }
.mock-head small { color: var(--primary); display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 var(--primary); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 270px; }
.msg { max-width: 80%; padding: 11px 15px; border-radius: 16px; font-size: .9rem; opacity: 0; transform: translateY(10px); animation: msgIn .5s forwards; }
.msg.in { background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: linear-gradient(120deg, rgba(61,217,181,.25), rgba(77,184,255,.25)); border: 1px solid rgba(61,217,181,.3); border-bottom-right-radius: 4px; }
.msg.bot::before { content: "IA · "; color: var(--primary); font-weight: 700; font-size: .75rem; }
.msg:nth-child(1) { animation-delay: .4s; } .msg:nth-child(2) { animation-delay: 1.3s; }
.msg:nth-child(3) { animation-delay: 2.2s; } .msg:nth-child(4) { animation-delay: 3.1s; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.float {
  position: absolute; border: 1px solid var(--line); background: rgba(10, 20, 34, .85); backdrop-filter: blur(14px);
  border-radius: 18px; padding: 14px 18px; box-shadow: 0 20px 40px -15px rgba(0,0,0,.7); animation: bob 6s ease-in-out infinite;
}
.float small { color: var(--muted); font-size: .75rem; display: block; }
.float strong { font-family: "Sora"; font-size: 1.5rem; }
.float.f1 { top: -26px; right: -18px; }
.float.f2 { bottom: -30px; left: -30px; animation-delay: -3s; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: 6px; }
.bars i { width: 7px; border-radius: 3px; background: var(--grad); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 30s linear infinite; }
.marquee-track span { font-family: "Sora"; font-weight: 600; color: var(--muted); font-size: 1.1rem; display: flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; color: var(--primary); font-size: .8rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 110px 0; }
.head { max-width: 680px; margin-bottom: 56px; }
.head.center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--primary); margin-bottom: 14px; }
.head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 16px; }
.head p { color: var(--muted); font-size: 1.08rem; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  padding: 30px; overflow: hidden; transition: border-color .3s, transform .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(61,217,181,.12), transparent 50%);
}
.card:hover { border-color: rgba(61,217,181,.35); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(61,217,181,.18), rgba(139,124,255,.18)); border: 1px solid var(--line);
}
.icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; } .span-4 { grid-column: span 4; }
.card.feature-big { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.card .shot { border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font-size: .78rem; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product { display: flex; flex-direction: column; padding: 14px; }
.product .shot { aspect-ratio: 16/10; object-fit: cover; width: 100%; margin-bottom: 20px; }
.product .body { padding: 0 12px 14px; display: flex; flex-direction: column; flex: 1; }
.product .kicker { font-size: .75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.product ul { list-style: none; margin-top: 16px; display: grid; gap: 6px; }
.product li { font-size: .88rem; color: var(--muted); padding-left: 22px; position: relative; }
.product li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.product.featured { border-color: rgba(61,217,181,.4); background: linear-gradient(180deg, rgba(61,217,181,.08), var(--surface)); }
.badge { position: absolute; top: 26px; right: 26px; font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--grad); color: #04121c; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step { padding-top: 34px; }
.step .num { font-family: "Sora"; font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case .big { font-family: "Sora"; font-size: 3.2rem; font-weight: 800; margin: 18px 0 4px; }
.case .label { display: inline-block; font-size: .78rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.case .metric { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stats div { padding: 36px 28px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { font-family: "Sora"; font-size: 2.6rem; display: block; }
.stats span { color: var(--muted); font-size: .9rem; }

/* Segments */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.segment { display: flex; align-items: center; gap: 18px; padding: 22px; }
.segment img { width: 64px; height: 64px; border-radius: 14px; background: var(--bg-2); }
.segment h3 { font-size: 1.1rem; margin-bottom: 2px; }

/* CTA */
.cta {
  position: relative; border-radius: 32px; padding: 72px 56px; overflow: hidden; text-align: center;
  background: radial-gradient(circle at 20% 0%, rgba(61,217,181,.35), transparent 50%), radial-gradient(circle at 90% 100%, rgba(139,124,255,.35), transparent 50%), var(--bg-2);
  border: 1px solid var(--line);
}
.cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 760px; margin: 0 auto 18px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 34px; font-size: 1.08rem; }
.cta .cta-row { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer p, .footer a { color: var(--muted); font-size: .92rem; }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: .85rem; color: var(--muted); }

/* WhatsApp FAB */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .25s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .msg { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { max-width: 520px; margin: 30px auto 0; width: 100%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .card.feature-big { grid-column: span 2; }
  .products, .cases, .segments { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav > .btn { display: none; }
  .menu-btn { display: block; }
  .nav.open { border-radius: 24px; flex-wrap: wrap; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; padding: 8px 0; }
  .nav.open > .btn { display: inline-flex; order: 4; width: 100%; justify-content: center; margin-bottom: 6px; }
  .nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .hero { padding-top: 130px; }
  .section { padding: 80px 0; }
  .bento, .products, .cases, .segments, .steps { grid-template-columns: 1fr; }
  .card.feature-big { grid-column: span 1; grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .float.f1 { right: 0; } .float.f2 { left: 0; }
  .cta { padding: 52px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Páginas internas ===== */
.page-hero { padding: 160px 0 50px; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumb a:hover { color: var(--primary); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 820px; margin-bottom: 18px; }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 640px; }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.form-card { padding: 38px; }
.form-card h2 { font-size: 1.6rem; margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; }
.field label em { color: var(--primary); font-style: normal; }
.field input, .field textarea {
  font: inherit; color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5f7488; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: rgba(61,217,181,.05); box-shadow: 0 0 0 4px rgba(61,217,181,.15); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.form-foot small { color: var(--muted); font-size: .8rem; }
.form-foot button { border: 0; cursor: pointer; font-family: inherit; }
.alert { display: none; padding: 14px 18px; border-radius: 14px; margin-bottom: 22px; font-size: .92rem; }
.alert.error { background: rgba(255, 99, 99, .1); border: 1px solid rgba(255, 99, 99, .35); color: #ffb3b3; }
.side { display: grid; gap: 18px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 22px; }
.channel .icon { margin: 0; flex-shrink: 0; }
.channel small { color: var(--muted); display: block; font-size: .8rem; }
.channel strong { font-size: 1.02rem; }
.channel.wa { border-color: rgba(37,211,102,.35); background: linear-gradient(135deg, rgba(37,211,102,.1), var(--surface)); }
.channel.wa .icon svg { stroke: #25d366; }
.help-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.help-card .tags { margin-top: 14px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(2,6,12,.7); backdrop-filter: blur(8px); }
.modal.show { display: grid; }
.modal-card { max-width: 440px; width: 100%; text-align: center; padding: 40px 32px; border-radius: 26px; background: var(--bg-2); border: 1px solid var(--line); animation: pop .35s cubic-bezier(.2,.9,.3,1.3); }
.modal-card .check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--grad); color: #04121c; font-size: 1.8rem; font-weight: 800; }
.modal-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.modal-card p { color: var(--muted); margin-bottom: 26px; }
.modal-card button { border: 0; cursor: pointer; font-family: inherit; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }

@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .page-hero { padding-top: 130px; }
  .fields { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
}
