:root {
    --primary-dark: #163832;
    --primary-medium: #235347;
    --accent-light: #DAF1DE;
    --accent-medium: #8EB69B;
    --surface-color: #f4f9f6;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: linear-gradient(var(--accent-medium) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-medium) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

header {
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(142, 182, 155, 0.2);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--accent-medium);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent-light);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hero-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    min-height: 80vh;
}

.banner-content {
    z-index: 2;
}

.hero-label {
    display: inline-block;
    color: var(--accent-medium);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-left: 2px solid var(--accent-medium);
    padding-left: 1rem;
}

.hero-banner h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--accent-light);
}

.hero-banner h2 span {
    color: var(--accent-medium);
    font-style: italic;
    font-weight: 300;
}

.hero-banner p {
    font-size: 1.1rem;
    color: rgba(218, 241, 222, 0.7);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-light);
    color: var(--primary-dark);
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--accent-medium);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-circle {
    width: 350px;
    height: 350px;
    border: 1px solid var(--accent-medium);
    border-radius: 50%;
    position: absolute;
    animation: rotateCircle 20s linear infinite;
}

.hero-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent-light);
    border-radius: 50%;
}

@keyframes rotateCircle {
    to { transform: rotate(360deg); }
}

.floating-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: auto;
    z-index: 2;
    opacity: 0.9;
    filter: drop-shadow(0 0 15px rgba(218, 241, 222, 0.3));
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(142, 182, 155, 0.2);
    padding-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--accent-light);
    font-weight: 600;
}


.livros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 8rem;
}

.livro-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-image-wrapper {
    background-color: #e0e9e4;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-medium), var(--primary-dark));
}

.livro-card img {
    width: 140px;
    height: 210px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.livro-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.book-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-dark);
    color: var(--accent-light);
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 50px;
    z-index: 10;
}

.livro-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.livro-card h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.livro-card p {
    color: var(--primary-medium);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}


.combo-promocional {
    position: relative;
}

.combo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px !important;
    overflow: hidden; 
    min-height: 275px;
}

.capa-combo {
    height: 150px !important;
    width: 100px !important; 
    object-fit: cover !important;
    transition: all 0.3s ease;
    box-shadow: 3px 5px 12px rgba(0,0,0,0.3);
}

.capa-combo.c1 {
    transform: rotate(-10deg) translateX(15px);
    z-index: 1;
}

.capa-combo.c2 {
    transform: rotate(8deg) translateX(-15px);
    z-index: 2;
}

.combo-promocional:hover .capa-combo.c1 {
    transform: rotate(-15deg) translateX(5px);
}

.combo-promocional:hover .capa-combo.c2 {
    transform: rotate(12deg) translateX(-5px);
}

.promo-btn {
    background-color: var(--surface-color) !important;
    color: var(--primary-dark) !important;
    border: 1px solid var(--primary-dark);
    transition: all 0.3s ease;
}

.promo-btn:hover {
    background-color: var(--primary-dark) !important;
    color: var(--surface-color) !important;
}

.book-ribbon.promo {
    background-color: var(--primary-dark);
}

.preco {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: auto;
    margin-bottom: 1rem;
}

.btn-card {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary-dark);
    color: var(--primary-dark);
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-card:hover {
    background: var(--primary-dark);
    color: var(--accent-light);
}

.app-section {
    background-color: var(--accent-light);
    border-radius: 20px;
    margin-bottom: 6rem;
    overflow: hidden;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.app-text {
    padding: 4rem;
    color: var(--primary-dark);
}

.app-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.app-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-app {
    background-color: var(--primary-dark);
    color: var(--accent-light);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-app:hover {
    background-color: var(--primary-medium);
    transform: translateY(-2px);
}

.app-mockup {
    background-color: transparent;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.phone-frame {
    width: 240px;
    height: 480px;
    background: var(--primary-dark);
    border-radius: 30px;
    border: 8px solid #1a2e29;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: rotate(5deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--primary-medium);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ep-section {
    margin-bottom: 6rem;
}

.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.ep-poster {
    background-color: var(--surface-color);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(142, 182, 155, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ep-poster:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-light);
}

.poster-ribbon {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-dark);
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.poster-image-container {
    width: 100%;
    height: auto; 
    padding: 0; 
    background: none; 
    display: block; 
    position: relative;
}

.poster-image-container img {
    width: 100%; 
    height: auto; 
    display: block; 
    border-radius: 15px 15px 0 0; 
    object-fit: cover;
}

.ep-poster:hover .poster-image-container img {
    transform: scale(1.05);
}

.poster-content {
    padding: 1.5rem;
    background-color: var(--surface-color);
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.poster-content h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.poster-content p {
    color: var(--primary-medium);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-poster {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.ep-poster:hover .btn-poster {
    color: var(--accent-medium);
    transform: translateX(5px);
}

.termo-banner-section {
    background-color: var(--accent-light);
    border-radius: 20px;
    margin-bottom: 6rem;
    overflow: hidden;
}

.termo-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.termo-banner-text {
    padding: 4rem;
    color: var(--primary-dark);
}

.termo-banner-text h2 {
    font-size: 2.5rem; 
    margin-bottom: 1rem;
    line-height: 1.2;
}

.termo-banner-text h2 span {
    color: var(--accent-medium);
    font-style: italic;
    display: block;
    margin-top: 15px;
}

.termo-banner-text p {
    font-size: 1.1rem; 
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-termo {
    background-color: var(--primary-dark);
    color: var(--surface-color);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-termo:hover {
    background-color: var(--accent-medium);
    transform: translateY(-2px);
}

.termo-banner-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    height: 100%;
    perspective: 1000px;
}

.termo-grid-ilustrativa {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: rotateY(-15deg) rotateX(10deg) rotateZ(5deg);
    background: rgba(22, 56, 50, 1); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px;
    border-radius: 12px;
    box-shadow: -15px 20px 30px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.t-row {
    display: flex;
    gap: 8px;
}

.t-box {
    width: clamp(35px, 4vw, 50px);
    height: clamp(35px, 4vw, 50px);
    background: #0f2622;
    border: 2px solid #235347;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-light);
}

.t-box.verde { background-color: #2e7d32; border-color: #2e7d32; }
.t-box.amarelo { background-color: #d4a373; border-color: #d4a373; }
.t-box.cinza { background-color: #3f3f3f; border-color: #3f3f3f; }
.t-box.vazia { color: transparent; }


footer {
    border-top: 1px solid rgba(142, 182, 155, 0.2);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-logo span {
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

footer p {
    font-size: 0.9rem;
    color: var(--accent-medium);
}

.footer-social {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    color: var(--accent-medium);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(142, 182, 155, 0.3);
    text-decoration: none;
}

.social-link i {
    font-size: 1.4rem;
}

.social-link span {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.social-link:hover {
    color: var(--accent-light);
    background: rgba(142, 182, 155, 0.1);
    border-color: var(--accent-light);
    transform: translateY(-3px);
}



@media (max-width: 1024px) {
    .hero-banner {
        grid-template-columns: 1fr 1fr;
        padding: 5rem 1.5rem;
        min-height: auto;
    }

    .hero-circle {
        width: 280px;
        height: 280px;
    }

    .floating-logo {
        width: 140px;
    }
}

@media (max-width: 900px) {
    .hero-banner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 1.5rem;
        gap: 3rem;
    }

    .hero-visual {
        display: flex;
        height: 300px;
        order: -1;
    }

    .hero-circle {
        width: 250px;
        height: 250px;
    }

    .floating-logo {
        width: 120px;
    }

    .hero-banner p {
        margin: 0 auto 2.5rem auto;
    }

    .hero-label {
        border-left: none;
        border-bottom: 2px solid var(--accent-medium);
        padding-left: 0;
        padding-bottom: 0.5rem;
    }

    .app-content, .termo-banner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-text, .termo-banner-text {
        padding: 3rem 2rem;
    }

    .app-buttons {
        justify-content: center;
    }

    .app-mockup {
        height: 400px;
        padding: 2rem;
    }
    
    .termo-banner-visual {
        padding: 2rem;
    }

    .capa-combo {
        height: 135px !important;
        width: 90px !important;
    }
}

@media (max-width: 600px) {
    .header-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .hero-banner h2 {
        font-size: 2.2rem;
    }

    .hero-visual {
        height: 220px;
    }

    .hero-circle {
        width: 200px;
        height: 200px;
    }

    .floating-logo {
        width: 90px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .livros-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .app-text h2 {
        font-size: 1.8rem;
    }

    .app-text {
        padding: 2rem 1.5rem;
    }

    .phone-frame {
        width: 180px;
        height: 360px;
    }

    .termo-banner-text {
        padding: 2.5rem 1.5rem 1rem 1.5rem;
    }

    .termo-banner-text h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .termo-banner-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .termo-banner-visual {
        padding: 1rem 1.5rem 2.5rem 1.5rem;
    }

    .t-row {
        gap: 6px;
    }

    .t-box {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 6px;
    }
    
    .btn-termo {
        width: 100%;
        justify-content: center;
    }

    .capa-combo {
        height: 150px !important;
        width: 100px !important;
    }
    
    .capa-combo.c1 {
        transform: rotate(-8deg) translateX(10px);
    }
    
    .capa-combo.c2 {
        transform: rotate(6deg) translateX(-10px);
    }
}

@media (max-width: 480px) {
    .ep-grid {
        grid-template-columns: 1fr;
    }

    .ep-poster {
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .termo-banner-text h2 {
        font-size: 1.7rem;
    }

    .t-box {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        border-width: 1px;
    }

    .t-row {
        gap: 4px;
    }

    .capa-combo {
        height: 120px !important;
        width: 80px !important;
    }
}

@media (max-width: 380px) {
    header h1 {
        font-size: 1.1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero-banner {
        padding: 3rem 1rem;
    }

    .hero-banner h2 {
        font-size: 1.8rem;
    }

    .cta-button {
        width: 100%;
    }
}