/* =========================================================
   Rede Apoia — estilos
   ========================================================= */

:root {
  --primary: #5b3cc4;
  --primary-2: #7c5cff;
  --accent: #ff7a59;
  --accent-2: #ffb86b;
  --teal: #19b3a6;
  --whats: #25d366;

  --bg: #faf8ff;
  --bg-alt: #f1ecff;
  --surface: #ffffff;
  --surface-2: #f7f4ff;
  --text: #1f1638;
  --muted: #5e5679;
  --border: #e3dcf7;
  --shadow: 0 10px 30px rgba(59, 32, 140, .12);
  --shadow-lg: 0 25px 60px rgba(59, 32, 140, .22);
  --grad: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 45%, var(--accent) 100%);

  --radius: 20px;
  --fs: 16px;
  --nav-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120d24;
    --bg-alt: #1a1333;
    --surface: #1f1740;
    --surface-2: #271e4d;
    --text: #f3efff;
    --muted: #b7acdb;
    --border: #3a2f66;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --bg: #120d24;
  --bg-alt: #1a1333;
  --surface: #1f1740;
  --surface-2: #271e4d;
  --text: #f3efff;
  --muted: #b7acdb;
  --border: #3a2f66;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: var(--fs); scroll-padding-top: calc(var(--nav-h) + 10px); }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
h1, h2, h3, h4 { font-family: "Poppins", sans-serif; line-height: 1.15; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--primary-2); color: #fff; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradMove 6s linear infinite;
}
@keyframes gradMove { to { background-position: 200% center; } }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 2.5rem; }

/* ===== PRELOADER ===== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--grad);
  display: grid; place-content: center; justify-items: center; gap: 12px;
  color: #fff;
  transition: opacity .6s, visibility .6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-logo { font-size: 72px; animation: shake 1.2s ease-in-out infinite; }
.pre-text { font-family: Poppins; font-size: 28px; margin: 0; letter-spacing: .5px; }
.pre-bar { width: 180px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.3); overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 40%; background: #fff; border-radius: 99px; animation: load 1s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes shake { 0%,100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-10deg) scale(1.1); } 75% { transform: rotate(10deg) scale(1.1); } }

/* ===== CURSOR ===== */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 8px; height: 8px; background: var(--accent); }
.cursor-ring { width: 38px; height: 38px; border: 2px solid var(--primary-2); transition: width .25s, height .25s, background .25s, opacity .3s, border-color .25s; }
.cursor-ring.hover { width: 64px; height: 64px; background: rgba(124, 92, 255, .12); border-color: var(--accent); }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

#scroll-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--grad); z-index: 1001; box-shadow: 0 0 12px var(--primary-2); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 4vw, 48px);
  transition: background .3s, box-shadow .3s, height .3s;
}
.navbar.scrolled {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  --nav-h: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: Poppins; font-size: 1.3rem; }
.brand b { color: var(--primary-2); }
.brand-icon { font-size: 1.6rem; display: inline-block; transition: transform .5s; }
.brand:hover .brand-icon { transform: rotate(360deg) scale(1.2); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 99px; font-weight: 700; font-size: .95rem; position: relative; transition: color .2s, background .2s; }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px; background: var(--grad); transition: width .3s, left .3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; left: 20%; }
.nav-links a.active { color: var(--primary-2); }
.nav-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  height: 38px; min-width: 38px; padding: 0 8px; border-radius: 12px; font-weight: 800; font-size: .85rem;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.icon-btn:hover { transform: translateY(-2px) rotate(-3deg); box-shadow: var(--shadow); background: var(--surface-2); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.small { height: 32px; min-width: 32px; }
.hamburger { display: none; width: 42px; height: 42px; border: 0; background: transparent; position: relative; }
.hamburger span { position: absolute; left: 9px; right: 9px; height: 3px; border-radius: 3px; background: var(--text); transition: .3s; }
.hamburger span:nth-child(1) { top: 12px; } .hamburger span:nth-child(2) { top: 19px; } .hamburger span:nth-child(3) { top: 26px; }
.hamburger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 99px; border: 0;
  font-weight: 800; font-size: 1rem; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  will-change: transform;
}
.btn-primary { background: var(--grad); background-size: 200% auto; color: #fff; box-shadow: 0 12px 30px rgba(91, 60, 196, .4); }
.btn-primary:hover { background-position: right center; box-shadow: 0 18px 40px rgba(91, 60, 196, .5); }
.btn-whats { background: var(--whats); color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, .35); }
.btn-whats:hover { box-shadow: 0 18px 40px rgba(37, 211, 102, .5); }
.btn::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .6s;
}
.btn:hover::before { left: 140%; }

/* Ripple */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.55); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
/* Clique em qualquer lugar */
.spark { position: fixed; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; z-index: 9997; animation: spark .7s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
.click-ring { position: fixed; width: 10px; height: 10px; border: 2px solid var(--primary-2); border-radius: 50%; pointer-events: none; z-index: 9997; transform: translate(-50%, -50%); animation: clickRing .5s ease-out forwards; }
@keyframes clickRing { to { width: 60px; height: 60px; opacity: 0; } }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  padding: calc(var(--nav-h) + 40px) clamp(16px, 6vw, 90px) 80px;
  overflow: hidden; isolation: isolate;
}
#particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; z-index: -2; animation: float 14s ease-in-out infinite; }
.b1 { width: 460px; height: 460px; background: var(--primary-2); top: -120px; left: -120px; }
.b2 { width: 380px; height: 380px; background: var(--accent); bottom: -100px; right: 10%; animation-delay: -4s; }
.b3 { width: 300px; height: 300px; background: var(--teal); top: 30%; right: -80px; animation-delay: -8s; opacity: .3; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.08); } 66% { transform: translate(-30px,30px) scale(.95); } }
.pill { display: inline-block; padding: 8px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: .9rem; box-shadow: var(--shadow); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -1px; }
.typed { color: var(--primary-2); font-size: .62em; }
.caret { color: var(--accent); font-size: .62em; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges span { background: var(--surface); border: 1px solid var(--border); padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: .9rem; transition: transform .2s; }
.hero-badges span:hover { transform: translateY(-3px) scale(1.04); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.phone {
  width: 270px; height: 530px; border-radius: 40px; padding: 12px;
  background: linear-gradient(145deg, #2b2150, #120d24);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.08);
  position: relative; transform-style: preserve-3d; transition: transform .2s ease-out;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -14px; } }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #0b0816; border-radius: 99px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 30px; background: var(--bg); padding: 52px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.mini-head { font-family: Poppins; font-weight: 700; font-size: .9rem; display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.online { color: var(--whats); font-size: .75rem; animation: blink 2s infinite; }
.mini-msg { padding: 10px 12px; border-radius: 16px; font-size: .82rem; max-width: 88%; opacity: 0; animation: pop .5s forwards; }
.mini-msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; animation-delay: 1.6s; }
.mini-msg.bot { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; animation-delay: 2.6s; }
.mini-msg.bot.small { font-size: .75rem; color: var(--teal); font-weight: 800; animation-delay: 3.4s; }
.mini-typing { display: flex; gap: 4px; padding: 10px 12px; background: var(--surface-2); border-radius: 16px; width: fit-content; opacity: 0; animation: pop .4s 4s forwards; }
.mini-typing span, .typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dots 1.2s infinite; }
.mini-typing span:nth-child(2), .typing span:nth-child(2) { animation-delay: .2s; }
.mini-typing span:nth-child(3), .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes dots { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--border); padding: 10px 16px; border-radius: 14px; font-weight: 800; box-shadow: var(--shadow); animation: float 9s ease-in-out infinite; font-size: .9rem; }
.fc1 { top: 8%; left: 0; } .fc2 { top: 45%; right: -4%; animation-delay: -3s; } .fc3 { bottom: 8%; left: 6%; animation-delay: -6s; }

.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 28px; height: 46px; border: 2px solid var(--muted); border-radius: 99px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 5px; height: 9px; margin-left: -2.5px; border-radius: 3px; background: var(--primary-2); animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(16px); opacity: 0; } }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 clamp(16px, 6vw, 90px); margin: -30px auto 40px; max-width: 1200px; position: relative; z-index: 2; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 18px; text-align: center; box-shadow: var(--shadow); transition: transform .3s; }
.stat:hover { transform: translateY(-6px); }
.stat strong { display: block; font-family: Poppins; font-size: clamp(2rem, 4vw, 3rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-weight: 700; }

/* ===== SECTIONS ===== */
.section { padding: clamp(70px, 10vw, 120px) clamp(16px, 6vw, 90px); position: relative; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2, .split h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { display: inline-block; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; color: var(--accent); margin-bottom: 10px; }
.mini-title { font-size: 1.1rem; margin-bottom: 18px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== SPLIT / SEGMENTOS ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; }
.split p { font-size: 1.08rem; }
.barriers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.barrier {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 18px; box-shadow: var(--shadow); cursor: pointer; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.barrier .b-ico { font-size: 2.2rem; display: block; margin-bottom: 10px; transition: transform .4s; }
.barrier strong { font-family: Poppins; font-size: 1rem; }
.barrier::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 3rem; font-weight: 900; transform: scale(0); border-radius: inherit; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.barrier.broken::after { transform: scale(1); }
.barrier:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.barrier:hover .b-ico { transform: scale(1.25) rotate(-10deg); }

/* ===== TIMELINE ===== */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 1200px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; counter-reset: s; }
.timeline::before { content: ""; position: absolute; top: 46px; left: 10%; right: 10%; height: 4px; background: var(--border); border-radius: 4px; }
.timeline::after { content: ""; position: absolute; top: 46px; left: 10%; height: 4px; width: 0; background: var(--grad); border-radius: 4px; transition: width 2s ease; }
.timeline.in-view::after { width: 80%; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 16px; text-align: center; position: relative; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s, border-color .3s; cursor: pointer; }
.step:hover, .step.lit { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary-2); }
.step-icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: var(--grad); box-shadow: 0 0 0 8px var(--bg-alt); position: relative; z-index: 1; transition: transform .5s; }
.step:hover .step-icon, .step.lit .step-icon { transform: rotateY(360deg); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 10px; right: 14px; font-family: Poppins; font-weight: 800; color: var(--border); font-size: 1.6rem; }
.step h3 { font-size: .98rem; margin: 0; }

/* ===== CHAT ===== */
.chat-wrap { display: grid; grid-template-columns: 270px 1fr; gap: 24px; max-width: 1050px; margin: 0 auto; }
.pipeline { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: calc(var(--nav-h) + 20px); }
.pipeline h4 { font-size: 1rem; }
.pipeline ul { list-style: none; padding: 0; margin: 0; position: relative; }
.pipeline li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; color: var(--muted); font-weight: 700; font-size: .9rem; position: relative; transition: color .3s; }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 30px; bottom: -10px; width: 2px; background: var(--border); }
.pipeline li.done:not(:last-child)::after { background: var(--teal); }
.pipeline .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); margin-top: 2px; transition: .3s; position: relative; z-index: 1; }
.pipeline li.active { color: var(--text); }
.pipeline li.active .dot { border-color: var(--primary-2); background: var(--primary-2); box-shadow: 0 0 0 6px rgba(124,92,255,.2); animation: pulse 1.2s infinite; }
.pipeline li.done { color: var(--teal); }
.pipeline li.done .dot { background: var(--teal); border-color: var(--teal); }
.pipeline li.done .dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 900; }
.pipeline-note { margin: 16px 0 0; font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 12px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(124,92,255,0); } }

.chat { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; height: 600px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--grad); color: #fff; }
.chat-head small { display: block; opacity: .85; font-size: .8rem; }
.chat-head .icon-btn { margin-left: auto; background: rgba(255,255,255,.2); border-color: transparent; color: #fff; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 1.3rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background:
  radial-gradient(circle at 10% 20%, rgba(124,92,255,.06) 0 40px, transparent 41px),
  radial-gradient(circle at 80% 70%, rgba(255,122,89,.06) 0 60px, transparent 61px), var(--surface-2); scroll-behavior: smooth; }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 18px; animation: pop .4s cubic-bezier(.3,1.4,.5,1); word-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.msg.system { align-self: center; background: transparent; color: var(--muted); font-size: .85rem; font-weight: 700; padding: 4px 12px; border: 1px dashed var(--border); border-radius: 99px; }
.msg.answer { border: 2px solid var(--teal); max-width: 90%; }
.msg.answer h5 { margin: 0 0 6px; font-family: Poppins; font-size: .95rem; }
.msg .tag { display: inline-block; margin-top: 8px; font-size: .75rem; font-weight: 900; padding: 3px 10px; border-radius: 99px; background: rgba(25,179,166,.15); color: var(--teal); }
.msg .listen { margin-top: 8px; margin-left: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 99px; padding: 3px 10px; font-size: .78rem; font-weight: 800; }
.typing { display: flex; gap: 4px; padding: 14px 16px; }
.stars { display: flex; gap: 6px; margin-top: 8px; }
.stars button { background: none; border: 0; font-size: 1.8rem; line-height: 1; filter: grayscale(1) opacity(.45); transition: transform .2s, filter .2s; padding: 0; }
.stars button.on, .stars button:hover { filter: none; transform: scale(1.25) rotate(-8deg); }
.feedback-form { display: flex; gap: 8px; margin-top: 10px; }
.feedback-form input { flex: 1; border: 1px solid var(--border); border-radius: 99px; padding: 8px 14px; background: var(--surface-2); color: var(--text); font: inherit; min-width: 0; }
.feedback-form button { border: 0; border-radius: 99px; padding: 8px 14px; background: var(--teal); color: #fff; font-weight: 800; }
.chat-input { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-input input { flex: 1; min-width: 0; border: 2px solid var(--border); border-radius: 99px; padding: 12px 18px; font: inherit; background: var(--surface-2); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.chat-input input:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 5px rgba(124,92,255,.15); }
.send { width: 50px; height: 50px; flex: none; border: 0; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.2rem; position: relative; overflow: hidden; transition: transform .2s; }
.send:hover { transform: rotate(-20deg) scale(1.08); }
.send:disabled { opacity: .5; transform: none; }
.mic { height: 50px; width: 50px; border-radius: 50%; }
.mic.listening { background: var(--accent); color: #fff; animation: pulse 1s infinite; }

/* ===== GRID CARDS ===== */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .2s ease-out, box-shadow .3s; transform-style: preserve-3d;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(124,92,255,.18), transparent 55%); opacity: 0; transition: opacity .3s; }
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: var(--shadow-lg); }
.card .c-ico { font-size: 2.4rem; display: inline-block; margin-bottom: 12px; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.card:hover .c-ico { transform: scale(1.3) rotate(-12deg); }
.card h3 { font-size: 1.05rem; margin: 0; position: relative; }

/* ===== CHANNELS ===== */
.channels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; }
.channel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .2s ease-out, box-shadow .3s, background .3s, color .3s; transform-style: preserve-3d; }
.channel .ch-ico { font-size: 2.6rem; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); transition: transform .5s, background .3s; }
.channel:hover .ch-ico { transform: rotate(360deg); background: rgba(255,255,255,.25); }
.channel h3 { font-size: 1rem; margin: 0; }
.channel .go { font-size: .8rem; font-weight: 800; color: var(--primary-2); opacity: 0; transform: translateY(8px); transition: .3s; }
.channel:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); }
.channel:hover .go { opacity: 1; transform: none; color: #fff; }
.channel.whats:hover { background: var(--whats); }

/* ===== MARQUEE ===== */
.marquee { overflow: hidden; margin: 0 auto 40px; max-width: 1200px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; padding: 12px 22px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; box-shadow: var(--shadow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== MONEY ===== */
.money { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1100px; margin: 0 auto; }
.money-col { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }
.money-col h3 { font-size: 1.3rem; }
.money-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.money-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-weight: 700; cursor: default; transition: transform .25s, background .25s, color .25s; opacity: 0; transform: translateX(-20px); }
.money-col.in .money-list li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 90ms); }
.money-list li:hover { transform: translateX(8px) !important; background: var(--primary); color: #fff; transition-delay: 0s !important; }
.money-list li span { font-size: 1.4rem; }

/* ===== CANVAS (BMC) ===== */
.bmc {
  max-width: 1240px; margin: 0 auto; display: grid; gap: 10px;
  grid-template-columns: repeat(10, 1fr);
  grid-template-areas:
    "kp kp ka ka vp vp cr cr cs cs"
    "kp kp kr kr vp vp ch ch cs cs"
    "co co co co co re re re re re";
  padding: 12px; border-radius: 26px; background: var(--grad);
  box-shadow: var(--shadow-lg);
}
.bmc-block { background: var(--surface); border-radius: 16px; padding: 18px; cursor: pointer; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; min-height: 150px; text-align: left; border: 0; color: var(--text); }
.bmc-block:hover { transform: scale(1.03); z-index: 2; box-shadow: var(--shadow-lg); }
.bmc-block h4 { font-size: .92rem; display: flex; gap: 8px; align-items: center; color: var(--primary-2); margin-bottom: 10px; }
.bmc-block ul { margin: 0; padding-left: 18px; font-size: .82rem; color: var(--muted); }
.bmc-block p { font-size: .82rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.bmc-block .more { position: absolute; right: 12px; bottom: 10px; font-size: .75rem; font-weight: 900; color: var(--accent); opacity: 0; transition: .3s; }
.bmc-block:hover .more { opacity: 1; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-lg); border-color: var(--primary-2); }
.faq summary { list-style: none; padding: 20px 56px 20px 22px; font-weight: 800; font-size: 1.05rem; cursor: pointer; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--primary-2); font-size: 1.3rem; transition: transform .3s, background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--primary-2); color: #fff; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); animation: pop .35s; }

/* ===== TEAM ===== */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; }
.member { perspective: 1000px; height: 220px; cursor: pointer; }
.member-inner { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.3,1.3,.5,1); transform-style: preserve-3d; }
.member:hover .member-inner, .member.flip .member-inner { transform: rotateY(180deg); }
.member-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; box-shadow: var(--shadow); }
.member-front { background: var(--surface); border: 1px solid var(--border); }
.member-back { background: var(--grad); color: #fff; transform: rotateY(180deg); }
.member-back strong { font-family: Poppins; font-size: 1.05rem; }
.initials { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-family: Poppins; font-weight: 800; font-size: 1.8rem; color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.18); }
.member-front strong { font-size: 1rem; }

/* ===== FOOTER ===== */
.footer { background: #120d24; color: #d9d2f5; padding: 60px clamp(16px, 6vw, 90px) 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; max-width: 1200px; margin: 0 auto; }
.footer h4 { color: #fff; font-size: 1rem; }
.footer-grid a:not(.brand) { display: block; padding: 4px 0; opacity: .8; transition: opacity .2s, transform .2s; }
.footer-grid a:not(.brand):hover { opacity: 1; transform: translateX(6px); }
.footer .brand { color: #fff; margin-bottom: 12px; }
.disclaimer { max-width: 1200px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; opacity: .75; text-align: center; }

/* ===== FABs ===== */
.fab-whats {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 62px; height: 62px; border-radius: 50%; background: var(--whats); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.5);
  transition: transform .3s;
}
.fab-whats::before, .fab-whats::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whats); animation: wave 2s ease-out infinite; }
.fab-whats::after { animation-delay: 1s; }
@keyframes wave { to { transform: scale(1.8); opacity: 0; } }
.fab-whats:hover { transform: scale(1.12) rotate(-10deg); }
.fab-tip { position: absolute; right: 74px; white-space: nowrap; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 12px; font-weight: 800; font-size: .88rem; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: .3s; pointer-events: none; }
.fab-whats:hover .fab-tip, .fab-tip.show { opacity: 1; transform: none; }
.fab-top { position: fixed; right: 30px; bottom: 98px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--primary-2); font-size: 1.3rem; font-weight: 900; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: .3s; }
.fab-top.show { opacity: 1; transform: none; pointer-events: auto; }
.fab-top:hover { transform: translateY(-4px); background: var(--primary-2); color: #fff; }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18, 13, 36, .6); backdrop-filter: blur(6px); animation: fade .3s; }
.modal-box { position: relative; background: var(--surface); color: var(--text); border-radius: 26px; padding: 34px 30px 28px; width: min(560px, 100%); max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn .45s cubic-bezier(.3,1.5,.5,1); }
.modal-box h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.modal-box ul { padding-left: 20px; }
.modal-box li { margin-bottom: 6px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); font-weight: 900; transition: transform .3s; }
.modal-close:hover { transform: rotate(90deg); background: var(--accent); color: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.9); } }
.kbd-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; margin: 0; }
kbd { display: inline-block; min-width: 32px; text-align: center; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 3px; font-family: Poppins; font-weight: 700; font-size: .85rem; }

/* ===== TOASTS ===== */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 440px; }
.toast { background: #1f1638; color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow-lg); animation: toastIn .4s cubic-bezier(.3,1.5,.5,1); text-align: center; }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px); } }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2500; width: 100%; height: 100%; }

/* ===== RESPONSIVO ===== */
@media (max-width: 1100px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(300px, 80vw); flex-direction: column; padding: 90px 24px 24px; background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .4s cubic-bezier(.3,1,.3,1); z-index: -1; }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.1rem; padding: 12px 16px; }
  .hamburger { display: block; }
  .channels { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: 1fr; max-width: 560px; }
  .timeline::before, .timeline::after { top: 30px; bottom: 30px; left: 45px; right: auto; width: 4px; height: auto; }
  .timeline::after { height: 0; transition: height 2s ease; }
  .timeline.in-view::after { width: 4px; height: calc(100% - 60px); }
  .step { display: flex; align-items: center; gap: 18px; text-align: left; }
  .step-icon { margin: 0; flex: none; }
  .step:hover, .step.lit { transform: translateX(8px); }
  .bmc { grid-template-columns: 1fr 1fr; grid-template-areas: "vp vp" "cs cs" "kp ka" "kr cr" "ch ch" "co re"; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 1; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-visual { order: 2; min-height: 420px; }
  .phone { width: 230px; height: 450px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .split, .money, .chat-wrap { grid-template-columns: 1fr; gap: 30px; }
  .pipeline { position: static; }
  .pipeline ul { display: flex; justify-content: space-between; }
  .pipeline li { flex-direction: column; align-items: center; text-align: center; font-size: .72rem; gap: 6px; flex: 1; }
  .pipeline li:not(:last-child)::after { left: calc(50% + 12px); right: calc(-50% + 12px); top: 12px; bottom: auto; width: auto; height: 2px; }
  .pipeline-note { display: none; }
  .team { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-actions #font-down, .nav-actions #font-up { display: none; }
}
@media (max-width: 560px) {
  .channels { grid-template-columns: 1fr 1fr; }
  .channels .channel:last-child { grid-column: span 2; }
  .barriers { grid-template-columns: 1fr 1fr; }
  .bmc { grid-template-columns: 1fr; grid-template-areas: "vp" "cs" "kp" "ka" "kr" "cr" "ch" "co" "re"; }
  .team { grid-template-columns: 1fr; }
  .chat { height: 540px; }
  .msg { max-width: 90%; }
  .btn { padding: 14px 20px; }
  .float-card { font-size: .78rem; padding: 8px 12px; }
  .fc2 { right: 0; }
  .nav-actions .js-shortcuts { display: none; }
}

/* Elementos que aparecem ao rolar e também reagem ao mouse */
.card, .channel, .barrier, .step, .stat, .faq details {
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s, color .3s, border-color .3s;
}

/* Acessibilidade: menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
