/* Custom Variables */
:root {
    --dark-chocolate: #2a1711;
    --milk-chocolate: #5c3a21;
    --caramel-gold: #d4af37;
    --light-gold: #e8c86b;
    --cream: #fbf8f1;
    --text-dark: #333333;
    --text-light: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(42, 23, 17, 0.4);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h2 span,
h1 span {
    color: var(--caramel-gold);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--caramel-gold);
    color: var(--dark-chocolate);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background-color: var(--light-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    width: 100%;
    max-width: 500px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark-chocolate), var(--milk-chocolate));
    color: var(--text-light);
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><circle cx="50" cy="50" r="40" fill="%23d4af37"/></svg>') repeat;
    background-size: 200px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--caramel-gold);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3.0rem;
    margin-bottom: 20px;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guarantee {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.floating-book {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(var(--shadow-heavy));
    border-radius: 10px;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(0deg);
    }

    100% {
        transform: translateY(0px) rotateY(-5deg);
    }
}

/* Features / Aprender Section */
.features {
    padding: 100px 0;
    background-color: var(--cream);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-chocolate);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--caramel-gold);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--dark-chocolate);
    color: var(--caramel-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-chocolate);
}

/* Author Section */
.author {
    padding: 100px 0;
    background-color: #f4eee3;
    overflow: hidden;
}

.author-content {
    display: flex;
    align-items: center;
    gap: 70px;
}

.author-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 40px;
}

/* Sleek Modern Layout */
.author-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}


/* Modern Author Placement */
.author-photo {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease-out;
}

.author-photo:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Foreground cocoa composition to anchor the image */
.author-fg {
    position: absolute;
    bottom: -30px;
    width: 120%;
    max-width: 550px;
    height: auto;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
}

.author-text {
    flex: 1.2;
}

.author-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-chocolate);
}

.author-highlights {
    list-style: none;
    margin: 20px 0;
}

.author-highlights li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.author-highlights i {
    color: var(--caramel-gold);
    margin-top: 5px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--cream);
}

.rating-stars {
    color: var(--caramel-gold);
    font-size: 1.2rem;
    margin-top: 15px;
}

.rating-stars span {
    color: #666;
    font-size: 1rem;
    margin-left: 10px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    background: var(--caramel-gold);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.client-info h4 {
    color: var(--dark-chocolate);
    margin-bottom: 5px;
}

.client-info span {
    font-size: 0.85rem;
    color: #888;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-chocolate), #1a0f0a);
    color: var(--text-light);
    text-align: center;
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.book-mockup-small {
    margin-bottom: 30px;
}

.shadow-img {
    height: 300px;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.price-box {
    margin-bottom: 30px;
}

.old-price {
    display: block;
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.1rem;
}

.new-price {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--caramel-gold);
    font-family: 'Montserrat', sans-serif;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: #0d0705;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--caramel-gold);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--caramel-gold);
}

.disclaimer {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
    max-width: 800px;
    margin: 0 auto;
}

@keyframes floatCta {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Floating CTA */
.floating-cta-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: var(--transition);
}

.floating-cta-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-cta-book {
    height: 117px;
    /* Aumentado em cerca de 30% */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.5));
    animation: floatCta 3s ease-in-out infinite;
    margin-bottom: 5px;
    /* Distanciado do botão (antes era -15px) */
    z-index: 2;
    transform-origin: bottom center;
}

.floating-cta {
    position: relative;
    background-color: var(--caramel-gold);
    color: var(--dark-chocolate);
    padding: 15px 25px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    z-index: 1;
}

.floating-cta i {
    animation: pulse 2s infinite;
}

.floating-cta:hover {
    background-color: var(--light-gold);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {

    .hero-content,
    .author-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .author-highlights li {
        justify-content: flex-start;
        text-align: left;
    }

    .floating-book {
        max-width: 80%;
        margin-top: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .features-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .btn-large {
        padding: 1.2rem;
        font-size: 1.1rem;
    }

    .security-badges {
        flex-direction: column;
        gap: 10px;
    }
}