:root {
    --bg-color: #050505;
    --section-dark: #080808;
    --section-light: #151515;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #8B0000;
    /* Dark Red */
    --accent-subtle: #333333;
    /* Mapped "Poppins Out" to Outfit (Headings) and "Poppins Regular" to Poppins (Body) */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --card-bg: rgba(20, 20, 20, 0.8);
    --card-border: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(139, 0, 0, 0.5);
    --gold: #D4AF37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    /* Changed to Poppins */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Defaults */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    /* Changed to Outfit */
    font-weight: 500;
    letter-spacing: -0.02em;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

em {
    font-style: italic;
    color: inherit;
}

a:hover {
    color: var(--accent-color);
}

/* Layout */
.container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

section {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.divider {
    display: none;
}

/* Split Content Animations */
.split-content-container {
    overflow: hidden;
    width: 100%;
}

.content-left {
    transform: translateX(-20vw);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-in-out;
}

.content-right {
    transform: translateX(20vw);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-in-out;
}

.content-left-slow {
    transform: translateX(-15vw);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease-in-out;
}

.content-right-slow {
    transform: translateX(15vw);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease-in-out;
}

.content-up {
    transform: translateY(40px);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-in-out;
}

.content-down {
    transform: translateY(-40px);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-in-out;
}

.split-content-container.visible .content-left,
.split-content-container.visible .content-right,
.split-content-container.visible .content-left-slow,
.split-content-container.visible .content-right-slow,
.split-content-container.visible .content-up,
.split-content-container.visible .content-down {
    transform: translate(0, 0);
    opacity: 1;
}

.bg-red-faint {
    background: rgba(139, 0, 0, 0.05);
}

.red-shadow {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(218, 0, 0, 0.8), 0 0 30px rgba(139, 0, 0, 0.6);
}

/* Hero Section */
.hero {
    margin-top: 20px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-style: italic;
    color: #fff;
    font-family: var(--font-body);
}

.hero .tagline {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    border-left: 1px solid var(--accent-color);
    padding-left: 20px;
    text-align: left;
    color: var(--text-secondary);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 650px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
}

.hero-img:hover {
    filter: grayscale(80%) contrast(1.2) brightness(1);
    transform: scale(1.02);
}

.hero-cta-desktop {
    display: block;
}

.hero-cta-mobile {
    display: none;
    width: 100%;
}

@media (min-width: 900px) {
    .hero {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: space-between;
    }

    .hero-content {
        text-align: left;
    }

    .hero .tagline {
        margin: 0;
        /* Already has left border/align */
    }





    .container {
        max-width: 1100px;
        /* Wider container for side-by-side */
    }
}

/* About Section */
.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    /* Changed from lowercase to uppercase for Outfit style */
    letter-spacing: 0.1em;
}

.split-text-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    /* Prevent horizontal scrollbars during animation */
    padding: 20px 0;
}

.text-block {
    margin-bottom: 30px;
    text-align: left;
    max-width: 600px;
    /* Removed auto margins to allow flexbox and transform control */
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease-out;
    opacity: 0;
}

.text-left {
    align-self: flex-start;
    transform: translateX(-100vw);
}

.text-right {
    align-self: flex-end;
    transform: translateX(100vw);
}

.split-text-container.visible .text-left,
.split-text-container.visible .text-right {
    transform: translateX(0);
    opacity: 1;
}

@media (min-width: 768px) {
    .split-text-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 40px;
    }

    .text-block {
        flex: 1;
        margin-bottom: 0;
    }
}

/* ---------------- New Typography & Layout Elements ----------------- */

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
}

.reverse-layout {
    flex-direction: column-reverse;
}

.text-content {
    flex: 1;
    text-align: left;
}

.image-placeholder {
    flex: 1;
    width: 100%;
    min-height: 350px;
    max-width: 500px;
    border: 2px dashed var(--accent-subtle);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.image-placeholder:hover {
    opacity: 1;
    border-color: var(--accent-color);
}

.author-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
    list-style: none;
    padding: 0;
}

.author-list li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 10px 18px;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.author-list li:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.value-comparison {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comparison-title {
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-top: 20px;
    margin-bottom: 15px;
}

.comparison-list {
    list-style: none;
    margin-bottom: 25px;
    padding: 0;
}

.comparison-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    position: relative;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.comparison-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comparison-list li strong {
    color: var(--text-primary);
}

.highlight-callout {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .content-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }

    .reverse-layout {
        flex-direction: row-reverse;
    }
}

/* ------------------------------------------------------------------ */

/* Books Showcase */
.books-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px auto;
    max-width: 800px;
}

.book-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.book-card:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.book-card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.book-card .author {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    font-family: var(--font-body);
}

.divider-small {
    height: 1px;
    width: 60px;
    background: var(--accent-color);
    margin: 40px auto;
    opacity: 0.5;
}

.summary-text {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.8;
}

.featured-item ul li {
    color: var(--text-primary);
}

/* Included Section */
.included h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.included-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: left;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.included-item h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
    display: inline-block;
}

.included-item .price-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.included-item ul {
    list-style: none;
    padding-left: 10px;
}

.included-item li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
    font-size: 1.05rem;
}

.included-item li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.total-note {
    margin-top: 20px;
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Section Image & Split Layout */
.included-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.section-image-side {
    width: 100%;
    max-width: 500px;
}

.section-featured-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: all 0.5s ease;
}

.section-featured-img:hover {
    filter: grayscale(50%) contrast(1.2) brightness(1);
    transform: scale(1.02);
}

.section-text-side {
    width: 100%;
}

@media (min-width: 900px) {
    .included-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 60px;
    }

    .section-image-side {
        flex: 1;
        position: sticky;
        top: 20px;
    }

    .section-text-side {
        flex: 1;
    }

    /* Adjust books showcase margin in this layout */
    .books-showcase {
        margin-top: 0;
    }
}

/* Pricing Cards */
.pricing h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: stretch;
    /* Ensure equal height */
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px 20px;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    backdrop-filter: blur(10px);
}

.basic-card:hover {
    border-color: var(--text-secondary);
    transform: translateY(-5px);
}

.premium-card {
    border: 1px solid var(--accent-color);
    background: linear-gradient(145deg, rgba(20, 0, 0, 0.9) 0%, rgba(5, 5, 5, 0.95) 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
    /* Make it slightly bigger by default */
    z-index: 2;
}

.premium-card:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 10px 40px var(--glow-color);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-heading);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.premium-card h3 {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.card-desc {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
    min-height: 25px;
}

.price-strikethrough {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0px;
    opacity: 0.7;
}

.price-strikethrough del {
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
}

.price {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1;
}

.package-features {
    list-style: none;
    text-align: left;
    margin-bottom: 15px;
    padding: 0;
}

.package-features li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
}

.package-features.premium-list li {
    color: var(--text-primary);
}

.package-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.btn {
    display: block;
    font-family: var(--font-body);
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 15px 24px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: 100%;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    background: #a00000;
    border-color: #a00000;
    box-shadow: 0 0 25px rgba(139, 0, 0, 0.6);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(139, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
    }
}

/* Footer */
.footer {
    margin-top: 40px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer {
    padding: 0 20px 20px 20px;
    margin-top: -20px;
}

.footer .social {
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* FAQ Section */
.faq-section {
    width: 100%;
    max-width: 800px;
    margin: 50px auto 30px;
    text-align: left;
}

.faq-section h2 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-subtle);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    margin-top: 15px;
    opacity: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Animations - Unchanged */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1.5s ease-out 1s forwards;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .container {
        padding: 40px 20px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        margin-top: 20px;
        gap: 30px;
    }

    .hero-content {
        display: contents;
        /* lets children be direct flex items of .hero */
    }

    .hero h1 {
        font-size: 2.8rem;
        order: 1;
    }

    .hero .subtitle {
        order: 2;
    }

    .hero-image-container {
        max-width: 100%;
        order: 3;
        margin: 10px 0;
    }

    .hero .tagline {
        order: 4;
        border-left: none;
        border-top: 1px solid var(--accent-color);
        padding-left: 0;
        padding-top: 20px;
        text-align: center;
        margin-top: 0;
    }

    .hero-cta-desktop {
        display: none;
    }

    .hero-cta-mobile {
        display: block;
        order: 6;
    }

    /* Staggered mobile animation for author list */
    .author-list li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .split-content-container.visible .author-list li {
        opacity: 1;
        transform: translateY(0);
    }

    .split-content-container.visible .author-list li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .split-content-container.visible .author-list li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .split-content-container.visible .author-list li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .split-content-container.visible .author-list li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .split-content-container.visible .author-list li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .split-content-container.visible .author-list li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .split-content-container.visible .author-list li:nth-child(7) {
        transition-delay: 0.7s;
    }

    .split-content-container.visible .author-list li:nth-child(8) {
        transition-delay: 0.8s;
    }

    .split-content-container.visible .author-list li:nth-child(9) {
        transition-delay: 0.9s;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .books-showcase {
        grid-template-columns: repeat(2, 1fr);
        /* 2 per row on tablet/large phone */
        gap: 15px;
    }

    .included-grid {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .included-item {
        text-align: center;
        width: 100%;
    }

    .included-item h3 {
        display: inline-block;
        /* Keep the border bottom style */
        margin: 0 auto 10px auto;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .card {
        width: 100%;
        max-width: 340px;
        /* Full width but contained */
    }

    .premium-card {
        transform: scale(1);
        /* Reset scale on mobile */
        order: -1;
        /* Show premium first? Or keep standard? Let's keep standard order for now, or emphasize premium. */
    }

    .premium-card:hover {
        transform: translateY(-5px);
        /* Keep hover visual feedback but no scale */
    }

    .footer {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .books-showcase {
        grid-template-columns: 1fr;
        /* 1 per row on very small screens */
    }

    .card {
        padding: 30px 20px;
    }

    .price {
        font-size: 2.5rem;
    }
}