:root {
            --primary: #0F2743;
            --secondary: #1F4E79;
            --neutral: #F2F4F7;
            --accent: #F5B301;
            --white: #FFFFFF;
            --text-dark: #1A1A1A;
            --text-gray: #6B7280;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            color: var(--text-dark);
            line-height: 1.6;
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            line-height: 1.2;
        }

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

        /* Topbar */
        .topbar {
            background: var(--primary);
            color: var(--white);
            padding: 10px 0;
            font-size: 14px;
        }

        .topbar-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .topbar-contacts {
            display: flex;
            gap: 25px;
            flex-wrap: wrap;
        }

        .topbar-contacts a {
            color: var(--white);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: color 0.3s;
        }

        .topbar-contacts a:hover {
            color: var(--accent);
        }

        .topbar-cta {
            background: var(--accent);
            color: var(--primary);
            padding: 8px 20px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .topbar-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(245, 179, 1, 0.3);
        }

        /* Header */
        header {
            background: var(--white);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            transition: box-shadow 0.3s;
        }

        header.scrolled {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
        }

        .logo {
            font-size: 24px;
            font-weight: 800;
            color: var(--primary);
            text-decoration: none;
            margin-bottom: -10px;
        }

        .nav-links {
            display: flex;
            gap: 30px;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-dark);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
        }

        .menu-toggle span {
            width: 25px;
            height: 3px;
            background: var(--primary);
            transition: 0.3s;
        }

        /* Hero */
        .hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: var(--white);
            padding: 100px 0;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
            opacity: 0.3;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
        }

        .hero h1 {
            font-size: 48px;
            margin-bottom: 20px;
            line-height: 1.1;
        }

        .hero p {
            font-size: 18px;
            margin-bottom: 35px;
            color: rgba(255, 255, 255, 0.9);
        }

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

        .btn {
            padding: 14px 32px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            display: inline-block;
            border: none;
            cursor: pointer;
            font-size: 16px;
        }

        .btn-primary {
            background: var(--accent);
            color: var(--primary);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(245, 179, 1, 0.4);
        }

        .btn-secondary {
            background: transparent;
            color: var(--white);
            border: 2px solid var(--white);
        }

        .btn-secondary:hover {
            background: var(--white);
            color: var(--primary);
        }

        /* Trust Bar */
        .trust-bar {
            padding: 40px 0;
            background: var(--neutral);
            text-align: center;
        }

        .trust-bar p {
            font-size: 14px;
            color: var(--text-gray);
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .trust-logos {
            display: flex;
            justify-content: center;
            gap: 50px;
            flex-wrap: wrap;
            align-items: center;
        }

        .trust-logo {
            width: 140px;
            height: 60px;
            background: var(--white);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: var(--text-gray);
            font-size: 12px;
        }

        /* Section Styles */
        section {
            padding: 80px 0;
        }

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

        .section-header h2 {
            font-size: 38px;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .section-header p {
            font-size: 18px;
            color: var(--text-gray);
            max-width: 700px;
            margin: 0 auto;
        }

        /* Services Grid */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }

        .service-card {
            background: var(--white);
            border-radius: 16px;
            padding: 35px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            transition: all 0.3s;
            border: 2px solid transparent;
        }

        .service-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
            border-color: var(--accent);
        }

        .service-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: var(--white);
            font-size: 28px;
        }

        .service-card h3 {
            font-size: 20px;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .service-card ul {
            list-style: none;
            margin-bottom: 20px;
        }

        .service-card li {
            padding: 8px 0;
            padding-left: 25px;
            position: relative;
            font-size: 15px;
            color: var(--text-gray);
        }

        .service-card li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: bold;
        }

        .service-card .btn-link {
            color: var(--secondary);
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: gap 0.3s;
        }

        .service-card .btn-link:hover {
            gap: 10px;
            color: var(--accent);
        }

        /* Tech Solutions */
        .tech-solutions {
            background: var(--neutral);
        }

        .tech-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 40px;
        }

        .tech-card {
            background: var(--white);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            transition: transform 0.3s;
        }

        .tech-card:hover {
            transform: translateY(-8px);
        }

        .tech-image {
            height: 200px;
            background: linear-gradient(135deg, var(--secondary), var(--primary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 48px;
        }

        .tech-content {
            padding: 30px;
        }

        .tech-content h3 {
            color: var(--primary);
            margin-bottom: 10px;
            font-size: 22px;
        }

        .tech-content .tech-subtitle {
            color: var(--accent);
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .tech-content p {
            color: var(--text-gray);
            margin-bottom: 15px;
            line-height: 1.7;
        }

        /* Projects */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }

        .project-card {
            background: var(--white);
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--accent);
            transform: scaleY(0);
            transition: transform 0.3s;
        }

        .project-card:hover::before {
            transform: scaleY(1);
        }

        .project-card:hover {
            transform: translateX(8px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
        }

        .project-tag {
            display: inline-block;
            background: var(--neutral);
            color: var(--secondary);
            padding: 5px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .project-card h3 {
            color: var(--primary);
            margin-bottom: 8px;
            font-size: 20px;
        }

        .project-client {
            color: var(--accent);
            font-weight: 600;
            margin-bottom: 15px;
            font-size: 15px;
        }

        .project-card ul {
            list-style: none;
        }

        .project-card li {
            padding: 6px 0;
            padding-left: 20px;
            position: relative;
            font-size: 14px;
            color: var(--text-gray);
        }

        .project-card li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--secondary);
        }

        /* Differentials */
        .differentials {
            background: var(--primary);
            color: var(--white);
        }

        .differentials .section-header h2 {
            color: var(--white);
        }

        .differentials .section-header p {
            color: rgba(255, 255, 255, 0.8);
        }

        .differentials-grid {
            display: grid;
            /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            margin-top: 40px;
        }

        .differential-item {
            text-align: center;
            padding: 30px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
        }

        .differential-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-5px);
        }

        .differential-icon {
            font-size: 42px;
            margin-bottom: 15px;
        }

        .differential-item h3 {
            font-size: 18px;
            margin-bottom: 10px;
            color: var(--accent);
        }

        .differential-item p {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
        }

        /* About */
        .about {
            background: var(--neutral);
        }

        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-text h2 {
            color: var(--primary);
            margin-bottom: 20px;
            font-size: 36px;
        }

        .about-text p {
            color: var(--text-gray);
            margin-bottom: 20px;
            line-height: 1.8;
            font-size: 16px;
            text-align: justify;
        }

        .about-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-top: 30px;
        }

        .stat-item {
            text-align: center;
            padding: 20px;
            background: var(--white);
            border-radius: 12px;
        }

        .stat-number {
            font-size: 36px;
            font-weight: 800;
            color: var(--accent);
            display: block;
        }

        .stat-label {
            font-size: 14px;
            color: var(--text-gray);
            margin-top: 5px;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 25px;
        }

        .social-links a {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            /* background: var(--secondary);
            color: var(--white); */
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 20px;
        }

        .social-links a:hover {
            /* background: var(--accent); */
            transform: translateY(-3px);
        }

        /* CTA Section */
        .cta-section {
            background: linear-gradient(135deg, var(--secondary), var(--primary));
            color: var(--white);
            text-align: center;
            padding: 80px 20px;
        }

        .cta-section h2 {
            font-size: 42px;
            margin-bottom: 20px;
        }

        .cta-section p {
            font-size: 18px;
            margin-bottom: 35px;
            color: rgba(255, 255, 255, 0.9);
        }

        .cta-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* Contact Form */
        .contact-form {
            max-width: 700px;
            margin: 0 auto;
            background: var(--white);
            padding: 40px;
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--primary);
            font-size: 14px;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #E5E7EB;
            border-radius: 8px;
            font-size: 15px;
            font-family: 'Inter', sans-serif;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .checkbox-group {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-top: 20px;
        }

        .checkbox-group input[type="checkbox"] {
            width: auto;
            margin-top: 4px;
        }

        .checkbox-group label {
            font-weight: 400;
            font-size: 13px;
            color: var(--text-gray);
        }

        .form-submit {
            width: 100%;
            padding: 16px;
            background: var(--accent);
            color: var(--primary);
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 10px;
        }

        .form-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(245, 179, 1, 0.4);
        }

        /* Footer */
        footer {
            background: var(--primary);
            color: var(--white);
            padding: 60px 0 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-section h3 {
            margin-bottom: 20px;
            color: var(--accent);
            font-size: 18px;
        }

        .footer-section p,
        .footer-section a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            display: block;
            margin-bottom: 10px;
            font-size: 14px;
            line-height: 1.6;
        }

        .footer-section a:hover {
            color: var(--accent);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 20px;
            text-align: center;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.6);
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--primary);
            color: var(--white);
            padding: 18px 24px;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            display: none;
            align-items: center;
            gap: 12px;
            z-index: 2000;
            animation: slideIn 0.3s ease-out;
        }

        .toast.success {
            background: #10B981;
        }

        .toast.error {
            background: #EF4444;
        }

        .toast.show {
            display: flex;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* Cookie Banner */
        .cookie-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--primary);
            color: var(--white);
            padding: 20px;
            display: none;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            z-index: 1500;
            box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        }

        .cookie-banner.show {
            display: flex;
        }

        .cookie-banner p {
            font-size: 14px;
            margin: 0;
        }

        .cookie-banner button {
            background: var(--accent);
            color: var(--primary);
            border: none;
            padding: 10px 24px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
        }

        /* Modal
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal.show {
            display: flex;
        }

        .modal-content {
            background: var(--white);
            border-radius: 16px;
            max-width: 600px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
            padding: 40px;
            position: relative;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: var(--text-gray);
            line-height: 1;
        }

        .modal-content h3 {
            color: var(--primary);
            margin-bottom: 20px;
            font-size: 26px;
        }

        .modal-content p {
            color: var(--text-gray);
            line-height: 1.7;
            margin-bottom: 15px;
        }

        .modal-content ul {
            list-style: none;
            margin: 20px 0;
        }

        .modal-content li {
            padding: 10px 0;
            padding-left: 25px;
            position: relative;
            color: var(--text-gray);
        }

        .modal-content li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: bold;
        }
            */

        /* Modal base 
        .modal{
            position: fixed;
            inset: 0;
            display: none;            
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,.5);
            z-index: 10000;
        }
        .modal.show{              
            display: flex;
        }
        .modal .modal-content{
            background: #fff;
            width: min(90vw, 720px);
            max-height: 85vh;
            overflow: auto;
            border-radius: 12px;
            padding: 24px 28px;
            position: relative;
            box-shadow: 0 20px 60px rgba(0,0,0,.25);
        }
        .modal .modal-close{
            position: absolute;
            top: 10px; right: 12px;
            font-size: 28px;
            line-height: 1;
            background: transparent;
            border: 0;
            cursor: pointer;
        }*/


        /* Responsive */
        @media (max-width: 768px) {
            .nav-links {
                position: fixed;
                top: 80px;
                left: 0;
                right: 0;
                background: var(--white);
                flex-direction: column;
                padding: 20px;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                display: none;
            }

            .nav-links.active {
                display: flex;
            }

            .menu-toggle {
                display: flex;
            }

            .hero h1 {
                font-size: 32px;
            }

            .hero p {
                font-size: 16px;
            }

            .section-header h2 {
                font-size: 28px;
            }

            .about-content {
                grid-template-columns: 1fr;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
            }

            .topbar-content {
                flex-direction: column;
                text-align: center;
            }

            .cookie-banner {
                flex-direction: column;
                text-align: center;
            }

            .cta-section h2 {
                font-size: 28px;
            }
        }

        :root{
            --bg:#0f172a; --card:#fff; --muted:#64748b; --accent:#f59e0b;
            --stroke:rgba(2,6,23,.08); --shadow:0 20px 50px rgba(2,6,23,.25);
            }

            /* overlay */
            .modal{
            position:fixed; inset:0; display:none; place-items:center; padding:24px;
            z-index:10000; background:rgba(15,23,42,.45); backdrop-filter:blur(6px);
            animation:fadeIn .2s ease-out both;
            }
            .modal.show{ display:grid; }
            @keyframes fadeIn{ from{opacity:0} to{opacity:1} }

            /* painel */
            .modal-panel{
            width:min(820px,100%); background:color-mix(in srgb,var(--card) 85%, transparent);
            border:1px solid var(--stroke); border-radius:16px; box-shadow:var(--shadow);
            padding:24px 26px; position:relative; animation:slideUp .25s ease-out both;
            }
            @keyframes slideUp{ from{transform:translateY(10px);opacity:.98} to{transform:translateY(0);opacity:1} }

            /* header */
            .modal-header{
            display:grid; grid-template-columns:40px 1fr; gap:14px; align-items:start; margin-bottom:14px;
            }
            .modal-icon{ width:40px;height:40px; display:grid;place-items:center; color:var(--accent); background:#0b1220; border-radius:12px; }
            .modal-title{ margin:0; font-size:1.35rem; line-height:1.25; color:#0b1220; font-weight:800; }
            .modal-subtitle{ margin:4px 0 0; color:var(--muted); font-size:.975rem; }

            /* body (conteúdo injetado) */
            .modal-body{ padding:8px 2px 4px; }
            .modal-body p{ margin:0 0 10px; color:#0b1220; }
            .modal-body ul{ margin:8px 0 0; padding-left:0; list-style:none; display:grid; gap:6px; }
            .modal-body li{ position:relative; padding-left:26px; color:#0b1220; }
            .modal-body li::before{
            content:""; position:absolute; left:0; top:7px; width:16px; height:16px; border-radius:999px;
            background:radial-gradient(circle at 50% 50%, var(--accent) 0 45%, transparent 46% 100%),
                        conic-gradient(from 0turn, var(--accent) 0 1turn);
            mask: radial-gradient(circle 6px at 50% 50%, transparent 57%, #000 58%); opacity:.95;
            }

            /* footer */
            .modal-footer{ display:flex; gap:10px; justify-content:flex-end; margin-top:18px; padding-top:14px; border-top:1px solid var(--stroke); }

            /* botões */
            .btn{
            appearance:none; border:1px solid var(--stroke); background:#fff; color:#0b1220;
            padding:10px 14px; border-radius:10px; font-weight:600; cursor:pointer;
            transition:transform .06s ease, box-shadow .2s ease, border-color .2s ease;
            }
            .btn:hover{ transform:translateY(-1px); box-shadow:0 8px 24px rgba(2,6,23,.08); }
            .btn-primary{ background:var(--accent); border-color:color-mix(in srgb, var(--accent) 70%, #000 0%); color:#0b1220; }
            .btn-primary:hover{ box-shadow:0 10px 28px rgba(245,158,11,.35); }

            /* botão X */
            .modal-x{
            position:absolute; top:12px; right:12px; width:36px; height:36px; display:grid; place-items:center;
            background:#fff; color:#0b1220; border:1px solid var(--stroke); border-radius:10px; cursor:pointer;
            }
            .modal-x:hover{ box-shadow:0 10px 24px rgba(2,6,23,.08); }

            /* responsivo */
            @media (max-width:560px){
            .modal-panel{ padding:18px; border-radius:14px; }
            .modal-header{ grid-template-columns:36px 1fr; }
            .modal-title{ font-size:1.15rem; }
            .modal-footer{ flex-direction:column-reverse; align-items:stretch; }
            }

            /* ===== Fix 1: centralizar o modal na tela ===== */
            .modal{
            /* quando abrir, vira flex e centraliza */
            }
            .modal.show{
            display: flex !important;
            align-items: center;
            justify-content: center;
            padding: 24px;
            }

            /* Painel precisa permitir posicionamento absoluto do X e centralizar por segurança */
            .modal-panel,
            .modal .modal-content{
            position: relative;        /* p/ ancorar o botão X */
            margin: 0 auto;            /* fallback de centralização */
            width: min(820px, 96vw);   /* garante largura confortável */
            max-height: 86vh;          /* evita estourar a tela */
            overflow: auto;            /* scroll interno se precisar */
            }

            /* ===== Fix 2: botão X visível ===== */
            .modal-x{
            position: absolute;
            top: 10px;
            right: 12px;
            width: 36px;
            height: 36px;
            display: grid;
            place-items: center;
            background: #ffffff;
            color: #0b1220;
            border: 1px solid rgba(2,6,23,.08);
            border-radius: 10px;
            cursor: pointer;
            z-index: 10;               /* garante ficar acima do header */
            }
            .modal-x svg{
            display: block;
            pointer-events: none;
            }

            /* ===== Fix 3: footer alinhado e respirando ===== */
            .modal-footer{
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 12px;
            margin-top: 18px;
            padding-top: 16px;
            border-top: 1px solid rgba(2,6,23,.08);
            }

            /* Botões mais consistentes */
            .modal-footer .btn{
            min-height: 40px;
            padding: 10px 16px;
            border-radius: 10px;
            font-weight: 600;
            }

            /* ===== Responsivo ===== */
            @media (max-width: 560px){
            .modal-footer{
                flex-direction: column-reverse;
                align-items: stretch;
                gap: 10px;
            }
            .modal-x{
                top: 8px; right: 8px;
                width: 34px; height: 34px;
            }
            }
                        /* Overlay centralizado */
            .modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center;
                    padding:28px; background:rgba(15,23,42,.50); backdrop-filter:blur(6px); z-index:10000; }
            .modal.show{ display:flex!important; }

            /* Card do modal – mais clean e elegante */
            .modal-card{
            width:min(760px, 96vw);
            background:#fff;
            border-radius:18px;
            border:1px solid rgba(2,6,23,.08);
            box-shadow: 0 24px 60px rgba(2,6,23,.22);
            padding:22px 22px 18px;
            position:relative;
            }

            /* Cabeçalho */
            .modal-head{
            display:flex; align-items:center; gap:12px;
            padding:6px 8px; margin:-6px -6px 12px;  /* encosta mais no topo */
            border-radius:12px;
            background:#f8fafc;
            border:1px solid rgba(2,6,23,.06);
            }
            .modal-badge{
            width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
            color:#f59e0b; background:#0b1220;
            }
            .modal-title{
            margin:0; font-size:1.35rem; line-height:1.25; font-weight:800; color:#0b1220;
            }

            /* Corpo */
            .modal-body{ padding:6px 4px 2px; }
            .modal-body p{ margin:0 0 10px; font-size:1.02rem; color:#0b1220; }
            .modal-body ul{ list-style:none; margin:10px 0 6px; padding:0; display:grid; gap:8px; }
            .modal-body li{
            position:relative; padding-left:26px; color:#0b1220;
            }
            .modal-body li::before{
            content:""; position:absolute; left:0; top:6px; width:16px; height:16px; border-radius:999px;
            background:
                radial-gradient(circle at 50% 50%, #f59e0b 0 45%, transparent 46% 100%),
                conic-gradient(from 0, #f59e0b 0 1turn);
            mask: radial-gradient(circle 6px at 50% 50%, transparent 57%, #000 58%);
            opacity:.95;
            }

            /* Rodapé – leve, alinhado e com bom respiro */
            .modal-foot{
            margin-top:16px; padding:14px 14px 14px 0 ;
            display:flex; gap:12px; justify-content:flex-end; align-items:center;
            border-top:1px dashed rgba(2,6,23,.16);
            }

            /* Botão X */
            .modal-close-icon{
            position:absolute; top:10px; right:10px;
            width:36px; height:36px; display:grid; place-items:center;
            background:#fff; color:#0b1220; border:1px solid rgba(2,6,23,.08);
            border-radius:10px; cursor:pointer; z-index:5;
            }
            .modal-close-icon:hover{ box-shadow:0 10px 24px rgba(2,6,23,.08); }

            /* Botões */
            .btn{
            appearance:none; border-radius:10px; font-weight:700; cursor:pointer;
            border:1px solid rgba(2,6,23,.08); transition:transform .06s, box-shadow .2s;
            padding:10px 16px; min-height:42px;
            }
            .btn:hover{ transform:translateY(-1px); box-shadow:0 8px 22px rgba(2,6,23,.12); }
            .btn:active{ transform:translateY(0); }
            .btn-ghost{ background:#fff; color:#0b1220; }
            .btn-primary{ background:#f59e0b; color:#0b1220; border-color:#f59e0b; }

            /* Responsivo */
            @media (max-width:560px){
            .modal-card{ padding:16px; border-radius:16px; }
            .modal-head{ margin:-4px -4px 10px; }
            .modal-foot{ flex-direction:column-reverse; align-items:stretch; gap:10px; }
            }
            /* garante que o card cria contexto e permite o X ficar por cima */
            .modal-card,
            .modal-content { 
            position: relative;
            overflow: visible;              /* nada corta o X */
            }

            /* header não deve sobrepor o X */
            .modal-head { 
            position: relative;
            z-index: 1;
            }

            /* X sempre na frente de tudo no card */
            .modal-close-icon{
            position: absolute;
            top: 8px;
            right: 8px;
            z-index: 10;                    /* maior que o header */
            pointer-events: auto;           /* clique não bloqueado */
            }

            /* se algum ancestral tiver transform/filter (cria novo stacking),
            força o X a ganhar prioridade ainda maior */
            .modal { z-index: 10000; }
            .modal-close-icon { z-index: 10002; }
            .modal-card { z-index: 10001; }

            :root{
  --accent:#f59e0b;          /* amarelo do site */
  --ink:#0b1220;             /* navy escuro */
}

        /* Botão flutuante */
        .back-to-top{
            position: fixed;
            right: max(16px, env(safe-area-inset-right));
            bottom: calc(max(16px, env(safe-area-inset-bottom)) + 8px);
            z-index: 11000;
            width: 44px; height: 44px;
            display: grid; place-items: center;
            border: 1px solid rgba(2,6,23,.08);
            border-radius: 999px;
            background: var(--accent);
            color: var(--ink);
            box-shadow: 0 10px 26px rgba(2,6,23,.18);
            cursor: pointer;

            opacity: 0;                 /* escondido por padrão */
            transform: translateY(8px);
            pointer-events: none;
            transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
        }
        .back-to-top.show{
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }
        .back-to-top:hover{ box-shadow: 0 14px 30px rgba(2,6,23,.22); }
        .back-to-top:active{ transform: translateY(1px); }

        /* Respeita usuários com redução de movimento */
        @media (prefers-reduced-motion: reduce){
            .back-to-top{ transition: none; }
        }

        /* Botão flutuante do WhatsApp (ao lado do back-to-top) */
        .fab-whats{
            position: fixed;
            /* coloca à esquerda da seta existente, sem sobrepor */
            right: calc(max(16px, env(safe-area-inset-right)) + 56px);
            bottom: calc(max(16px, env(safe-area-inset-bottom)) + 8px);
            z-index: 11000;
            width: 52px; height: 52px;
            display: grid; place-items: center;
            border-radius: 999px;
            background: #25D366;              /* verde WhatsApp */
            color: #fff;
            border: 0;
            box-shadow: 0 12px 28px rgba(2,6,23,.22);
            text-decoration: none;
            transform: translateY(8px);
            opacity: 0;                        /* aparece só após scroll */
            pointer-events: none;
            transition: opacity .2s, transform .2s, box-shadow .2s;
        }
        .fab-whats.show{
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }
        .fab-whats:hover{ box-shadow: 0 16px 34px rgba(2,6,23,.28); }

        /* Se quiser os dois alinhados verticalmente no mobile */
        @media (max-width: 520px){
            /* deixa o Whats acima da seta */
            .fab-whats{
                right: max(16px, env(safe-area-inset-right));
                bottom: calc(max(16px, env(safe-area-inset-bottom)) + 68px);
            }
        }

        /* Alinhamento ícone + texto nos links de rede do rodapé */
        .footer-section .social-link{
            display: inline-flex;
            align-items: center;
            gap: 8px;                 /* espaço entre ícone e texto */
            line-height: 1.3;
        }

        /* Tamanho consistente dos ícones (png/svg) */
        .footer-section .social-link img{
            width: 18px;
            height: 18px;
            flex: 0 0 18px;
            vertical-align: middle;   /* fallback quando não for flex */
            filter: none;             /* garante cor original do ícone */
        }

        /* Microajuste óptico (muitos ícones ficam 1px “baixos”) */
        .footer-section .icon-whatsapp,
        .footer-section .icon-instagram,
        .footer-section .icon-linkedin{
            transform: translateY(1px);
        }





