/* Reset e Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E8505B;
    --primary-dark: #c73e48;
    --secondary-color: #2D3436;
    --accent-green: #4ECDC4;
    --accent-purple: #9B59B6;
    --accent-orange: #F39C12;
    --text-color: #2D3436;
    --text-light: #636E72;
    --white: #ffffff;
    --bg-light: #FAFAFA;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Fredoka One', 'Nunito', sans-serif;
    line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { font-size: 1.1rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--primary-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-top {
    background: rgba(0,0,0,0.1);
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.9);
}

.header-main {
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}

.logo-text {
    color: var(--white);
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: -4px;
}

.logo-text span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav a {
    color: var(--white);
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    background: rgba(255,255,255,0.2);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8E8E 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

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

.hero h2 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: clamp(2rem, 5vw, 3rem);
}

.hero p {
    color: rgba(255,255,255,0.95);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Seção de Ebooks */
.ebooks-section {
    padding: 80px 0;
    background: var(--primary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.section-header p {
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Card do Ebook */
.ebook-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ebook-card:last-child {
    border-bottom: none;
}

.ebook-card:nth-child(even) {
    direction: rtl;
}

.ebook-card:nth-child(even) > * {
    direction: ltr;
}

.ebook-image {
    position: relative;
}

.book-display {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.book-3d {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-15deg);
    transition: transform 0.5s ease;
}

.book-3d:hover {
    transform: rotateY(-5deg) scale(1.02);
}

.book-cover {
    width: 280px;
    height: 380px;
    border-radius: 8px 20px 20px 8px;
    box-shadow: 
        -20px 20px 40px rgba(0,0,0,0.3),
        inset -3px 0 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.book-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, rgba(0,0,0,0.2) 0%, transparent 100%);
}

.book-cover .book-illustration {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
}

.book-cover h4 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.book-cover .book-tema {
    background: rgba(255,255,255,0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 600;
}

.book-shelf {
    height: 25px;
    background: linear-gradient(to bottom, #8B4513 0%, #654321 50%, #4a3219 100%);
    border-radius: 4px;
    margin-top: -10px;
    width: 120%;
    margin-left: -10%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.ebook-content {
    color: var(--white);
}

.ebook-content .tema-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.ebook-content h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.ebook-content .subtitulo {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.ebook-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.ebook-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sinopse {
    margin-bottom: 24px;
    line-height: 1.8;
    opacity: 0.95;
}

.ebook-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.ebook-price small {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.ebook-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-comprar {
    background: var(--accent-green);
    color: var(--white);
}

.btn-comprar:hover {
    background: #3dbdb5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Página Individual do Ebook */
.ebook-hero {
    padding: 80px 0;
    position: relative;
}

.ebook-hero .container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.ebook-hero-image {
    position: sticky;
    top: 120px;
}

.ebook-hero-content h1 {
    margin-bottom: 8px;
}

.ebook-hero-content .subtitulo {
    font-size: 1.25rem;
    opacity: 0.85;
    margin-bottom: 24px;
}

.ebook-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.sinopse-full {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 32px;
}

.aprendizados {
    margin-bottom: 32px;
}

.aprendizados h4 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.aprendizados ul {
    list-style: none;
}

.aprendizados li {
    padding: 12px 0;
    padding-left: 36px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.aprendizados li::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.compra-box {
    background: rgba(255,255,255,0.1);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-top: 32px;
}

.compra-box .preco {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.compra-box .parcelas {
    opacity: 0.9;
    margin-bottom: 24px;
}

.compra-box .btn {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
    font-size: 1.1rem;
}

/* Seção Sobre */
.sobre-section {
    padding: 80px 0;
    background: var(--white);
}

.sobre-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-content h2 {
    color: var(--primary-color);
    margin-bottom: 24px;
}

.sobre-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.sobre-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-item .label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.sobre-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-container {
    width: 100%;
    max-width: 400px;
}

/* Benefícios */
.beneficios-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.beneficios-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 48px;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.beneficio-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.beneficio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.beneficio-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.beneficio-card h4 {
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.beneficio-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    padding: 60px 0 24px;
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 8px;
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsivo */
@media (max-width: 1024px) {
    .ebook-card {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .ebook-card:nth-child(even) {
        direction: ltr;
    }
    
    .ebook-content .ebook-meta {
        justify-content: center;
    }
    
    .ebook-actions {
        justify-content: center;
    }
    
    .ebook-hero .container {
        grid-template-columns: 1fr;
    }
    
    .ebook-hero-image {
        position: static;
        display: flex;
        justify-content: center;
    }
    
    .sobre-section .container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .ebooks-section {
        padding: 60px 0;
    }
    
    .book-cover {
        width: 240px;
        height: 320px;
    }
    
    .sobre-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .book-cover {
        width: 200px;
        height: 280px;
    }
    
    .ebook-price {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Animações */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 32px; }
