:root {
    /* Color Palette */
    --bg-dark: #09090b;
    --bg-card: rgba(24, 24, 27, 0.7);
    --bg-card-hover: rgba(39, 39, 42, 0.9);
    
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #10b981;
    --secondary-glow: rgba(16, 185, 129, 0.5);
    
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-terminal: #10b981;
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Layout */
    --max-width: 1200px;
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Effects */
.bg-grid {
    display: none;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.glow-1 {
    top: -200px;
    left: -200px;
}

.glow-2 {
    top: 40%;
    right: -200px;
    background: var(--secondary-glow);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 24px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(0.95); opacity: 1; }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 900px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

/* Terminal Mockup */
.terminal-mockup {
    width: 100%;
    max-width: 800px;
    background: #000;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    text-align: left;
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.5s ease;
}

.terminal-mockup:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.terminal-header {
    background: #18181b;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot {
    width: 12px; height: 12px; border-radius: 50%; margin-right: 8px;
}
.close { background: #ef4444; }
.minimize { background: #eab308; }
.expand { background: #22c55e; }

.terminal-title {
    margin-left: auto; margin-right: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    transform: translateX(-24px); /* offset for dots */
}

.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.7;
}

.prompt { color: var(--primary); }
.success { color: var(--secondary); }
.cursor {
    display: inline-block;
    width: 8px;
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.section {
    padding: 100px 0;
}

.section-darker {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

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

.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-icon {
    width: 56px; height: 56px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.card-desc {
    color: var(--text-muted);
}

/* Tech Stack */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    min-width: 140px;
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.tech-icon {
    font-size: 48px;
    width: 48px; height: 48px;
}
.html { color: #e34f26; }
.css { color: #1572b6; }
.js { color: #f7df1e; }
.python { color: #3776ab; }
.php { color: #777bb4; }

.tech-item span {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Why Layout */
.why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-list {
    list-style: none;
    margin-top: 32px;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.why-list i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.code-window {
    background: #000;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.code-window pre {
    padding: 24px;
    overflow-x: auto;
}

.keyword { color: #c678dd; }
.property { color: #e06c75; }
.value { color: #98c379; }
.comment { color: #5c6370; font-style: italic; }

/* CTA Section */
.cta-section {
    padding: 60px 0 100px;
}

.cta-box {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

.btn-primary.btn-pulse {
    background: #25d366; /* WhatsApp Green */
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.btn-primary.btn-pulse:hover {
    background: #1ebc59;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    background: #050505;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-logo {
    height: 48px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .why-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
}

/* --- Ofertas Popup --- */
.ofertas-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.ofertas-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.ofertas-popup-card {
    position: relative;
    max-width: 420px;
    width: 90%;
    text-align: center;
    padding: 40px 30px;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(16, 185, 129, 0.3); /* Green border */
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15), inset 0 0 20px rgba(16, 185, 129, 0.05);
}

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

.ofertas-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.ofertas-popup-close:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.ofertas-popup-icon {
    width: 70px;
    height: 70px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.ofertas-popup-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.ofertas-popup-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.ofertas-popup-text strong {
    color: var(--secondary);
}

.ofertas-btn {
    width: 100%;
    background: #25d366; /* WhatsApp Green */
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.ofertas-btn:hover {
    background: #1ebc59;
}

.ofertas-popup-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* --- Ajustes Mobile Finais --- */
@media (max-width: 768px) {
    /* Header - Garantir que o botão "Falar com Especialista" caiba na tela */
    .header-inner {
        flex-wrap: nowrap;
        gap: 10px;
    }
    .logo-img {
        height: 35px;
    }
    .btn-nav {
        padding: 8px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Popup - Reduzir tamanho geral no celular */
    .ofertas-popup-card {
        padding: 24px 20px;
        width: 92%;
        max-width: 340px;
    }
    .ofertas-popup-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    .ofertas-popup-text {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
    .ofertas-popup-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 12px;
    }
    .ofertas-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    .ofertas-popup-close {
        top: 10px;
        right: 10px;
        font-size: 1.2rem;
    }
}
