:root {
    /* Cores base (neutras) */
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;

    /* Cores primárias (azul/esverdeado) */
    --primary-100: #e6f7f8;
    --primary-300: #8bd8dc;
    --primary-500: #20b8bd;
    /* cor principal */
    --primary-700: #158a8e;
    --primary-900: #0c5c5f;

    /* Cores secundárias (roxo/azulado) */
    --secondary-300: #a39fc9;
    --secondary-500: #7166b1;
    --secondary-700: #4e457d;

    /* Cores de destaque (sutis) */
    --accent-yellow: #fff3bf;
    --accent-pink: #ffdeeb;
}

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

body {
    background: var(--bg-color);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

/* Container principal */
.main-container {
    max-width: 1200px;
    width: 100%;
}

/* Cabeçalho tipográfico */
.header {
    text-align: center;
    margin-bottom: 3rem;
}


.header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}


.header p {
    font-size: 1.25rem;
    max-width: 60ch;
    margin: 0 auto;
    opacity: 0.9;
}

/* Grid de cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Cards tipográficos */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;

    /* Delay progressivo para cada card */
    .card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .card:nth-child(5) {
        animation-delay: 0.5s;
    }
}

.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    background: var(--primary-100);
}

.card h2 {
    transition: color 0.2s ease;
}

.card:hover h2 {
    color: var(--primary-700);
}


.card p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card .meta {
    font-size: 0.875rem;
    color: var(--secondary);
    font-weight: 500;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsividade */
@media (max-width: 600px) {
    body {
        padding: 1.5rem;
    }

    .header {
        margin-bottom: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}