:root {
    /* Premium Palette */
    --primary-color: #2C3E50;
    /* Deep Navy */
    --primary-light: #34495E;
    --accent-color: #F1C40F;
    /* Gold / Vibrant Yellow */
    --accent-hover: #F39C12;
    /* Darker Gold/Orange */
    --bg-color: #F5F7FA;
    /* Off-white */
    --white: #FFFFFF;
    --text-color: #2C3E50;
    --text-light: #7F8C8D;

    --shadow-soft: 0 10px 30px rgba(44, 62, 80, 0.08);
    --shadow-hover: 0 15px 40px rgba(44, 62, 80, 0.12);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', 'Lato', sans-serif;
    /* Fallback */
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    /* Contrast text */
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.5);
}

.btn-warning {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.btn-lg {
    font-size: 1.1rem;
}

.btn-xl {
    font-size: 1.3rem;
    padding: 20px 50px;
    width: 100%;
    max-width: 450px;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.7);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(241, 196, 15, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(241, 196, 15, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Floating Animation (Mobile & Desktop Idle) */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Header */
header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.6rem;
    color: var(--accent-color);
}

/* Hero Section - Split Screen */
.hero {
    background-color: var(--bg-color);
    padding: 80px 0 100px;
    /* More whitespace */
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    /* Takes up most of viewport */
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.hero-text .subheadline {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-light);
    font-weight: 600;
    max-width: 90%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.book-container {
    perspective: 1000px;
    /* Essential for 3D effect */
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    transform-style: preserve-3d;
    /* Ensure children preserve 3D */
    cursor: pointer;
    /* Indicate interaction */
}

.floating-book {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
    animation: float 4s ease-in-out infinite;
    transition: transform 0.1s ease-out;
    /* Fast transition for mouse follow */
    will-change: transform;
    /* Performance optimization */
}

/* Desktop Hover Effect for Book */
@media (min-width: 992px) {
    .book-container:hover .floating-book {
        transform: rotateY(-10deg) rotateX(5deg) scale(1.05);
        /* 3D Tilt */
        animation-play-state: paused;
        /* Pause float on hover */
    }
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--white) 0%, transparent 100%);
    pointer-events: none;
}

/* Problem Section */
.problem {
    padding: 100px 0;
    background-color: var(--white);
}

.problem h2 {
    font-size: 2.4rem;
    margin-bottom: 40px;
}

.problem-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    /* Larger text */
    text-align: center;
    color: var(--text-light);
}

.highlight-text {
    margin-top: 30px;
    background-color: #FEF9E7;
    /* Light Yellow */
    padding: 30px;
    border-radius: var(--radius);
    border-left: 5px solid var(--accent-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.benefit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 90px;
    height: 90px;
    background-color: #EBF5FB;
    /* Light Blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s;
}

.benefit-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--accent-color);
}

.benefit-card:hover .icon-box i {
    color: var(--white);
}

.icon-box i {
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: color 0.3s;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--white);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--white);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #F8F9F9;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 30px;
}

.accordion-content p {
    padding: 0 0 25px 0;
    color: var(--text-light);
    font-size: 1.05rem;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background: var(--primary-color);
    /* Navy footer */
    padding: 100px 0 50px;
    color: var(--white);
}

footer h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 15px;
}

footer p {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-links p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .hero-container {
        flex-direction: column;
        /* Stack vertically for Tablet/Mobile */
        text-align: center;
        padding-top: 20px;
        gap: 40px;
    }

    .hero-image {
        order: -1;
        /* Image first on mobile */
        width: 100%;
        max-width: 350px;
    }

    .hero-text {
        order: 1;
        padding: 0 10px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text .subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .btn-xl {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }


    .hero-image {
        max-width: 280px;
    }
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background-color: #f8f9fa; /* Slightly different bg to separate */
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center; /* Align cards vertically centered relative to each other if heights differ */
    flex-wrap: wrap; /* Fallback */
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex; /* Ensure column layout for content */
    flex-direction: column;
}

.pricing-card.highlight {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    z-index: 2;
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(241, 196, 15, 0.4);
    letter-spacing: 1px;
}

.pricing-card .card-header {
    text-align: center;
    margin-bottom: 25px;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.pricing-card .subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

.pricing-card .price {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.pricing-card .price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    font-weight: 600;
}

.pricing-card .price .amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.pricing-card .old-price {
    display: block;
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #95a5a6;
    margin-bottom: 5px;
}

.features-list {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1; /* Push button down */
}

.features-list li {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: #27ae60; /* Green checkmark */
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Mobile Responsiveness for Pricing */
@media (max-width: 900px) {
    .pricing-grid {
        flex-direction: column;
        gap: 60px; /* More space between stacked cards */
    }

    .pricing-card {
        max-width: 100%; /* Full width on mobile */
    }

    .pricing-card.highlight {
        transform: scale(1); /* Reset scale on mobile */
        order: -1; /* Show first on mobile */
        border-width: 3px; /* Extra visibility */
    }
}