
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fff8fb;
    color: #674958;
    overflow-x: hidden;
}

button {
    border: none;
    background: linear-gradient(135deg, #e9a8c4, #c77eaa);
    color: white;
    padding: 15px 27px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(190, 115, 155, .25);
    transition: .3s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(190, 115, 155, .4);
}

button:focus-visible {
    outline: 3px solid #a65e83;
    outline-offset: 4px;
}

.hidden {
    display: none !important;
}


/* CABEÇALHO */

.top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    text-align: center;
    color: #a65e83;
    letter-spacing: 6px;
    font-size: 11px;
    z-index: 5;
}

.top-heart {
    color: #d58bad;
    margin-left: 7px;
}


/* INÍCIO */

.hero {
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% 20%, #f7d5e4, transparent 35%),
        linear-gradient(135deg, #fceaf1, #f5d9e8, #e8d8f2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
    animation: fadeUp 1.2s ease;
}

.eyebrow {
    color: #ad7392;
    letter-spacing: 3px;
    font-size: 10px;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(76px, 14vw, 125px);
    color: #a65e83;
    line-height: 1.1;
    font-weight: 400;
}

.hero-line {
    width: 85px;
    height: 2px;
    background: #dba4bd;
    margin: 20px auto;
}

.subtitle {
    max-width: 420px;
    margin: 20px auto 30px;
    line-height: 1.9;
    color: #896b7c;
    font-size: 14px;
}

.decoration {
    position: absolute;
    color: rgba(255,255,255,.55);
    pointer-events: none;
}

.decoration-one {
    top: 15%;
    left: 12%;
    font-size: 65px;
}

.decoration-two {
    right: 7%;
    bottom: 8%;
    font-size: 150px;
}

.decoration-three {
    top: 25%;
    right: 18%;
    font-size: 40px;
}


/* CAPÍTULOS */

.chapter {
    min-height: 100vh;
    padding: 100px 22px 80px;
    text-align: center;
    background:
        radial-gradient(circle at top right, #fbe1ed, transparent 40%),
        #fff8fb;
    animation: fadeUp .8s ease;
}

.chapter-number {
    color: #bd83a1;
    font-size: 10px;
    letter-spacing: 4px;
    margin-bottom: 18px;
}

.chapter h2 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 400;
    color: #a65e83;
    margin-bottom: 12px;
}

.description {
    color: #987b8b;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-size: 13px;
}


/* ENVELOPE */

.envelope-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 55px auto 25px;
}

.envelope {
    position: relative;
    width: 280px;
    height: 180px;
    background: #e9a8c4;
    border-radius: 5px;
    cursor: pointer;
    perspective: 800px;
    isolation: isolate;
    box-shadow: 0 15px 35px rgba(160, 90, 125, .2);
    outline: none;
}

/* Papel permanece dentro do envelope */
.envelope-paper {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 20px;
    width: 240px;
    height: 150px;
    background: #fff7fa;
    border-radius: 3px;
    display: grid;
    place-items: center;
    color: #d58bad;
    font-size: 40px;
    transition: transform .7s ease;
}

/* Parte da frente */
.envelope-front {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #e8a5c1;
    clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
    border-radius: 5px;
}

/* Aba superior */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    background: #d68eaf;
    clip-path: polygon(0 0, 100% 0, 50% 57%);
    transform-origin: top center;
    transition: transform .7s ease;
}

.envelope.open .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-label {
    margin-top: 18px;
    color: #a65e83;
    font-size: 11px;
}


/* CARTA */

.letter-full {
    position: relative;
    z-index: 5;
    max-width: 600px;
    margin: 35px auto 20px;
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(180, 120, 150, .12);
    line-height: 2;
    animation: fadeUp .8s ease;
}

.letter-full h2 {
    margin-bottom: 15px;
}

.letter-full p {
    margin: 15px 0;
    font-size: 13px;
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 29px !important;
    color: #b66d91;
}


/* LEMBRANÇAS */

.memory-grid {
    max-width: 900px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.memory-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 8px 25px rgba(180, 120, 150, .1);
    transition: transform .3s;
}

.memory-card:hover {
    transform: translateY(-6px);
}

.memory-card span {
    font-size: 34px;
    color: #d58bad;
}

.memory-card h3 {
    color: #a65e83;
    margin: 13px 0;
    font-size: 15px;
}

.memory-card p {
    color: #987b8b;
    font-size: 12px;
    line-height: 1.8;
}


/* PROMESSAS */

.promise {
    max-width: 600px;
    margin: 35px auto;
    background: white;
    padding: 25px 30px;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 8px 25px rgba(180, 120, 150, .1);
}

.promise p {
    padding: 13px 0;
    border-bottom: 1px solid #f6e6ee;
    line-height: 1.7;
    font-size: 13px;
}

.promise p:last-child {
    border-bottom: none;
}

.final-intro {
    margin: 40px 0 22px;
    color: #a87591;
    font-family: 'Great Vibes', cursive;
    font-size: 37px;
}


/* NOITE ESTRELADA */

.night {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 100%, #303c70, transparent 65%),
        linear-gradient(180deg, #080d20, #111a38 55%, #202c50);
    color: white;
    padding: 95px 18px 70px;
    text-align: center;
}

.night-sky {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.sky-star {
    position: absolute;
    color: white;
    opacity: .7;
    animation: twinkle var(--duration) ease-in-out infinite alternate;
}

.moon {
    position: absolute;
    top: 30px;
    right: 10%;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff1c7;
    box-shadow:
        0 0 20px #fff1c7,
        0 0 50px rgba(255,241,199,.5);
}

.moon::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 17px;
    width: 53px;
    height: 53px;
    border-radius: 50%;
    background: #0b122a;
}

.night-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: auto;
    opacity: 0;
}

.night-content.show {
    animation: fadeUp 1.5s ease forwards;
}

.night-subtitle {
    color: #c8c4e8;
    letter-spacing: 2px;
    font-size: 10px;
    margin-bottom: 18px;
}

.night-content > h2 {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(43px, 8vw, 72px);
    color: #f6d8e9;
    margin-bottom: 18px;
}

.night-text {
    max-width: 540px;
    margin: 0 auto 25px;
    line-height: 1.9;
    color: #d4d6ee;
    font-size: 13px;
}


/* CORAÇÃO DE LÍRIOS */

.lily-heart-wrap {
    position: relative;
    width: min(100%, 650px);
    height: 570px;
    margin: 45px auto 20px;
}

.lily-heart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Cada lírio é independente e grande */
.lily-unit {
    position: absolute;
    width: 88px;
    height: 88px;
    transform: translate(-50%, -50%);
    animation: flowerSway 4s ease-in-out infinite alternate;
}

.lily-unit:nth-child(3n) {
    animation-delay: .6s;
}

.lily-unit:nth-child(3n + 1) {
    animation-delay: 1.2s;
}

.lily-flower {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* PÉTALAS */

.lily-petal {
    fill: #fff7fa;
    stroke: #e9a0c1;
    stroke-width: 1.5;
}

.lily-petal-inner {
    fill: #f7c4d9;
    opacity: .8;
}

.lily-vein {
    fill: none;
    stroke: #d98bab;
    stroke-width: 1.4;
    stroke-linecap: round;
}

/* ESTAMES E CENTRO */

.lily-center {
    fill: #edbd59;
    stroke: #fff0c9;
    stroke-width: 1;
}

.lily-stamen {
    stroke: #e6b454;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.lily-anther {
    fill: #e6a843;
}


/* MENSAGEM NO CENTRO */

.lily-message {
    position: absolute;
    left: 50%;
    top: 49%;
    transform: translate(-50%, -50%);
    width: 55%;
    min-height: 150px;
    padding: 15px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background: rgba(10, 17, 42, .96);
    border: 1px solid rgba(255, 220, 240, .5);
    box-shadow: 0 0 35px rgba(255, 190, 225, .2);
    z-index: 3;
}

.lily-message h3 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(42px, 9vw, 62px);
    color: #ffe1ef;
    font-weight: 400;
    text-shadow: 0 0 18px #ed9fc9;
}

.lily-message p {
    color: #fff0f6;
    font-size: 12px;
    margin: 4px;
}

.lily-message strong {
    color: #ffc2dc;
    font-size: 15px;
    margin-top: 7px;
}


/* FINAL */

.forever {
    font-family: 'Great Vibes', cursive;
    font-size: 34px;
    color: #f7d6e8;
    margin: 30px 0 12px;
}

.signature-final {
    color: #bfc5e7;
    margin-bottom: 30px;
    font-size: 12px;
}


/* RODAPÉ */

footer {
    background: #f8e5ee;
    text-align: center;
    padding: 23px;
    color: #a87591;
    font-size: 10px;
}


/* ANIMAÇÕES */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes twinkle {
    from {
        opacity: .2;
        transform: scale(.8);
    }

    to {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes flowerSway {
    from {
        rotate: -3deg;
    }

    to {
        rotate: 3deg;
    }
}


/* CELULAR */

@media (max-width: 520px) {

    .chapter {
        padding: 85px 17px 65px;
    }

    .letter-full {
        padding: 25px 20px;
    }

    .envelope {
        width: 260px;
        height: 165px;
    }

    .envelope-paper {
        width: 220px;
        height: 135px;
        left: 20px;
    }

    .lily-heart-wrap {
        height: 440px;
    }

    .lily-unit {
        width: 62px;
        height: 62px;
    }

    .lily-message {
        width: 62%;
        min-height: 125px;
    }

    .lily-message p {
        font-size: 10px;
    }

    .lily-message strong {
        font-size: 12px;
    }

    .moon {
        right: 8%;
        width: 43px;
        height: 43px;
    }

    .moon::after {
        width: 42px;
        height: 42px;
        left: 14px;
    }
}
