/* ==========================================================
   Zaib Tecnologia — site institucional
   Identidade: fundo escuro + degradê #F2A516 → #F28322
   ========================================================== */

:root {
    --bg: #0D0D0D;
    --bg-2: #141414;
    --bg-3: #1C1C1C;
    --line: #2A2A2A;
    --text: #F5F5F5;
    --muted: #A3A3A3;
    --amber: #F2A516;
    --orange: #F28322;
    --red: #E2442F;
    --grad: linear-gradient(135deg, var(--amber) 0%, var(--orange) 100%);
    --blue: #2F6BFF;
    --blue-2: #5B8CFF;
    --radius: 16px;
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 12px;
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--primary { background: var(--grad); color: #111; box-shadow: 0 10px 30px -10px rgba(242,131,34,.6); }
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(242,131,34,.8); }
.btn--ghost { border: 1px solid #3a3a3a; color: var(--text); }
.btn--ghost:hover { border-color: var(--amber); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(47,107,255,.7); }
.btn--blue:hover { background: var(--blue-2); }
.btn--dark { background: #111; color: #fff; }
.btn--dark:hover { background: #000; }
.ico-wa { width: 20px; height: 20px; fill: #25D366; }

/* ---------- Faixa de novidade ---------- */
.announce {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 9px 16px;
    font-size: 14px;
    text-align: center;
    background: linear-gradient(90deg, #12204a, #1d3a8a 50%, #12204a);
    color: #dbe5ff;
    border-bottom: 1px solid #23366d;
}
.announce strong { color: #fff; }
.announce__tag {
    background: var(--grad);
    color: #111;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
}
.announce__arrow { transition: transform .2s; }
.announce:hover .announce__arrow { transform: translateX(4px); }

/* ---------- Cabeçalho ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13,13,13,.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header__logo img { height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav__new { display: inline-flex; align-items: center; gap: 6px; }
.pill {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: var(--blue); color: #fff; padding: 2px 7px; border-radius: 999px;
}

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero__glow {
    position: absolute; inset: -30% -10% auto auto;
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(242,131,34,.28) 0%, rgba(242,165,22,.08) 40%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    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 30% 40%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; }
.hero h1 { font-size: clamp(42px, 7vw, 80px); font-weight: 800; }
.hero__platforms { margin-top: 14px; font-size: 22px; font-weight: 600; color: var(--muted); }
.hero__lead { margin-top: 22px; font-size: 18px; color: #cfcfcf; max-width: 560px; }
.hero__lead strong { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats { display: grid; gap: 14px; }
.stat {
    display: flex; align-items: baseline; gap: 16px;
    padding: 20px 24px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.stat__num { font-size: 40px; font-weight: 800; min-width: 104px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: 15px; }

/* ---------- Seções ---------- */
.section { padding: 100px 0; }
.section__head { text-align: center; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
    position: relative;
    display: flex; flex-direction: column;
    padding: 30px 26px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .25s ease, border-color .25s ease;
    overflow: hidden;
}
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.card:hover { transform: translateY(-6px); border-color: #3a3a3a; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: rgba(242,131,34,.12);
    margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card__link { margin-top: 22px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.card__link span { display: inline-block; transition: transform .2s; }
.card__link:hover span { transform: translateX(4px); }

/* ---------- ContiFlow ---------- */
.contiflow {
    position: relative;
    background:
        radial-gradient(ellipse at 85% 30%, rgba(47,107,255,.18), transparent 55%),
        linear-gradient(180deg, #0D0D0D 0%, #0B1020 50%, #0D0D0D 100%);
    border-top: 1px solid #18213d;
    border-bottom: 1px solid #18213d;
}
.contiflow__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }

.badge-launch {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: #c9d7ff; background: rgba(47,107,255,.14); border: 1px solid rgba(91,140,255,.35);
    padding: 6px 12px; border-radius: 999px;
}
.badge-launch__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 0 rgba(91,140,255,.7); animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(91,140,255,.7); }
    70% { box-shadow: 0 0 0 10px rgba(91,140,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(91,140,255,0); }
}

.contiflow__brand { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.contiflow__brand img { width: 48px; height: 48px; }
.contiflow__brand b { color: var(--blue-2); }
.contiflow h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
.contiflow__lead { margin-top: 16px; color: #c3c8d6; font-size: 17px; }

.features { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.features li { position: relative; padding-left: 30px; }
.features li::before {
    content: ""; position: absolute; left: 0; top: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(47,107,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B8CFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.features strong { display: block; font-size: 15px; }
.features span { display: block; color: #9aa3b8; font-size: 14px; line-height: 1.5; margin-top: 2px; }

/* Mockup do painel */
.mock {
    background: #0F1526;
    border: 1px solid #243055;
    border-radius: 18px;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
    overflow: hidden;
    transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
    transition: transform .6s ease;
}
.mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #0B1120; border-bottom: 1px solid #1d2747; }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mock__bar i:nth-child(2) { background: #febc2e; }
.mock__bar i:nth-child(3) { background: #28c840; }
.mock__bar span { margin-left: 12px; font-size: 12px; color: #6b7699; background: #121a31; padding: 3px 12px; border-radius: 6px; }
.mock__body { display: grid; grid-template-columns: 56px 1fr; min-height: 340px; }
.mock__side { background: #0B1120; border-right: 1px solid #1d2747; padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mock__side img { width: 28px; height: 28px; margin-bottom: 8px; }
.mock__side b { width: 22px; height: 22px; border-radius: 6px; background: #1a2440; }
.mock__side b.on { background: var(--blue); }
.mock__main { padding: 18px; display: grid; gap: 14px; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__kpis div { background: #131c35; border: 1px solid #1f2a4d; border-radius: 10px; padding: 10px 12px; }
.mock__kpis small { display: block; font-size: 10.5px; color: #7d89ad; }
.mock__kpis strong { font-size: 22px; font-weight: 700; }
.mock__kpis .warn { color: var(--amber); }
.mock__chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; background: #131c35; border: 1px solid #1f2a4d; border-radius: 10px; padding: 12px; }
.mock__chart span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--blue-2), var(--blue)); opacity: .9; }
.mock__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock__list li { display: flex; align-items: center; gap: 10px; font-size: 13px; background: #131c35; border: 1px solid #1f2a4d; border-radius: 8px; padding: 8px 12px; }
.mock__list em { margin-left: auto; font-style: normal; color: #7d89ad; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot--red { background: #ef4444; }
.dot--amber { background: var(--amber); }
.dot--green { background: #22c55e; }

/* ---------- CTA ---------- */
.cta {
    position: relative;
    text-align: center;
    padding: 70px 30px;
    border-radius: 24px;
    background: var(--grad);
    color: #111;
    overflow: hidden;
}
.cta::after {
    content: ""; position: absolute; right: -60px; bottom: -80px;
    width: 300px; height: 300px;
    background: url("../images/icone-zaib.png") center / contain no-repeat;
    opacity: .15;
    pointer-events: none;
}
.cta h2 { font-size: clamp(30px, 4.5vw, 50px); font-weight: 800; position: relative; z-index: 1; }
.cta p { max-width: 640px; margin: 16px auto 30px; font-size: 18px; color: #2a1a07; position: relative; z-index: 1; }
.cta .btn { position: relative; z-index: 1; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 36px; }
.footer__inner { display: grid; justify-items: center; gap: 22px; text-align: center; }
.footer__inner > img { height: 56px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 14px; color: var(--muted); }
.footer__nav a:hover { color: var(--text); }
.footer__legal { font-size: 13px; color: #737373; max-width: 760px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 60;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25D366;
    box-shadow: 0 10px 28px -6px rgba(37,211,102,.6);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .mock, .mock:hover { transform: none; }
    .badge-launch__dot { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .services { grid-template-columns: repeat(2, 1fr); }
    .hero__inner, .contiflow__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero__stats { grid-template-columns: repeat(3, 1fr); }
    .stat { flex-direction: column; gap: 4px; }
    .stat__num { min-width: 0; }
    .mock { transform: none; }
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #111; border-bottom: 1px solid var(--line);
        padding: 8px 20px 20px;
        max-height: 0; overflow: hidden; visibility: hidden;
        transition: max-height .3s ease, visibility .3s;
    }
    .nav.is-open { max-height: 420px; visibility: visible; }
    .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #1f1f1f; }
    .nav__cta { margin-top: 16px; }
    .features { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .section { padding: 72px 0; }
    .hero { padding: 64px 0 60px; }
    .services { grid-template-columns: 1fr; }
    .hero__stats { grid-template-columns: 1fr; }
    .stat { flex-direction: row; align-items: center; }
    .hero__actions .btn { width: 100%; }
    .mock__kpis strong { font-size: 18px; }
    .mock__list em { display: none; }
    .cta { padding: 52px 20px; }
    .announce { font-size: 13px; }
    .announce__arrow { display: none; }
}
