/**
 * Fastmate Landing Page CSS
 * Mobile-first cinematic episode lobby.
 */

:root {
    --landing-bg: #0d0d0f;
    --landing-bg-soft: #151416;
    --landing-surface: #1b191b;
    --landing-surface-2: #242123;
    --landing-line: rgba(255, 255, 255, 0.1);
    --landing-line-strong: rgba(255, 255, 255, 0.18);
    --landing-text: #fff8f3;
    --landing-text-secondary: #c9bbb5;
    --landing-text-muted: #8e817c;
    --landing-primary: #ff4d6d;
    --landing-primary-soft: rgba(255, 77, 109, 0.18);
    --landing-accent: #17b890;
    --landing-accent-dark: #0f8d70;
    --landing-gold: #d6b56d;
    --landing-max-width: 520px;
    --landing-wide-width: 900px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    background: var(--landing-bg);
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--landing-text);
    background:
        linear-gradient(180deg, rgba(255, 77, 109, 0.08) 0, rgba(13, 13, 15, 0) 240px),
        radial-gradient(circle at 50% 0, rgba(214, 181, 109, 0.08), rgba(13, 13, 15, 0) 360px),
        var(--landing-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    -webkit-user-drag: none;
}

button {
    font: inherit;
}

img,
svg {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 52px;
    width: 100%;
    max-width: var(--landing-wide-width);
    margin: 0 auto;
    padding: env(safe-area-inset-top, 0) 18px 0;
    background: rgba(13, 13, 15, 0.86);
    border-bottom: 1px solid var(--landing-line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--landing-text);
    text-decoration: none;
}

.header-logo img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.header-logo span {
    font-size: 15px;
    font-weight: 750;
    letter-spacing: 0;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: rgba(232, 232, 238, 0.72);
    border-radius: 999px;
    text-decoration: none;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.header-social-link:hover,
.header-social-link:focus-visible {
    color: var(--landing-text);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.header-social-link svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.landing-main,
.landing-footer {
    width: 100%;
    max-width: var(--landing-wide-width);
    margin: 0 auto;
}

.landing-hero {
    width: 100%;
    max-width: var(--landing-max-width);
    margin: 0 auto;
    padding: 24px 16px 18px;
}

.landing-kicker,
.section-kicker {
    color: var(--landing-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.landing-kicker {
    margin-bottom: 10px;
    text-align: center;
}

.landing-hero-heading {
    color: var(--landing-text);
    font-size: 31px;
    font-weight: 850;
    line-height: 1.05;
    text-align: center;
    text-wrap: balance;
}

.landing-hero-copy {
    max-width: 430px;
    margin: 12px auto 0;
    color: var(--landing-text-secondary);
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.promise-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 16px 0 14px;
}

.promise-row span {
    min-height: 30px;
    padding: 7px 10px;
    color: var(--landing-text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--landing-line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.1;
}

.character-preference {
    margin: 14px 0 16px;
}

.character-preference-label {
    margin-bottom: 8px;
    color: var(--landing-text-muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    text-align: center;
}

.character-preference-control {
    display: grid;
    grid-template-columns: 0.72fr 1fr 1fr;
    gap: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--landing-line);
    border-radius: 8px;
}

.character-preference-btn {
    min-width: 0;
    min-height: 36px;
    padding: 8px 7px;
    color: var(--landing-text-secondary);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.1;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.character-preference-btn.active {
    color: #111012;
    background: var(--landing-text);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 410px;
    overflow: hidden;
    background: var(--landing-surface);
    border: 1px solid var(--landing-line);
    border-radius: 8px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    transform: scale(1.01);
}

.hero-slide-video {
    pointer-events: none;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 88px 18px 20px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0, rgba(0, 0, 0, 0.12) 35%, rgba(0, 0, 0, 0.84) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.36));
}

.hero-tags,
.episode-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hero-tags {
    min-width: 0;
}

.hero-tag,
.episode-card-tag {
    color: #ff9caf;
    background: rgba(255, 77, 109, 0.2);
    border: 1px solid rgba(255, 77, 109, 0.22);
    border-radius: 5px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
}

.hero-tag {
    padding: 5px 7px;
}

.episode-hero-title {
    color: var(--landing-text);
    font-size: 25px;
    font-weight: 850;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.episode-hero-desc {
    display: -webkit-box;
    margin-top: 8px;
    color: rgba(255, 248, 243, 0.86);
    font-size: 13px;
    line-height: 1.48;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.episode-hero-npc {
    margin-top: 9px;
    color: var(--landing-text-secondary);
    font-size: 12px;
}

.hero-action-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
}

.episode-hero-cta {
    flex: 0 0 auto;
    padding: 9px 12px;
    color: #0e0d0f;
    background: var(--landing-text);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 13px 0 6px;
}

.hero-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 22px;
    background: var(--landing-primary);
}

.hero-store-cta,
.bottom-cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hero-store-cta {
    margin-top: 12px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.1;
    text-decoration: none;
    transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.cta-btn svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.cta-btn:active {
    transform: translateY(1px) scale(0.99);
}

.cta-ios {
    color: #0f0e10;
    background: #fff8f3;
}

.cta-android {
    color: #ffffff;
    background: var(--landing-accent);
}

.section-heading {
    padding: 0 16px;
}

.section-heading h2,
.landing-features-title,
.landing-faq-title,
.bottom-cta-title {
    color: var(--landing-text);
    font-size: 21px;
    font-weight: 850;
    line-height: 1.16;
}

.featured-strip,
.episode-catalog,
.landing-features,
.landing-faq {
    padding: 18px 0 8px;
}

.featured-rail {
    display: grid;
    grid-auto-columns: 150px;
    grid-auto-flow: column;
    gap: 10px;
    margin-top: 12px;
    padding: 0 16px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.featured-rail::-webkit-scrollbar,
.genre-filter::-webkit-scrollbar {
    display: none;
}

.featured-item {
    position: relative;
    min-width: 0;
    color: inherit;
    overflow: hidden;
    background: var(--landing-surface);
    border: 1px solid var(--landing-line);
    border-radius: 8px;
    text-decoration: none;
}

.featured-item.is-voice,
.episode-card.is-voice,
.hero-slide.is-voice {
    border-color: rgba(23, 184, 144, 0.52);
    box-shadow: inset 0 0 0 1px rgba(23, 184, 144, 0.08);
}

.featured-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 18%;
}

.featured-meta {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: 4px;
    padding: 48px 10px 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.86));
}

.featured-rank-row {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 13px;
    gap: 5px;
}

.featured-rank {
    flex: 0 0 auto;
    color: var(--landing-gold);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.1;
}

.featured-title {
    display: block;
    color: var(--landing-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-voice-chip {
    display: inline-block;
    max-width: 82px;
    color: #7df1cf;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.genre-filter {
    margin: 12px 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.genre-filter-inner {
    display: inline-flex;
    gap: 8px;
    padding: 0 16px 8px;
}

.genre-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 8px 14px;
    color: var(--landing-text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--landing-line);
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.genre-chip.active {
    color: #111012;
    background: var(--landing-text);
    border-color: var(--landing-text);
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 8px 16px 18px;
}

.episode-card {
    position: relative;
    min-width: 0;
    color: inherit;
    overflow: hidden;
    background: var(--landing-surface);
    border: 1px solid var(--landing-line);
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.voice-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    height: 26px;
    padding: 0 8px;
    color: #ffffff;
    background: rgba(23, 184, 144, 0.92);
    border: 1px solid rgba(188, 255, 235, 0.34);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.voice-badge svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.voice-badge-label {
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.featured-item .voice-badge {
    top: 8px;
    left: 8px;
    height: 20px;
    gap: 3px;
    padding: 0 6px;
}

.featured-item .voice-badge svg {
    width: 10px;
    height: 10px;
    stroke-width: 2.3;
}

.featured-item .voice-badge-label {
    font-size: 8px;
}

.episode-card:active {
    transform: scale(0.98);
}

.episode-card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 18%;
    background: var(--landing-surface-2);
}

.episode-card-info {
    padding: 10px 10px 12px;
}

.episode-card-tags {
    min-height: 18px;
    margin-bottom: 7px;
}

.episode-card-tag {
    padding: 4px 6px;
}

.episode-card-title {
    display: -webkit-box;
    color: var(--landing-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.28;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.episode-card-desc {
    display: -webkit-box;
    margin-top: 6px;
    color: var(--landing-text-secondary);
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.episode-card-npc {
    margin-top: 7px;
    color: var(--landing-text-muted);
    font-size: 11px;
}

.episode-card-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 6px;
    color: var(--landing-accent);
    background: rgba(23, 184, 144, 0.13);
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.episode-more {
    display: flex;
    justify-content: center;
    padding: 0 16px 18px;
}

.episode-more-btn {
    width: 100%;
    max-width: 360px;
    min-height: 44px;
    color: var(--landing-text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--landing-line-strong);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
}

.feature-grid {
    display: grid;
    gap: 10px;
    padding: 12px 16px 8px;
}

.feature-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--landing-line);
    border-radius: 8px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--landing-primary);
    background: var(--landing-primary-soft);
    border-radius: 8px;
}

.feature-icon svg {
    width: 21px;
    height: 21px;
}

.feature-text h3 {
    color: var(--landing-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.feature-text p {
    margin-top: 5px;
    color: var(--landing-text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.landing-faq {
    max-width: var(--landing-max-width);
    margin: 0 auto;
    padding: 20px 16px 8px;
}

.landing-faq-title {
    margin-bottom: 12px;
}

.faq-item {
    padding: 14px 0;
    border-top: 1px solid var(--landing-line);
}

.faq-question {
    color: var(--landing-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.faq-answer {
    margin-top: 7px;
    color: var(--landing-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.bottom-cta {
    max-width: var(--landing-max-width);
    margin: 12px auto 0;
    padding: 28px 16px;
    text-align: center;
}

.bottom-cta-title {
    color: var(--landing-text);
}

.bottom-cta-desc {
    margin: 8px 0 18px;
    color: var(--landing-text-secondary);
    font-size: 14px;
    line-height: 1.45;
}

.landing-footer {
    padding: 22px 16px max(24px, env(safe-area-inset-bottom, 0));
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--landing-text-muted);
    font-size: 13px;
    text-decoration: none;
}

.footer-copy {
    color: var(--landing-text-muted);
    font-size: 12px;
}

.seo-content {
    padding: 16px;
}

.skeleton {
    background: linear-gradient(90deg, var(--landing-surface) 25%, var(--landing-surface-2) 50%, var(--landing-surface) 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: skeleton-pulse 1.5s infinite;
}

.hero-skeleton {
    width: 100%;
    height: 100%;
}

.skeleton-card {
    overflow: hidden;
    border-radius: 8px;
}

.skeleton-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
}

.skeleton-text {
    height: 14px;
    margin: 10px;
}

.skeleton-text-short {
    width: 60%;
    height: 12px;
    margin: 8px 10px 12px;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (hover: hover) and (pointer: fine) {
    .episode-card:hover,
    .featured-item:hover {
        transform: translateY(-2px);
        background: var(--landing-surface-2);
        border-color: var(--landing-line-strong);
    }

    .cta-btn:hover,
    .episode-more-btn:hover {
        opacity: 0.9;
    }
}

@media (min-width: 700px) {
    .landing-header {
        padding-left: 24px;
        padding-right: 24px;
    }

    .landing-hero {
        max-width: 620px;
        padding-top: 34px;
    }

    .landing-hero-heading {
        font-size: 40px;
    }

    .landing-hero-copy {
        font-size: 15px;
    }

    .hero-carousel {
        max-height: 470px;
    }

    .featured-strip,
    .episode-catalog,
    .landing-features {
        max-width: var(--landing-wide-width);
        margin: 0 auto;
    }

    .section-heading {
        padding-left: 24px;
        padding-right: 24px;
    }

    .featured-rail {
        grid-auto-columns: auto;
        grid-auto-flow: unset;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow: visible;
        padding-left: 24px;
        padding-right: 24px;
    }

    .genre-filter-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .episode-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-left: 24px;
        padding-right: 24px;
    }

    .feature-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .landing-hero-heading {
        font-size: 28px;
    }

    .hero-store-cta,
    .bottom-cta-buttons {
        grid-template-columns: 1fr;
    }
}
