/* W9 Sistemas — camada de design premium (carregada depois de effects.css) */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
    --line: #dbe7f2;
    --muted: #51627a;
    --card-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -22px rgba(0, 40, 90, .35);
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
body { color: #1d2b3f; -webkit-font-smoothing: antialiased; }

/* ===== Cabeçalho e logo ===== */
.logo-icon {
    width: 50px; height: 50px; font-size: 1.7rem; border-radius: 14px; letter-spacing: -1px;
    background: linear-gradient(145deg, #ffe55c, var(--gold) 55%, #f2b800);
    box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 8px 20px -6px rgba(255,215,0,.6);
}
nav a { position: relative; opacity: .86; }
nav a:hover { text-decoration: none; opacity: 1; }
nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--sky), var(--gold)); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.btn { border-radius: 10px; }

/* ===== Cabeçalhos de seção ===== */
section { position: relative; }
.section-header { max-width: 760px; margin-inline: auto; }
.section-tag {
    display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .95rem; font-size: .74rem; letter-spacing: .12em;
    background: #fff; color: var(--brand); border: 1px solid var(--line); box-shadow: 0 6px 16px -10px rgba(0,85,165,.5);
}
.section-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(0,168,232,.18); }
.section-header h2, .about-text h2, .contact-info h2 {
    --tg: linear-gradient(100deg, var(--brand) 0%, var(--sky) 45%, #36c6ff 60%, var(--brand) 100%);
    font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12;
}
.section-header h2, .about-text h2, .contact-info h2 { color: var(--brand-deep) !important; }
.tg .wr:last-child, .tg .wr.hl {
    background-image: var(--tg); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: titleSweep 6s ease-in-out infinite; padding-bottom: .06em;
}
@keyframes titleSweep { 50% { background-position: 100% 0; } }
.section-header p { color: var(--muted); }

/* Revelação palavra a palavra nos títulos */
.js .wr { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(4deg); transform-origin: 0 100%; transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.js .is-in .wr, .js .wr-in .wr { opacity: 1; transform: none; }

/* ===== Seções escuras: aurora, grão e holofote ===== */
.dark-sec { background: var(--ink) !important; color: #fff; overflow: hidden; isolation: isolate; }
.dark-sec::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px circle at var(--sx, 50%) var(--sy, 0%), rgba(0,168,232,.16), transparent 60%),
        radial-gradient(900px 500px at 10% 0%, rgba(0,85,165,.55), transparent 60%),
        radial-gradient(700px 500px at 100% 100%, rgba(255,215,0,.10), transparent 60%);
    transition: background .2s;
}
.dark-sec::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--noise); opacity: .06; mix-blend-mode: overlay; }
.dark-sec .sec-glowline { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--sky), var(--gold), transparent); opacity: .7; }
.dark-sec .sec-glowline::after { content: ""; position: absolute; top: -1px; height: 3px; width: 160px; left: -160px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff, transparent); filter: blur(1px); animation: lineRun 6s linear infinite; }
@keyframes lineRun { to { left: 100%; } }
.dark-sec .section-tag { background: rgba(255,255,255,.06); color: var(--gold); border-color: rgba(255,255,255,.14); box-shadow: none; }
.dark-sec .section-tag::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(255,215,0,.18); }
.dark-sec .section-header h2, #sobre .about-text h2 { color: #fff !important; --tg: linear-gradient(100deg, var(--gold) 0%, #fff2a8 35%, var(--sky) 65%, var(--gold) 100%); }
.dark-sec .section-header p { color: rgba(255,255,255,.72); }
.orb { position: absolute; z-index: -1; width: 380px; height: 380px; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.orb.a { background: #0a5bd8; top: -120px; right: -80px; }
.orb.b { background: #00a8e8; bottom: -160px; left: -120px; animation-duration: 24s; opacity: .3; }

/* ===== Borda em feixe giratório ===== */
.beam { position: relative; isolation: isolate; }
.beam::before {
    content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; padding: 1.5px;
    background: conic-gradient(from var(--ang), transparent 0 62%, var(--sky) 76%, var(--gold) 86%, transparent 94%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: beamSpin 5s linear infinite;
}
@keyframes beamSpin { to { --ang: 360deg; } }

/* ===== Sistemas ===== */
#sistemas { background: radial-gradient(1200px 500px at 50% 0%, #e3f0fc, transparent 70%), #f7fafd !important; }
#sistemas::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(0,85,165,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,85,165,.05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask: radial-gradient(900px 500px at 50% 0%, #000, transparent 75%); mask: radial-gradient(900px 500px at 50% 0%, #000, transparent 75%); }
.sistemas-grid { gap: 1.4rem; }
.sistema-card { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.sistema-card[data-tilt]:hover { box-shadow: 0 30px 60px -28px var(--accent-c, rgba(0,85,165,.6)); }
.sistema-card-header {
    padding: 1.4rem 1.4rem 1.2rem; border-bottom: 0; overflow: hidden;
    background: radial-gradient(220px 160px at 88% -10%, color-mix(in srgb, var(--accent, var(--sky)) 70%, transparent), transparent 70%), linear-gradient(150deg, #071d3f, var(--brand-deep) 60%, #0a4a8c);
}
.sistema-card-header::after { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent, var(--sky)), transparent); }
.sistema-card-header .sys-icon { width: 48px; height: 48px; font-size: 1.5rem; margin-bottom: .8rem; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px -8px var(--accent, var(--sky)); }
.sistema-card-header h3 { font-size: 1.18rem; letter-spacing: -.01em; }
.sistema-card-body { padding: 1.2rem 1.4rem .6rem; }
.sistema-card-body > p { color: var(--muted); }
.funcionalidades li { border-bottom-color: #eef3f8; color: #2b3a50; }
.funcionalidades li::before { content: ""; width: 7px; height: 7px; margin-top: .5em; border-radius: 2px; background: var(--accent-c, var(--sky)); transform: rotate(45deg); }
.js .funcionalidades.is-collapsed li:nth-child(n+4) { display: none; }
.more-btn {
    margin: .55rem 0 .4rem; padding: .35rem .2rem; border: 0; background: none; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 700;
    color: var(--brand); display: inline-flex; align-items: center; gap: .35rem;
}
.more-btn::after { content: "▾"; transition: transform .3s var(--ease); }
.more-btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.more-btn:hover { color: var(--sky); }
.sistema-card-footer { background: transparent; border-top: 1px solid #eef3f8; padding: 1rem 1.4rem 1.3rem; }

/* ===== Sites criados ===== */
.portfolio-section { background: #fff !important; }
.feature { box-shadow: 0 40px 80px -40px rgba(0, 30, 80, .7); }
.feature .shot { transform: perspective(1200px) rotateX(calc((1 - var(--sp, 1)) * 16deg)) scale(calc(.9 + var(--sp, 1) * .1)); transition: transform .1s linear; }
.portfolio-grid { max-width: 1100px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.portfolio-card { text-align: left; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; box-shadow: var(--card-shadow); display: flex; flex-direction: column; }
.portfolio-card .mono {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: .85rem; font-weight: 800; font-size: .95rem; color: #fff;
    background: linear-gradient(140deg, var(--brand), var(--sky)); box-shadow: 0 10px 20px -10px rgba(0,85,165,.8);
}
.portfolio-card p { color: var(--muted); flex: 1; }
.portfolio-card a { font-size: .8rem; word-break: break-all; display: inline-flex; gap: .25rem; align-items: center; padding: .35rem .6rem; border-radius: 8px; background: #eef5fc; align-self: flex-start; }
.portfolio-card a:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ===== Serviços (escuro) ===== */
.servicos-grid { max-width: 1060px; gap: 1.6rem; }
.servico-card { border-radius: 22px; overflow: visible; background: rgba(255,255,255,.04); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.servico-card > * { border-radius: 0; }
.servico-header { border-radius: 22px 22px 0 0; position: relative; overflow: hidden; }
.servico-header.sites { background: radial-gradient(400px 220px at 100% 0%, rgba(255,215,0,.25), transparent 60%), linear-gradient(140deg, #0a63c4, #0091d5); }
.servico-header.sistemas { background: radial-gradient(400px 220px at 100% 0%, rgba(0,168,232,.35), transparent 60%), linear-gradient(140deg, #08214a, #0b2f66); }
.servico-header .icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; font-size: 1.8rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.servico-header .preco-destaque { position: relative; display: inline-block; font-size: clamp(2rem, 4.4vw, 2.7rem); letter-spacing: -.02em; text-shadow: 0 6px 30px rgba(255,215,0,.35); }
.servico-body { background: #fff; border-radius: 0 0 22px 22px; }
.servico-body ul li { color: #2b3a50; border-bottom-color: #eef3f8; }
.servico-body ul li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #e3f3fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230055A5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Estrelinhas cintilando nos preços */
.sparkle { position: relative; }
.sparkle i { position: absolute; width: 10px; height: 10px; pointer-events: none; background: radial-gradient(circle, #fff 0 20%, transparent 60%); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.4s ease-in-out infinite; }
.sparkle i:nth-child(1) { top: -6px; right: -12px; }
.sparkle i:nth-child(2) { bottom: 2px; left: -14px; width: 7px; height: 7px; animation-delay: .8s; }
.sparkle i:nth-child(3) { top: 8px; right: -26px; width: 6px; height: 6px; animation-delay: 1.5s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(90deg); } }

/* ===== Quiz ===== */
.quiz-section { background: #f7fafd !important; }
.quiz-result { border-radius: 22px; }

/* ===== Certificado ===== */
.certificado-container { max-width: 980px; }
.certificado-container .preco-destaque { display: inline-block; font-size: clamp(2.3rem, 5vw, 3.4rem); letter-spacing: -.02em; text-shadow: 0 8px 40px rgba(255,215,0,.35); }
.certificado-container .cert-note { color: rgba(255,255,255,.7); font-size: .95rem; }
.certificado-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 2.2rem 0; }
.cert-feature { position: relative; padding: 1.3rem 1rem; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .4s var(--ease), border-color .3s; }
.cert-feature:hover { transform: translateY(-6px); border-color: rgba(255,215,0,.5); }
.cert-feature strong { font-size: 1.05rem; }
.cert-feature span { opacity: .78; }

/* ===== Equipamentos ===== */
.equipamentos-section { background: #fff !important; }
.hw-list li { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--card-shadow); transition: transform .25s ease-out, box-shadow .3s, border-color .3s; }
.hw-list li:hover { border-color: rgba(0,168,232,.5); box-shadow: 0 26px 50px -26px rgba(0,85,165,.55); }
.hw-icon { background: linear-gradient(145deg, #eef6fd, #dcecfa); box-shadow: 0 1px 0 #fff inset; }

/* ===== Sobre (escuro) ===== */
#sobre .about-text h3 { color: var(--gold); }
#sobre .about-text p { color: rgba(255,255,255,.75); }
.stat-box { position: relative; overflow: hidden; border-radius: 20px; padding: 1.8rem 1.2rem; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); }
.stat-box::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; left: -70%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent); transform: skewX(-20deg); transition: left .8s var(--ease); }
.stat-box:hover::after { left: 130%; }
.stat-number { font-size: clamp(2.2rem, 4vw, 2.9rem); letter-spacing: -.03em; background: linear-gradient(180deg, #fff2a8, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: rgba(255,255,255,.78); }

/* ===== Contato ===== */
.contact-section { border-top: 0; background: #fff !important; }
.contact-icon { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(145deg, #eef6fd, #dcecfa); }
.contact-item { padding: .6rem; margin: 0 -.6rem .4rem; border-radius: 14px; transition: background .3s; }
.contact-item:hover { background: #f3f8fd; }
.contact-cta { position: relative; padding: 2.2rem; border-radius: 24px; color: #fff; overflow: hidden; background: radial-gradient(400px 260px at 100% 0%, rgba(37,211,102,.28), transparent 60%), linear-gradient(150deg, #071d3f, var(--brand-deep)); box-shadow: 0 40px 80px -40px rgba(0,30,80,.8); }
.contact-cta h3 { font-size: 1.5rem; margin-bottom: .7rem; letter-spacing: -.01em; }
.contact-cta p { color: rgba(255,255,255,.78); margin-bottom: 1.5rem; font-size: .96rem; }
.contact-cta .btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: 1rem; font-size: 1rem; }
.contact-cta .btn + .btn { margin-top: .75rem; }
.contact-cta .btn-call { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.contact-cta .btn-call:hover { background: rgba(255,255,255,.16); }
.contact-cta .live { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7ef0a8; margin-bottom: .9rem; }
.contact-cta .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wa); animation: ping 1.8s infinite; box-shadow: 0 0 0 0 rgba(37,211,102,.7); }

/* ===== Rodapé ===== */
footer.site-footer { position: relative; text-align: left; padding: 3.5rem 2rem 1.5rem; background: #020a1a; color: rgba(255,255,255,.7); overflow: hidden; }
.site-footer .f-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.site-footer .f-brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: .9rem; }
.site-footer .f-brand .logo-icon { width: 42px; height: 42px; font-size: 1.35rem; color: var(--brand); display: grid; place-items: center; }
.site-footer .f-motto { max-width: 340px; font-size: .92rem; }
.site-footer .f-big { max-width: 1100px; margin: 2.5rem auto 0; font-weight: 800; font-size: clamp(3rem, 12vw, 9.5rem); line-height: .9; letter-spacing: -.05em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); background: linear-gradient(90deg, rgba(0,168,232,.28), rgba(255,215,0,.3), rgba(0,168,232,.28), rgba(255,215,0,.3), rgba(0,168,232,.28)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: gradMove 8s linear infinite; user-select: none; }
.site-footer .f-bottom { max-width: 1100px; margin: 1.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }

/* ===== Ondulação ao clicar ===== */
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); background: rgba(255,255,255,.55); animation: ripple .7s ease-out forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.btn, .chip { position: relative; overflow: hidden; }

/* ===== Responsivo ===== */
@media (max-width: 900px) {
    .certificado-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer .f-grid { grid-template-columns: 1fr 1fr; }
    .site-footer .f-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .servicos-grid { grid-template-columns: 1fr; }
    .contact-cta { padding: 1.6rem; }
}
@media (max-width: 520px) {
    .site-footer .f-grid { grid-template-columns: 1fr; }
    .site-footer .f-bottom { flex-direction: column; }
    .portfolio-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem 1.25rem 1.2rem; margin: 0 -1.25rem; scrollbar-width: none; }
    .portfolio-grid::-webkit-scrollbar { display: none; }
    .portfolio-card { scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .js .wr { opacity: 1; filter: none; transform: none; }
    .beam::before, .orb, .sparkle i, .sec-glowline::after, .ripple { animation: none !important; }
    .sparkle i { display: none; }
    .feature .shot { transform: none; }
    .tg .wr { animation: none !important; }
}
.certificado-container .section-header { margin-bottom: 1.2rem; }
.about-text .section-tag, .contact-info .section-tag { margin-bottom: .9rem; }

.servico-card .servico-body { display: flex; flex-direction: column; }
.servico-card .servico-body > .btn { margin-top: auto; }
.servico-card .servico-body ul { margin-bottom: 1.5rem; }
.portfolio-card a { word-break: normal; white-space: nowrap; font-size: .76rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.portfolio-card { min-width: 0; }

/* ===== Hero: celular realista com WhatsApp ===== */
.stack { min-height: 600px; }
.stack .browser { inset: 40px 30% 150px 0; }
.stack .shield { left: 2%; bottom: 40px; }
.phone {
    position: absolute; right: 2%; top: 0; width: 296px; height: 600px; border-radius: 52px; padding: 11px;
    background: linear-gradient(145deg, #3a4150, #11151c 40%, #2b313c 70%, #0b0e13);
    box-shadow: 0 0 0 1.5px #5d6575 inset, 0 0 0 3px #0a0c10 inset, 0 50px 90px -30px rgba(0,8,30,.9), 0 20px 40px -20px rgba(0,0,0,.6);
    transform: translateZ(80px); animation: phoneFloat 8s ease-in-out infinite; color: #e9edef;
}
@keyframes phoneFloat { 50% { transform: translateZ(80px) translateY(-12px) rotate(-.6deg); } }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, transparent 28%, transparent 70%, rgba(255,255,255,.06)); }
.ph-btn { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #4a5161, #1c2028); }
.ph-vol1 { left: -3px; top: 132px; height: 52px; } .ph-vol2 { left: -3px; top: 196px; height: 52px; } .ph-power { right: -3px; top: 168px; height: 82px; }
.ph-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; display: flex; flex-direction: column; background: #0b141a; font-family: -apple-system, 'Segoe UI', Roboto, 'Inter', sans-serif; }
.ph-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 6px 24px 0 30px; background: #1f2c34; font-size: 13px; }
.ph-time { font-weight: 600; letter-spacing: -.01em; }
.ph-island { position: absolute; left: 50%; top: 10px; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; }
.ph-icons { display: flex; align-items: center; gap: 5px; }
.ph-icons i { display: block; background: #e9edef; }
.ph-icons .sig { width: 16px; height: 10px; -webkit-mask: linear-gradient(90deg, #000 0 3px, transparent 3px 4.3px, #000 4.3px 7.3px, transparent 7.3px 8.6px, #000 8.6px 11.6px, transparent 11.6px 12.9px, #000 12.9px) bottom/100% 100% no-repeat; mask: linear-gradient(90deg, #000 0 3px, transparent 3px 4.3px, #000 4.3px 7.3px, transparent 7.3px 8.6px, #000 8.6px 11.6px, transparent 11.6px 12.9px, #000 12.9px); clip-path: polygon(0 70%, 25% 70%, 25% 45%, 50% 45%, 50% 22%, 75% 22%, 75% 0, 100% 0, 100% 100%, 0 100%); }
.ph-icons .wifi { width: 14px; height: 10px; clip-path: polygon(50% 100%, 0 25%, 15% 8%, 50% 0, 85% 8%, 100% 25%); }
.ph-icons .bat { width: 24px; height: 11px; border-radius: 3px; background: linear-gradient(90deg, #e9edef 78%, transparent 78%); box-shadow: 0 0 0 1px rgba(233,237,239,.5); }
.wa-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px 6px; background: #1f2c34; }
.wa-back { width: 22px; height: 22px; color: #e9edef; flex: none; }
.wa-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; font-size: 13px; color: var(--brand); background: linear-gradient(145deg, #ffe55c, var(--gold)); }
.wa-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.wa-who b { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.wa-verified { width: 15px; height: 15px; }
.wa-state { font-size: 12px; color: #8696a0; transition: color .3s; }
.wa-state.typing-now { color: #25d366; }
.wa-actions { display: flex; gap: 16px; color: #e9edef; }
.wa-actions svg { width: 21px; height: 21px; }
.wa-body {
    flex: 1; overflow: hidden; padding: 10px 10px 6px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
    background-color: #0b141a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1.2'%3E%3Ccircle cx='14' cy='16' r='6'/%3E%3Cpath d='M48 10l8 8-8 8-8-8z'/%3E%3Cpath d='M10 56c6-6 12 6 18 0'/%3E%3Crect x='52' y='50' width='14' height='10' rx='3'/%3E%3Cpath d='M34 40h8M38 36v8'/%3E%3C/g%3E%3C/svg%3E");
}
.wa-day { align-self: center; margin: 2px 0 6px; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 500; color: #8696a0; background: #182229; }
.wa-note { align-self: center; max-width: 92%; margin-bottom: 8px; padding: 6px 10px; border-radius: 8px; text-align: center; font-size: 10.5px; line-height: 1.35; color: #ffd279; background: #182229; }
.wa-msg {
    position: relative; max-width: 82%; padding: 6px 9px 7px; font-size: 13px; line-height: 1.35; border-radius: 8px; box-shadow: 0 1px .5px rgba(0,0,0,.25);
    animation: waIn .35s var(--ease) both;
}
.wa-msg .t { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -3px 10px; font-size: 10.5px; color: rgba(233,237,239,.6); }
.wa-msg.in { align-self: flex-start; background: #202c33; border-top-left-radius: 0; }
.wa-msg.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 0; }
.wa-msg.in::before, .wa-msg.out::before { content: ""; position: absolute; top: 0; width: 8px; height: 10px; }
.wa-msg.in::before { left: -7px; background: #202c33; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.wa-msg.out::before { right: -7px; background: #005c4b; clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa-msg.cont { border-radius: 8px; } .wa-msg.cont::before { display: none; }
.wa-msg .ticks { width: 16px; height: 11px; color: #8696a0; transition: color .4s; }
.wa-msg .ticks.read { color: #53bdeb; }
.wa-msg.bot b.who { display: block; margin-bottom: 2px; font-size: 11.5px; color: var(--gold); font-weight: 600; }
.wa-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 8px; border-top-left-radius: 0; background: #202c33; animation: waIn .3s var(--ease) both; }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: dot 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes waIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.wa-input { display: flex; align-items: center; gap: 6px; padding: 6px 8px 22px; background: #0b141a; }
.wa-field { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 22px; background: #1f2c34; color: #8696a0; font-size: 14px; }
.wa-ph { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-ph.typing-now { color: #e9edef; }
.wa-emoji { font-size: 18px; } .wa-clip { font-size: 14px; filter: grayscale(1) brightness(1.6); }
.wa-mic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #00a884; color: #fff; flex: none; }
.wa-mic svg { width: 20px; height: 20px; }
.ph-home { position: absolute; left: 50%; bottom: 7px; width: 110px; height: 4px; margin-left: -55px; border-radius: 3px; background: rgba(233,237,239,.85); }
.hero2-visual .chip-float {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: .5rem; padding: .55rem .85rem; border-radius: 14px; font-size: .78rem; font-weight: 700; color: #fff;
    background: rgba(5,28,62,.78); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -18px rgba(0,0,0,.7); transform: translateZ(120px); animation: floatC 7s ease-in-out infinite;
}
.chip-float.c1 { right: calc(2% + 250px); top: 92px; }
.chip-float.c1::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.25); }
@media (max-width: 900px) {
    .stack { min-height: 620px; max-width: 460px; }
    .stack .browser { inset: 30px 26% 200px 0; }
    .phone { right: 50%; margin-right: -148px; }
    .chip-float.c1 { left: 0; right: auto; top: 60px; }
    .stack .shield { left: 0; bottom: 30px; }
}
@media (max-width: 520px) {
    .stack { min-height: 560px; }
    .phone { width: 270px; height: 548px; margin-right: -135px; border-radius: 46px; }
    .ph-screen { border-radius: 37px; }
    .stack .browser { display: none; }
}
@media (prefers-reduced-motion: reduce) { .phone, .chip-float { animation: none !important; } .wa-msg, .wa-typing { animation: none !important; } }
.chip-float.c1 { top: 130px; }
@media (max-width: 520px) {
    .stack { min-height: 620px; }
    .chip-float.c1 { display: none; }
    .stack .shield { left: 50%; bottom: 0; transform: translateX(-50%); animation: none; }
}
.wa-field { min-width: 0; }
.wa-who b { white-space: nowrap; }
.wa-who b, .wa-state { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
    .stack { min-height: 660px; }
    .wa-actions { gap: 12px; }
    .wa-actions svg { width: 19px; height: 19px; }
    .wa-who b { font-size: 14px; }
}
.wa-verified { flex: none; }

/* Logo real do sistema no lugar do emoji */
.sistema-card-header .sys-icon.has-logo { background: #fff; overflow: hidden; }
.sistema-card-header .sys-icon.has-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
