/* =========================================================
   SIG · Sistema de Integração de Gestão · Líder BPO
   Layout fluido (grid/flex + clamp) — SEM transform:scale/zoom.
   Ocupa a largura útil do navegador; em telas baixas, rola verticalmente
   em vez de encolher a interface. Animações usam apenas transform/opacity.
   ========================================================= */

:root {
    --bg0: #030712;
    --bg1: #071534;
    --tx: #f2f6ff;
    --mut: #aebfe8;
    --mut2: #869fd4;
    --ciano: #38bdf8;
    --ciano2: #66d9ff;
    --azul: #3b82f6;
    --azul2: #6bb3ff;
    --roxo: #9855f7;
    --roxo2: #c98bff;
    --dourado: #f5b942;
    --dourado2: #ffdb85;
    --verde: #34d399;
    --verde2: #86f0c8;
    --borda: rgba(110, 165, 255, .3);
    --font: "Segoe UI", Inter, Roboto, "Helvetica Neue", Helvetica, Arial, FreeSans, sans-serif;
    --cursiva: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html {
    background:
        radial-gradient(1400px 800px at 50% -6%, rgba(45, 110, 230, .42), transparent 66%),
        radial-gradient(900px 720px at 2% 100%, rgba(140, 70, 240, .28), transparent 68%),
        radial-gradient(950px 680px at 100% 6%, rgba(56, 189, 248, .22), transparent 66%),
        radial-gradient(1200px 500px at 50% 100%, rgba(10, 20, 50, .9), transparent 60%),
        linear-gradient(160deg, var(--bg1), var(--bg0) 60%);
    background-attachment: fixed;
}
html, body { margin: 0; color: var(--tx); font-family: var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---------- Fundo: profundidade, iluminação, ambiente desfocado ---------- */
.viewport {
    position: relative;
    overflow: hidden;
}
.bg-grid {
    position: absolute; inset: -44px; pointer-events: none; opacity: .4;
    background-image:
        linear-gradient(rgba(120, 160, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 160, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(1200px 760px at 50% 15%, #000, transparent 78%);
    animation: grid-drift 50s linear infinite;
}
/* "bokeh" de ambiente corporativo desfocado ao fundo */
.light { position: absolute; top: -8%; width: 15%; height: 62%; border-radius: 50%; filter: blur(46px); pointer-events: none; opacity: .22; background: linear-gradient(180deg, #bfe3ff, transparent 75%); animation: glow-breathe 9s ease-in-out infinite; }
.light--1 { left: 8%; transform: rotate(-9deg); animation-delay: 0s; }
.light--2 { left: 28%; height: 46%; opacity: .14; transform: rotate(-6deg); animation-delay: 2.2s; animation-duration: 11s; }
.light--3 { right: 14%; transform: rotate(8deg); animation-delay: 4.4s; animation-duration: 10s; }
.light--4 { right: 32%; height: 40%; opacity: .12; transform: rotate(6deg); animation-delay: 6.6s; animation-duration: 12s; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .6; }
.blob--a { width: 620px; height: 620px; left: -180px; top: -60px; background: radial-gradient(circle, rgba(130, 90, 255, .55), transparent 70%); animation: drift-a 24s ease-in-out infinite; }
.blob--b { width: 680px; height: 560px; right: -200px; bottom: -120px; background: radial-gradient(circle, rgba(56, 189, 248, .42), transparent 70%); animation: drift-b 28s ease-in-out infinite; }

@keyframes grid-drift {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 44px 44px, 44px 44px; }
}
@keyframes glow-breathe {
    0%, 100% { filter: blur(46px) brightness(1); }
    50%      { filter: blur(46px) brightness(1.75); }
}
@keyframes drift-a {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(34px, 24px) scale(1.05); }
    66%  { transform: translate(-22px, 42px) scale(.97); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes drift-b {
    0%   { transform: translate(0, 0) scale(1); }
    40%  { transform: translate(-36px, -20px) scale(1.06); }
    75%  { transform: translate(18px, -38px) scale(.96); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .85s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: 100ms; }
.cards .card:nth-child(1) { animation: rise .85s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: 140ms; }
.cards .card:nth-child(2) { animation: rise .85s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: 300ms; }
.cards .card:nth-child(3) { animation: rise .85s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: 460ms; }
.cards .card:nth-child(4) { animation: rise .85s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: 620ms; }
.cards .card:nth-child(5) { animation: rise .85s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: 780ms; }

.stage {
    position: relative;
    z-index: 1;
    max-width: 1880px;
    margin: 0 auto;
    padding: clamp(18px, 2vw, 32px) clamp(10px, 1.6vw, 26px) clamp(20px, 2.2vw, 32px);
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 3vw, 46px);
}

/* ---------- Cabeçalho ---------- */
.hdr { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.hdr__logo { width: clamp(260px, 17.5vw, 360px); height: auto; flex: none; filter: drop-shadow(0 0 22px rgba(56, 130, 255, .4)); }
.hdr__title { flex: 1 1 380px; min-width: 280px; text-align: center; }
.hdr__title h1 {
    font-size: clamp(66px, 6.3vw, 102px); font-weight: 800; letter-spacing: 4px; line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, #c6e5ff 52%, #6fc3ff 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(56, 150, 255, .6));
}
.hdr__sub { margin-top: 10px; font-size: clamp(28px, 2.1vw, 38px); font-weight: 700; color: #eef4ff; }
.hdr__desc { margin-top: 16px; font-size: clamp(19px, 1.4vw, 24px); line-height: 1.6; color: var(--mut); }
.hdr__assinatura {
    flex: none; align-self: center; width: clamp(195px, 14.5vw, 270px); text-align: center;
    font-family: var(--cursiva); font-style: italic; font-weight: 700;
    font-size: clamp(24px, 1.9vw, 33px); line-height: 1.22; color: var(--ciano2);
    transform: rotate(-6deg);
    text-shadow: 0 0 20px rgba(56, 189, 248, .6);
}

/* ---------- Cartões ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(8px, 0.7vw, 12px); align-items: stretch; }

.card {
    --a1: var(--azul); --a2: var(--azul2); --glow: rgba(56, 130, 255, .5); --soft: rgba(56, 130, 255, .18);
    position: relative; display: flex; flex-direction: column;
    min-height: 0;
    border-radius: 24px; border: 1px solid rgba(130, 170, 255, .32);
    background: linear-gradient(175deg, rgba(18, 32, 68, .82), rgba(7, 14, 34, .9));
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 28px 64px -22px rgba(0, 0, 0, .68), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 46px -14px var(--glow);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
    background: linear-gradient(160deg, var(--a1), transparent 38%, transparent 62%, var(--a2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: .9;
}
.card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 30%);
}
.card:hover, .card:focus-within { transform: translateY(-8px); box-shadow: 0 36px 76px -20px rgba(0, 0, 0, .72), 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 0 64px -8px var(--glow); }
.card--roxo { --a1: var(--roxo); --a2: var(--roxo2); --glow: rgba(160, 90, 250, .55); --soft: rgba(160, 90, 250, .18); }
.card--azul { --a1: var(--azul); --a2: var(--ciano2); --glow: rgba(56, 175, 255, .52); --soft: rgba(56, 175, 255, .18); }
.card--dourado { --a1: var(--dourado); --a2: var(--dourado2); --glow: rgba(245, 185, 66, .52); --soft: rgba(245, 185, 66, .2); }
.card--verde { --a1: var(--verde); --a2: var(--verde2); --glow: rgba(52, 211, 153, .52); --soft: rgba(52, 211, 153, .2); }
.card--ciano { --a1: var(--ciano); --a2: var(--ciano2); --glow: rgba(56, 189, 248, .52); --soft: rgba(56, 189, 248, .2); }

.card__media { position: relative; margin: 14px 14px 0; }
.card__scene { position: relative; height: clamp(125px, 8.5vw, 155px); border-radius: 16px; overflow: hidden; background: #0a1330; border: 1px solid rgba(130, 170, 255, .2); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55) inset; }
.card__scene::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -40px 50px -30px rgba(0, 0, 0, .55), inset 0 30px 40px -30px rgba(0, 0, 0, .35); pointer-events: none; }
.card__scene-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.card:hover .card__scene-img { transform: scale(1.035); }
.card__badge {
    position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); z-index: 4;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(145deg, var(--a1), var(--a2));
    border: 4px solid rgba(8, 14, 34, .92);
    box-shadow: 0 0 0 1.5px var(--glow), 0 12px 30px -6px var(--glow), 0 0 34px -4px var(--glow);
}
.card__badge .ico { width: 46%; height: 46%; color: #fff; stroke-width: 2.1; }

.card__body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 36px 18px 18px; }
.card__body h2 { font-size: clamp(22px, 1.5vw, 27px); line-height: 1.15; font-weight: 800; color: #f6f9ff; letter-spacing: .2px; }
.card__body > p { font-size: 16px; line-height: 1.4; color: var(--mut); max-width: 40ch; }
.card__list { display: flex; flex-direction: column; gap: 8px; align-self: stretch; text-align: left; margin: 0 4px; }
.card__list li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.35; color: #e4ecff; }
.card__list .ico { width: 21px; height: 21px; padding: 3px; margin-top: -1px; border-radius: 50%; color: var(--a1); background: var(--soft); stroke-width: 2.6; }

.card__cta {
    margin-top: auto; padding-top: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 11px;
    width: 100%; max-width: 420px; padding: 12px 16px; border-radius: 999px;
    font-weight: 700; font-size: 16px; color: #fff;
    background: linear-gradient(90deg, var(--a1), var(--a2));
    box-shadow: 0 16px 36px -12px var(--glow), 0 0 0 1px rgba(255, 255, 255, .08) inset, inset 0 1px 0 rgba(255, 255, 255, .3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.card__cta:hover, .card__cta:focus-visible { transform: translateY(-3px); box-shadow: 0 24px 48px -12px var(--glow), 0 0 0 1px rgba(255, 255, 255, .1) inset, inset 0 1px 0 rgba(255, 255, 255, .35); filter: brightness(1.08); }
.card__cta:active { transform: translateY(0); }
.card__cta .ico { width: 20px; height: 20px; stroke-width: 2.4; transition: transform .2s; }
.card__cta:hover .ico { transform: translateX(5px); }
.card__cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; transform: translateX(-50%); pointer-events: none; }
.toast { padding: 12px 22px; font-size: 15px; color: #e6f5ff; background: rgba(4, 18, 52, .96); border: 1px solid rgba(56, 189, 248, .6); border-radius: 12px; box-shadow: 0 0 24px rgba(56, 189, 248, .3); animation: toastin .35s cubic-bezier(.2, .8, .2, 1) both; }
.toast.is-out { animation: toastout .3s ease forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toastout { to { opacity: 0; transform: translateY(8px); } }

:focus-visible { outline: 2px solid var(--ciano); outline-offset: 2px; }

/* ---------- Responsivo (reorganiza; NUNCA encolhe via scale/zoom) ---------- */
@media (max-width: 900px) {
    .hdr__assinatura { display: none; }
    .card { min-height: 0; }
}
@media (max-width: 620px) {
    .stage { gap: 26px; }
    .hdr__logo { width: 170px; }
    .card__scene { height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
