/* ChegouMsg - landing page (dark) */
:root {
  --bg: #05080E;
  --card: rgba(16, 24, 38, .6);
  --line: rgba(255, 255, 255, .08);
  --text: #E9EEF5;
  --muted: #8C98AB;
  --brand: #25D366;
  --brand-2: #1FB257;
  --accent: #34E0C2;
  --glow: rgba(37, 211, 102, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.grad { background: linear-gradient(90deg, var(--brand), var(--accent), #7CF5A8); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

/* Fundo */
.bg-grid { position: fixed; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.blob { position: fixed; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.b1 { width: 520px; height: 520px; background: #1B9E4B; top: -160px; left: -120px; }
.b2 { width: 420px; height: 420px; background: #0E7C6B; top: 30%; right: -140px; animation-delay: -6s; }
.b3 { width: 360px; height: 360px; background: #2A3FA0; bottom: -120px; left: 30%; opacity: .25; animation-delay: -12s; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }

/* Nav */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 32px)); z-index: 50; display: flex; align-items: center; gap: 24px; padding: 10px 12px 10px 18px; border-radius: 16px; border: 1px solid transparent; transition: all .3s; }
.nav.scrolled { background: rgba(8, 12, 20, .75); backdrop-filter: blur(14px); border-color: var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--brand); font-weight: 800; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.links a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14.5px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); transition: transform .15s, box-shadow .2s, background .2s; cursor: pointer; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #03130A; border-color: transparent; box-shadow: 0 8px 26px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--glow); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }

/* Hero */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; max-width: 1180px; margin: 0 auto; padding: 130px 24px 60px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(37, 211, 102, .35); background: rgba(37, 211, 102, .08); color: #A6F5C4; font-size: 13px; font-weight: 600; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--glow); } 80%, 100% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } }
h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.05; letter-spacing: -.035em; margin: 20px 0; font-weight: 900; }
.caret { color: var(--brand); font-weight: 300; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.lead b { color: var(--text); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 22px; }
.hero-checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { width: 320px; background: #0B141A; border: 10px solid #182231; border-radius: 42px; overflow: hidden; position: relative; box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06), 0 0 80px rgba(37, 211, 102, .15); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
.notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #182231; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 30px 14px 12px; background: #1F2C33; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #F5A524, #F2555A); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.phone-top b { display: block; font-size: 14px; }
.phone-top small { color: var(--muted); font-size: 12px; }
.chat { height: 430px; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; background: #0B141A radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0/18px 18px; }
.msg { max-width: 86%; padding: 7px 9px 20px; border-radius: 10px; font-size: 13.5px; position: relative; line-height: 1.45; opacity: 0; transform: translateY(14px) scale(.96); }
.msg.out { background: #005C4B; align-self: flex-end; border-top-right-radius: 2px; }
.msg.in { background: #202C33; align-self: flex-start; border-top-left-radius: 2px; }
.msg .t { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: rgba(255, 255, 255, .55); }
.ticks { font-style: normal; color: #53BDEB; }
.img-ph { height: 130px; border-radius: 7px; margin-bottom: 7px; background: linear-gradient(135deg, #1FB257, #0E7C6B 60%, #2A3FA0); display: grid; place-items: center; font-weight: 800; font-size: 18px; position: relative; overflow: hidden; }
.img-shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); animation: sweep 3s infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.typing { align-self: flex-start; background: #202C33; border-radius: 10px; padding: 10px 14px; display: flex; gap: 4px; opacity: 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.chat.play .m1 { animation: pop .5s .4s forwards; }
.chat.play .m2 { animation: pop .3s 1.6s forwards, fadeout .3s 3.2s forwards; }
.chat.play .m3 { animation: pop .5s 3.3s forwards; }
.chat.play .m4 { animation: pop .5s 4.6s forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes fadeout { to { opacity: 0; height: 0; padding: 0; margin: -5px 0; } }

.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(14, 21, 34, .8); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); animation: float 7s ease-in-out infinite; }
.float-card b { display: block; font-size: 18px; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); font-size: 18px; }
.float-card .ic.ok { background: rgba(37, 211, 102, .2); color: var(--brand); font-weight: 900; }
.fc1 { top: 8%; left: -8%; animation-delay: -1s; }
.fc2 { bottom: 16%; right: -10%; animation-delay: -3s; }
.fc3 { bottom: -2%; left: 0; animation-delay: -5s; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; color: var(--muted); font-weight: 600; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Stats */
.stats { max-width: 1180px; margin: 0 auto; padding: 70px 24px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats b { display: block; font-size: 44px; font-weight: 900; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #9DB0C8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { max-width: 1180px; margin: 0 auto; padding: 90px 24px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; margin-bottom: 12px; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 800; }
.section p, .sec-head p { color: var(--muted); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { position: relative; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s; }
.feature::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(37, 211, 102, .14), transparent 40%); opacity: 0; transition: opacity .3s; }
.feature:hover { transform: translateY(-6px); border-color: rgba(37, 211, 102, .35); }
.feature:hover::before { opacity: 1; }
.f-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, rgba(37, 211, 102, .2), rgba(52, 224, 194, .08)); border: 1px solid rgba(37, 211, 102, .25); font-size: 22px; margin-bottom: 16px; }
.feature h3 { font-size: 17px; margin: 0 0 6px; }
.feature p { font-size: 14px; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: s; }
.steps::before { content: ''; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); opacity: .35; }
.steps li { text-align: center; position: relative; }
.steps .n { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #03130A; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 0 0 8px var(--bg), 0 10px 30px var(--glow); position: relative; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { font-size: 14.5px; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.rev > :first-child { order: 0; }
.list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.list li { padding-left: 30px; position: relative; }
.list li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; background: rgba(37, 211, 102, .18); color: var(--brand); display: grid; place-items: center; font-size: 12px; font-weight: 900; }

.mock-dash { border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(20, 30, 46, .9), rgba(10, 15, 24, .9)); padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform .5s; }
.mock-dash:hover { transform: none; }
.md-top { display: flex; gap: 6px; margin-bottom: 16px; }
.md-top span { width: 11px; height: 11px; border-radius: 50%; background: #F2555A; }
.md-top span:nth-child(2) { background: #F5A524; }
.md-top span:nth-child(3) { background: var(--brand); }
.md-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.md-kpis div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.md-kpis small { color: var(--muted); font-size: 11.5px; display: block; }
.md-kpis b { font-size: 20px; }
.md-kpis .g { color: var(--brand); }
.md-chart { width: 100%; height: 150px; display: block; }
.md-chart .line { stroke-dasharray: 700; stroke-dashoffset: 700; }
.md-chart .area { opacity: 0; }
.mock-dash.in .line { animation: draw 2s .3s ease forwards; }
.mock-dash.in .area { animation: pop 1s 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.md-bars { display: flex; align-items: flex-end; gap: 10px; height: 80px; margin-top: 12px; }
.md-bars i { flex: 1; height: 0; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), var(--brand-2)); transition: height 1s cubic-bezier(.2, .8, .2, 1); }
.mock-dash.in .md-bars i { height: var(--h); }
.mock-dash.in .md-bars i:nth-child(n) { transition-delay: calc(var(--i, 0) * 80ms); }

.shield { position: relative; height: 340px; display: grid; place-items: center; }
.shield > span { font-size: 90px; filter: drop-shadow(0 0 40px var(--glow)); position: relative; z-index: 1; animation: float 5s ease-in-out infinite; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(37, 211, 102, .3); animation: ringPulse 4s ease-out infinite; }
.r1 { width: 160px; height: 160px; }
.r2 { width: 240px; height: 240px; animation-delay: 1.3s; }
.r3 { width: 320px; height: 320px; animation-delay: 2.6s; }
@keyframes ringPulse { 0% { transform: scale(.7); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }

.cta { max-width: 1000px; margin: 40px auto 90px; padding: 60px 30px; text-align: center; border-radius: 28px; border: 1px solid rgba(37, 211, 102, .3); background: radial-gradient(600px 300px at 50% 0%, rgba(37, 211, 102, .22), transparent 70%), rgba(12, 18, 28, .8); position: relative; overflow: hidden; }
.cta p { color: var(--muted); font-size: 17px; margin: 0 0 28px; }

.foot { max-width: 1180px; margin: 0 auto; padding: 30px 24px 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }

/* Reveal ao rolar */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
  .lead { margin: 0 auto; }
  .hero-cta, .hero-checks { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .fc1 { left: 0; }
  .fc2 { right: 0; }
}
@media (max-width: 640px) {
  .features, .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .phone { width: 280px; }
  .float-card { display: none; }
  .nav .btn { padding: 8px 12px; font-size: 13px; }
  .brand span { display: none; }
  .mock-dash { transform: none; }
}
@media (max-width: 420px) {
  .features, .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .msg, .typing { opacity: 1; transform: none; }
  .md-chart .line { stroke-dashoffset: 0; }
  .md-chart .area { opacity: 1; }
  .md-bars i { height: var(--h); }
}
