/* ===========================
   FONTES
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500&display=swap');

/* ===========================
   VARIÁVEIS
   =========================== */
:root {
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Jost', sans-serif;
    --color-dark: #111110;
    --color-mid: #3d3d3a;
    --color-subtle: #7a7a76;
    --color-light: #e8e6e1;
    --color-white: #fafaf8;
    --color-accent: #2c7a4b;
    --color-accent-hover: #1f5e38;
    --glass-bg: rgba(255, 255, 255, 0.58);
    --glass-border: rgba(255, 255, 255, 0.72);
    --glass-shadow: 0 12px 48px rgba(0, 0, 0, 0.09);
    --radius-card: 20px;
    --radius-btn: 10px;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-dark);
    background: transparent;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   CANVAS GRADIENTE
   =========================== */
#gradient-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* ===========================
   PARTÍCULAS
   =========================== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    animation: float-particle linear infinite;
}

.particles span:nth-child(1) { width: 4px; height: 4px; left: 15%; animation-duration: 18s; animation-delay: 0s; }
.particles span:nth-child(2) { width: 3px; height: 3px; left: 35%; animation-duration: 24s; animation-delay: -6s; }
.particles span:nth-child(3) { width: 5px; height: 5px; left: 55%; animation-duration: 20s; animation-delay: -10s; }
.particles span:nth-child(4) { width: 2px; height: 2px; left: 70%; animation-duration: 28s; animation-delay: -3s; }
.particles span:nth-child(5) { width: 4px; height: 4px; left: 82%; animation-duration: 22s; animation-delay: -14s; }
.particles span:nth-child(6) { width: 3px; height: 3px; left: 25%; animation-duration: 16s; animation-delay: -8s; }

@keyframes float-particle {
    0%   { transform: translateY(110vh) scale(1); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-10vh) scale(0.6); opacity: 0; }
}

/* ===========================
   HEADER
   =========================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 17, 16, 0.88);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-author {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: var(--color-white);
}

.header-badge {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 3px 10px;
    border-radius: 100px;
}

/* ===========================
   HERO
   =========================== */
.hero {
    position: relative;
    max-width: 820px;
    margin: 52px auto 32px;
    padding: 64px 40px 56px;
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    animation: hero-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(180,180,175,0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* LIVRO */
.book-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

.capa {
    width: 190px;
    border-radius: 6px;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.12),
        0 20px 50px rgba(0,0,0,0.18),
        4px 8px 24px rgba(0,0,0,0.1);
    transform: perspective(600px) rotateY(-4deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.capa:hover {
    transform: perspective(600px) rotateY(0deg) translateY(-4px);
    box-shadow:
        0 8px 24px rgba(0,0,0,0.14),
        0 28px 60px rgba(0,0,0,0.22);
}

.book-shadow {
    width: 160px;
    height: 18px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.25) 0%, transparent 70%);
    margin: 10px auto 0;
}

/* CONTEÚDO HERO */
.hero-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-subtle);
    margin-bottom: 14px;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 42px;
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: italic;
    font-weight: 600;
    color: var(--color-mid);
}

/* ORNAMENTO */
.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 22px;
    color: var(--color-subtle);
    width: 120px;
}

.divider-ornament span {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-subtle), transparent);
    opacity: 0.5;
}

.hero-desc {
    max-width: 520px;
    margin: 0 auto 34px;
    font-size: 16.5px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--color-mid);
    letter-spacing: 0.01em;
}

/* BOTÃO */
.btn-comprar {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 15px 34px !important;
    background: var(--color-accent) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: var(--radius-btn) !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    letter-spacing: 0.05em !important;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
    box-shadow: 0 6px 24px rgba(44, 122, 75, 0.32) !important;
}

.btn-comprar:hover {
    background: var(--color-accent-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 32px rgba(44, 122, 75, 0.42) !important;
}

.btn-comprar:active {
    transform: translateY(0) !important;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-comprar:hover .btn-arrow {
    transform: translateX(3px);
}

/* INFO BADGE */
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--color-subtle);
}

/* ===========================
   SEÇÕES CARD
   =========================== */
.card-section {
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 40px 44px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.55);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 56px rgba(0,0,0,0.11), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    margin-bottom: 16px;
    color: var(--color-mid);
}

.card-section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--color-dark);
    margin-bottom: 14px;
}

.card-rule {
    width: 40px;
    height: 1px;
    background: var(--color-subtle);
    opacity: 0.4;
    margin: 0 auto 18px;
}

.card-section p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-mid);
    max-width: 560px;
    margin: 0 auto;
}

.card-section p strong {
    font-weight: 500;
    color: var(--color-dark);
}

/* ===========================
   FOOTER
   =========================== */
footer {
    text-align: center;
    padding: 30px 20px 40px;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--color-subtle);
}

/* ===========================
   RESPONSIVO
   =========================== */
@media (max-width: 768px) {
    .hero {
        margin: 24px 14px 20px;
        padding: 48px 24px 44px;
        border-radius: 16px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 15.5px;
    }

    .capa { width: 155px; }

    .card-section {
        margin: 0 14px 20px;
        padding: 32px 24px;
        border-radius: 16px;
    }

    .card-section h2 { font-size: 24px; }

    .header-inner { padding: 14px 18px; }
    .header-author { font-size: 14px; }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 27px; }
    .btn-comprar { padding: 13px 24px !important; font-size: 14px !important; }
}