:root {
    --primary-teal: #58b1ab;
    --primary-purple: #9271b4;
    --bg-beige: #fef8ef;
    --text-dark: #333333;
    --text-light: #ffffff;
    --gray-light: #f5f5f5;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(88, 177, 171, 0.2);
    --gradient-main: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-teal) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-beige);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--primary-purple);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.2s;
}

.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn-cta {
    display: inline-block;
    background: var(--gradient-main);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(146, 113, 180, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-cta:hover::after {
    left: 100%;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 177, 171, 0.6);
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(88, 177, 171, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(88, 177, 171, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(88, 177, 171, 0);
    }
}

/* Hero Section & Sparkles */
.hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(88, 177, 171, 0.1), transparent 40%);
}

/* Sparkles Animation */
.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.hero-content {
    text-align: center;
    margin-bottom: 40px;
    z-index: 2;
    position: relative;
}

.badge {
    background: rgba(146, 113, 180, 0.1);
    color: var(--primary-purple);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #2d2d2d;
}

.highlight {
    color: var(--primary-teal);
}

.hero-sub {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #555;
}

.hero-features i {
    color: var(--primary-teal);
    margin-right: 5px;
}

.hero-image {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

.hero-tablet {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    /* Strong 3D shadow */
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    /* Smooth transition for tilt */
}

.hero-tablet:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

/* Mockup styles removed */

.mockup-card {
    position: absolute;
    width: 180px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-1 {
    transform: translateX(-120px) translateY(20px) rotate(-15deg);
    z-index: 1;
}

.card-2 {
    transform: translateX(-40px) translateY(0px) rotate(-5deg);
    z-index: 2;
}

.card-3 {
    transform: translateX(40px) translateY(0px) rotate(5deg);
    z-index: 3;
}

.card-4 {
    transform: translateX(120px) translateY(20px) rotate(15deg) scale(1.05);
    z-index: 4;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Removed card-5 */

.hero-mockups-container:hover .card-1 {
    transform: translateX(-150px) translateY(40px) rotate(-20deg);
}

.hero-mockups-container:hover .card-2 {
    transform: translateX(-50px) translateY(10px) rotate(-8deg);
}

.hero-mockups-container:hover .card-3 {
    transform: translateX(50px) translateY(10px) rotate(8deg);
}

.hero-mockups-container:hover .card-4 {
    transform: translateX(150px) translateY(40px) rotate(20deg) scale(1.1);
}

.hero-mockups-container:hover .card-5 {
    /* No card 5 */
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Custom Shape Divider */
.custom-shape-divider-bottom-1680000000 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1680000000 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom-1680000000 .shape-fill {
    fill: #FFFFFF;
}

/* Pain Points */
.pain-points {
    padding: 80px 0;
    background: white;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card-pain {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
}

.card-pain.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card-pain:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-teal);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(88, 177, 171, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary-teal);
}

.card-pain h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-pain p {
    font-size: 0.9rem;
    color: #666;
}

/* Target Audience */
.target-audience {
    padding: 80px 0;
    background-color: var(--bg-beige);
}

.audience-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.audience-list li {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    /* For animation */
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.audience-list li.visible {
    opacity: 1;
    transform: translateX(0);
}

.audience-list i {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-right: 20px;
    margin-top: 5px;
}

/* Materials Grid - 3D Effect */
.materials {
    padding: 80px 0;
    background: white;
    perspective: 1000px;
    /* Needed for 3D effect */
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.material-card {
    background: var(--bg-beige);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    /* Faster transition for tilt */
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    /* Important for 3D */
    opacity: 0;
    transform: scale(0.8);
}

.material-card.visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hover state handled by JS for 3D tilt, but fallback here */
.material-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.material-icon {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 15px;
    transform: translateZ(20px);
    /* Pop out effect */
}

.material-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #444;
    transform: translateZ(10px);
}

.tag {
    font-size: 0.7rem;
    background: var(--primary-teal);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
    transform: translateZ(5px);
}

/* Bonus Section */
.bonus-section {
    padding: 80px 0;
    background: var(--primary-purple);
    color: white;
    position: relative;
}

.section-title.light,
.section-subtitle.light {
    color: white;
}

.bonus-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.bonus-image-container img {
    max-width: 100%;
    border-radius: 20px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.bonus-image-container img.visible {
    opacity: 1;
    transform: translateX(0);
}

.bonus-list {
    width: 100%;
}

.bonus-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.bonus-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.bonus-tag {
    background: var(--primary-teal);
    color: white;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.bonus-item h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.bonus-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.price .old {
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 10px;
}

.price .free {
    font-weight: 700;
    color: var(--primary-teal);
    font-size: 1.1rem;
}

/* How it Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-beige);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1) rotate(10deg);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-beige);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: scale(1);
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Creator */
.creator {
    padding: 80px 0;
    background: linear-gradient(to bottom, white, var(--bg-beige));
}

.creator-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.creator-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow-soft);
}

/* Offer Section */
.offer {
    padding: 80px 0 120px;
    background: var(--bg-beige);
}

.offer-box {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid var(--primary-teal);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.offer-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.offer-header {
    background: var(--primary-purple);
    color: white;
    text-align: center;
    padding: 20px;
}

.offer-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.offer-body {
    padding: 40px;
    text-align: center;
}

.price-container {
    margin-bottom: 30px;
}

.old-price {
    display: block;
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
}

.new-price {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-teal);
    line-height: 1;
}

.offer-benefits {
    list-style: none;
    text-align: left;
    margin: 0 auto 30px;
    display: inline-block;
}

.offer-benefits li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.offer-benefits i {
    color: var(--primary-teal);
    margin-right: 10px;
}

.btn-large {
    width: 100%;
    font-size: 1.2rem;
    padding: 20px;
}

.guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.guarantee-icon {
    width: 50px;
}

.guarantee div {
    text-align: left;
}

.payment-methods {
    margin-top: 20px;
    font-size: 2rem;
    color: #ccc;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 40px 0 100px;
    /* Extra padding for sticky CTA */
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-sticky-cta.visible {
    transform: translateY(0);
}

.btn-cta-sticky {
    background: var(--primary-teal);
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 15px 0;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(88, 177, 171, 0.3);
}

/* Media Queries */
@media (min-width: 768px) {
    .hero {
        text-align: left;
        padding: 150px 0 100px;
    }

    .hero-content {
        max-width: 50%;
        text-align: left;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-sub {
        margin-left: 0;
    }

    .hero-features {
        justify-content: flex-start;
    }

    .hero-image {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 45%;
    }

    .mockup-card {
        width: 220px;
    }

    .hero-mockups-container {
        height: 500px;
    }

    .card-1 {
        transform: translateX(-140px) translateY(40px) rotate(-15deg);
    }

    .card-2 {
        transform: translateX(-70px) translateY(10px) rotate(-8deg);
    }

    .card-4 {
        transform: translateX(70px) translateY(10px) rotate(8deg);
    }

    .card-5 {
        transform: translateX(140px) translateY(40px) rotate(15deg);
    }

    .hero-mockups-container:hover .card-1 {
        transform: translateX(-180px) translateY(60px) rotate(-20deg);
    }

    .hero-mockups-container:hover .card-2 {
        transform: translateX(-90px) translateY(20px) rotate(-10deg);
    }

    .hero-mockups-container:hover .card-4 {
        transform: translateX(90px) translateY(20px) rotate(10deg);
    }

    .hero-mockups-container:hover .card-5 {
        transform: translateX(180px) translateY(60px) rotate(20deg);
    }

    .bonus-grid {
        flex-direction: row;
        align-items: center;
    }

    .bonus-image-container {
        flex: 1;
    }

    .bonus-list {
        flex: 1;
    }

    .creator-content {
        flex-direction: row;
        text-align: left;
    }

    .mobile-sticky-cta {
        display: none;
    }

    footer {
        padding-bottom: 40px;
    }
}

/* Hero Tablet */
.hero-tablet {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

/* 3D Book Effect */
.book-container {
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.book {
    position: relative;
    width: 300px;
    height: 420px;
    transform-style: preserve-3d;
    transform: rotateY(-30deg) rotateX(10deg);
    transition: transform 0.5s ease;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.book:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: left;
    z-index: 2;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px 15px 15px 5px;
    box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.1);
}

.book-spine {
    position: absolute;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, #eee, #ddd);
    transform: rotateY(90deg) translateZ(-20px);
    left: -20px;
    top: 0;
    border-radius: 2px;
}

.book-pages {
    position: absolute;
    width: 280px;
    height: 400px;
    background: #fff;
    transform: translateZ(-20px);
    top: 10px;
    left: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 0 10px 10px 0;
    background: repeating-linear-gradient(90deg,
            #fff 0px,
            #f9f9f9 2px,
            #fff 4px);
}

.book-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-purple);
    transform: translateZ(-40px);
    top: 0;
    left: 0;
    border-radius: 5px 15px 15px 5px;
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .book {
        width: 220px;
        height: 310px;
    }

    .book-pages {
        width: 200px;
        height: 290px;
    }
}

/* Bonus Item Layout Update */
.bonus-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.bonus-content {
    flex: 1;
}

.bonus-book-container {
    perspective: 1000px;
    width: 160px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bonus-book {
    width: 140px;
    height: 200px;
}

.bonus-book .book-pages {
    width: 130px;
    height: 190px;
    top: 5px;
    left: 5px;
}

.bonus-book .book-spine {
    width: 20px;
    left: -10px;
    transform: rotateY(90deg) translateZ(-10px);
}

.bonus-book .book-back {
    transform: translateZ(-20px);
}

@media (max-width: 768px) {
    .bonus-item {
        flex-direction: column-reverse;
        text-align: center;
    }

    .bonus-book-container {
        margin: 0 auto 20px;
    }
}