/* W9 Sistemas — paleta e efeitos visuais (CSS puro; JS em effects.js) */
[hidden] { display: none !important; }
:root {
    --brand: #0055A5;
    --brand-deep: #003A73;
    --ink: #04122b;
    --sky: #00A8E8;
    --gold: #FFD700;
    --wa: #25D366;
    --wa-ink: #062b14;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ===== Barra de progresso de rolagem ===== */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000;
    background: linear-gradient(90deg, var(--sky), var(--gold));
    transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* ===== Cabeçalho ===== */
header { transition: background .3s, box-shadow .3s; }
nav { white-space: nowrap; gap: 1.1rem; }
.logo-sub { white-space: nowrap; }
header.scrolled {
    background: rgba(0, 58, 115, .86);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 8px 30px rgba(0, 20, 50, .35);
}
.btn-wa { background: var(--wa); color: var(--wa-ink); border: 2px solid var(--wa); }
.btn-wa:hover { background: #3ee07c; border-color: #3ee07c; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 2px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent);
    transform: skewX(-20deg); animation: shimmer 3.6s ease-in-out infinite; pointer-events: none;
}
@keyframes shimmer { 0%, 55% { left: -60%; } 100% { left: 140%; } }
.btn { will-change: transform; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.menu-toggle {
    display: none; width: 46px; height: 46px; border-radius: 10px; cursor: pointer;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-mobile {
    position: fixed; top: 84px; left: 12px; right: 12px; z-index: 999; padding: 1rem;
    background: rgba(0, 40, 85, .96); border: 1px solid rgba(255,255,255,.18); border-radius: 18px;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0,10,30,.5); display: grid; gap: .25rem;
    max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain;
    animation: menuIn .35s var(--ease);
}
.menu-mobile[hidden] { display: none; }
.menu-mobile a { color: #fff; text-decoration: none; font-weight: 600; padding: .85rem 1rem; border-radius: 10px; }
.menu-mobile a:hover, .menu-mobile a:focus-visible { background: rgba(255,255,255,.1); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ===== HERO ===== */
.hero2 {
    position: relative; isolation: isolate; overflow: hidden; color: var(--ink);
    padding: clamp(3rem, 8vw, 6rem) 2rem clamp(4rem, 9vw, 7rem);
    background: #f8fafc;
}
.aurora { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.aurora i {
    position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .55;
    will-change: transform; animation: drift 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { left: -20vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(0,168,232,.75), transparent); }
.aurora i:nth-child(2) { right: -25vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(0,85,165,.9), transparent); animation-duration: 28s; animation-delay: -6s; }
.aurora i:nth-child(3) { left: 25%; bottom: -45vmax; background: radial-gradient(closest-side, rgba(255,215,0,.32), transparent); animation-duration: 32s; animation-delay: -12s; }
@media (max-width: 768px) { .aurora i { animation: none; will-change: auto; } }
@keyframes drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15) rotate(25deg); } }
.hero-grid {
    position: absolute; inset: 0; z-index: -2; opacity: .5;
    background-image: linear-gradient(rgba(0,85,165,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(0,85,165,.09) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 75%);
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero2-inner {
    max-width: 1200px; margin: 0 auto; display: grid; gap: 3rem; align-items: center;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}
.pill {
    display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem; border-radius: 999px;
    font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: #0b3a6e;
    background: rgba(255,255,255,.85); border: 1px solid #cfe0f3; box-shadow: 0 8px 24px -12px rgba(0,58,115,.35);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.hero2 h1 {
    margin: 1.2rem 0 .8rem; font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
    font-size: clamp(2.3rem, 6.2vw, 4.6rem); color: var(--ink);
}
.hero2 h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero2 h1 .line > span { display: inline-block; }
.js .hero2 h1 .line > span { transform: translateY(110%); animation: lineUp 1s var(--ease) forwards; }
.js .hero2 h1 .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes lineUp { to { transform: none; } }
.grad {
    background: linear-gradient(100deg, #003A73 0%, #0072c6 30%, #a87200 58%, #003A73 100%); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    animation: gradMove 6s linear infinite;
}
@keyframes gradMove { to { background-position: -220% 0; } }
.offer { font-size: clamp(1.15rem, 2.6vw, 1.6rem); color: #26405c; margin-bottom: 1rem; }
.offer strong {
    display: inline-block; margin-left: .25rem; padding: .1rem .7rem; border-radius: 12px;
    font-size: 1.15em; font-weight: 800; color: var(--ink); background: var(--gold);
    box-shadow: 0 0 0 0 rgba(255,215,0,.55); animation: glowPulse 2.8s ease-in-out infinite;
}
@keyframes glowPulse { 50% { box-shadow: 0 0 0 14px rgba(255,215,0,0); } }
.hero2 .lead { max-width: 560px; color: #26405c; font-size: 1.05rem; margin-bottom: 1.8rem; }
.hero2 .hero-cta { justify-content: flex-start; }
.hero2 .btn { padding: .9rem 1.8rem; font-size: 1rem; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.8rem; font-size: .88rem; color: #26405c; }
.trust li::before { content: "✓"; color: #0a9b4a; font-weight: 800; margin-right: .4rem; }

/* Letras criativas do topo (fundo claro) */
.hero2 h1 .hl { position: relative; z-index: 0; color: var(--ink); background: none; }
.hero2 h1 .hl::before {
    content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; bottom: .04em; height: .42em;
    background: linear-gradient(100deg, #ffe27a, var(--gold)); border-radius: .2em; transform: skewX(-8deg) scaleX(0); transform-origin: left;
    animation: hlSweep .9s .75s var(--ease) forwards;
}
@keyframes hlSweep { to { transform: skewX(-8deg) scaleX(1); } }
.hero2 .lead b { color: #003A73; font-weight: 700; }
.hero2 .btn-ghost { color: var(--ink); background: rgba(255,255,255,.7); border-color: rgba(4,18,43,.35); }
.hero2 .btn-ghost:hover { background: #fff; border-color: var(--ink); }
.hero2 .mock.browser { color: var(--ink); background: rgba(255,255,255,.72); border-color: rgba(0,85,165,.2); box-shadow: 0 30px 60px -28px rgba(0,58,115,.45); }
.hero2 .browser .bar { border-bottom-color: rgba(0,85,165,.15); }
.hero2 .browser .bar span { background: rgba(0,85,165,.08); color: #26405c; }
.hero2 .sk { background: linear-gradient(90deg, rgba(0,85,165,.1) 25%, rgba(0,85,165,.24) 50%, rgba(0,85,165,.1) 75%); background-size: 200% 100%; }
.hero2 .mock.shield { color: var(--ink); background: rgba(255,255,255,.88); border-color: rgba(0,85,165,.2); box-shadow: 0 24px 44px -22px rgba(0,58,115,.5); }
@media (prefers-reduced-motion: reduce) {
    .hero2 h1 .hl::before { animation: none; transform: skewX(-8deg); }
}

/* Vitrine 3D do hero */
.hero2-visual { perspective: 1100px; }
.stack {
    position: relative; min-height: 430px; transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out;
}
.mock {
    position: absolute; border-radius: 18px; color: #fff;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 30px 70px -20px rgba(0,10,40,.7);
}
.browser { inset: 0 8% 90px 0; transform: translateZ(0); animation: floatA 7s ease-in-out infinite; overflow: hidden; }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: .7rem .9rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); }
.browser .bar i:nth-child(1) { background: #ff6b6b; } .browser .bar i:nth-child(2) { background: var(--gold); } .browser .bar i:nth-child(3) { background: var(--wa); }
.browser .bar span { margin-left: .6rem; font-size: .72rem; padding: .15rem .8rem; border-radius: 99px; background: rgba(0,0,0,.25); color: #cfe7ff; }
.browser .body { padding: 1.2rem; display: grid; gap: .7rem; }
.sk { height: 12px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.12) 25%, rgba(255,255,255,.34) 50%, rgba(255,255,255,.12) 75%); background-size: 200% 100%; animation: skel 2.2s linear infinite; }
.sk.h { height: 34px; width: 78%; border-radius: 10px; }
.sk.w70 { width: 70%; } .sk.w50 { width: 50%; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .4rem; }
.tiles b { height: 84px; border-radius: 12px; background: linear-gradient(135deg, rgba(0,168,232,.55), rgba(0,85,165,.35)); border: 1px solid rgba(255,255,255,.2); }
.tiles b:nth-child(2) { background: linear-gradient(135deg, rgba(255,215,0,.55), rgba(255,215,0,.12)); }
@keyframes skel { to { background-position: -200% 0; } }
.chat { width: 62%; right: 0; bottom: 20px; padding: .9rem; background: rgba(5, 28, 62, .82); transform: translateZ(60px); animation: floatB 8s ease-in-out infinite; }
.chat-head { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .85rem; margin-bottom: .7rem; }
.chat-head::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--wa); box-shadow: inset 0 0 0 6px var(--wa-ink); }
.bubble { max-width: 88%; padding: .5rem .75rem; border-radius: 14px; font-size: .78rem; margin-top: .45rem; opacity: 0; }
.bubble.in { background: rgba(255,255,255,.2); border-bottom-left-radius: 4px; }
.bubble.out { margin-left: auto; background: var(--wa); color: var(--wa-ink); font-weight: 600; border-bottom-right-radius: 4px; }
.bubble.b1 { animation: b1 12s infinite; }
.bubble.b2 { animation: b2 12s infinite; }
.bubble.b3 { animation: b3 12s infinite; }
@keyframes b1 { 0%, 4% { opacity: 0; transform: translateY(8px); } 8%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes b2 { 0%, 26% { opacity: 0; transform: translateY(8px); } 31%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes b3 { 0%, 56% { opacity: 0; transform: translateY(8px); } 61%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.typing { display: inline-flex; gap: 4px; margin-top: .45rem; padding: .5rem .7rem; border-radius: 14px; background: rgba(255,255,255,.2); animation: tp 12s infinite; opacity: 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .5; } }
@keyframes tp { 0%, 34% { opacity: 0; } 38%, 52% { opacity: 1; } 56%, 100% { opacity: 0; } }
.shield {
    left: 4%; bottom: 0; padding: .8rem 1.1rem; font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: .6rem;
    transform: translateZ(90px); animation: floatC 6s ease-in-out infinite;
}
.shield::before { content: "🛡️"; font-size: 1.3rem; }
@keyframes floatA { 50% { transform: translateY(-10px); } }
@keyframes floatB { 50% { transform: translateZ(60px) translateY(-14px); } }
@keyframes floatC { 50% { transform: translateZ(90px) translateY(-8px); } }

/* ===== Letreiro (letras passando) ===== */
.ticker { background: var(--ink); overflow: hidden; padding: 1.1rem 0; border-block: 1px solid rgba(255,255,255,.12); }
.ticker-row { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker-row.rev { animation-direction: reverse; animation-duration: 46s; margin-top: .4rem; }
.ticker-row span {
    font-size: clamp(1.6rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; padding-right: 2.2rem;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55);
}
.ticker-row span:nth-child(3n+1) { color: #fff; -webkit-text-stroke: 0; }
.ticker-row span:nth-child(3n+2) { color: var(--gold); -webkit-text-stroke: 0; }
.ticker-row span::after { content: "✦"; color: var(--sky); -webkit-text-stroke: 0; margin-left: 2.2rem; font-size: .6em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Revelação ao rolar ===== */
.js [data-reveal] { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ===== Cards: tilt 3D + holofote + brilho ===== */
.sistema-card, .servico-card, .portfolio-card, .quiz, .feature { position: relative; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.sistema-card[data-tilt], .servico-card[data-tilt], .portfolio-card[data-tilt] {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
    transition: transform .25s ease-out, box-shadow .3s;
}
.sistema-card[data-tilt]:hover, .servico-card[data-tilt]:hover, .portfolio-card[data-tilt]:hover { --ty: -6px; }
.spot::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,168,232,.18), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.spot::after {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; padding: 2px; opacity: 0; transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--gold), var(--sky) 45%, transparent 70%);
    -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);
}
.spot:hover::after { opacity: 1; }

/* ===== Sistemas (paleta de marca nos cabeçalhos, cor própria só no ícone) ===== */
.sistema-card-header { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); border-bottom: 3px solid var(--accent, var(--sky)); }
.sistema-card-header .sys-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px;
    background: var(--accent, var(--sky)); box-shadow: 0 8px 20px -6px var(--accent, var(--sky)); transition: transform .4s var(--ease);
}
.sistema-card:hover .sys-icon { transform: rotate(-8deg) scale(1.12); }
.sistema-card-footer .btn-primary { background: var(--gold); color: var(--brand-deep); }

/* ===== Serviços ===== */
.servico-header.sistemas { background: linear-gradient(135deg, var(--ink), #0a2a5c); }
.preco-destaque.parcela { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.security-note {
    display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.1rem; padding: .9rem 1rem; border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,85,165,.08), rgba(0,168,232,.12)); border: 1px solid rgba(0,85,165,.25);
    font-size: .9rem; color: #1b3a5e; line-height: 1.45;
}
.security-note::before { content: "🛡️"; font-size: 1.5rem; animation: floatA 4s ease-in-out infinite; }
.security-note strong { color: var(--brand); }

/* ===== Sites criados: vitrine do modelo ===== */
.feature {
    max-width: 1100px; margin: 0 auto 2.2rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; align-items: center;
    padding: clamp(1.2rem, 3vw, 2.2rem); border-radius: 24px; color: #fff; overflow: hidden;
    background: radial-gradient(100% 120% at 0% 0%, #0a3a78, var(--ink));
    box-shadow: 0 30px 70px -30px rgba(0,30,80,.6);
}
.feature .tag { display: inline-block; padding: .3rem .9rem; border-radius: 99px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--gold); }
.feature h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .8rem 0 .5rem; }
.feature p { color: rgba(255,255,255,.82); margin-bottom: 1.4rem; }
.feature .shot { perspective: 1000px; }
.feature .win {
    border-radius: 14px; overflow: hidden; background: #0b1a33; border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 40px 80px -25px rgba(0,0,0,.7);
    transform: rotateY(-9deg) rotateX(4deg); transition: transform .6s var(--ease);
}
.feature:hover .win { transform: rotateY(0) rotateX(0) scale(1.02); }
.feature .win .bar { display: flex; gap: 6px; padding: .6rem .8rem; background: rgba(255,255,255,.08); }
.feature .win .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); }
.feature .win img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* ===== Quiz ===== */
.quiz-section { background: linear-gradient(180deg, #fff, #eef5fc); }
.quiz { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
    font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; padding: .65rem 1rem; border-radius: 999px;
    color: var(--brand); background: #fff; border: 2px solid #cfe1f3; transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--sky); transform: translateY(-2px); }
.chip[aria-pressed="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); box-shadow: 0 10px 24px -10px rgba(255,190,0,.9); }
.quiz-result {
    min-height: 250px; padding: 1.6rem; border-radius: 20px; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff;
    box-shadow: 0 24px 60px -25px rgba(0,60,120,.7);
}
.quiz-result .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.quiz-result h3 { font-size: 1.5rem; margin: .4rem 0 .6rem; }
.quiz-result p { color: rgba(255,255,255,.88); font-size: .95rem; margin-bottom: 1.2rem; }
.quiz-result.pop { animation: popIn .5s var(--ease); }
@keyframes popIn { from { opacity: .3; transform: translateY(14px) scale(.97); } }

/* ===== Certificado / sobre / contato (contraste AA) ===== */
.about-text h3 { color: #0069B8; }
.contact-details p, .contact-details a { color: #0A4F94; }
.contact-details a:hover { color: var(--brand-deep); }
.stat-box { transition: transform .3s var(--ease); }
.stat-box:hover { transform: translateY(-6px) scale(1.03); }

/* ===== Botão flutuante do WhatsApp ===== */
.fab {
    position: fixed; right: 18px; bottom: 18px; z-index: 1500; width: 62px; height: 62px; border-radius: 50%;
    display: grid; place-items: center; background: var(--wa); color: var(--wa-ink); text-decoration: none;
    box-shadow: 0 14px 34px -8px rgba(37,211,102,.8); animation: fabPulse 2.6s infinite; transition: transform .3s var(--ease);
}
.fab:hover { transform: scale(1.1) rotate(-6deg); }
.fab svg { width: 32px; height: 32px; fill: currentColor; }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6), 0 14px 34px -8px rgba(37,211,102,.8); } 70%, 100% { box-shadow: 0 0 0 22px rgba(37,211,102,0), 0 14px 34px -8px rgba(37,211,102,.8); } }

/* ===== Promoção que surge do nada ===== */
.promo {
    position: fixed; right: 18px; bottom: 96px; z-index: 1600; width: min(380px, calc(100vw - 36px)); padding: 1.4rem 1.4rem 1.3rem;
    border-radius: 22px; color: #fff; overflow: hidden;
    background: radial-gradient(120% 140% at 0% 0%, #0a3a78, var(--ink));
    border: 1px solid rgba(255,255,255,.28); box-shadow: 0 30px 80px -15px rgba(0,10,40,.8);
    animation: promoIn .9s cubic-bezier(.34, 1.56, .64, 1);
}
.promo[hidden] { display: none; }
.promo::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(255,215,0,.35), transparent 40%); animation: spin 6s linear infinite; }
.promo::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, #0a3a78, var(--ink)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes promoIn { from { opacity: 0; transform: translateY(60px) scale(.8) rotate(2deg); } }
.promo-tag { display: inline-block; padding: .25rem .8rem; border-radius: 99px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--gold); }
.promo h2 { font-size: 1.3rem; line-height: 1.2; margin: .7rem 0 .5rem; color: #fff; }
.promo p { font-size: .93rem; color: rgba(255,255,255,.88); margin-bottom: 1rem; }
.promo .btn { display: block; text-align: center; width: 100%; }
.promo-close {
    position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1;
    color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
}
.promo-close:hover { background: rgba(255,255,255,.25); }

/* ===== Brilho do cursor (só mouse) ===== */
.cursor-glow {
    position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; z-index: 5; pointer-events: none; opacity: 0;
    background: radial-gradient(closest-side, rgba(0,168,232,.14), transparent); transition: opacity .4s; will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* ===== Responsivo ===== */
@media (max-width: 900px) {
    .hero2-inner, .feature, .quiz { grid-template-columns: 1fr; }
    .stack { min-height: 360px; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 768px) {
    header { padding: .8rem 1rem; }
    .menu-toggle { display: flex; }
    .cta-buttons .btn-primary { display: none; }
    .cta-buttons .btn { padding: .55rem 1rem; }
    .logo-text { font-size: 1.15rem; }
    .logo-sub { display: none; }
    .hero2 { padding-inline: 1.25rem; }
    .hero2 .hero-cta .btn { width: 100%; text-align: center; }
    .servicos-grid { grid-template-columns: 1fr; }
    .promo { right: 12px; left: 12px; width: auto; bottom: 88px; }
    .fab { right: 14px; bottom: 14px; width: 56px; height: 56px; }
}
@media (max-width: 520px) {
    section { padding-inline: 1.25rem; }
    .stack { min-height: 330px; }
    .chat { width: 74%; }
}

/* ===== Movimento reduzido ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .js .hero2 h1 .line > span { transform: none; }
    .ticker-row { animation: none; }
    .bubble { opacity: 1; }
    .btn-primary::after, .cursor-glow, #net { display: none; }
}
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

/* Cards de altura igual, rodapé alinhado */
.sistema-card { display: flex; flex-direction: column; }
.sistema-card-body { flex: 1; }
.servico-card { display: flex; flex-direction: column; }
.servico-card .servico-body { flex: 1; }
@media (max-width: 1240px) { nav { gap: .85rem; } nav a { font-size: .84rem; } .logo-sub { display: none; } }

@media (min-width: 1181px) { .menu-mobile { display: none !important; } }

/* ===== Hardware (lista) ===== */
.equipamentos-section { background: #f8fafc; }
.hw-list { list-style: none; max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.hw-list li {
    position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; border-radius: 16px; background: #fff;
    border: 1px solid #dbe7f2; border-top: 4px solid var(--sky); box-shadow: 0 6px 24px rgba(0, 85, 165, .08);
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out;
}
.hw-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.6rem; background: #e8f4fd; }
.hw-list h3 { color: var(--brand); font-size: 1.1rem; margin-bottom: .3rem; }
.hw-list p { color: #555; font-size: .92rem; }
.hw-cta { text-align: center; margin-top: 1.8rem; }
@media (max-width: 700px) { .hw-list { grid-template-columns: 1fr; } }
.hw-list small { display: block; margin-top: .35rem; color: #6b7a8c; font-size: .8rem; }

/* Promoção em telas baixas (celular deitado): cabe na tela e rola por dentro */
@media (max-height: 640px) {
    .promo { bottom: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
    .promo::before { display: none; }
}
@media (max-height: 640px) and (max-width: 768px) { .promo { right: 84px; } }
.promo:focus { outline: none; }

/* Cabeçalho compacto (menu ☰) até 1180px, para não estourar em tablets */
@media (max-width: 1180px) {
    nav { display: none; }
    .menu-toggle { display: flex; }
    .logo-sub { display: none; }
    .cta-buttons { margin-left: auto; }
}
@media (min-width: 1181px) and (max-width: 1400px) { nav { gap: .75rem; } nav a { font-size: .82rem; } }

/* Celulares bem estreitos: o botão flutuante já leva ao WhatsApp */
@media (max-width: 379px) { .cta-buttons .btn-wa { display: none; } }

/* Links para as páginas de serviço */
.more-link { display: inline-block; margin: .9rem 0 0 .4rem; font-weight: 700; font-size: .92rem; color: var(--brand); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.more-link:hover { color: var(--brand-deep); }
.dark-sec .more-link, .promo .more-link { color: #fff; }
.more-wrap { text-align: center; margin-top: .6rem; }
.promo .more-link { display: block; margin: .7rem 0 0; text-align: center; }

/* Barra fixa de WhatsApp no celular */
.wa-bar { display: none; }
@media (max-width: 768px) {
    .wa-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid #dbe7f2; box-shadow: 0 -8px 24px rgba(0,58,115,.12); }
    .wa-bar .btn { display: block; width: 100%; padding: .9rem 1rem; font-size: 1rem; text-align: center; }
    .fab { display: none; }
    .promo { bottom: 84px; }
    body { padding-bottom: 76px; }
}
@media (max-width: 768px) and (max-height: 640px) { .promo { right: 12px; bottom: 84px; max-height: calc(100dvh - 96px); } }

/* Vitrine de sistemas na home: categorias e botão para todos */
.sys-cats { max-width: 1200px; margin: 2.2rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.cat-link { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px; background: #fff; border: 2px solid #cfe1f3; color: var(--brand); font-weight: 700; font-size: .92rem; text-decoration: none; transition: transform .2s, border-color .2s; }
.cat-link:hover { transform: translateY(-2px); border-color: var(--sky); }
.cat-link span { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: 99px; background: var(--gold); color: var(--ink); font-size: .78rem; }
.sys-all { text-align: center; margin-top: 1.6rem; }
.sys-all .btn { padding: .95rem 2rem; font-size: 1rem; }
@media (min-width: 1000px) { #sistemas .sistemas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; } }
