/* ============================================
   Home Page - SchoolSelect
   ============================================ */

/* Hero Section */
.home-hero {
    background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-accent-50) 100%);
    padding: var(--space-20) 0 var(--space-16);
    position: relative;
    overflow: hidden;
}

.home-hero__content {
    position: relative;
    z-index: 2;
}

.home-hero__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-gray-900);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.home-hero__title-accent {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    max-width: 540px;
    margin-bottom: var(--space-8);
}

.home-hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.home-hero__actions .btn {
    padding: 0.875rem 2rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

/* Stats card in hero */
.home-hero__stats {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-gray-100);
}

.home-hero__stats-title {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-700);
    margin-bottom: var(--space-6);
    text-align: center;
}

.home-hero__stats-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
}

.home-hero__stat-item {
    text-align: center;
}

.home-hero__stat-value {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
}

.home-hero__stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-2);
}

/* Wave separator */
.home-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.home-hero__wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Stats Bar */
.home-stats-bar {
    padding: var(--space-12) 0;
    background: var(--color-surface);
}

.home-stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.home-stats-bar__item {
    text-align: center;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-100);
}

.home-stats-bar__number {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
}

.home-stats-bar__label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-2);
}

/* How it works */
.home-how-it-works {
    padding: var(--space-20) 0;
    background: var(--color-gray-50);
}

.home-section-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: var(--space-4);
    color: var(--color-gray-900);
}

.home-section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-12);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    position: relative;
}

.home-step {
    text-align: center;
    padding: var(--space-8) var(--space-6);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    position: relative;
    transition: all var(--transition-base);
}

.home-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.home-step__number {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0 auto var(--space-4);
    box-shadow: var(--shadow-primary);
}

.home-step__icon {
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.home-step__title {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

.home-step__text {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

/* Top schools section */
.home-top-schools {
    padding: var(--space-20) 0;
    background: var(--color-surface);
}

/* CTA section */
.home-cta {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    text-align: center;
}

.home-cta__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: var(--space-4);
}

.home-cta__text {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.home-cta .btn-light {
    background: white;
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
}

.home-cta .btn-light:hover {
    background: var(--color-gray-100);
    transform: translateY(-1px);
}

.home-cta .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    font-weight: var(--font-weight-semibold);
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
}

.home-cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

/* Responsive */
@media (max-width: 991.98px) {
    .home-hero__title {
        font-size: var(--font-size-4xl);
    }

    .home-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding: var(--space-12) 0 var(--space-10);
    }

    .home-hero__title {
        font-size: var(--font-size-3xl);
    }

    .home-hero__subtitle {
        font-size: var(--font-size-base);
    }

    .home-stats-bar__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__stats-grid {
        gap: var(--space-6);
    }

    .home-hero__stat-value {
        font-size: var(--font-size-3xl);
    }
}
