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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    overflow: hidden;
}

.home-page {
    min-height: 100vh;
    background: #f4f4f4;
}

.topbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 32px 0;
    position: relative;
    z-index: 10;
}

.access-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.access-block.right {
    align-items: flex-end;
    text-align: right;
}

.access-label {
    font-size: 16px;
    color: #222;
}

.button-group {
    display: flex;
    gap: 12px;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s ease;
}

.pill-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.pill-btn.outline {
    background: #fff;
    color: #111;
    border: 1.5px solid #999;
}

/* Geral */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carrossel */
.carousel-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 18px 0;
}

.carousel-row {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.carousel-track {
    display: flex;
    gap: 34px;
    width: max-content;
}

.row-1 .carousel-track {
    animation: scroll-left 80s linear infinite;
}

.row-2 .carousel-track {
    animation: scroll-left 80s linear infinite;
}

.row-3 .carousel-track {
    animation: scroll-left 80s linear infinite;
}

/* Capas Livro */
.book-card {
    width: 120px;
    height: 170px;
    flex: 0 0 auto;
    border-radius: 14px;
    overflow: visible;
    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Desfoque / Gradiente */
.side-blur {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 160px;
    z-index: 3;
    pointer-events: none;
}

.left-blur {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(244, 244, 244, 1),
        rgba(244, 244, 244, 0)
    );
}

.right-blur {
    right: 0;
    background: linear-gradient(
        to left,
        rgba(244, 244, 244, 1),
        rgba(244, 244, 244, 0)
    );
}

/* Caixa central */
.center-highlight {
    position: absolute;
    width: min(285px, 70vw);
    height: min(230px, 42vh);
    border-radius: 26px;

    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero-content {
    position: relative;
    z-index: 5;
    width: min(360px, 75vw);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 18px;
}

.hero-logo {
    width: 52px;
    height: auto;
    margin-bottom: 8px;
}

.hero-content h1 {
    font-size: 2.35rem;
    font-weight: 400;
    line-height: 1;
    color: #111;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 0.95rem;
    line-height: 1.35;
    color: #222;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Responsividade */
@media (max-width: 900px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .topbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .access-block.right {
        align-items: flex-start;
        text-align: left;
    }

    .hero {
        height: auto;
        min-height: calc(100vh - 120px);
        padding: 40px 0;
    }

    .carousel-wrapper {
        gap: 24px;
    }

    .book-card {
        width: 110px;
        height: 155px;
    }

    .center-highlight {
        width: min(245px, 78vw);
        height: min(205px, 35vh);
    }

    .hero-logo {
        width: 45px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .side-blur {
        width: 90px;
    }

    .pill-btn {
        min-width: 96px;
        height: 38px;
        font-size: 14px;
    }
}