:root {
    --bg-dark: #0A0D14;
    --bg-card: #121824;
    --bg-card-hover: #1A2234;
    --accent-blue: #0066FF;
    --accent-cyan: #00D2FF;
    --text-main: #F0F4F8;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.08);
    --gradient-accent: linear-gradient(135deg, #0066FF 0%, #00D2FF 100%);
    --whatsapp-green: #25D366;
    --whatsapp-hover: #20ba5a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(10, 13, 20, 0.85);
        backdrop-filter: blur(12px);
        z-index: 1000;
        border-bottom: 1px solid var(--border-color);
    }

    .topbar {
        background: rgba(6,10,14,0.7);
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    .topbar-inner {
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:6px 0;
        font-size:13px;
        color:var(--text-muted);
    }

    .top-contact a { color: var(--text-muted); text-decoration: none; margin-right:8px; }

    .top-cta .btn-whatsapp.small { padding:6px 12px; font-size:13px; border-radius:999px; }

    nav {
        display:flex;
        justify-content: space-between;
        align-items:center;
        height:72px;
        gap: 16px;
    }

    .logo {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: 2px;
        color: #FFFFFF;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-right: 32px;
    }

    .logo span {
        color: var(--accent-blue);
    }

    .logo img {
        height: 48px;
        display: block;
        filter: drop-shadow(0 8px 24px rgba(2,6,23,0.6));
    }

    .nav-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; }

    .nav-left { display:flex; align-items:center; }

    .nav-right { display:flex; align-items:center; gap:18px; }

    .nav-links {
        display: flex;
        gap: 24px;
        list-style: none;
        align-items:center;
    }

    .nav-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
        font-size: 15px;
    }

    .nav-links a:hover {
        color: var(--text-main);
    }

    .btn-whatsapp {
        background-color: var(--whatsapp-green);
        color: #FFF;
        padding: 12px 24px;
        border-radius: 50px;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
        border: none;
        cursor: pointer;
    }

    .btn-whatsapp:hover {
        background-color: var(--whatsapp-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    }

    .btn-primary {
        background: var(--gradient-accent);
        color: #FFF;
        padding: 14px 32px;
        border-radius: 8px;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(0, 102, 255, 0.5);
    }

    .header-demo { width:48px; height:48px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; }

    .hero {
        padding: 180px 0 100px;
        position: relative;
        background: radial-gradient(circle at 50% 20%, rgba(0, 102, 255, 0.12) 0%, rgba(10, 13, 20, 0.0) 60%), url('/img/hero-maztech.webp') center/cover no-repeat;
        text-align: center;
        color: var(--text-main);
    }

    .hero-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        filter: saturate(0.98) contrast(0.98) brightness(0.95);
    }

    .hero > .container { position: relative; z-index: 1; }

    .hero { min-height: 520px; background-repeat: no-repeat; }

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(6,10,14,0.45) 0%, rgba(6,10,14,0.15) 100%);
        pointer-events: none;
    }

    .hero-badge {
        display: inline-block;
        padding: 6px 16px;
        background: rgba(0, 102, 255, 0.1);
        border: 1px solid rgba(0, 102, 255, 0.3);
        border-radius: 50px;
        color: var(--accent-cyan);
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 24px;
    }

    .hero h1 {
        font-size: 52px;
        font-weight: 800;
        line-height: 1.15;
        margin-bottom: 24px;
        background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero h1 span {
        background: var(--gradient-accent);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero p {
        font-size: 18px;
        color: var(--text-muted);
        max-width: 760px;
        margin: 0 auto 40px;
    }

    .hero-ctas {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .highlights {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
        margin-top: 80px;
    }

    .highlight-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        padding: 32px;
        border-radius: 16px;
        text-align: left;
        transition: transform 0.3s, border-color 0.3s;
    }

    .highlight-card:hover {
        transform: translateY(-5px);
        border-color: rgba(0, 102, 255, 0.4);
    }

    .highlight-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        background: rgba(0, 102, 255, 0.1);
        color: var(--accent-cyan);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        margin-bottom: 20px;
    }

    .highlight-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .highlight-card p {
        font-size: 14px;
        color: var(--text-muted);
    }

    /* Tratamento geral para imagens do projeto */
    img {
        max-width: 100%;
        height: auto;
        display: block;
        image-rendering: optimizeQuality;
        -webkit-font-smoothing: antialiased;
    }

    /* Prevent oversized images from breaking layout */
    .about-media img,
    .partner-card img,
    .highlight-card img,
    .solution-item img {
        max-width: 720px;
        width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    /* Ensure hero background scales properly */
    .hero {
        background-position: center;
        background-size: cover;
    }

    /* Keep header spacing consistent so fixed header doesn't overlap content */
    body { padding-top: 92px; }

    @media (max-width: 900px) {
        body { padding-top: 84px; }
        .about-media img { max-width: 100%; }
        .hero h1 { font-size: 32px; }
    }

    .section-header {
        text-align: center;
        margin-bottom: 60px;
    }

    .section-header h2 {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 16px;
    }

    .section-header p {
        color: var(--text-muted);
        font-size: 16px;
        max-width: 600px;
        margin: 0 auto;
    }

    .challenges {
        padding: 100px 0;
        background: rgba(18, 24, 36, 0.5);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }

    .grid-3 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 24px;
    }

    .challenge-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 28px;
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .challenge-icon {
        font-size: 24px;
        color: #FF5252;
        background: rgba(255, 82, 82, 0.1);
        padding: 14px;
        border-radius: 12px;
    }

    .challenge-content h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .challenge-content p {
        font-size: 14px;
        color: var(--text-muted);
    }

    .solution {
        padding: 100px 0;
    }

    .solution-box {
        background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 210, 255, 0.05) 100%);
        border: 1px solid rgba(0, 102, 255, 0.3);
        border-radius: 24px;
        padding: 60px 40px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .solution-box h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .solution-box p {
        font-size: 18px;
        color: var(--text-muted);
        max-width: 800px;
        margin: 0 auto 40px;
    }

    .key-feature {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: var(--bg-card);
        padding: 16px 28px;
        border-radius: 50px;
        border: 1px solid var(--border-color);
        font-weight: 600;
        color: var(--accent-cyan);
        font-size: 18px;
    }

    .how-it-works {
        padding: 100px 0;
        background: rgba(18, 24, 36, 0.3);
    }

    .steps-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 50px;
    }

    .step-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 24px;
        position: relative;
    }

    .step-number {
        font-size: 14px;
        font-weight: 700;
        color: var(--accent-cyan);
        background: rgba(0, 210, 255, 0.1);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 16px;
    }

    .step-card h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .step-card p {
        font-size: 13px;
        color: var(--text-muted);
    }

    .benefits {
        padding: 100px 0;
    }

    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 32px;
    }

    @media (max-width: 768px) {
        .benefits-grid {
            grid-template-columns: 1fr;
        }
    }

    .benefit-column {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 40px;
    }

    .benefit-column.municipio {
        border-top: 4px solid var(--accent-blue);
    }

    .benefit-column.contribuinte {
        border-top: 4px solid var(--accent-cyan);
    }

    .benefit-header {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 30px;
    }

    .benefit-header i {
        font-size: 28px;
        color: var(--accent-cyan);
    }

    .benefit-header h3 {
        font-size: 24px;
    }

    .benefit-list {
        list-style: none;
    }

    .benefit-list li {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 18px;
        font-size: 16px;
        color: var(--text-main);
    }

    .benefit-list li i {
        color: #10B981;
        font-size: 18px;
    }

    .cta-banner {
        padding: 80px 0;
        background: linear-gradient(180deg, var(--bg-dark) 0%, #0F172A 100%);
        border-top: 1px solid var(--border-color);
        text-align: center;
    }

    .cta-banner h2 {
        font-size: 38px;
        margin-bottom: 16px;
    }

    .cta-banner p {
        color: var(--text-muted);
        font-size: 18px;
        margin-bottom: 32px;
    }

    footer {
        background: #06080D;
        padding: 40px 0;
        border-top: 1px solid var(--border-color);
        text-align: center;
        color: var(--text-muted);
        font-size: 14px;
    }

    .whatsapp-float {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background-color: var(--whatsapp-green);
        color: #FFF;
        width: 60px;
        height: 60px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
        z-index: 9999;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .whatsapp-float:hover {
        transform: scale(1.1);
        background-color: var(--whatsapp-hover);
    }

    /* Partners section */
    .partners {
        padding: 60px 0 80px;
        background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.00) 100%);
        border-top: 1px solid rgba(255,255,255,0.02);
    }

    .partners-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 24px;
        align-items: center;
        justify-items: center;
        margin-top: 24px;
    }

    .partner-card {
        background: rgba(255,255,255,0.02);
        padding: 20px 28px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 320px;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        border: 1px solid rgba(255,255,255,0.03);
    }

    .partner-card img {
        max-height: 56px;
        object-fit: contain;
        opacity: 0.95;
    }

    .partner-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(2,6,23,0.55);
    }

    /* Footer styles */
    .site-footer { padding: 60px 0 24px; background: #06080D; color: var(--text-muted); border-top: 1px solid var(--border-color); }

    .footer-grid { display:grid; grid-template-columns: 1fr auto; gap: 24px; padding-bottom: 18px; align-items: center; }

    .footer-col h4 { color: var(--text-main); margin-bottom: 12px; }

    .logo-footer img { height:40px; display:block; }

    .footer-brand { display:flex; align-items:center; gap:12px; }
    .footer-desc { margin:0; font-size:14px; color:var(--text-muted); max-width:360px; }

    /* Right-align contacts in footer on wide screens (but center header/paragraphs) */
    .footer-grid .footer-col:last-child { text-align: right; }
    .footer-contact h4,
    .footer-contact p { text-align: center; margin: 0; }

    /* Responsive: stack footer columns and center on small screens */
    @media (max-width: 900px) {
        .footer-grid { grid-template-columns: 1fr; text-align: center; }
        .footer-grid .footer-col:last-child { text-align: center; }
        .footer-brand { justify-content: center; }
    }

    .footer-col ul { list-style:none; padding:0; margin:0; }

    .footer-col ul li { margin-bottom:8px; }

    .footer-col a { color: var(--text-muted); text-decoration:none; }

    .footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:12px; border-top:1px solid rgba(255,255,255,0.02); margin-top:18px; }

    .footer-links a { margin-left:16px; color:var(--text-muted); text-decoration:none; font-size:14px; }

    @media (max-width: 900px) {
        .footer-grid { grid-template-columns: 1fr 1fr; }
        .footer-bottom { flex-direction:column; gap:8px; align-items:flex-start; }
    }

    /* About */
    .about-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        align-items: center;
        padding: 60px 0;
    }

    .about-media img {
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(2,6,23,0.5);
        width: 100%;
        height: auto;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(.2,.9,.3,1), filter 0.3s ease;
        will-change: transform, filter;
        filter: contrast(1.02) saturate(1.05) brightness(0.98);
    }

    .about-content h2 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .about-media { overflow: hidden; border-radius: 16px; }

    .about-media img:hover { transform: scale(1.035); filter: contrast(1.06) saturate(1.08); }

    /* small helper to ensure images are light-weight visually */
    .about-media img[decoding] { image-rendering: optimizeQuality; }

    .about-features {
        list-style: none;
        margin-top: 18px;
        display: grid;
        gap: 10px;
    }

    .about-features li strong { color: var(--accent-cyan); }

    .about-ctas { margin-top: 22px; }

    /* Solutions */
    .solutions-overview { padding: 60px 0; }

    .solutions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
        margin-top: 24px;
    }

    .solution-item {
        background: var(--bg-card);
        padding: 28px;
        border-radius: 14px;
        text-align: center;
        border: 1px solid var(--border-color);
    }

    .solution-item i { font-size: 28px; color: var(--accent-blue); margin-bottom: 12px; }

    .solution-item h4 { margin-bottom: 8px; }

    /* Contact */
    .contact {
        padding: 60px 0;
        background: rgba(0,0,0,0.25);
        border-top: 1px solid rgba(255,255,255,0.02);
    }

    .contact-inner { display:flex; gap: 24px; align-items:center; justify-content:space-between; }

    .contact-copy h2 { font-size:28px; margin-bottom:8px; }

    .contact-actions { display:flex; gap: 16px; }

    @media (max-width: 900px) {
        .about-inner { grid-template-columns: 1fr; }
        .contact-inner { flex-direction: column; align-items: flex-start; }
    }