@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   DESIGN TOKENS — Enhanced Dark Theme
   ============================================================ */
:root {
    /* Background — layered, richer depth */
    --bg-color: #0f0f1a;
    --bg-surface: #13131f;
    --nav-bg: #16162a;

    /* Text */
    --heading-color: #eef0ff;
    --body-1: #e2e5f8;
    --body-2: #9197b8;
    --body-3: #565b7a;
    --body-4: #6e7494;
    --text-hover: #818cf8;

    /* Accent — richer indigo + warm gold */
    --accent-color: #7c7ff5;
    --accent-primary: #7c7ff5;
    --accent-primary-hover: #6366f1;
    --accent-glow: rgba(124, 127, 245, 0.25);
    --accent-subtle: rgba(124, 127, 245, 0.08);
    --tag-color: rgba(245, 158, 11, 0.15);
    --accent-gold: #f5c842;
    --accent-gold-glow: rgba(245, 200, 66, 0.2);

    /* Button */
    --btn-color: #7c7ff5;
    --btn-text: #ffffff;

    /* Icons */
    --icon-color: #eef0ff;

    /* Card — better separation and depth */
    --card-bg: #1a1b2e;
    --card-stroke: #252640;
    --card-shadow: rgba(0, 0, 0, 0.5);
    --card-bg-secondary: #1e1f35;
    --card-stroke-secondary: #323460;
    --card-text-primary: #eef0ff;
    --card-text-secondary: #d0d4f8;
    --card-hover-secondary: rgba(124, 127, 245, 0.1);
    --card-bg-tertiary: #252640;
    --card-stroke-tertiary: #3a3d6e;
    --card-text-tertiary: #9197b8;
    --card-hover-tertiary: rgba(124, 127, 245, 0.06);

    /* Feedback */
    --correct-bg: rgba(52, 211, 153, 0.12);
    --correct-border: #34d399;
    --correct-text: #6ee7b7;
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.12);
    --danger-border: #f87171;
    --danger-text: #fca5a5;
    --neutral-bg: rgba(100, 116, 139, 0.15);
    --neutral-border: #64748b;
    --neutral-text: #cbd5e1;
    --note: rgba(124, 127, 245, 0.08);

    /* Nav */
    --nav-height: 4.5rem;
    --nav-text: #eef0ff;
    --nav-text-hover: #818cf8;
    --nav-text-active: #a5b4fc;

    /* Type scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 1.875rem;
    --text-3xl: 2.25rem;
    --text-4xl: 3rem;

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Container */
    --container-max: 75rem;
    --container-pad: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(124, 127, 245, 0.15);

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
}

/* ============================================================
   BASE
   ============================================================ */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--body-2);
    overflow-x: hidden;
    padding-top: var(--nav-height);
    /* Atmospheric background */
    background-image:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 127, 245, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(245, 200, 66, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Subtle noise overlay for depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    position: relative;
    z-index: 1;
}

/* ============================================================
   CURSOR — Enhanced
   ============================================================ */
* {
    cursor: none !important;
}

#ep-cursor {
    position: fixed;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    left: 0;
    top: 0;
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
    box-shadow: 0 0 8px var(--accent-glow);
}

#ep-cursor-trail {
    position: fixed;
    width: 2rem;
    height: 2rem;
    border: 1.5px solid rgba(124, 127, 245, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    left: 0;
    top: 0;
    transition: border-color 0.3s ease;
}

@media (max-width: 64rem),
(hover: none) and (pointer: coarse) {
    #ep-cursor,
    #ep-cursor-trail {
        display: none !important;
    }
    * {
        cursor: auto !important;
    }
    a,
    button,
    label,
    select,
    input[type="button"],
    input[type="submit"],
    input[type="checkbox"],
    input[type="radio"] {
        cursor: pointer !important;
    }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    textarea {
        cursor: text !important;
    }
}

/* ============================================================
   NAV — Enhanced with glass morphism
   ============================================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(22, 22, 42, 0.85);
    backdrop-filter: saturate(200%) blur(24px);
    -webkit-backdrop-filter: saturate(200%) blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    padding: 0 2.5rem;
    height: var(--nav-height);
    gap: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle top accent line */
nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(124, 127, 245, 0.5) 30%,
        rgba(245, 200, 66, 0.5) 70%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

nav.scrolled::before {
    opacity: 1;
}

nav.scrolled {
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: saturate(200%) blur(28px);
    -webkit-backdrop-filter: saturate(200%) blur(28px);
    top: 0.625rem;
    left: 1rem;
    right: 1rem;
    border-radius: 1.25rem;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
    transition: filter 0.2s ease;
}

.nav-logo:hover {
    filter: drop-shadow(0 0 8px rgba(124, 127, 245, 0.4));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.875rem;
    list-style: none;
}

.nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--body-2);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-gold));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--nav-text-hover);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.3125rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.375rem;
    border-radius: 0.625rem;
    flex-shrink: 0;
    transition: background 0.2s;
    z-index: 9999;
}

.burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--body-1);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    transform-origin: center;
}

.burger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.burger:focus {
    outline: none;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(15, 15, 26, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 9998;
    flex-direction: column;
    padding: 2rem 2rem 3rem;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.mob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.mob-close {
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
    color: var(--body-1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mob-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu a.mob-link {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--body-1);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu a.mob-link:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu a.mob-link:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

body.menu-open {
    overflow: hidden;
}

/* Nav responsive */
@media (max-width: 64rem) {
    .nav-links {
        display: none;
    }
    .burger {
        display: flex;
        margin-left: auto;
    }
    .mobile-menu {
        display: flex;
    }
    nav {
        padding: 0 1.25rem;
        height: 4rem;
    }
    :root {
        --nav-height: 4rem;
    }
}

@media (max-width: 30rem) {
    nav {
        padding: 0 1rem;
    }
}

/* ============================================================
   NAV AUTH BUTTONS
   ============================================================ */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.5rem;
}

.nav-btn-signin {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--body-2);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-btn-signin:hover {
    color: var(--accent-color);
}

.nav-btn-signup {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), #a78bfa);
    text-decoration: none;
    padding: 0.5rem 1.125rem;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(124, 127, 245, 0.3);
    letter-spacing: 0.01em;
}

.nav-btn-signup:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124, 127, 245, 0.45);
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.mob-link-signup {
    color: var(--accent-color) !important;
    font-weight: 600 !important;
}

@media (max-width: 64rem) {
    .nav-auth {
        display: none;
    }
}

.nav-user-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem 0.3rem 0.3rem;
    background: rgba(124, 127, 245, 0.08);
    border: 1px solid rgba(124, 127, 245, 0.25);
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-user-pill:hover {
    background: rgba(124, 127, 245, 0.15);
    border-color: rgba(124, 127, 245, 0.5);
    box-shadow: 0 0 12px rgba(124, 127, 245, 0.15);
}

.nav-avatar {
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #7c7ff5, #a78bfa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 6px rgba(124, 127, 245, 0.4);
}

.nav-username {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

/* ============================================================
   THEME SWITCHER
   ============================================================ */
.theme-switcher {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-switcher:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(124, 127, 245, 0.4);
}

.theme-icon {
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.theme-switcher:hover .theme-icon {
    opacity: 1;
}

/* ============================================================
   HERO — Elevated with layered effects
   ============================================================ */
.hero {
    padding: 5rem 1rem 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Hero atmospheric glow */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(124, 127, 245, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

h1 {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: var(--text-2xl);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.125rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg,
        #c4c9ff 0%,
        #818cf8 35%,
        var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: var(--text-base);
    color: var(--body-3);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Hero type scale by breakpoint */
@media (min-width: 48rem) {
    h1 {
        font-size: var(--text-3xl);
    }
    .tagline {
        font-size: var(--text-md);
    }
}

@media (min-width: 80rem) {
    h1 {
        font-size: var(--text-4xl);
    }
    .tagline {
        font-size: var(--text-lg);
    }
}

@media (min-width: 100rem) {
    h1 {
        font-size: 3.25rem;
    }
    .tagline {
        font-size: var(--text-lg);
    }
}

@media (min-width: 120rem) {
    h1 {
        font-size: 3.75rem;
    }
    .tagline {
        font-size: var(--text-xl);
    }
    .container {
        --container-pad: 2rem;
    }
}

@media (max-width: 25.875rem) {
    .hero {
        padding: 3rem 1rem 2rem;
    }
    h1 {
        font-size: var(--text-xl);
    }
    .tagline {
        font-size: var(--text-sm);
    }
}

@media (max-width: 23.4375rem) {
    h1 {
        font-size: 1.375rem;
    }
    .tagline {
        font-size: var(--text-xs);
    }
}

@media (max-width: 22.5rem) {
    h1 {
        font-size: 1.25rem;
    }
}

@media (max-width: 20rem) {
    h1 {
        font-size: 1.125rem;
    }
    .hero {
        padding: 2rem 0.75rem 1rem;
    }
}

/* ============================================================
   Grammar Card — Enhanced with depth
   ============================================================ */
.grammar-card.locked {
    position: relative;
    cursor: pointer;
}

.grammar-card.locked::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    background-image: url('../img/lock.svg');
    background-color: var(--card-bg-secondary);
    background-size: contain;
    background-repeat: no-repeat;
}

.grammar-card.locked .card-footer,
.grammar-card.locked .card-body {
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
}

.paywall-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.paywall-overlay.open {
    display: flex;
}

.paywall-box {
    background: linear-gradient(145deg, #1e1f38, #191a30);
    border: 1px solid rgba(124, 127, 245, 0.2);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(124, 127, 245, 0.08);
}

.paywall-box h2 {
    color: var(--heading-color);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    letter-spacing: -0.02em;
}

.paywall-box p {
    color: var(--body-2);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.paywall-btn {
    display: block;
    background: linear-gradient(135deg, #7c7ff5, #a78bfa);
    color: #fff;
    font-weight: 700;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    margin-bottom: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(124, 127, 245, 0.35);
    letter-spacing: 0.01em;
}

.paywall-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124, 127, 245, 0.45);
}

.paywall-close {
    background: none;
    border: none;
    color: var(--body-3);
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
}

.paywall-close:hover {
    color: var(--body-2);
}

/* ============================================================
   FOOTER — Enhanced
   ============================================================ */
.footer {
    position: relative;
    background: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-top: 10rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-color) 25%,
        var(--accent-gold) 50%,
        var(--accent-color) 75%,
        transparent 100%);
    opacity: 0.6;
}

/* Footer ambient glow */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 200px;
    background: radial-gradient(ellipse at 50% 0%, rgba(124, 127, 245, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    padding: 4rem 2rem 2rem;
    max-width: 87.5rem;
    position: relative;
    z-index: 1;
}

.footer-tagline {
    font-size: var(--text-base);
    color: var(--body-3);
    margin-bottom: var(--space-2xl);
    max-width: 37.5rem;
    line-height: 1.7;
}

.footer-nav {
    margin-bottom: var(--space-3xl);
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    position: relative;
    opacity: 0.75;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 2rem;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: var(--space-2xl);
    justify-content: flex-start;
}

.footer-links a {
    color: var(--body-3);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    white-space: nowrap;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-gold));
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.footer-links a::after {
    content: '↗';
    font-size: 0.85rem;
    color: var(--accent-color);
    opacity: 0;
    transform: translate(-0.5rem, 0.5rem);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.5rem;
}

.footer-links a:hover {
    color: var(--body-1);
    transform: translateX(0.375rem);
}

.footer-links a:hover::before {
    width: calc(100% - 0.5rem);
}

.footer-links a:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

.footer-links-alt {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 18.75rem;
}

.footer-links-alt a {
    color: var(--body-3);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    padding-left: 1.5rem;
}

.footer-links-alt a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--body-3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-links-alt a:hover {
    color: var(--accent-color);
    transform: translateX(0.375rem);
}

.footer-links-alt a:hover::before {
    background: var(--accent-color);
    width: 6px;
    height: 6px;
    box-shadow: 0 0 6px var(--accent-glow);
}

.footer-large-text {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 14rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.07);
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-right: 2rem;
    pointer-events: none;
    user-select: none;
}

.footer-large-text {
    font-size: 14rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.07);
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-right: 2rem;
    pointer-events: none;
    user-select: none;
}

.footer-large-text .word {
    display: block;
    color: rgba(255, 255, 255, 0.07);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
}

.footer-large-text .word.primary {
    -webkit-text-stroke: 1px rgba(124, 127, 245, 0.06);
    margin-bottom: -1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    color: var(--body-3);
    font-size: var(--text-sm);
    font-weight: 400;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--body-3);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

.footer-legal a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-gold));
    transition: width 0.3s ease;
    border-radius: 1px;
}

.footer-legal a:hover::after {
    width: 100%;
}

/* Footer responsive */
@media (min-width: 64.0625rem) {
    .footer-links {
        justify-content: flex-start;
        flex-direction: row;
        gap: var(--space-2xl);
    }
    .footer-column {
        align-items: flex-start;
    }
    .footer-column h3::after {
        left: 0;
        transform: none;
    }
}

@media (max-width: 64rem) and (min-width: 48.0625rem) {
    .footer-large-text {
        font-size: 5rem;
    }
    .footer-links {
        flex-direction: row;
    }
    .footer-column {
        align-items: flex-start;
    }
}

@media (max-width: 48rem) {
    .footer-container {
        padding: 3rem 1.5rem 2rem;
    }
    .footer-column {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-links {
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
    }
    .footer-links a::after {
        display: none;
    }
    .footer-links a:hover {
        transform: none;
    }
    .footer-large-text {
        font-size: 3.5rem;
        padding-right: 0;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 30rem) {
    .footer-container {
        padding: 2.5rem 1rem;
    }
    .footer-large-text {
        font-size: 2.5rem;
    }
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-copyright {
        font-size: var(--text-xs);
        text-align: center;
    }
}

@media (max-width: 25.875rem) {
    .footer-large-text {
        font-size: 4rem;
    }
}

@media (max-width: 23.4375rem) {
    .footer-large-text {
        font-size: 1.875rem;
    }
}

@media (max-width: 22.5rem) {
    .footer-large-text {
        font-size: 1.75rem;
    }
}

@media (max-width: 20rem) {
    .footer-large-text {
        font-size: 1.5rem;
    }
    .footer-container {
        padding: 2rem 0.75rem;
    }
}

@media (min-width: 100rem) {
    .footer-large-text {
        font-size: 16rem;
    }
    .footer-container {
        padding: 5rem 3rem 3rem;
    }
}

@media (min-width: 120rem) {
    .footer-large-text {
        font-size: 18rem;
    }
    .footer-container {
        padding: 6rem 4rem 4rem;
        max-width: 100rem;
    }
}

/* ============================================================
   CAROUSEL — Preserved, minor polish
   ============================================================ */
.carousel-section {
    padding: 2rem 0;
}

.section-title {
    color: var(--body-3);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.625rem;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--accent-color) 5%, rgba(255, 255, 255, 0.05) 5%);
}

.movie-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -0.9375rem;
}

.movie-carousel {
    display: flex;
    padding: 0.9375rem 6.25rem;
    transition: transform 0.5s ease;
    gap: 0.5rem;
}

.movie-card {
    flex: 0 0 12.5rem;
    height: 21.25rem;
    border-radius: 0.875rem;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
    transform-origin: center;
    opacity: 0.6;
    transform: scale(0.85);
}

.movie-card.active {
    flex: 0 0 25rem;
    opacity: 1;
    transform: scale(1);
}

.movie-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.movie-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

.movie-card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    max-height: 3.5rem;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.movie-card-description {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: all 0.4s ease 0.2s;
}

.movie-card.active .movie-card-description {
    opacity: 1;
    transform: translateY(0);
}

.movie-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: var(--accent-color);
    box-shadow: 0 0 16px var(--accent-glow);
}

.carousel-button.prev {
    left: 3.125rem;
}

.carousel-button.next {
    right: 3.125rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.375rem;
}

.carousel-dot {
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 6px var(--accent-glow);
}

/* Carousel responsive — preserved */
@media (max-width: 100rem) {
    .movie-card {
        flex: 0 0 11.25rem;
        height: 19rem;
    }
    .movie-card.active {
        flex: 0 0 22rem;
    }
}

@media (max-width: 80rem) {
    .movie-carousel {
        padding: 0.9375rem 5rem;
    }
    .movie-card {
        flex: 0 0 10.625rem;
        height: 17.5rem;
    }
    .movie-card.active {
        flex: 0 0 20rem;
    }
}

@media (max-width: 64rem) {
    .movie-carousel {
        padding: 0.9375rem 3.75rem;
        gap: 0.375rem;
    }
    .movie-card {
        flex: 0 0 10rem;
        height: 17.5rem;
        transform: scale(0.9);
    }
    .movie-card.active {
        flex: 0 0 17.5rem;
        transform: scale(1);
    }
    .carousel-button.prev {
        left: 1.875rem;
    }
    .carousel-button.next {
        right: 1.875rem;
    }
}

@media (max-width: 48rem) {
    .movie-carousel-wrapper {
        margin: 0 -0.3125rem;
    }
    .movie-carousel {
        padding: 0.625rem 2.8125rem;
        gap: 0.25rem;
    }
    .movie-card {
        flex: 0 0 8.75rem;
        height: 15rem;
        transform: scale(0.85);
    }
    .movie-card.active {
        flex: 0 0 12.5rem;
        transform: scale(1);
    }
    .movie-card-content {
        padding: 0.75rem;
    }
    .movie-card-title {
        font-size: var(--text-sm);
    }
    .movie-card-description {
        font-size: var(--text-xs);
    }
    .carousel-button {
        width: 1.875rem;
        height: 1.875rem;
    }
    .carousel-button.prev {
        left: 0.625rem;
    }
    .carousel-button.next {
        right: 0.625rem;
    }
}

/* ============================================================
   EPISODES
   ============================================================ */
.episodes-section {
    max-width: 87.5rem;
    margin: 0 auto;
}

.episodes-header {
    margin-bottom: 2rem;
}

.episodes-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -0.02em;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 6.25rem;
}

.episode-card {
    background: linear-gradient(145deg, var(--card-bg), var(--card-bg-secondary));
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    border: 1px solid var(--card-stroke);
}

.episode-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 127, 245, 0.3);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124, 127, 245, 0.1);
}

.episode-info {
    padding: 1.25rem;
}

.episode-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-button {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    background: linear-gradient(135deg, var(--accent-color), #a78bfa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(124, 127, 245, 0.3);
}

.play-button svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
    color: #fff;
}

.episode-card:hover .play-button {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    box-shadow: 0 4px 16px rgba(245, 200, 66, 0.3);
}

.episode-card:hover .play-button svg {
    transform: scale(1.1);
}

.episode-details {
    flex: 1;
    min-width: 0;
}

.episode-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.episode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: var(--text-sm);
    align-items: center;
}

.episode-meta span {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    background-color: var(--card-bg-tertiary);
    color: var(--body-3);
    font-size: var(--text-xs);
    font-weight: 500;
}

/* Episodes responsive */
@media (max-width: 64rem) {
    .episodes-title {
        font-size: 1.75rem;
    }
    .episodes-grid {
        gap: 1.25rem;
        margin-bottom: 5rem;
    }
}

@media (max-width: 48rem) {
    .episodes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3.75rem;
    }
    .episode-title {
        font-size: var(--text-base);
    }
}

@media (max-width: 30rem) {
    .episodes-title {
        font-size: var(--text-lg);
    }
}