@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@600;700;800&family=Fira+Code:wght@400;500&display=swap');
@import 'variables.css';

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-lg);
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 800;
    font-size: var(--text-xl);
    font-family: var(--font-display);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-glow);
}

.logo-icon::before {
    content: 'R';
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--rdev-white);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    list-style: none;
}

.nav-link {
    color: var(--dark-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--rdev-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-accent);
    color: var(--rdev-white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

/* === MOBILE MENU === */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--dark-text);
}

.hamburger {
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: all var(--transition-base);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-toggle.active .hamburger { background: transparent; }
.mobile-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* === SECTIONS === */
.section {
    padding: var(--space-5xl) 0;
    position: relative;
}

.section-alt {
    background: var(--dark-bg-alt);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
}

.section-badge {
    display: inline-block;
    background: rgba(74, 222, 128, 0.1);
    color: var(--rdev-accent);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--dark-text-muted);
    line-height: 1.8;
}

/* === GRIDS === */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

/* === RESPONSIVO === */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .section-title {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg-alt);
        flex-direction: column;
        padding: var(--space-2xl);
        border-bottom: 1px solid rgba(74, 222, 128, 0.1);
        gap: var(--space-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: var(--space-5xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* CORREÇÃO: Mais espaço para o texto */
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 100%; /* Remove limitação rígida */
    min-width: 0; /* IMPORTANTE: Previne overflow em grid */
}

.hero-visual {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0; /* IMPORTANTE: Previne overflow */
}

.hero-badge {
    display: inline-block;
    background: rgba(74, 222, 128, 0.1);
    color: var(--rdev-accent);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xl);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem); /* Responsivo */
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: var(--space-xl);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--dark-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--rdev-accent);
    font-family: var(--font-display);
    margin-bottom: var(--space-xs);
}

.hero-stats .stat-label {
    font-size: var(--text-sm);
    color: var(--dark-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

/* === RESPONSIVIDADE HERO === */

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr 1fr; /* Proporção igual em telas médias */
        gap: var(--space-3xl);
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr; /* Uma coluna */
        gap: var(--space-2xl);
        text-align: center;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-text {
        margin: 0 auto;
        max-width: 600px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1; /* IDE aparece primeiro no tablet */
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .hero-visual {
        order: -1; /* Código aparece primeiro no mobile */
    }
    
    .hero-text {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        display: none !important;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: var(--space-3xl);
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 0;
    }

    .hero-text {
        max-width: 100%;
        padding: 0 var(--space-md);
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: var(--space-xs) var(--space-md);
        margin-bottom: var(--space-lg);
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: var(--space-lg);
    }

    .hero-subtitle {
        font-size: var(--text-base);
        line-height: 1.6;
        margin-bottom: var(--space-xl);
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-md);
        margin-bottom: var(--space-xl);
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        font-weight: 700;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: var(--space-md);
        padding-top: var(--space-xl);
        border-top: 1px solid rgba(74, 222, 128, 0.2);
    }

    .hero-stats .stat-number {
        font-size: var(--text-xl);
    }
}

/* === LOGO PNG REAL  === */
.logo-icon {
    width: 48px;
    height: 48px;
    background: transparent; /* Remove o gradiente verde */
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: none; /* Remove glow verde se não quiser */
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    background-image: url('../images/logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-icon::after {
    display: none;
}

@media (max-width: 768px) {
    .logo-icon {
        width: 40px;
        height: 40px;
    }
}


