* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #090b10;
    --card: #11151d;
    --card-hover: #181d27;
    --text: #ffffff;
    --muted: #9ca3af;
    --border: #242a35;
    --primary: #7c5cff;
    --primary-dark: #6042db;
    --success: #22c55e;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

button {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}

/* ========================================================= HEADER ========================================================= */
.header {
    height: 72px;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 11, 16, .95);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
}

.logo span {
    margin-right: 6px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 10px 14px;
}

.nav button:hover {
    color: white;
}

/* ========================================================= SCREENS ========================================================= */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* ========================================================= HERO ========================================================= */
.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 760px;
}

.badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(124, 92, 255, .15);
    color: #b9aaff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.hero p {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
    max-width: 650px;
    margin-bottom: 30px;
}

.latest-content-modal {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 10000;

    align-items: center;
    justify-content: center;
}

.latest-content-modal.active {
    display: flex;
}

.latest-content-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.75);
}

.latest-content-card {
    position: relative;
    z-index: 2;

    width: min(
        430px,
        calc(100% - 32px)
    );

    padding: 30px;

    background: #11151d;

    border: 1px solid #2a303b;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 25px 80px
        rgba(0, 0, 0, 0.45);
}

.latest-content-icon {
    font-size: 46px;

    margin-bottom: 15px;
}

.latest-content-card h2 {
    margin: 0 0 10px;

    color: #fff;

    font-size: 25px;

    line-height: 1.3;
}

.latest-content-card p {
    margin: 0 0 25px;

    color: #9ca3af;

    font-size: 14px;

    line-height: 1.6;
}

.latest-content-close {
    position: absolute;

    top: 10px;
    right: 12px;

    border: 0;

    background: transparent;

    color: #9ca3af;

    font-size: 25px;

    cursor: pointer;
}

.latest-content-actions {
    display: flex;

    gap: 12px;
}

.latest-content-actions button {
    flex: 1;

    padding: 13px 18px;

    border-radius: 10px;

    font-weight: 700;

    cursor: pointer;
}

.no-btn {
    border: 1px solid #343b47;

    background: transparent;

    color: #fff;
}

.yes-btn {
    border: 0;

    background: #7c5cff;

    color: #fff;
}

.yes-btn:hover {
    background: #6848e8;
}

/* ========================================================= BUTTONS ========================================================= */
.primary-btn,
.secondary-btn {
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    padding: 14px 22px;
    font-weight: 800;
    transition: .2s;
}

.primary-btn {
    background: var(--primary);
    color: white;
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.secondary-btn {
    background: white;
    color: #111;
}

.secondary-btn:hover {
    transform: translateY(-2px);
}

.back-btn {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
}

/* ========================================================= SECTIONS ========================================================= */
.section {
    padding: 70px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
}

.eyebrow {
    color: #9f8dff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
}

.section h2 {
    font-size: 30px;
}

/* ========================================================= CATEGORY ========================================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.category-grid.large {
    margin-top: 40px;
}

.category-card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 18px;
    padding: 24px;
    cursor: pointer;
    transition: .2s;
}

.category-card:hover {
    background: var(--card-hover);
    border-color: #4b5563;
    transform: translateY(-3px);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.category-card h3 {
    margin-bottom: 6px;
}

.category-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ========================================================= ADS ========================================================= */
.ad-container {
    margin-top: 24px;
    margin-bottom: 24px;
}

.ad-label {
    color: #697180;
    font-size: 9px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.display-ad {
    min-height: 120px;
    border: 1px dashed #252b36;
    background: #0d1016;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #414856;
    font-size: 11px;
}

/* ========================================================= MOVIES ========================================================= */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.movie-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.movie-image {
    height: 230px;
    background: linear-gradient(135deg, #27213e, #11151d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.movie-content {
    padding: 20px;
}

.movie-content h3 {
    margin-bottom: 8px;
}

.movie-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ========================================================= QUIZ ========================================================= */
.quiz-container {
    padding-top: 80px;
    padding-bottom: 100px;
    max-width: 850px;
}

.quiz-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 14px;
}

.progress {
    width: 100%;
    height: 6px;
    background: #1d222c;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 35px;
}

.progress-bar {
    height: 100%;
    width: 20%;
    background: var(--primary);
    transition: .3s;
}

.quiz-card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 22px;
    padding: 35px;
}

.quiz-card h1 {
    font-size: 34px;
    margin-bottom: 30px;
}

.answers {
    display: grid;
    gap: 12px;
}

.answer {
    border: 1px solid var(--border);
    background: #0d1016;
    color: white;
    border-radius: 13px;
    padding: 18px;
    text-align: left;
    cursor: pointer;
    transition: .2s;
}

.answer:hover {
    border-color: var(--primary);
    background: #151322;
}

/* ========================================================= RESULT ========================================================= */
.result-container {
    padding-top: 70px;
    padding-bottom: 100px;
}

.result-header {
    margin-bottom: 35px;
}

.result-header h1 {
    font-size: 48px;
    margin-bottom: 12px;
}

.result-header p {
    color: var(--muted);
    font-size: 17px;
}

.recommendation-card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 25px;
}

.recommendation-image {
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    background: linear-gradient(135deg, #2e2450, #12151c);
}

.recommendation-content {
    padding: 30px;
}

.recommendation-content h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.recommendation-content p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ========================================================= REWARD ========================================================= */
.reward-box {
    border: 1px solid #3a315d;
    background: #151225;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.reward-box>div {
    display: flex;
    gap: 14px;
    align-items: center;
}

.reward-icon {
    font-size: 34px;
}

.reward-box p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
}

/* ========================================================= ANCHOR AD ========================================================= */
.anchor-ad {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #11151d;
    border-top: 1px solid var(--border);
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.anchor-content {
    width: min(728px, 90%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #596170;
    font-size: 11px;
}

.anchor-content button {
    background: transparent;
    border: 0;
    color: #89919f;
    font-size: 22px;
    cursor: pointer;
}

/* ========================================================= INTERSTITIAL ========================================================= */
.interstitial {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
}

.interstitial.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.interstitial-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .8);
}

.interstitial-card {
    position: relative;
    z-index: 2;
    width: min(650px, calc(100% - 30px));
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
}

.interstitial-close {
    position: absolute;
    right: 15px;
    top: 10px;
    background: transparent;
    border: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.interstitial-ad {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1016;
    color: #4b5563;
}

/* =========================================================
   LEGAL / STATIC PAGES
========================================================= */

.legal-page {
    min-height: calc(100vh - 80px);
    padding: 70px 0 90px;
}

.legal-container {
    max-width: 1000px;
}

.legal-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

.legal-hero h1 {
    margin: 18px 0 15px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.legal-hero p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.75;
}

.legal-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.legal-card h2 {
    margin-top: 35px;
    margin-bottom: 14px;
    font-size: 25px;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card h3 {
    margin-bottom: 10px;
}

.legal-card p {
    line-height: 1.8;
    margin: 0 0 18px;
    opacity: 0.88;
}

.legal-card ul {
    padding-left: 24px;
    margin: 15px 0 25px;
}

.legal-card li {
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-card a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.info-box {
    padding: 25px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.info-box > span {
    display: block;
    font-size: 30px;
    margin-bottom: 15px;
}

.info-box h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.info-box p {
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    margin: 25px 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-box > span {
    font-size: 32px;
}

.contact-box strong {
    display: block;
    margin-bottom: 5px;
}

.contact-box p {
    margin: 0;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #111827;
    color: #d1d5db;
    margin-top: 80px;
    border-top: 1px solid #1f2937;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 24px 25px;
}

/* Footer Main */

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 45px;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 18px;
}

.footer-logo span {
    font-size: 28px;
}

.footer-description {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* Footer Columns */

.footer-column h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

/* Footer Divider */

.footer-divider {
    height: 1px;
    background: #1f2937;
    width: 100%;
}

/* Footer Bottom */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
}

.footer-copyright {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-bottom-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}


/* =========================================================
   FOOTER RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 600px;
    }

}


@media (max-width: 600px) {

    .site-footer {
        margin-top: 55px;
    }

    .footer-container {
        padding: 40px 20px 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 35px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 20px;
    }

    .footer-bottom-links {
        gap: 12px 18px;
    }

}

@media (max-width: 800px) {

    .legal-page {
        padding: 45px 0 60px;
    }

    .legal-card {
        padding: 28px 22px;
        border-radius: 18px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

}

@media (max-width: 520px) {

    .legal-hero h1 {
        font-size: 36px;
    }

    .legal-card h2 {
        font-size: 22px;
    }

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

}

/* ========================================================= MOBILE ========================================================= */
@media (max-width: 750px) {
    .nav {
        display: none;
    }

    .hero {
        min-height: 440px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .category-grid,
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .quiz-card {
        padding: 22px;
    }

    .quiz-card h1 {
        font-size: 27px;
    }

    .result-header h1 {
        font-size: 36px;
    }

    .reward-box {
        flex-direction: column;
        align-items: stretch;
    }

    .secondary-btn {
        width: 100%;
    }
}