:root {
    --primary-blue: #4097b3;
    --accent-yellow: #ffb204;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f9fbfd;
    --bg-white: #ffffff;
    --font-main: 'Poppins', sans-serif;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow: 0 10px 30px rgba(64, 151, 179, 0.15);
    --green-btn: #00981a;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 178, 4, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 178, 4, 0.6);
}

.btn-green {
    background-color: var(--green-btn) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 152, 26, 0.4);
}

.btn-green:hover {
    background-color: #007a15 !important;
    box-shadow: 0 8px 25px rgba(0, 152, 26, 0.6);
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Sections */
section {
    padding: 60px 0;
}

/* Hero Section */
.hero {
    background-color: var(--primary-blue);
    background-image: linear-gradient(90deg, rgba(64, 151, 179, 1) 0%, rgba(64, 151, 179, 1) 35%, rgba(64, 151, 179, 0.85) 50%, rgba(64, 151, 179, 0.6) 70%, rgba(64, 151, 179, 0.3) 100%), url('images/hero-bg.jpg');
    background-size: 80% auto;
    background-position: center right;
    background-repeat: no-repeat;
    color: var(--text-light);
    text-align: left;
    padding: 100px 0 40px;
    /* Reduced bottom padding */
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-logo {
    max-width: 320px;
    width: 100%;
    margin-bottom: 20px;
    margin-left: -10px;
    display: block;
}

.hero p.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Problem Section */
.problem {
    background: linear-gradient(90deg, rgba(64, 151, 179, 0.9) 0%, rgba(64, 151, 179, 0.9) 100%);
    background-color: var(--primary-blue);
    text-align: center;
    overflow: hidden;
    padding-top: 50px;
    padding-bottom: 80px;
}

.problem h2 {
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 2rem;
}

.problem p {
    color: #ffffff;
    opacity: 0.9;
}

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

.pain-card {
    background: #ffb204;
    /* Yellow background */
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27), box-shadow 0.4s ease, opacity 0.6s ease;
    position: relative;
    z-index: 1;
    color: #2c3e50;
}

.pain-card.scroll-animate-mobile {
    opacity: 0;
    transform: translateY(30px);
}

.pain-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pain-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.pain-card p {
    color: #2c3e50;
    font-size: 0.95rem;
    opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    opacity: 0.9;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* Solution Section */
.solution {
    background: linear-gradient(to left, #ffffff 30%, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0.2) 100%), url('images/ebook.png');
    background-size: cover, 45%;
    /* Gradient covers, Image is 45% */
    background-position: center, left center;
    /* Image on Left */
    background-repeat: no-repeat;
    position: relative;
}

.solution h2 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.solution p.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.2rem;
    color: #555;
}

/* CSS 3D Book Styles */
.book-container {
    width: 260px;
    /* Restored size */
    height: 360px;
    /* Restored size */
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.book {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transform: rotateY(-30deg);
    transition: transform 0.5s ease;
}

.book-container:hover .book {
    transform: rotateY(0deg) scale(1.05);
}

.book .front {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    transform: translateZ(25px);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px 15px 15px 5px;
    overflow: hidden;
    display: block;
}

.book .front img {
    width: 100%;
    /* Full width - NO PADDING */
    height: 100%;
    /* Full height - NO PADDING */
    object-fit: cover;
    /* Cover the area */
    border-radius: 0;
}

.book .left {
    width: 50px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #2c7a94;
    /* Darker blue spine */
    transform: rotateY(-90deg) translateZ(25px);
    border-radius: 5px 0 0 5px;
}

.book::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(-25px);
    background-color: #fff;
    border-radius: 5px 15px 15px 5px;
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.2);
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    background: var(--primary-blue);
    /* Blue background */
    color: #ffffff;
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 50px;
    /* Rounded pill shape */
    box-shadow: 0 4px 10px rgba(64, 151, 179, 0.2);
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease;
    border: none;
}

.benefit-list li:hover {
    transform: translateX(5px);
}

.benefit-list li::before {
    content: '✓';
    color: var(--primary-blue);
    background: #ffffff;
    /* White circle for checkmark */
    font-weight: 800;
    margin-right: 15px;
    font-size: 0.9rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Transformation Section */
.transformation {
    background: #fed12e;
    padding: 80px 0 40px;
}

.transformation-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.trans-text {
    flex: 1;
    max-width: 500px;
    text-align: left;
}

.trans-text h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    /* Dark text for contrast */
    margin-bottom: 20px;
    line-height: 1.3;
}

.trans-text p {
    margin-bottom: 15px;
    color: #2c3e50;
    /* Dark text for contrast */
    font-size: 1.1rem;
    opacity: 1;
}

/* Glitch Animation */
.glitch-text {
    position: relative;
    display: inline-block;
    animation: glitch 2.5s infinite;
}

@keyframes glitch {
    0%, 88%, 100% {
        transform: translate(0);
        text-shadow: 0 0 0 transparent;
    }
    89% {
        transform: translate(-3px, 2px);
        text-shadow: 2px -2px 0 rgba(255, 0, 0, 0.7), -2px 2px 0 rgba(0, 255, 255, 0.7);
    }
    90% {
        transform: translate(3px, -2px);
        text-shadow: -2px 2px 0 rgba(255, 0, 0, 0.7), 2px -2px 0 rgba(0, 255, 255, 0.7);
    }
    91% {
        transform: translate(-2px, -3px);
        text-shadow: 3px 3px 0 rgba(255, 0, 0, 0.7), -3px -3px 0 rgba(0, 255, 255, 0.7);
    }
    92% {
        transform: translate(2px, 3px);
        text-shadow: -3px -3px 0 rgba(255, 0, 0, 0.7), 3px 3px 0 rgba(0, 255, 255, 0.7);
    }
    93% {
        transform: translate(-1px, 1px);
        text-shadow: 1px -1px 0 rgba(255, 0, 0, 0.5), -1px 1px 0 rgba(0, 255, 255, 0.5);
    }
    94% {
        transform: translate(0);
        text-shadow: 0 0 0 transparent;
    }
}

/* Warm Text Animation - segurança e acolhimento */
.warm-text {
    color: white;
    position: relative;
    display: inline-block;
    animation: warmGlow 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes warmGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
                     0 0 20px rgba(255, 255, 255, 0.2),
                     0 0 30px rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.5),
                     0 0 30px rgba(255, 255, 255, 0.3),
                     0 0 45px rgba(255, 255, 255, 0.2);
        transform: scale(1.02);
    }
}

.trans-cards {
    flex: 1;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.feature-card {
    background: #ffffff;
    /* White background for cards */
    border-radius: 15px;
    padding: 0;
    width: 180px;
    height: 250px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* Delivery Section (New) */
.delivery {
    background: var(--primary-blue);
    /* Blue Background */
    padding: 40px 0 80px;
}

.delivery-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.delivery-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.delivery-img img {
    max-width: 100%;
    max-height: 400px;
    /* Limit height */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.delivery-text {
    flex: 1;
    text-align: left;
}

.delivery-text h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 20px;
    /* White text */
}

.delivery-text p {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

/* Offer Section - Joyful & Modern */
.offer {
    background: #ffffff;
    color: var(--text-dark);
    text-align: center;
    border-radius: 30px;
    margin: 40px auto;
    padding: 50px 30px;
    max-width: 550px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 4px solid var(--primary-blue);
    /* Playful border */
}

.offer h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 10px;
}

/* New Price Logic Styles */
.price-container {
    margin: 30px 0;
}

.price-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c0392b;
    /* Red color */
    margin-bottom: 5px;
    text-transform: uppercase;
}

.price-header .strike {
    text-decoration: line-through;
    color: #c0392b;
    margin: 0 5px;
}

.price-header .highlight {
    color: #c0392b;
}

.price-value {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 5px;
}

.price-installments {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Reviews Section */
.review-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.review-avatar {
    width: 65px;
    height: 65px;
    min-width: 65px;
    min-height: 65px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.review-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.review-content .author {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 1rem;
}

.review-content .stars {
    color: #ffb204;
    margin-bottom: 10px;
    font-size: 1rem;
}

.review-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-style: normal;
    line-height: 1.5;
}

/* FAQ */
.faq-item {
    background: var(--bg-white);
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
    color: #666;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    color: var(--primary-blue);
}

/* Footer */
footer {
    background: var(--primary-blue);
    /* Updated footer color */
    color: #ffffff;
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        background: linear-gradient(180deg, rgba(64, 151, 179, 0.95) 0%, rgba(64, 151, 179, 0.8) 100%), url('images/hero-bg.jpg');
        background-position: center;
        text-align: center;
        border-bottom-left-radius: 0;
        /* Removed radius */
        border-bottom-right-radius: 0;
        /* Removed radius */
        padding: 40px 0 40px;
    }

    .hero .container {
        flex-direction: column;
        width: 95%;
    }

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

    .problem h2 {
        font-size: 1.7rem;
    }

    .mobile-break {
        display: inline;
    }
    
    .problem p {
        line-height: 1.4;
    }

    .hero-logo {
        margin: 0 auto 20px auto;
        max-width: 250px;
    }

    /* Adjust shield container for mobile */
    .hero-content>div:last-child>div {
        height: 150px !important;
    }

    /* Fix Solution Background on Mobile - Remove Image */
    .solution {
        background: linear-gradient(to bottom, #ffffff 20%, #f0f8ff 100%);
        background-image: none !important;
        /* Force remove image */
    }

    .solution h2 {
        font-size: 1.6rem;
        line-height: 1.3;
        opacity: 0;
        transform: translateY(30px);
        transition: transform 0.6s ease, opacity 0.6s ease;
    }

    .solution p {
        opacity: 0;
        transform: translateY(30px);
        transition: transform 0.6s ease, opacity 0.6s ease;
    }

    .solution .benefit-list li {
        opacity: 0;
        transform: translateY(30px);
        transition: transform 0.6s ease, opacity 0.6s ease;
    }

    /* Transformation Section Mobile */
    .transformation-content {
        flex-direction: column;
        text-align: center;
    }

    .trans-text {
        text-align: center;
        margin-bottom: 40px;
    }

    .trans-text h2 {
        opacity: 0;
        transform: translateY(30px);
        transition: transform 0.6s ease, opacity 0.6s ease;
    }

    .trans-text p {
        opacity: 0;
        transform: translateY(30px);
        transition: transform 0.6s ease, opacity 0.6s ease;
    }

    .trans-text .btn {
        opacity: 0;
        transform: translateY(30px);
        transition: transform 0.6s ease, opacity 0.6s ease;
    }

    .warm-text {
        white-space: normal;
    }

    .trans-cards {
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
        gap: 30px;
    }

    .feature-card {
        width: auto;
        max-width: 280px;
        height: auto;
        margin: 0 auto;
        background: transparent;
        box-shadow: none;
    }

    .feature-card img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    /* Delivery Section Mobile */
    .delivery-content {
        flex-direction: column;
        text-align: center;
    }

    .delivery-text {
        text-align: center;
    }

    .delivery-text h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .delivery-text h2 br {
        display: block;
    }

    .delivery-text h2 span {
        display: block;
        margin-top: 5px;
    }

    /* Offer Card Mobile Fixes */
    .offer {
        padding: 30px 20px;
        width: 95%;
        /* Ensure it fits */
        margin: 20px auto;
    }

    .offer h2 {
        font-size: 1.5rem;
        /* Smaller font */
    }

    .price-value {
        font-size: 3rem;
        /* Smaller price on mobile */
    }

    .price-header {
        font-size: 0.9rem;
    }

    .offer p {
        font-size: 0.9rem;
        /* Smaller text */
        line-height: 1.4;
    }

    .btn {
        padding: 14px 20px;
        /* Smaller button padding */
        font-size: 1rem;
        width: 100%;
        /* Full width button */
        white-space: normal;
        /* Allow text wrap */
    }

    /* Review Card Mobile */
    .review-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px;
    }

    .review-avatar {
        margin: 0 auto 15px auto;
    }

    .review-content {
        align-items: center;
        text-align: center;
    }

    .review-content .author {
        text-align: center;
    }

    .review-content p {
        text-align: center;
    }

    /* Benefit List Mobile - Same size for all items */
    .benefit-list li {
        height: 65px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 15px 20px;
    }
}