/* completengine.net - Non-Profit Humanist Warm */
/* Palette: #fefcf8, #ffffff, #e07c4a, #5b8c5a, #2d3436, #ede5d8, #d4c5a9, #fff3e0 */

:root {
    --cream: #fefcf8;
    --card: #ffffff;
    --terra: #e07c4a;
    --sage: #5b8c5a;
    --text: #2d3436;
    --border: #ede5d8;
    --shadow-color: #d4c5a9;
    --shadow: rgba(212, 197, 169, 0.15);
    --highlight: #fff3e0;
}

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

body {
    background: var(--cream);
    color: var(--text);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===================== HERO ===================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #ffe8d6 0%, var(--cream) 70%);
    text-align: center;
    position: relative;
}

.hero-illustration {
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.3s;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: var(--text);
    opacity: 0;
    animation: brandBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.6s;
}

@keyframes brandBounce {
    0% { transform: scale(0.95); opacity: 0; }
    60% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(45, 52, 54, 0.55);
    margin: 0.75rem 0 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
}

/* ===================== CATEGORY TABS ===================== */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    animation: slideDown 0.6s ease forwards 1.1s;
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.tab-pill {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-pill:hover {
    border-color: var(--terra);
    color: var(--terra);
}

.tab-pill.active {
    background: var(--terra);
    color: #fff;
    border-color: var(--terra);
    box-shadow: 0 2px 8px rgba(224, 124, 74, 0.25);
}

/* ===================== WAVE DIVIDER ===================== */
.wave-divider {
    background: linear-gradient(135deg, #ffe8d6 0%, var(--cream) 70%);
    line-height: 0;
}

/* ===================== BENTO GRID ===================== */
.bento-section {
    max-width: 1040px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bento-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(212, 197, 169, 0.22);
}

.bento-card.card-filtered {
    opacity: 0.15;
    transform: scale(0.96);
    pointer-events: none;
}

.card-wide { grid-column: span 2; }
.card-large { grid-column: span 2; grid-row: span 2; }
.card-span3 { grid-column: span 3; }

/* ===================== CATEGORY PILLS ===================== */
.cat-pill {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.pill-docs { background: var(--highlight); color: var(--terra); }
.pill-learn { background: rgba(91, 140, 90, 0.1); color: var(--sage); }
.pill-build { background: rgba(45, 52, 54, 0.08); color: var(--text); }
.pill-community { background: rgba(224, 124, 74, 0.1); color: var(--terra); }

/* ===================== CARD CONTENT ===================== */
.card-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.85rem;
    color: rgba(45, 52, 54, 0.6);
    line-height: 1.65;
}

.card-code {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: rgba(45, 52, 54, 0.45);
    margin-top: 1rem;
    letter-spacing: 0.02em;
}

.card-icon-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.card-icon {
    opacity: 0.7;
}

.card-meta {
    font-size: 0.75rem;
    color: rgba(45, 52, 54, 0.45);
}

/* ===================== PROGRESS DOTS ===================== */
.progress-dots {
    display: flex;
    gap: 5px;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s ease;
}

.dot.done { background: var(--sage); }

/* ===================== ACTIVITY FEED ===================== */
.activity-feed {
    width: 100%;
}

.feed-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(237, 229, 216, 0.5);
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
}

.feed-text {
    font-size: 0.8rem;
    color: rgba(45, 52, 54, 0.6);
    line-height: 1.5;
}

.feed-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text);
}

.feed-time {
    font-size: 0.7rem;
    color: rgba(45, 52, 54, 0.35);
    margin-left: 0.4rem;
}

/* ===================== COMMUNITY ===================== */
.community-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.community-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(91, 140, 90, 0.4);
}

@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(91, 140, 90, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(91, 140, 90, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(91, 140, 90, 0); }
}

.pulse-text {
    font-size: 0.85rem;
    color: rgba(45, 52, 54, 0.55);
}

.contributors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    border: 2px solid var(--cream);
}

.avatar:hover {
    transform: scale(1.12);
}

.contrib-text {
    font-size: 0.8rem;
    color: rgba(45, 52, 54, 0.45);
    margin-left: 0.5rem;
}

/* ===================== CTA ===================== */
.cta-section {
    text-align: center;
    padding: 5rem 2rem 6rem;
    position: relative;
    background: linear-gradient(180deg, var(--cream) 0%, #ffe8d6 100%);
}

.plant-icon {
    margin-bottom: 1.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.cta-section:hover .plant-icon {
    opacity: 0.9;
}

.cta-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text);
    margin-bottom: 0.5rem;
}

.cta-sub {
    font-size: 1rem;
    color: rgba(45, 52, 54, 0.55);
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: var(--terra);
    padding: 0.85rem 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 16px rgba(224, 124, 74, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 124, 74, 0.35);
}

/* ===================== FADE IN ===================== */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-wide,
    .card-large,
    .card-span3 {
        grid-column: span 2;
        grid-row: span 1;
    }
    .category-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .card-wide,
    .card-large,
    .card-span3 {
        grid-column: span 1;
    }
    .hero {
        padding: 3rem 1.5rem;
    }
    .hero-illustration {
        width: 240px;
        height: auto;
    }
    .hero-brand {
        font-size: 2.2rem;
    }
    .bento-section {
        padding: 2rem 1rem;
    }
    .contributors {
        gap: 0.35rem;
    }
    .avatar {
        width: 36px;
        height: 36px;
        font-size: 0.65rem;
    }
}
