/* ==========================================================================
   GLOBAL LAYOUT & SECTIONS
   ========================================================================== */
section {
    padding: var(--section-padding);
    position: relative;
}

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

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
    background: radial-gradient(circle at 50% -20%, rgba(124, 58, 237, 0.08), transparent 60%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--section-gap);
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.55;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
    background: #0f1322;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Structuring screenshot area */
.hero-screenshot-placeholder {
    width: 95%;
    height: 90%;
    margin-top: auto;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: #171c2d;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ==========================================================================
   PROVA / INTRODUÇÃO
   ========================================================================== */
.proof-section {
    padding: 3rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.proof-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.proof-text {
    flex: 1;
}

.proof-headline {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.proof-paragraph {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* ==========================================================================
   O QUE DESENVOLVEMOS
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: var(--card-padding);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--accent-purple-border);
    transform: translateY(-4px);
}

.service-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    margin-bottom: 1rem;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   DESENVOLVEMOS SOB MEDIDA
   ========================================================================== */
.custom-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.custom-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.custom-box::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.custom-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.custom-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.custom-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-feat-item {
    display: flex;
    gap: 0.8rem;
}

.custom-feat-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 0.2rem;
    font-size: 0.8rem;
}

.custom-feat-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.custom-feat-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.45;
}

/* ==========================================================================
   COMO FUNCIONA (PROCESS)
   ========================================================================== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    position: relative;
}

.step-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.8rem;
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    border-color: var(--accent-purple-border);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(124, 58, 237, 0.15);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.step-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ==========================================================================
   PORTFOLIO GALLERY
   ========================================================================== */
.gallery-section {
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    border-color: rgba(255,255,255,0.1);
}

.gallery-img-wrapper {
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
    background: #171d2b;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    overflow: hidden;
}

.gallery-info {
    margin-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.gallery-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-purple);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-section {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: radial-gradient(circle at 50% 120%, rgba(37, 99, 235, 0.08), transparent 60%);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.cta-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (GLOBAL & SECTIONS)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .custom-box {
        grid-template-columns: 1fr;
        padding: 4rem 2.5rem;
        gap: 3rem;
    }
    
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 1.5rem;
    }
    
    .hero-section {
        padding-top: 8rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .proof-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }
}
