:root {
    --bg-main: #060911;
    --bg-card: #0d1322;
    --bg-card-border: rgba(0, 242, 254, 0.15);
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.4);
    --secondary-glow: rgba(79, 172, 254, 0.3);
    --purple-glow: rgba(147, 51, 234, 0.35);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --error: #ff4d4d;
    --success: #10b981;
    --amber: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

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

.relative-z {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   WhatsApp Flutuante
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 24px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.08);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 9, 17, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 25px;
}

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

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

/* ==========================================================================
   Botões
   ========================================================================== */
.btn-primary {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    color: #030712;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 90px 0 60px;
    text-align: center;
}

.hero-bg-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 0;
}

.badge {
    display: inline-block;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(26px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero h1 span {
    background: linear-gradient(90deg, #00f2fe, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: clamp(15px, 2.5vw, 18px);
    max-width: 720px;
    margin: 0 auto 35px;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: rgba(13, 19, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item h3 {
    font-size: clamp(24px, 4vw, 32px);
    color: var(--primary);
    font-weight: 800;
}

.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Títulos Gerais de Seção
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: clamp(14px, 2vw, 16px);
}

/* ==========================================================================
   Carrossel / Frame do Notebook
   ========================================================================== */
.screen-showcase {
    padding: 40px 0 60px;
}

.laptop-frame {
    background: #1e293b;
    padding: 16px 16px 20px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.laptop-camera {
    width: 8px;
    height: 8px;
    background: #0f172a;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.carousel-container {
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.carousel-track img {
    width: 100%;
    flex-shrink: 0;
    display: block;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   Cards de Diferenciais
   ========================================================================== */
.features-section {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-glow);
}

.feature-card .icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}

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

/* ==========================================================================
   Seção API
   ========================================================================== */
.api-section {
    padding: 60px 0;
    background: rgba(13, 19, 34, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.api-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.api-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.code-preview-card {
    background: #020617;
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    padding: 24px;
    font-family: monospace;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    overflow-x: auto;
}

.code-preview-card pre {
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    white-space: pre;
}

.code-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

/* ==========================================================================
   Tabela Comparativa
   ========================================================================== */
.comparison-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.01);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--bg-card);
}

.comparison-table th, .comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
}

.comparison-table .highlight-head {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    font-size: 15px;
}

.comparison-table .highlight-cell {
    background: rgba(0, 242, 254, 0.04);
    font-weight: 600;
    color: #fff;
}

.check { color: var(--success); font-weight: bold; margin-right: 6px; }
.cross { color: var(--error); font-weight: bold; margin-right: 6px; }

/* ==========================================================================
   Pricing Banner
   ========================================================================== */
.pricing-banner {
    padding: 50px 0;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.08), rgba(147, 51, 234, 0.08));
    border: 1px solid var(--primary-glow);
    padding: 35px 20px;
    border-radius: 16px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tax-tag {
    background: var(--primary);
    color: #000;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.pricing-header h2 {
    font-size: clamp(22px, 3.5vw, 28px);
    margin: 15px 0;
}

.pricing-body p {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 14px;
}

/* ==========================================================================
   Diretrizes & Termos
   ========================================================================== */
.policy-section {
    padding: 70px 0;
    background: rgba(13, 19, 34, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.policy-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease;
}

.policy-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 242, 254, 0.3);
}

.policy-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.policy-card h4 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 10px;
}

.policy-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Formulário
   ========================================================================== */
.form-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 12s infinite alternate ease-in-out;
}

.orb-1 { width: 300px; height: 300px; background: var(--primary-glow); top: 10%; left: 10%; }
.orb-2 { width: 350px; height: 350px; background: var(--purple-glow); bottom: 10%; right: 10%; animation-delay: -4s; }
.orb-3 { width: 200px; height: 200px; background: var(--secondary-glow); top: 40%; right: 30%; animation-delay: -7s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.08); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.form-card {
    background: rgba(13, 19, 34, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--bg-card-border);
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-badge {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 20px;
}

.form-header h3 { font-size: clamp(20px, 3.5vw, 26px); margin-top: 10px; }
.form-header p { color: var(--text-muted); font-size: 14px; }

.form-row { display: flex; gap: 20px; }
.form-group { flex: 1; display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label { font-size: 13px; margin-bottom: 8px; font-weight: 600; color: var(--text-muted); }

.form-group input, .form-group select, .form-group textarea {
    background: rgba(6, 9, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.btn-submit { width: 100%; padding: 16px; font-size: 16px; margin-top: 10px; }

.feedback {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
    font-weight: 600;
}

.feedback.error { background: rgba(255, 77, 77, 0.15); color: var(--error); border: 1px solid var(--error); }
.feedback.success { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid var(--success); }

/* ==========================================================================
   Modal de Sucesso
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 15, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-card {
    background: linear-gradient(145deg, #0d1322, #111827);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 20px;
    padding: 35px 30px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.25), 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    transform: scale(0.85) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.modal-overlay.active .modal-card { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover { color: var(--primary); }

.modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.modal-card h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.modal-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 25px; }

.modal-info-box {
    background: rgba(6, 9, 17, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-step { display: flex; align-items: flex-start; gap: 12px; }

.step-num {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    color: #000;
    font-weight: 800;
    font-size: 13px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-step p { font-size: 13.5px; color: #d1d5db; line-height: 1.5; margin: 0; }
.btn-modal-confirm { width: 100%; padding: 14px; font-size: 15px; }

/* ==========================================================================
   Footer Institucional Organizado & Responsivo
   ========================================================================== */
.footer {
    background-color: #0b0f19;
    color: #94a3b8;
    padding: 60px 0 35px;
    font-size: 13px;
    border-top: 1px solid #1e293b;
    position: relative;
    z-index: 10;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 6px;
    align-self: flex-start;
}

.footer-desc, .footer-info {
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-info strong {
    color: #cbd5e1;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* ==========================================================================
   REGRAS RESPONSIVAS (MOBILE-FIRST BREAKPOINTS)
   ========================================================================== */

/* Tablets / Telas Médias (Até 992px) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .hero-stats {
        gap: 15px;
        padding: 20px;
    }

    .api-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Smartphones / Telas Pequenas (Até 768px) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 50px 0 35px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-primary, 
    .hero-actions .btn-secondary {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .laptop-frame {
        padding: 10px 10px 14px;
        border-radius: 12px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .pricing-card {
        padding: 25px 15px;
    }

    /* Ajuste estrutural do Rodapé para Mobile */
    .footer {
        padding: 40px 0 80px; /* Espaço extra no final para não cobrir o botão do WhatsApp */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-title {
        margin-bottom: 12px;
    }

    .footer-bottom {
        text-align: left;
    }
}

/* Dispositivos Muito Pequenos (Até 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 12px 0;
    }

    .logo {
        font-size: 18px;
    }

    .btn-primary {
        padding: 10px 16px;
        font-size: 13px;
    }

    .hero-stats {
        padding: 15px;
    }

    .orb {
        filter: blur(60px);
        opacity: 0.35;
    }

    .code-preview-card {
        padding: 16px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 16px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}