
:root {
    --landing-accent: #2B8659;
    --landing-accent-hover: #2CC77B;
    --landing-white: #FFFFFF;
    --landing-muted: #B9C3BF;
    --landing-bg: #07110E;
    --landing-panel: #0D1914;
    --landing-border: rgba(255, 255, 255, 0.09);
    --landing-width: 1240px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    background: #000;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #000;
    color: var(--landing-white);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.landing-page {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: clip;
    background: var(--landing-bg);
}

.landing-background {
    position: absolute;
    z-index: -2;
    inset: 0 0 auto;
    height: 900px;
    background-color: var(--landing-bg);
    background-image: url("../../images/landing-background.jpeg");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    animation: landing-background-reveal 1.2s ease-out both;
}

.landing-overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .57) 0%,
            rgba(0, 0, 0, .26) 300px,
            #07110E 850px,
            #07110E 100%
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .48),
            rgba(0, 0, 0, .08) 55%,
            rgba(0, 0, 0, .36)
        );
}

/* Header */
.landing-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    padding: 24px max(5%, calc((100% - var(--landing-width)) / 2));
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    background: rgba(4, 10, 7, .24);
    backdrop-filter: blur(12px);
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.landing-logo img {
    display: block;
    width: 155px;
    max-width: 35vw;
    height: auto;
    object-fit: contain;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.landing-nav a,
.footer-links a {
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms ease;
}

.landing-nav a:hover,
.footer-links a:hover {
    color: var(--landing-accent-hover);
}

.header-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 21px;
    border: 1px solid rgba(44, 199, 123, .4);
    border-radius: 6px;
    background: var(--landing-accent);
    color: #061B11;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
}

.header-signin:hover {
    background: var(--landing-accent-hover);
    transform: translateY(-1px);
}

/* Hero */
.landing-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(690px, 78svh);
    padding: 100px 24px 115px;
    box-sizing: border-box;
    text-align: center;
}

.landing-content {
    width: 100%;
    max-width: 950px;
    animation: landing-content-reveal 850ms ease-out both;
}

.landing-eyebrow,
.section-kicker {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--landing-accent-hover);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    line-height: 1.6;
}

.landing-content h1 {
    max-width: 900px;
    margin: 0 auto 24px;
    color: #FFF;
    font-size: clamp(44px, 6.4vw, 78px);
    font-weight: 850;
    line-height: 1.06;
    letter-spacing: -.05em;
    text-wrap: balance;
}

.landing-content h1 span {
    display: block;
    color: var(--landing-accent-hover);
}

.landing-subtitle {
    margin: 0 auto 14px;
    color: #FFF;
    font-size: clamp(19px, 2.2vw, 25px);
    font-weight: 600;
    line-height: 1.5;
}

.landing-description {
    max-width: 610px;
    margin: 0 auto 30px;
    color: #D0D8D4;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.8;
}

.landing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 29px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--landing-accent);
    color: #061B11;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(57, 217, 138, .12);
    transition:
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.landing-cta svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    transition: transform 180ms ease;
}

.landing-cta:hover {
    background: var(--landing-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(57, 217, 138, .22);
}

.landing-cta:hover svg {
    transform: translateX(4px);
}

.hero-note {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .56);
    font-size: 12px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .64);
    font-size: 11px;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.hero-scroll span:last-child {
    color: var(--landing-accent-hover);
    font-size: 18px;
}

/* Shared content sections */
.landing-section {
    width: 100%;
    max-width: var(--landing-width);
    margin: 0 auto;
    padding: 76px 28px;
    box-sizing: border-box;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.section-heading > div {
    max-width: 730px;
}

.section-kicker {
    margin-bottom: 10px;
    font-size: 10px;
}

.section-heading h2,
.why-intro h2,
.faq-intro h2 {
    margin: 0 0 12px;
    color: #FFF;
    font-size: clamp(27px, 3.3vw, 39px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.section-heading p,
.why-intro > p,
.faq-intro > p {
    max-width: 650px;
    margin: 0;
    color: var(--landing-muted);
    font-size: 14px;
    line-height: 1.8;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    padding-bottom: 5px;
    color: #A8E8C7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.section-link:hover {
    color: #FFF;
}

.catalogue-status {
    margin: 12px 0 20px;
    color: var(--landing-muted);
    font-size: 13px;
    line-height: 1.7;
}

.catalogue-status:empty {
    display: none;
}

/* Featured titles */
.featured-section {
    padding-top: 50px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.featured-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--landing-border);
    border-radius: 10px;
    background: #0B1511;
    transition: border-color 200ms ease, transform 200ms ease;
}

.featured-card:hover {
    border-color: rgba(44, 199, 123, .48);
    transform: translateY(-4px);
}

.featured-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.featured-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #14231B;
}

.featured-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.featured-card:hover .featured-poster img {
    transform: scale(1.05);
}

.featured-poster::after {
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .48));
    content: "";
    pointer-events: none;
}

.featured-type {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 4px;
    background: rgba(0, 0, 0, .62);
    color: #FFF;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.featured-card-body {
    padding: 16px;
}

.featured-card-body h3 {
    overflow: hidden;
    margin: 0 0 8px;
    color: #FFF;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.featured-card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #AEBBB4;
    font-size: 12px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.featured-card-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
    color: #9DE7BD;
    font-size: 12px;
    font-weight: 750;
}

/* Genre cards */
.genres-section {
    max-width: none;
    padding-right: max(28px, calc((100% - var(--landing-width)) / 2));
    padding-left: max(28px, calc((100% - var(--landing-width)) / 2));
    background: linear-gradient(180deg, #09140F, #0B1812);
    border-top: 1px solid rgba(255, 255, 255, .035);
    border-bottom: 1px solid rgba(255, 255, 255, .035);
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
}

.genre-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 1.35 / 1;
    border: 1px solid var(--landing-border);
    border-radius: 9px;
    background: #14231B;
    color: #FFF;
    text-decoration: none;
    isolation: isolate;
    transition: border-color 200ms ease, transform 200ms ease;
}

.genre-card:hover {
    border-color: rgba(44, 199, 123, .65);
    transform: translateY(-3px);
}

.genre-card img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.genre-card:hover img {
    transform: scale(1.07);
}

.genre-card::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, .02) 15%,
        rgba(0, 0, 0, .18) 42%,
        rgba(0, 0, 0, .91) 100%
    );
    content: "";
}

.genre-card span {
    display: block;
    width: 100%;
    padding: 18px 15px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

/* Benefits */
.why-section {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 64px;
    padding-top: 100px;
    padding-bottom: 100px;
}

.why-intro h2 {
    max-width: 430px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.benefit-card {
    padding: 24px;
    border: 1px solid var(--landing-border);
    border-radius: 10px;
    background: linear-gradient(145deg, #0D1B14, #09110D);
}

.benefit-card:last-child {
    grid-column: 1 / -1;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border: 1px solid rgba(44, 199, 123, .24);
    border-radius: 9px;
    background: rgba(43, 134, 89, .14);
}

.benefit-icon svg {
    width: 22px;
    height: 22px;
    stroke: #70D99D;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-card h3,
.step-card h3 {
    margin: 0 0 10px;
    color: #FFF;
    font-size: 16px;
    line-height: 1.45;
}

.benefit-card p,
.step-card p {
    margin: 0;
    color: var(--landing-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* Steps */
.steps-section {
    max-width: none;
    padding-right: max(28px, calc((100% - var(--landing-width)) / 2));
    padding-left: max(28px, calc((100% - var(--landing-width)) / 2));
    background: #0A1510;
    border-top: 1px solid var(--landing-border);
    border-bottom: 1px solid var(--landing-border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    padding: 27px;
    border: 1px solid var(--landing-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, .018);
}

.step-number {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--landing-accent-hover);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .12em;
}

/* FAQ */
.faq-section {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    align-items: start;
    gap: 65px;
    padding-top: 100px;
    padding-bottom: 100px;
}

.faq-list {
    border-top: 1px solid var(--landing-border);
}

.faq-item {
    border-bottom: 1px solid var(--landing-border);
}

.faq-item summary {
    position: relative;
    padding: 21px 35px 21px 0;
    color: #F6F8F7;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    position: absolute;
    top: 20px;
    right: 3px;
    color: var(--landing-accent-hover);
    font-size: 21px;
    font-weight: 400;
    content: "+";
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    max-width: 650px;
    margin: -3px 0 22px;
    color: var(--landing-muted);
    font-size: 13px;
    line-height: 1.85;
}

/* Final call to action */
.landing-final-cta {
    position: relative;
    overflow: hidden;
    padding: 90px 24px;
    border-top: 1px solid rgba(44, 199, 123, .13);
    border-bottom: 1px solid rgba(44, 199, 123, .13);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(43, 134, 89, .23), transparent 65%),
        linear-gradient(180deg, #0B1811, #07110E);
    text-align: center;
}

.final-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-content h2 {
    margin: 0 auto 14px;
    color: #FFF;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.final-cta-content p {
    margin: 0 auto 27px;
    color: var(--landing-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* Footer */
.landing-footer-expanded {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 35px 24px 28px;
    background: #050A07;
    text-align: center;
}

.footer-brand {
    color: #FFF;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .12em;
    text-decoration: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 23px;
}

.landing-footer-expanded > p {
    margin: 0;
    color: rgba(255, 255, 255, .45);
    font-size: 11px;
    line-height: 1.7;
}

/* Loading / empty / error states */
.catalogue-status:not(:empty) {
    padding: 15px 17px;
    border: 1px solid var(--landing-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
}

.catalogue-status[data-state="error"] {
    border-color: rgba(255, 150, 120, .2);
    color: #F0B4A2;
}

/* Accessibility */
.landing-logo:focus-visible,
.landing-nav a:focus-visible,
.header-signin:focus-visible,
.landing-cta:focus-visible,
.section-link:focus-visible,
.footer-links a:focus-visible,
.featured-card-link:focus-visible,
.genre-card:focus-visible,
.faq-item summary:focus-visible {
    outline: 3px solid #FFF;
    outline-offset: 4px;
}

@keyframes landing-content-reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landing-background-reveal {
    from { transform: scale(1.06); }
    to { transform: scale(1.02); }
}

/* Tablet */
@media (max-width: 900px) {
    .landing-nav {
        gap: 18px;
    }

    .landing-hero {
        min-height: 620px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .genres-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .why-section,
    .faq-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .why-intro,
    .faq-intro {
        max-width: 650px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    html {
        scroll-padding-top: 20px;
    }

    .landing-header {
        gap: 12px;
        padding: 18px 20px;
    }

    .landing-logo img {
        width: 125px;
    }

    .landing-nav {
        display: none;
    }

    .header-signin {
        min-height: 36px;
        padding: 0 15px;
        font-size: 13px;
    }

    .landing-background {
        height: 740px;
        background-position: center top;
    }

    .landing-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, .62) 0%,
                rgba(0, 0, 0, .38) 25%,
                rgba(0, 0, 0, .67) 60%,
                #07110E 100%
            );
    }

    .landing-hero {
        min-height: 630px;
        padding: 75px 22px 100px;
    }

    .landing-eyebrow {
        font-size: 9px;
        letter-spacing: .16em;
    }

    .landing-content h1 {
        margin-bottom: 21px;
        font-size: clamp(38px, 10.5vw, 54px);
        letter-spacing: -.045em;
    }

    .landing-subtitle {
        font-size: 18px;
    }

    .landing-description {
        max-width: 390px;
        margin-bottom: 26px;
        font-size: 14px;
        line-height: 1.8;
    }

    .landing-cta {
        min-height: 53px;
        padding: 0 22px;
        font-size: 16px;
    }

    .hero-scroll {
        bottom: 28px;
    }

    .landing-section {
        padding: 58px 20px;
    }

    .featured-section {
        padding-top: 35px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .section-heading h2,
    .why-intro h2,
    .faq-intro h2 {
        font-size: 29px;
    }

    .section-heading p,
    .why-intro > p,
    .faq-intro > p {
        font-size: 13px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .featured-card {
        border-radius: 8px;
    }

    .featured-poster {
        aspect-ratio: 4 / 3;
    }

    .featured-type {
        top: 8px;
        left: 8px;
        padding: 5px 7px;
        font-size: 9px;
    }

    .featured-card-body {
        padding: 12px;
    }

    .featured-card-body h3 {
        font-size: 14px;
    }

    .featured-card-body p {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .featured-card-action {
        font-size: 11px;
    }

    .genres-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .genre-card {
        aspect-ratio: 1.25 / 1;
    }

    .genre-card span {
        padding: 13px 12px;
        font-size: 13px;
    }

    .why-section,
    .faq-section {
        gap: 28px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card,
    .benefit-card:last-child {
        grid-column: auto;
        padding: 21px;
    }

    .benefit-icon {
        margin-bottom: 15px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .step-card {
        padding: 21px;
    }

    .step-number {
        margin-bottom: 14px;
    }

    .faq-item summary {
        padding-top: 18px;
        padding-bottom: 18px;
        font-size: 13px;
    }

    .faq-item summary::after {
        top: 17px;
    }

    .landing-final-cta {
        padding: 70px 22px;
    }

    .final-cta-content h2 {
        font-size: 34px;
    }

    .final-cta-content p {
        font-size: 14px;
    }

    .footer-links {
        gap: 15px 20px;
    }
}

@media (max-width: 360px) {
    .landing-content h1 {
        font-size: 36px;
    }

    .featured-grid {
        gap: 9px;
    }

    .featured-card-body {
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .landing-content,
    .landing-background {
        animation: none;
    }

    .landing-cta,
    .landing-cta svg,
    .header-signin,
    .featured-card,
    .featured-poster img,
    .genre-card,
    .genre-card img {
        transition: none;
    }
}
