/* Home page — aligned with frontend-pro design system */

.home-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--ss-header-h, 72px);
    background:
        linear-gradient(165deg, #fff 0%, var(--ss-bg, #fafafa) 50%, var(--ss-primary-light, #ffebee) 100%);
}

.home-hero .hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero .hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(250,250,250,.92) 100%);
    z-index: 1;
}

.home-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.home-ticker {
    position: relative;
    z-index: 3;
    background: var(--ss-surface, #fff);
    border-top: 1px solid var(--ss-border, #e8e8e8);
}

.home-section {
    padding: var(--ss-section-y, clamp(4rem, 9vw, 7rem)) 0;
}

.home-section-alt {
    background: var(--ss-surface-alt, #f5f5f7);
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.35rem;
}

.home-feature-card {
    background: var(--ss-surface, #fff);
    border: 1px solid var(--ss-border, #e8e8e8);
    border-radius: var(--ss-radius-lg, 20px);
    padding: 1.75rem;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.home-feature-card:hover {
    border-color: rgba(244, 67, 54, .3);
    box-shadow: 0 16px 40px rgba(244, 67, 54, 0.08);
    transform: translateY(-4px);
}

.home-feature-card img.icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.15rem;
    filter: drop-shadow(0 6px 14px rgba(244, 67, 54, 0.18));
}

.home-platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.home-platform-image {
    border-radius: var(--ss-radius-lg, 20px);
    border: 1px solid var(--ss-border, #e8e8e8);
    overflow: hidden;
    box-shadow: var(--ss-shadow-lg, 0 12px 40px rgba(0, 0, 0, 0.1));
}

.home-platform-image img {
    width: 100%;
    display: block;
}

.home-spreads-card {
    margin-top: 1rem;
    background: var(--ss-surface, #fff);
    border: 1px solid var(--ss-border, #e8e8e8);
    border-radius: var(--ss-radius, 12px);
    padding: 1rem 1.25rem;
    box-shadow: var(--ss-shadow, 0 4px 24px rgba(0, 0, 0, 0.06));
}

.home-spreads-card h4 {
    font-size: .75rem;
    font-weight: 700;
    color: var(--ss-primary, #f44336);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 .75rem;
}

.home-spread-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid var(--ss-border, #e8e8e8);
    font-size: .875rem;
}

.home-spread-row:last-child { border-bottom: none; }

.home-account-card {
    background: var(--ss-surface, #fff);
    border: 1px solid var(--ss-border, #e8e8e8);
    border-radius: var(--ss-radius-lg, 20px);
    padding: 1.75rem;
    height: 100%;
    transition: all .25s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.home-account-card:hover {
    border-color: var(--ss-primary, #f44336);
    box-shadow: 0 12px 32px rgba(244, 67, 54, .12);
    transform: translateY(-4px);
}

.home-account-card.featured {
    border-color: var(--ss-primary, #f44336);
    box-shadow: 0 0 0 1px rgba(244, 67, 54, .2);
}

@media (max-width: 768px) {
    .home-platform-grid { grid-template-columns: 1fr; }
    .home-hero { min-height: 70vh; }
    .home-section { padding: 3rem 0; }
}
