/* ========================================
   Home / Landing page
   ======================================== */

/* Hero */

.home-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero {
    text-align: center;
    padding: 6rem 0 4rem;
}

.hero-title {
    margin: 0 0 1.5rem;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
}

.hero-sub {
    margin: 0 auto 2.5rem;
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px -8px rgba(124, 58, 237, 0.6);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

/* Top stations carousel */

.top-stations {
    padding: 1rem 0 3rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.top-stations-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.top-stations-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.top-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.top-card-art {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.2s ease;
    box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.5);
}

.top-card:hover .top-card-art {
    transform: scale(1.05);
}

.top-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.top-card-flag {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.3rem;
    line-height: 1;
    z-index: 2;
}

.top-card-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Countries grid */

.countries-section {
    padding: 2rem 0 5rem;
}

.countries-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    color: var(--text);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.country-card {
    display: flex;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.country-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.country-card-flag {
    font-size: 1.3em;
    line-height: 1;
}

.country-card-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */

@media (max-width: 600px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-sub br {
        display: none;
    }

    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}
