:root {
  --bg: #120816;
    --bg: #120816;
    --bg-soft: #1b0e20;
    --card: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.16);
    --text: #fff7fb;
    --muted: rgba(255, 247, 251, 0.75);
    --accent: #ff4d88;
    --accent-2: #ff8fb3;
    --accent-3: #a855f7;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1180px;
    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background:
      radial-gradient(circle at top left, rgba(255, 77, 136, 0.22), transparent 28%),
      radial-gradient(circle at top right, rgba(168, 85, 247, 0.2), transparent 30%),
      linear-gradient(180deg, #0d0611 0%, var(--bg) 45%, #120714 100%);
    overflow-x: hidden;
  }

  img {
    display: block;
    max-width: 100%;
  }

  a,
  button {
    font: inherit;
  }

  button {
    cursor: pointer;
  }

  .bg-orbs,
  .floating-hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .bg-orbs::before,
  .bg-orbs::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.4;
  }

  .bg-orbs::before {
    width: 280px;
    height: 280px;
    background: rgba(255, 77, 136, 0.22);
    top: 6%;
    left: -80px;
  }

  .bg-orbs::after {
    width: 340px;
    height: 340px;
    background: rgba(168, 85, 247, 0.18);
    bottom: 10%;
    right: -100px;
  }

  .hero,
  .section,
  .footer {
    position: relative;
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
  }

  .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    padding: 40px 0 72px;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 18% 12% auto auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 68%);
    transform: translateY(var(--parallax, 0px));
    pointer-events: none;
  }

  .hero__content {
    z-index: 1;
  }

  .eyebrow,
  .section__kicker {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    color: var(--accent-2);
    font-weight: 700;
  }

  .hero h1,
  .section h2,
  .letter p,
  .footer__text {
    font-family: var(--serif);
  }

  .hero h1 {
    margin: 0;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  }

  .hero__subtitle {
    max-width: 30rem;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
  }

  .btn--primary {
    color: white;
    background: linear-gradient(135deg, var(--accent) 0%, #ff7c9c 45%, var(--accent-3) 100%);
    box-shadow: 0 16px 30px rgba(255, 77, 136, 0.28);
  }

  .btn--ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
  }

  .music-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0 10%, var(--accent-2) 12% 35%, transparent 36%),
      linear-gradient(135deg, currentColor 0 0);
    position: relative;
  }

  .music-icon::before,
  .music-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 2px;
    width: 2px;
    height: 12px;
    background: currentColor;
    border-radius: 999px;
    transform-origin: top;
  }

  .music-icon::after {
    right: -1px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    background: transparent;
    opacity: 0;
  }

  .is-playing .music-icon {
    animation: pulse 1.2s infinite ease-in-out;
  }

  .hero__card {
    position: relative;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .hero__photo-stack {
    display: grid;
    gap: 16px;
  }

  .hero__photo-stack img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.25);
  }

  .hero__photo-stack img:first-child {
    transform: rotate(-4deg) translateX(-6px);
  }

  .hero__photo-stack img:last-child {
    transform: rotate(4deg) translateX(10px);
  }

  .hero__badge {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(13, 6, 17, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 0.92rem;
  }

  .section {
    padding: 24px 0 96px;
  }

  .section__heading {
    max-width: 760px;
    margin-bottom: 28px;
  }

  .section h2 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
  }

  .section__heading p:last-child {
    margin-bottom: 0;
  }

  .section--soft {
    padding-top: 36px;
  }

  .timeline {
    display: grid;
    gap: 18px;
  }

  .timeline__item,
  .reason-card,
  .counter,
  .letter,
  .gallery__item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .timeline__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px;
    border-radius: var(--radius-lg);
  }

  .timeline__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: white;
    font-size: 1.45rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  }

  .timeline__item h3,
  .reason-card h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
  }

  .timeline__item p,
  .reason-card p,
  .letter p,
  .footer__text,
  .gallery__item figcaption {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
  }

  .gallery__item {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 28px;
    min-height: 250px;
    border: 0;
    grid-column: span 4;
  }

  .gallery__item:nth-child(1),
  .gallery__item:nth-child(5) {
    grid-column: span 5;
  }

  .gallery__item:nth-child(2),
  .gallery__item:nth-child(3),
  .gallery__item:nth-child(4) {
    grid-column: span 7;
  }

  .gallery__item img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.55s ease;
  }

  .gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(13, 6, 17, 0.68) 100%);
    opacity: 0.9;
  }

  .gallery__item figcaption,
  .gallery__item::before {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 1;
  }

  .gallery__item::before {
    content: "✦ Clique para ampliar";
    top: 16px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 247, 251, 0.8);
  }

  .gallery__item figcaption {
    bottom: 16px;
    color: #fff;
    text-align: left;
    font-size: 1rem;
  }

  .gallery__item:hover img,
  .gallery__item:focus-visible img {
    transform: scale(1.08);
    filter: saturate(1.08);
  }

  .gallery__item:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 4px;
  }

  .letter {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 34px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .letter::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(135deg, rgba(255, 77, 136, 0.14), transparent 40%),
      radial-gradient(circle at top right, rgba(168, 85, 247, 0.16), transparent 35%);
    pointer-events: none;
  }

  .letter__seal {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
    box-shadow: 0 16px 40px rgba(255, 77, 136, 0.24);
    position: relative;
    z-index: 1;
  }

  .letter p {
    position: relative;
    z-index: 1;
    font-size: clamp(1.25rem, 2.8vw, 1.8rem);
    line-height: 1.9;
    color: #fff9fd;
    min-height: 12rem;
  }

  .counter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
    border-radius: 30px;
  }

  .counter__item {
    padding: 22px 16px;
    border-radius: 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .counter__item strong {
    display: block;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
  }

  .counter__item span {
    display: inline-block;
    margin-top: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
  }

  .reasons {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
  }

  .reason-card {
    grid-column: span 4;
    padding: 26px;
    border-radius: 26px;
    min-height: 210px;
    position: relative;
    overflow: hidden;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease, border-color 0.3s ease;
  }

  .reason-card::before {
    content: "❤";
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 2rem;
    color: rgba(255, 143, 179, 0.35);
  }

  .reason-card.is-visible {
    transform: translateY(0);
    opacity: 1;
  }

  .reason-card:hover {
    border-color: rgba(255, 143, 179, 0.34);
  }

  .footer {
    padding: 20px 0 100px;
    text-align: center;
  }

  .footer__text {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: #fff;
  }

  .to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
    box-shadow: 0 16px 30px rgba(255, 77, 136, 0.3);
    opacity: 0;
    transform: translateY(18px) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 20;
  }

  .to-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 4, 10, 0.84);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 30;
  }

  .lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .lightbox__figure {
    width: min(100%, 880px);
    margin: 0;
  }

  .lightbox__figure img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
  }

  .lightbox__figure figcaption {
    margin-top: 14px;
    text-align: center;
    color: var(--muted);
  }

  .lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 1.8rem;
  }

  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .floating-heart {
    position: absolute;
    bottom: -40px;
    color: rgba(255, 143, 179, 0.7);
    text-shadow: 0 6px 24px rgba(255, 77, 136, 0.25);
    animation: floatUp linear forwards;
  }

  @keyframes floatUp {
    from {
      transform: translateY(0) translateX(0) rotate(0deg) scale(0.85);
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    to {
      transform: translateY(-110vh) translateX(var(--drift, 0px)) rotate(180deg) scale(1.25);
      opacity: 0;
    }
  }

  @keyframes pulse {
    0%,
    100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.14);
    }
  }

  @media (max-width: 980px) {
    .hero {
      grid-template-columns: 1fr;
      gap: 24px;
      padding-top: 24px;
    }

    .hero__card {
      max-width: 720px;
      justify-self: center;
    }

    .gallery__item,
    .gallery__item:nth-child(1),
    .gallery__item:nth-child(2),
    .gallery__item:nth-child(3),
    .gallery__item:nth-child(4),
    .gallery__item:nth-child(5),
    .reason-card {
      grid-column: span 12;
    }

    .counter {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 640px) {
    .hero h1 {
      font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .hero__actions {
      flex-direction: column;
      align-items: stretch;
    }

    .btn {
      justify-content: center;
      width: 100%;
    }

    .timeline__item {
      grid-template-columns: 1fr;
    }

    .timeline__icon {
      width: 48px;
      height: 48px;
    }

    .counter {
      grid-template-columns: 1fr 1fr;
    }

    .to-top {
      right: 14px;
      bottom: 14px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  }
  .gallery__item:nth-child(5),
  .reason-card {
    grid-column: span 12;
  }

  .counter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .timeline__item {
    grid-template-columns: 1fr;
  }

  .timeline__icon {
    width: 48px;
    height: 48px;
  }

  .counter {
    grid-template-columns: 1fr 1fr;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}