/* ============================================================
   ZapIA CRM — Shared CSS (nav, footer, tokens, tipografia, botoes)
   Extraido de index.html para reutilizacao em blog e landing pages.
   ============================================================ */

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

/* DESIGN TOKENS */
:root {
    --bg: #131315;
    --bg2: #1b1b1d;
    --bg3: #201f21;
    --bg4: #2a2a2c;
    --primary: #c6c0ff;
    --primary-dim: #9d94e8;
    --primary-container: #5d45fb;
    --on-primary: #2700a1;
    --secondary: #c7bfff;
    --surface: #131315;
    --surface-var: #353437;
    --outline: #474556;
    --outline-dim: rgba(71, 69, 86, .2);
    --text: #e5e1e4;
    --muted: #c8c4d9;
    --muted2: #928ea2;
    --green: #4ade80;
    --gold: #fbbf24;
    --radius: 1rem;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24
}

/* TIPOGRAFIA BASE */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.2
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s
}

a:hover {
    color: var(--secondary)
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 72px;
    background: rgba(32, 31, 33, .6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(71, 69, 86, .15)
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
    text-decoration: none
}

.nav-logo:hover {
    color: var(--text)
}

.nav-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 4px
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s
}

.nav-links a:hover {
    color: var(--primary)
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 700
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .75rem
}

.nav-login {
    color: var(--muted2);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    padding: .5rem .9rem;
    border-radius: 8px;
    border: 1px solid rgba(71, 69, 86, .3);
    transition: all .2s
}

.nav-login:hover {
    color: var(--primary);
    border-color: rgba(198, 192, 255, .3)
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary-container), #7c5cf5);
    color: #fff;
    padding: .6rem 1.4rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: .875rem;
    transition: all .2s;
    box-shadow: 0 4px 20px rgba(93, 69, 251, .3)
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(93, 69, 251, .5);
    color: #fff
}

/* BOTOES */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-container), #7c5cf5);
    color: #fff;
    padding: .85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all .2s;
    box-shadow: 0 4px 20px rgba(93, 69, 251, .4);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    border: none
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(93, 69, 251, .55);
    color: #fff
}

.btn-secondary {
    color: var(--text);
    padding: .85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--outline-dim);
    background: rgba(255, 255, 255, .04);
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .07);
    border-color: var(--outline);
    color: var(--text)
}

/* BADGE */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(93, 69, 251, .12);
    border: 1px solid rgba(93, 69, 251, .25);
    padding: .35rem .9rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease
}

.reveal.vis {
    opacity: 1;
    transform: translateY(0)
}

/* FOOTER */
footer {
    border-top: 1px solid rgba(71, 69, 86, .15);
    padding: 4rem 2rem 2rem;
    background: var(--bg)
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem
}

.footer-brand p {
    font-size: .85rem;
    color: var(--muted);
    margin-top: .75rem;
    max-width: 280px;
    line-height: 1.7
}

.footer-col h5 {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text);
    margin-bottom: 1.25rem
}

.footer-col a {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: .6rem;
    transition: color .2s
}

.footer-col a:hover {
    color: var(--primary)
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(71, 69, 86, .15);
    font-size: .8rem;
    color: var(--muted2)
}

.social-links {
    display: flex;
    gap: .5rem
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    transition: all .2s
}

.social-btn:hover {
    background: var(--primary-container);
    color: #fff
}

.social-btn .mat-icon {
    font-size: 1.1rem
}

/* RESPONSIVIDADE */
@media(max-width:900px) {
    .nav-links {
        display: none
    }

    .footer-top {
        grid-template-columns: 1fr
    }
}

@media(max-width:600px) {
    nav {
        padding: 0 1rem;
        height: 64px
    }

    .nav-logo {
        font-size: 1rem;
        gap: .4rem
    }

    .nav-logo img {
        height: 28px
    }

    .nav-actions {
        gap: .4rem
    }

    .nav-login {
        font-size: .75rem;
        padding: .4rem .6rem
    }

    .nav-cta {
        font-size: .75rem;
        padding: .5rem .9rem
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center
    }
}
