.home-top-anchor {
    position: absolute;
    top: 0;
}

.home-back-to-top {
    position: fixed;
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 14, 26, 0.72);
    color: var(--color-primary);
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    pointer-events: none;
    backdrop-filter: blur(14px);
    transition:
        opacity 0.24s ease,
        transform 0.24s ease,
        background 0.24s ease,
        border-color 0.24s ease;
}

.home-back-to-top--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.home-back-to-top:hover {
    border-color: rgba(var(--color-primary-rgb), 0.36);
    background: rgba(10, 14, 26, 0.86);
    transform: translateY(-2px) scale(1);
}

.home-back-to-top svg {
    width: 24px;
    height: 24px;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-card,
.home-feature-card {
    min-height: 240px;
    padding: clamp(1.5rem, 3vw, 2rem);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.home-card::before,
.home-feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #afff00;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.home-card:hover,
.home-feature-card:hover {
    border-color: rgba(175, 255, 0, 0.22);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.home-card:hover::before,
.home-feature-card:hover::before {
    opacity: 1;
}

.home-card--pain-point {
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.home-card--benefit {
    min-height: 280px;
}

.home-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1.75rem;
    border-radius: 16px;
}

.home-card__icon svg {
    width: 26px;
    height: 26px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-card h3,
.home-feature-card h3 {
    font-size: var(--font-card-title-size);
    font-weight: var(--font-card-title-weight);
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.home-card p,
.home-feature-card p,
.home-workflow__steps p {
    color: var(--gray-300);
    font-size: var(--font-card-copy-size);
    font-weight: var(--font-card-copy-weight);
    line-height: 1.6;
}

.home-card p strong {
    color: var(--white);
    font-weight: 500;
}

.home-tournament-grid {
    margin-top: 0;
}

.home-tournament-grid .tournament-card {
    min-width: 0;
}

.home-empty-state {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 24, 39, 0.82);
}

.home-empty-state p {
    color: var(--white);
    font-size: var(--font-card-copy-size);
    font-weight: var(--font-card-copy-weight);
    line-height: 1.6;
}

.home-feature-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    margin-bottom: 2rem;
    background:
        radial-gradient(circle at 32% 28%, #fff, transparent 18%),
        linear-gradient(135deg, #afff00, #00d4ff);
    box-shadow: 0 16px 32px rgba(0, 212, 255, 0.12);
}

.home-workflow__steps {
    display: grid;
    gap: 0.9rem;
    list-style: none;
}

.home-workflow__steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.home-workflow__steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #afff00;
    color: #0a0e1a;
    font-weight: 900;
}

@media (max-width: 900px) {
    .home-card-grid,
    .home-card-grid--three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .home-back-to-top {
        right: 1rem;
        bottom: calc(6rem + env(safe-area-inset-bottom));
        width: 48px;
        height: 48px;
    }

    .home-card,
    .home-feature-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .home-back-to-top {
        width: 48px;
        height: 48px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .home-card,
    .home-feature-card {
        transition: border-color 0.01ms linear, box-shadow 0.01ms linear;
    }

    .home-card:hover,
    .home-feature-card:hover {
        transform: none;
    }

    .home-back-to-top {
        transition: none;
    }
}
