/* Home — platform chooser + optional AdSense rails */

.home-layout {
    min-height: calc(100vh - var(--st-header-h));
    min-height: calc(100dvh - var(--st-header-h));
    display: flex;
    flex-direction: column;
}

.home-hero-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px 20px 48px;
    width: 100%;
    background:
        radial-gradient(ellipse 85% 55% at 50% -25%, rgba(var(--st-accent-rgb), 0.09), transparent),
        radial-gradient(ellipse 55% 45% at 100% 40%, rgba(var(--st-star-rgb), 0.06), transparent),
        var(--st-bg);
}

.home-with-ads {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    gap: 0;
}

.home-with-ads--has-rails {
    max-width: 1320px;
}

.home-center {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.home-ad-rail {
    display: none;
    flex-shrink: 0;
    width: 160px;
    position: sticky;
    top: calc(var(--st-header-h) + 16px);
    align-self: flex-start;
    padding-top: 8px;
}

.home-ad-wrap {
    min-height: 250px;
    border-radius: var(--st-radius);
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    overflow: hidden;
    box-shadow: var(--st-shadow);
}

.home-ad-slot {
    min-height: 250px;
}

@media (min-width: 1100px) {
    .home-with-ads--has-rails {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: clamp(20px, 2.5vw, 32px);
    }

    .home-with-ads--has-rails .home-ad-rail {
        display: block;
    }

    .home-with-ads--has-rails .home-center {
        flex: 1;
        max-width: min(560px, 100%);
    }
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

@media (min-width: 1100px) {
    .home-with-ads--has-rails .hero {
        max-width: 100%;
    }
}

.hero-headline {
    margin: 0 0 2.5rem;
    padding: 0;
    text-align: center;
    text-wrap: balance;
}

.hero-headline__primary {
    display: block;
    font-size: clamp(1.85rem, 1.1rem + 3.2vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.18;
    color: var(--st-text);
}

.hero-headline__accent {
    background: linear-gradient(105deg, var(--st-accent) 0%, var(--st-accent-mid) 50%, var(--st-star) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-headline__secondary {
    display: block;
    margin-top: 0.65rem;
    font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.45rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.45;
    color: var(--st-muted);
}

.platform-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .platform-grid {
        max-width: 480px;
        gap: 22px;
    }
}

@media (min-width: 1100px) {
    .home-with-ads--has-rails .platform-grid {
        max-width: 520px;
    }
}

.platform-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 188px;
    padding: 36px 28px;
    border: 1px solid var(--st-border);
    border-radius: 24px;
    background: var(--st-surface);
    text-decoration: none;
    color: var(--st-text);
    overflow: hidden;
    box-shadow: var(--st-shadow);
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease,
        background 0.22s ease;
}

@media (min-width: 900px) {
    .platform-card {
        min-height: 220px;
        padding: 44px 32px;
        border-radius: 26px;
    }
}

@media (min-width: 1100px) {
    .platform-card {
        min-height: 248px;
        padding: 48px 36px;
        border-radius: 28px;
    }
}

.platform-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.platform-card:hover::before {
    opacity: 0.16;
    transform: scale(1.02);
}

.platform-card--onlyfans {
    background: linear-gradient(165deg, rgba(0, 175, 240, 0.07) 0%, var(--st-surface) 42%, var(--st-surface) 100%);
    border-color: rgba(0, 175, 240, 0.22);
    box-shadow:
        var(--st-shadow),
        0 0 0 1px rgba(0, 175, 240, 0.06) inset;
}

.platform-card--fansly {
    background: linear-gradient(165deg, rgba(255, 45, 109, 0.06) 0%, var(--st-surface) 40%, var(--st-surface) 100%);
    border-color: rgba(184, 85, 240, 0.2);
    box-shadow:
        var(--st-shadow),
        0 0 0 1px rgba(255, 45, 109, 0.05) inset;
}

.platform-card--fanvue {
    background: linear-gradient(165deg, rgba(124, 58, 237, 0.07) 0%, var(--st-surface) 40%, var(--st-surface) 100%);
    border-color: rgba(168, 85, 247, 0.22);
    box-shadow:
        var(--st-shadow),
        0 0 0 1px rgba(124, 58, 237, 0.06) inset;
}

.platform-card--active {
    border-color: var(--st-accent);
    background: var(--st-accent-soft);
    box-shadow:
        0 8px 32px rgba(var(--st-accent-rgb), 0.14),
        0 0 0 1px rgba(var(--st-accent-rgb), 0.12) inset;
}

.platform-card--active.platform-card--onlyfans,
.platform-card--active.platform-card--fansly,
.platform-card--active.platform-card--fanvue {
    background: var(--st-accent-soft);
    border-color: var(--st-accent);
}

.platform-card:hover {
    border-color: var(--st-accent);
    box-shadow:
        0 14px 44px rgba(var(--st-accent-rgb), 0.14),
        0 0 0 1px rgba(var(--st-accent-rgb), 0.08) inset;
    transform: translateY(-5px);
}

.platform-card:focus-visible {
    outline: 2px solid var(--st-accent);
    outline-offset: 3px;
}

.platform-card__label {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

@media (min-width: 900px) {
    .platform-card__label {
        gap: 12px;
    }
}

.platform-card__pretitle,
.platform-card__subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--st-muted);
    letter-spacing: 0.02em;
}

@media (min-width: 900px) {
    .platform-card__pretitle,
    .platform-card__subtitle {
        font-size: 16px;
    }
}

@media (min-width: 1100px) {
    .platform-card__pretitle,
    .platform-card__subtitle {
        font-size: 17px;
    }
}

.platform-card__subtitle {
    text-transform: lowercase;
}

.platform-brand--onlyfans {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
}

.platform-brand--onlyfans .brand-of-only {
    color: var(--st-of-only);
}

.platform-brand--onlyfans .brand-of-fans {
    color: var(--st-of-fans);
}

.platform-brand--fansly {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(120deg, #e11d5c 0%, #f472b6 42%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(225, 29, 92, 0.12));
}

.platform-brand--fanvue {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(115deg, #6d28d9 0%, #a78bfa 38%, #db2777 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(109, 40, 217, 0.12));
}

@media (max-width: 768px) {
    .home-hero-wrap {
        padding: 20px 16px 36px;
    }

    .hero {
        max-width: 100%;
    }

    .hero-headline {
        margin-bottom: 2rem;
    }

    .platform-grid {
        max-width: 100%;
        gap: 14px;
    }

    .platform-card {
        min-height: 160px;
        padding: 28px 22px;
        border-radius: 22px;
    }

    .platform-brand--onlyfans,
    .platform-brand--fansly,
    .platform-brand--fanvue {
        font-size: 24px;
    }
}
