/* Home/Landing Page Styles */

/* Override base.css body overflow for scrollable marketing page */
html:has(body.home-page) {
    touch-action: auto;
    overflow-x: hidden;
}

body.home-page {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
    touch-action: auto;
    overscroll-behavior: auto;
}

body.home-page .container {
    overflow: visible;
    height: auto;
}

/* ============ Header ============ */
.home-header {
    background: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.home-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.home-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.home-nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.home-nav-link:hover {
    color: #3C4BFB;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
    color: #333;
}

/* ============ Sections shared ============ */
.home-section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 0.75rem;
}

.home-section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 0rem;
    line-height: 1.6;
}

/* ============ Hero ============ */
.home-hero {
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at top left, #C5E67380 0%, transparent 40%),
        radial-gradient(circle at top right, #3C4BFB4D 0%, transparent 50%),
        radial-gradient(circle at bottom center, #D4B9FB80 0%, transparent 50%);
}

.home-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.home-hero .subtitle {
    font-size: 1.25rem;
    color: #555;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.home-store-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-store-link {
    display: inline-block;
    transition: transform 0.2s;
}

.home-store-link:hover {
    transform: scale(1.05);
}

.home-store-badge {
    height: 50px;
    width: auto;
}

/* ============ Features ============ */
.home-features {
    background: #f8f9fc;
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.home-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.home-feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* ============ Reviews ============ */
.home-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-review-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.home-review-stars {
    color: #f5a623;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.home-review-text {
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.home-review-author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.home-review-source {
    color: #999;
    font-size: 0.85rem;
}

/* ============ Audio Samples ============ */
.home-samples {
    background: #f8f9fc;
}

.home-samples-row {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0 0rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    -webkit-overflow-scrolling: touch;
}

.home-samples-row::-webkit-scrollbar {
    display: none;
}

.home-sample-item {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    cursor: pointer;
    transition: all 0.4s ease;
    transform: scale(0.9);
    opacity: 0.85;
}

.home-sample-item.active {
    width: 220px;
    transform: scale(1);
    opacity: 1;
}

.home-sample-card {
    background: var(--card-bg, #eee);
    border-radius: 16px 16px 0 0;
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
}

.home-sample-item.active .home-sample-card {
    border: 2px solid #3C4BFB;
    box-shadow: 0 8px 32px rgba(60, 75, 251, 0.15);
}

.home-sample-item:not(.active) .home-sample-card {
    border: 2px solid transparent;
}

.home-sample-item img {
    width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Player bar */
.home-sample-player {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    padding: 10px 14px;
    margin-top: -4px;
    opacity: 1;
    max-height: 60px;
    transition: all 0.4s ease;
}

.home-sample-play-btn {
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s;
}

.home-sample-play-btn:hover {
    transform: scale(1.1);
}

.home-sample-play-btn svg {
    width: 14px;
    height: 14px;
    color: #1a1a2e;
    margin-left: 2px;
}

.home-sample-label {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.home-sample-progress {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.home-sample-progress-bar {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.home-sample-duration {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.home-samples-cta {
    text-align: center;
    margin-top: 1rem;
}

.home-samples-cta-btn {
    display: inline-block;
    padding: 0.875rem 4rem;
    background: linear-gradient(135deg, #3C4BFB 0%, #667eea 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-samples-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(60, 75, 251, 0.35);
}

/* ============ Benefits ============ */
.home-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-benefit-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.home-benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.home-benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.home-benefit-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* ============ CTA ============ */
.home-cta {
    text-align: center;
    padding: 5rem 1.5rem;
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at center left, #C5E67380 0%, transparent 40%),
        radial-gradient(circle at center right, #D4B9FB80 0%, transparent 40%);
}

.home-cta h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.home-cta .subtitle {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 2.5rem;
}

/* ============ Footer ============ */
/* ============ Responsive ============ */
@media (max-width: 767px) {
    .home-header {
        padding: 0.75rem 1rem;
    }

    .home-logo {
        width: 44px;
        height: 44px;
    }

    .home-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .home-nav.open {
        display: flex;
    }

    .home-nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .home-hero {
        padding: 3rem 1rem 2.5rem;
    }

    .home-hero h1 {
        font-size: 2.25rem;
    }

    .home-hero .subtitle {
        font-size: 1.05rem;
    }

    .home-section {
        padding: 3rem 1rem;
    }

    .home-section-title {
        font-size: 1.5rem;
    }

    .home-section-subtitle {
        font-size: 1rem;
    }

    .home-features-grid,
    .home-reviews-grid,
    .home-benefits-grid {
        grid-template-columns: 1fr;
    }

    .home-samples-row {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        padding: 1rem 0.5rem 0rem;
        gap: 0.75rem;
    }

    .home-sample-item {
        width: calc(50% - 0.5rem);
        min-width: 0;
        flex-shrink: 1;
        transform: scale(1);
        opacity: 1;
    }

    .home-sample-item.active {
        width: calc(50% - 0.5rem);
        transform: scale(1);
    }

    .home-sample-card {
        padding: 14px 14px 10px;
        border: 2px solid transparent !important;
        box-shadow: none !important;
    }

    .home-sample-player {
        padding: 6px 8px;
        gap: 4px;
        max-height: 60px;
        opacity: 1;
    }

    .home-sample-play-btn {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    .home-sample-play-btn svg {
        width: 10px;
        height: 10px;
    }

    .home-sample-label {
        display: none;
    }

    .home-sample-duration {
        font-size: 0.65rem;
    }

    .home-cta h2 {
        font-size: 1.75rem;
    }

}

@media (min-width: 768px) {
    .home-hero h1 {
        font-size: 3.5rem;
    }

    .home-sample-item {
        width: 200px;
    }
}
