﻿/* ---------- Base ---------- */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #37352f;
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    margin-bottom: 6rem;
    padding-top: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #37352f;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #73726e;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-image {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0;
}

    .hero-image img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 5rem;
}

/* ---------- Buttons ---------- */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: #37352f;
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .btn-primary:hover {
        background-color: #2c2a26;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

.btn-secondary {
    background-color: white;
    color: #37352f;
    border-color: #e3e2df;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .btn-secondary:hover {
        background-color: #f7f6f3;
        border-color: #d3d1cb;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        transform: translateY(-1px);
    }

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1.5rem;
    border: 1px solid #e9e9e7;
    border-radius: 12px;
    background-color: #fafaf9;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .stat-item:hover {
        border-color: #d3d1cb;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
        transform: translateY(-2px);
    }

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    display: block;
    color: #37352f;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #73726e;
    font-weight: 400;
    display: block;
    line-height: 1.4;
}

/* ---------- How it works ---------- */
.how-it-works {
    margin-bottom: 6rem;
}

    .how-it-works h2 {
        text-align: center;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 3rem;
        color: #37352f;
        letter-spacing: -0.01em;
    }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.step {
    padding: 2rem;
    border: 1px solid #e9e9e7;
    border-radius: 12px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

    .step:hover {
        border-color: #d3d1cb;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        transform: translateY(-2px);
    }

.step-number {
    font-weight: 700;
    font-size: 1.5rem;
    color: #37352f;
    margin-bottom: 1rem;
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #f7f6f3;
    border-radius: 8px;
}

.step p {
    color: #73726e;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* ---------- Leaderboard Preview ---------- */
.leaderboard-preview {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #fafaf9;
    border-radius: 16px;
    border: 1px solid #e9e9e7;
}

    .leaderboard-preview h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 2rem;
        color: #37352f;
        letter-spacing: -0.01em;
    }

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

    .leaderboard-list li {
        padding: 0.75rem 1rem;
        color: #37352f;
        font-size: 1rem;
        border-bottom: 1px solid #e9e9e7;
        transition: background-color 0.15s ease;
    }

        .leaderboard-list li:first-child {
            border-top: 1px solid #e9e9e7;
            border-radius: 8px 8px 0 0;
        }

        .leaderboard-list li:last-child {
            border-radius: 0 0 8px 8px;
        }

        .leaderboard-list li:hover {
            background-color: #ffffff;
        }

.link {
    color: #37352f;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

    .link:hover {
        opacity: 0.7;
        text-decoration: none;
    }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .home-container {
        padding: 1.5rem 1rem 3rem;
    }

    /* Hero Section */
    .hero {
        margin-bottom: 3rem;
        padding-top: 0;
    }

    .hero-image {
        max-width: 100%;
        margin: 0 auto 2rem;
        padding: 0;
    }

        .hero-image img {
            border-radius: 8px;
        }

    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin: 0 auto 2rem;
        line-height: 1.5;
    }

    /* Hero Actions - stack buttons */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 3rem;
    }

    .btn {
        width: 100%;
        max-width: none;
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Stats - single column */
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-value {
        font-size: 1.875rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* How it Works */
    .how-it-works {
        margin-bottom: 3rem;
    }

        .how-it-works h2 {
            font-size: 1.5rem;
            margin-bottom: 2rem;
        }

    .steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .step {
        padding: 1.5rem;
    }

    .step-number {
        font-size: 1.25rem;
        width: 36px;
        height: 36px;
        line-height: 36px;
    }

    .step p {
        font-size: 0.9rem;
    }

    /* Leaderboard Preview */
    .leaderboard-preview {
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }

        .leaderboard-preview h2 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
        }

    .leaderboard-list {
        max-width: 100%;
    }

        .leaderboard-list li {
            padding: 0.625rem 0.875rem;
            font-size: 0.9rem;
        }

    .link {
        font-size: 0.9rem;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .home-container {
        padding: 1rem 0.75rem 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-actions {
        gap: 0.625rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .stat-item {
        padding: 1.25rem 0.875rem;
    }

    .stat-value {
        font-size: 1.625rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .step {
        padding: 1.25rem;
    }

    .leaderboard-preview {
        padding: 1.5rem 1rem;
    }
}

/* Tablet - 2 columns for stats and steps */
@media (min-width: 769px) and (max-width: 1024px) {
    .home-container {
        padding: 2rem 1.5rem 4rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}