:root {
  --bg: #080d1c;
  --panel: rgba(19, 28, 51, .62);
  --text: #f4f0eb;
  --muted: #a7aec2;
  --accent: #c6b7e8;
  --line: rgba(220, 218, 245, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: "DM Sans", sans-serif; font-weight: 300; overflow-x: hidden;
}
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(77, 82, 145, .28), transparent 48%),
    radial-gradient(ellipse at 85% 65%, rgba(85, 57, 120, .16), transparent 38%),
    linear-gradient(180deg, #0b1022 0%, #080d1c 55%, #0b1020 100%);
}
.sky::before, .sky::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(1px 1px at 10% 20%, #fff 98%, transparent),
    radial-gradient(1px 1px at 35% 70%, #d9d1ff 98%, transparent),
    radial-gradient(2px 2px at 80% 30%, #fff 98%, transparent),
    radial-gradient(1px 1px at 65% 85%, #fff 98%, transparent),
    radial-gradient(1px 1px at 90% 75%, #c9c1f5 98%, transparent);
  background-size: 260px 240px; opacity: .42; animation: twinkle 7s ease-in-out infinite alternate;
}
.sky::after { transform: scale(1.5); opacity: .2; animation-delay: -3s; }
.grain { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.hero { min-height: 100svh; padding: 30px 7vw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; }
.eyebrow, .section-mark { color: #a9a2c8; letter-spacing: .24em; font-size: .68rem; font-weight: 500; }
h1, h2, h3, .big-quote { font-family: "Cormorant Garamond", serif; font-weight: 400; }
.hero h1 { font-size: clamp(3.3rem, 8vw, 7.5rem); line-height: .94; letter-spacing: -.045em; margin: 34px 0 24px; }
em { color: var(--accent); font-weight: 400; }
.hero-copy { color: var(--muted); line-height: 1.9; font-size: .98rem; }
.primary-btn { margin-top: 38px; border: 1px solid rgba(218, 207, 246, .45); color: var(--text); background: rgba(188, 172, 225, .1); border-radius: 99px; padding: 15px 25px; font: inherit; cursor: pointer; transition: .3s; }
.primary-btn span { margin-left: 18px; color: var(--accent); }
.primary-btn:hover { background: rgba(188, 172, 225, .23); transform: translateY(-3px); box-shadow: 0 10px 40px #9c85d322; }
.scroll-note { position: absolute; bottom: 28px; color: #777f99; font-size: .6rem; letter-spacing: .22em; }
.scroll-note span { display: block; margin-top: 10px; font-size: 1rem; }
.section { padding: 130px max(7vw, 22px); max-width: 1500px; margin: auto; }
.intro { text-align: center; border-top: 1px solid var(--line); }
.big-quote { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.1; max-width: 1050px; margin: 55px auto 30px; }
.muted { color: var(--muted); line-height: 1.8; font-size: .92rem; }
.section-title { font-size: clamp(3rem, 6vw, 5rem); margin: 30px 0 8px; }
.poem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 55px; }
.poem-card { position: relative; padding: 36px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(31, 39, 66, .62), rgba(15, 22, 41, .52)); transition: transform .35s, border-color .35s, background .35s; overflow: hidden; }
.poem-card::after { content: "✧"; position: absolute; right: 26px; top: 20px; color: #b9a8e3; opacity: .5; font-size: 1.1rem; }
.poem-card:hover { transform: translateY(-6px); border-color: rgba(198, 183, 232, .45); background: rgba(37, 42, 70, .72); }
.poem-number { color: #9b91bd; font-size: .7rem; letter-spacing: .2em; }
.poem-card h3 { font-size: 2rem; margin: 17px 0 20px; }
.poem-card p { color: #c3c6d3; line-height: 1.9; font-size: .9rem; }
.signature { display: block; color: #a99bcf; font-family: "Cormorant Garamond", serif; font-size: 1.15rem; font-style: italic; margin-top: 25px; }
.letter { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.letter-wrap { max-width: 760px; margin: 55px auto 0; padding: clamp(30px, 6vw, 65px); border: 1px solid var(--line); border-radius: 5px; background: rgba(22, 29, 51, .48); box-shadow: 0 25px 100px #0002; }
.tiny-star { color: var(--accent); font-size: 1.4rem; }
.letter-wrap h2 { font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1; margin: 24px 0 32px; }
.letter-wrap p { color: #c4c7d4; line-height: 2; font-size: .96rem; margin: 0 0 20px; }
.letter-sign { margin-top: 40px; font-family: "Cormorant Garamond", serif; font-size: 1.5rem; color: var(--text); }
.letter-sign span { display: block; color: var(--accent); font-style: italic; font-size: 1.3rem; margin-top: 4px; }
.final { text-align: center; }
.final-content { padding: 55px 10px; }
.orbit { margin: 0 auto 25px; width: 55px; height: 55px; border: 1px solid #b9a8e355; border-radius: 50%; display: grid; place-items: center; color: var(--accent); animation: rotate 12s linear infinite; }
.final h2 { font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 1; }
.final p { color: var(--muted); margin: 28px 0; }
.text-btn { border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; padding: 12px; }
.text-btn:hover { color: white; }
footer { text-align: center; padding: 28px; border-top: 1px solid var(--line); color: #737b93; font-size: .6rem; letter-spacing: .22em; }
footer span { color: var(--accent); padding-left: 8px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes twinkle { from { opacity: .22; } to { opacity: .58; } }
@keyframes rotate { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .section { padding-top: 85px; padding-bottom: 85px; }
  .poem-grid { grid-template-columns: 1fr; }
  .poem-card { padding: 28px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
}

/* Animações e efeitos */
.hearts-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 6; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #8f7ad6, #e8a7c8, #c6b7e8); }
.hero h1 em { background: linear-gradient(90deg, #c6b7e8, #f0b6d2, #fff, #f0b6d2, #c6b7e8); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
.typed-line { min-height: 1.6em; margin: 14px 0 0; color: #f0b6d2; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.caret { display: inline-block; width: 1px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: currentColor; animation: blink 1s steps(2, start) infinite; }
.primary-btn { animation: glow 3s ease-in-out infinite; }
.scroll-note span { animation: nudge 2s ease-in-out infinite; }
.poem-card.visible { transition: opacity .9s ease, transform .35s ease, border-color .35s, background .35s, box-shadow .35s; }
.poem-card:hover { box-shadow: 0 18px 60px rgba(156, 133, 211, .2); }
.poem-card:hover::after { content: "♥\FE0E"; color: #f0b6d2; opacity: .9; }

.marquee { overflow: hidden; padding: 22px 0; border-bottom: 1px solid var(--line); color: #b9a8e3; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: clamp(1.4rem, 3vw, 2.2rem); white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }

.love, .heart-section { text-align: center; }
.envelope { position: relative; display: block; width: min(340px, 82vw); aspect-ratio: 3 / 2; margin: 45px auto 0; padding: 0; border: 0; background: none; cursor: pointer; perspective: 800px; animation: floaty 4s ease-in-out infinite; transition: opacity .5s; }
.env-body { position: absolute; inset: 0; border: 1px solid rgba(218, 207, 246, .35); border-radius: 10px; background: linear-gradient(160deg, #2a2c55, #1a1d3a); box-shadow: 0 25px 70px rgba(156, 133, 211, .22); }
.env-flap { position: absolute; top: 0; left: 0; right: 0; height: 58%; z-index: 2; background: linear-gradient(180deg, #3f3c78, #2c2d59); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .6s ease; }
.env-seal { position: absolute; top: 58%; left: 50%; z-index: 3; width: 54px; height: 54px; margin: -27px 0 0 -27px; display: grid; place-items: center; border-radius: 50%; background: #e8a7c8; color: #3a2348; font-size: 1.4rem; transition: opacity .3s; }
.envelope:hover .env-seal { background: #f4c3db; }
.envelope.open .env-flap { transform: rotateX(180deg); }
.envelope.open .env-seal { opacity: 0; }
.envelope.gone { opacity: 0; }
.envelope[hidden] { display: none; }
.love-letter { max-width: 720px; margin: 45px auto 0; padding: clamp(30px, 6vw, 60px); text-align: left; border: 1px solid rgba(232, 167, 200, .3); border-radius: 14px; background: rgba(32, 28, 58, .62); box-shadow: 0 25px 100px rgba(232, 167, 200, .1); outline: none; }
.love-letter h3 { margin: 0 0 24px; color: #f0b6d2; font-size: clamp(2.2rem, 5vw, 3.4rem); font-style: italic; }
.love-letter p { margin: 0 0 20px; color: #d3d4df; line-height: 2; font-size: 1rem; }
.love-letter > * { opacity: 0; }
.love-letter.show > * { animation: fadeUp .9s ease forwards; }
.love-letter.show > :nth-child(2) { animation-delay: .35s; }
.love-letter.show > :nth-child(3) { animation-delay: .9s; }
.love-letter.show > :nth-child(4) { animation-delay: 1.45s; }
.love-letter.show > :nth-child(5) { animation-delay: 2s; }
.love-letter.show > :nth-child(6) { animation-delay: 2.55s; }

.heart-btn { display: block; margin: 40px auto 0; padding: 0; border: 0; background: none; color: #e8a7c8; font-size: clamp(6rem, 16vw, 9rem); line-height: 1; cursor: pointer; filter: drop-shadow(0 0 28px rgba(232, 167, 200, .5)); animation: heartbeat 1.6s ease-in-out infinite; }
.heart-btn:hover { color: #f4c3db; }
.heart-phrase { max-width: 720px; min-height: 3.4em; margin: 26px auto 0; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; transition: opacity .3s ease; }
.heart-phrase.fading { opacity: 0; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@keyframes shimmer { to { background-position: -250% center; } }
@keyframes blink { to { visibility: hidden; } }
@keyframes glow { 50% { box-shadow: 0 0 34px rgba(198, 183, 232, .32); } }
@keyframes nudge { 50% { transform: translateY(7px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heartbeat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 28% { transform: scale(1.04); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
