/* ============================================= */
/* =            1. VARIABLES & SETUP           = */
/* ============================================= */
:root {
    --bg: #161718;
    --text-primary: #e8e8e8;
    --text-muted: rgba(232, 232, 232, 0.7);
    --primary: #50C878;
    --accent: #B0413E;
    --glass: rgba(18, 18, 20, 0.007);
    --border-color: rgba(255, 255, 255, 0.08);
    --radius: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font-sans: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(ellipse at 30% 20%, rgba(47, 255, 210, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(231, 108, 143, 0.02) 0%, transparent 50%),
                var(--bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================= */
/* =          2. TYPOGRAPHY SYSTEM             = */
/* ============================================= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
}
p:last-child {
    margin-bottom: 0;
}

.heading-1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-muted) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.heading-3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.text-large {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.text-medium {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.text-small {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    opacity: 0.8;
}

.subtitle {
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* ============================================= */
/* =             LISTS                         = */
/* ============================================= */

.center-list {
    margin: 2rem 0 3rem;
}

.center-list__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ============================================= */
/* =             3. LAYOUT & GRID              = */
/* ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid--1-col { grid-template-columns: 1fr; }
.grid--2-cols { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3-cols { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4-cols { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

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

/* ============================================= */
/* =               4. COMPONENTS               = */
/* ============================================= */

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: var(--glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    cursor: pointer;
}
.btn:hover {
    border-color: var(--primary);
    background: rgba(18, 18, 20, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(147, 197, 87, 0.2);
}

/* Card */
.card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.card--negative {
    border-color: rgba(176, 65, 62, 0.3);
}
.card--negative:hover {
    border-color: var(--accent);
}
.card--positive {
    border-color: rgba(147, 197, 87, 0.3);
    background: rgba(147, 197, 87, 0.05);
}
.card--horizontal {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

/* Icon System */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}
.icon svg {
    width: 1em;
    height: 1em;
    stroke-width: 1.5;
}
.icon--sm svg { font-size: 1.2rem; }
.icon--md svg { font-size: 1.8rem; }
.icon--lg svg { font-size: 3rem; stroke-width: 1.2; }
.icon--primary { color: var(--primary); }
.icon--accent { color: var(--accent); }

/* ============================================= */
/* =           5. SECTION-SPECIFIC STYLES      = */
/* ============================================= */

/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}
.header.scrolled {
    background: rgba(10, 10, 11, 0.95);
}
.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.header__logo {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
}
.header__nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.header__nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.header__nav a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 10%;
}

.hero__content {
    max-width: 900px;
    margin: 0 auto;
}
.hero__benefits {
    margin: 3rem auto;
    max-width: 600px;
    text-align: center;
}
.hero__benefits .heading-3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.hero__benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
.hero__benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Supporters */

.supporters-wrapper {
    display: flex; /* Permite que os itens quebrem a linha */
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 6rem;
}

.supporter-logo img {
    max-height: 90px; /* Define uma altura máxima para o logo. Ele se ajustará na largura */
    width: auto;      /* Garante que a proporção seja mantida */
    opacity: 0.75;     /* Deixa o logo um pouco sutil */
    transition: opacity 0.3s ease;
}

.supporter-logo img:hover {
    opacity: 1; /* Destaca o logo ao passar o mouse */
}

/* Problem Section */
.problem-list {
    margin: 2rem 0 3rem;
}

.highlight-box {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(176, 65, 62, 0.05);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}
.highlight {
    color: var(--accent);
    font-weight: 600;
}
.card__problem-number {
    color: var(--accent);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}
.text--primary {
    color: var(--primary);
    font-weight: 600;
}

/* Card Elements */
.card__icon-wrapper {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(147, 197, 87, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.card__icon-wrapper--square {
    border-radius: 16px;
}
.card__avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(147, 197, 87, 0.2);
    object-fit: cover;
}
.card__role {
    color: var(--primary);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.card__number-circle {
    width: 60px; height: 60px;
    background: var(--primary);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 2rem;
}

/* Stats Section */
.stats {
    padding: 6rem 0;
    background: var(--glass);
}
.stats__number {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 30px; left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 60px);
    background: linear-gradient(to bottom, var(--primary), transparent);
    z-index: -1;
}
.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.timeline__item:nth-child(even) .timeline__content { order: -1; text-align: right; }
.timeline__item:nth-child(even) .timeline__icon { order: 0; }

.timeline__number {
    grid-column: 2 / 3;
    width: 60px; height: 60px;
    background: var(--primary);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 2;
}
.timeline__icon { display: none; } /* Hidden for a cleaner look, content is king */
.timeline__content {
    padding: 2rem;
}

/* Solutions */
.solutions-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}
.solution-category {
    padding: 3rem;
    margin-bottom: 3rem;
    background: rgba(24, 24, 26, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.category-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.category-subtitle {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2.5rem;
}
.solution-item {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.solution-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.solution-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
/* ============================================= */
/* =       COMPONENTE: FEATURE CARD (NOVO)     = */
/* ============================================= */
.feature-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 400px;
    padding: 3rem 4rem;
    border-radius: var(--radius);
    overflow: hidden; /* Garante que o gradiente não vaze */
    
    /* Propriedades da imagem de fundo */
    background-size: cover;
    background-position: center;
    
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.02);
}

/* Overlay para garantir a legibilidade do texto sobre a imagem */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, 
        rgba(27, 27, 30, 0.95) 0%, 
        rgba(27, 27, 30, 0.7) 50%, 
        rgba(27, 27, 30, 0.1) 100%
    );
    z-index: 1;
}

.feature-card__content {
    position: relative;
    z-index: 2; /* Para ficar acima do overlay */
    max-width: 50%;
}

/* Modificador para o card com texto à direita */
.feature-card--reverse {
    justify-content: flex-end;
    text-align: right;
}

.feature-card--reverse::before {
    background: linear-gradient(to left, 
        rgba(27, 27, 30, 0.95) 0%, 
        rgba(27, 27, 30, 0.7) 50%, 
        rgba(27, 27, 30, 0.1) 100%
    );
}


/* ============================================= */
/* =      RESPONSIVIDADE: FEATURE CARD         = */
/* ============================================= */
@media (max-width: 768px) {
    .feature-card,
    .feature-card--reverse {
        padding: 3rem 2rem;
        min-height: 350px;
        justify-content: flex-start; /* Alinha tudo à esquerda no mobile */
        text-align: left;
    }

    .feature-card__content {
        max-width: 100%; /* Ocupa toda a largura */
    }

    /* Overlay mais forte no mobile para garantir legibilidade */
    .feature-card::before,
    .feature-card--reverse::before {
        background: linear-gradient(to top, 
            rgba(27, 27, 30, 0.98) 0%, 
            rgba(27, 27, 30, 0.7) 70%, 
            transparent 100%
        );
    }
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, rgba(147, 197, 87, 0.05) 0%, transparent 100%);
}
.final-note {
    margin: 4rem auto 0;
    padding: 1.5rem;
    background: rgba(24, 24, 26, 0.3);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    text-align: center;
    font-style: italic;
    color: var(--primary);
    font-size: 0.9rem;
    max-width: 600px;
}

/* ============================================= */
/* =            6. ANIMATIONS & CANVAS         = */
/* ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ============================================= */
/* =              7. RESPONSIVE                = */
/* ============================================= */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .section { padding: 4rem 0; }
    .header__nav { display: none; }
    .hero { padding-top: 120px; min-height: auto; }

    .grid--2-cols, .grid--3-cols, .grid--4-cols {
        grid-template-columns: 1fr;
    }

    .card--horizontal {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .timeline::before { left: 30px; }
    .timeline__item, .timeline__item:nth-child(even) {
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
    }
    .timeline__number {
        grid-column: 1 / 2;
        width: 60px; height: 60px;
    }
    .timeline__content, .timeline__item:nth-child(even) .timeline__content {
        grid-column: 2 / 3;
        order: initial;
        text-align: left;
    }

    .solution-category { padding: 2rem; }
}