:root {
  --bg-1: #06050a;
  --bg-2: #120912;
  --bg-3: #21101c;
  --surface: rgba(17, 9, 14, 0.68);
  --surface-strong: rgba(15, 8, 13, 0.86);
  --line: rgba(255, 230, 197, 0.14);
  --line-strong: rgba(255, 230, 197, 0.3);
  --text: #f8f1eb;
  --muted: rgba(248, 241, 235, 0.72);
  --paper-text: #4f352c;
  --gold: #f0c389;
  --rose: #dd8ca2;
  --moon: #8fa6d8;
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 18px 46px rgba(0, 0, 0, 0.22);
  --radius-lg: 36px;
  --photo-url: url("assets/nossa-foto.jpg");
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(221, 140, 162, 0.18), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(143, 166, 216, 0.14), transparent 24%),
    radial-gradient(circle at 50% 18%, rgba(240, 195, 137, 0.08), transparent 26%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 42%, #040307 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -5;
}

body::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 34%),
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.5) 100%);
}

body::after {
  inset: 1rem;
  border: 1px solid rgba(255, 240, 219, 0.06);
  border-radius: 34px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.scene-glow,
.spotlight,
.film-grain,
.frame-lines {
  position: fixed;
  pointer-events: none;
}

.scene-glow {
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.28;
  z-index: -4;
}

.scene-glow--rose {
  top: -16rem;
  left: -14rem;
  background: radial-gradient(circle, rgba(221, 140, 162, 0.95), transparent 62%);
}

.scene-glow--gold {
  top: 24rem;
  right: -16rem;
  background: radial-gradient(circle, rgba(240, 195, 137, 0.86), transparent 62%);
}

.scene-glow--moon {
  bottom: -16rem;
  left: 28%;
  background: radial-gradient(circle, rgba(143, 166, 216, 0.7), transparent 64%);
}

.spotlight {
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 68% 24%, rgba(255, 255, 255, 0.1), transparent 18%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.film-grain {
  inset: 0;
  z-index: 5;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px;
}

.frame-lines {
  inset: 2rem;
  z-index: -3;
  border: 1px solid rgba(255, 240, 219, 0.05);
  border-radius: 42px;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 4rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
}

.topbar-line {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-line--muted {
  color: rgba(248, 241, 235, 0.54);
  text-align: right;
}

.intro-gate {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(6, 5, 10, 0.22), rgba(6, 5, 10, 0.92)),
    radial-gradient(circle at top, rgba(221, 140, 162, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(18, 9, 18, 0.95), rgba(6, 5, 10, 0.98));
  backdrop-filter: blur(18px);
  z-index: 10;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

body.has-script .intro-gate {
  display: grid;
}

.intro-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-card,
.promise-panel,
.letter-frame {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro-card {
  width: min(560px, 100%);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.06), transparent 42%),
    var(--surface);
  text-align: center;
}

.intro-card::before,
.promise-panel::before,
.letter-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%);
  pointer-events: none;
}

.eyebrow,
.poster-caption__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.intro-title,
.hero-title,
.section-title,
.promise-quote,
.letter-title {
  font-family: "Bodoni Moda", serif;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.intro-title {
  margin: 0.9rem 0 0;
  font-size: clamp(3.4rem, 9vw, 5.9rem);
  line-height: 0.92;
}

.intro-text,
.hero-text,
.section-lead,
.promise-text,
.promise-side__text,
.letter-lead {
  color: var(--muted);
  line-height: 1.8;
}

.intro-text {
  margin: 1.15rem auto 0;
  max-width: 35rem;
}

.gate-note,
.status-note {
  min-height: 1.25rem;
  margin: 1rem 0 0;
  color: rgba(248, 241, 235, 0.6);
  font-size: 0.92rem;
}

.primary-button,
.secondary-button,
.seal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.65rem;
  padding: 0 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    opacity 0.3s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--rose), var(--gold));
  color: #1d0d11;
  box-shadow: 0 14px 34px rgba(221, 140, 162, 0.22);
  font-weight: 700;
}

.secondary-button,
.seal-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.seal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.primary-button:disabled,
.secondary-button:disabled,
.seal-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.intro-card .primary-button {
  margin-top: 1.8rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(1.5rem, 4vw, 3.8rem);
  align-items: start;
  min-height: calc(100vh - 5rem);
  padding: 2.8rem 0 2rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  padding-top: 1.5rem;
}

.hero-headline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-chip {
  margin: 0;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 230, 197, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(248, 241, 235, 0.76);
  font-size: 0.88rem;
}

.hero-title {
  margin: 1.1rem 0 0;
  max-width: 10ch;
  font-size: clamp(3.5rem, 7vw, 6.2rem);
  line-height: 0.9;
  text-wrap: balance;
}

.hero-text {
  max-width: 34rem;
  margin: 1.35rem 0 0;
  font-size: clamp(1.02rem, 2vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2.1rem;
}

.metric-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 48%),
    rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.metric-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.metric-text {
  margin: 0.7rem 0 0;
  color: rgba(248, 241, 235, 0.78);
  line-height: 1.6;
}

.hero-stage {
  position: relative;
  min-height: auto;
  display: grid;
  justify-items: center;
  perspective: 1400px;
  padding-top: 1rem;
}

.hero-halo {
  position: absolute;
  inset: 12% 16%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(240, 195, 137, 0.26), transparent 48%),
    radial-gradient(circle at 64% 34%, rgba(221, 140, 162, 0.28), transparent 34%),
    radial-gradient(circle at 28% 72%, rgba(143, 166, 216, 0.22), transparent 34%);
  filter: blur(16px);
}

.hero-poster {
  position: relative;
  width: min(100%, 32rem);
  min-height: 40rem;
  border-radius: 40px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 4, 7, 0.08), rgba(8, 4, 7, 0.76)),
    linear-gradient(135deg, rgba(240, 195, 137, 0.1), transparent 30%),
    linear-gradient(0deg, rgba(26, 10, 20, 0.3), transparent 55%),
    var(--photo-url),
    linear-gradient(135deg, rgba(84, 28, 47, 0.86), rgba(18, 8, 13, 0.96));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  transform:
    translate3d(0, 0, 0)
    perspective(1200px)
    rotateX(var(--tilt-y))
    rotateY(var(--tilt-x));
  transition: transform 0.25s ease;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  pointer-events: none;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.32), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.4));
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
}

.hero-poster.is-placeholder {
  background:
    linear-gradient(180deg, rgba(8, 4, 7, 0.08), rgba(8, 4, 7, 0.76)),
    linear-gradient(135deg, rgba(240, 195, 137, 0.14), transparent 30%),
    linear-gradient(0deg, rgba(26, 10, 20, 0.34), transparent 55%),
    linear-gradient(135deg, rgba(84, 28, 47, 0.88), rgba(18, 8, 13, 0.98));
}

.dust-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dust-field span {
  position: absolute;
  width: var(--size);
  height: var(--size);
  top: var(--top);
  left: var(--left);
  border-radius: 50%;
  opacity: 0;
  background: rgba(255, 248, 237, 0.86);
  box-shadow: 0 0 16px rgba(255, 232, 201, 0.54);
  animation: drift var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.photo-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(6, 5, 10, 0.82) 36%);
}

.photo-status {
  margin: 0 0 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 4, 7, 0.42);
  color: rgba(248, 241, 235, 0.82);
  line-height: 1.6;
  backdrop-filter: blur(10px);
}

.photo-status[hidden] {
  display: none;
}

.poster-caption {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(8, 4, 7, 0.34);
  backdrop-filter: blur(12px);
}

.poster-caption__text {
  margin: 0;
  max-width: 22rem;
  color: rgba(248, 241, 235, 0.86);
  line-height: 1.6;
}

.hero-seal {
  position: absolute;
  top: 2rem;
  right: 0.5rem;
  width: 8.6rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 230, 197, 0.16);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 58%),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.hero-seal__text {
  text-align: center;
  color: rgba(248, 241, 235, 0.8);
  font-size: 0.85rem;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  white-space: pre-line;
}

.story-section,
.promise-section,
.letter-section,
.footer {
  padding-top: clamp(4.4rem, 10vw, 7.4rem);
}

.section-heading {
  max-width: 48rem;
}

.section-title {
  margin: 0.85rem 0 0;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.section-lead {
  margin: 1.15rem 0 0;
  max-width: 40rem;
}

.beats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.beats-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 197, 0.14), transparent);
}

.beat-card {
  position: relative;
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), transparent 46%),
    var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.beat-card:nth-child(2) {
  transform: translateY(1.6rem);
}

.beat-card:nth-child(3) {
  transform: translateY(0.5rem);
}

.beat-card::before {
  content: attr(data-step);
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  font-family: "Bodoni Moda", serif;
  font-size: 4.8rem;
  color: rgba(240, 195, 137, 0.12);
  line-height: 1;
}

.beat-title {
  margin: 0 0 0.85rem;
  max-width: 13rem;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.35;
}

.beat-text {
  margin: 0;
  max-width: 16rem;
  color: var(--muted);
  line-height: 1.8;
}

.promise-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(143, 166, 216, 0.12), transparent 24%),
    radial-gradient(circle at left center, rgba(221, 140, 162, 0.12), transparent 28%),
    rgba(15, 8, 13, 0.86);
}

.promise-quote {
  margin: 0.95rem 0 0;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.95;
}

.promise-text {
  max-width: 42rem;
  margin: 1.2rem 0 0;
}

.promise-side {
  align-self: end;
  padding: 1.3rem;
  border: 1px solid rgba(255, 230, 197, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.03);
}

.promise-side__label {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.promise-side__text {
  margin: 0.85rem 0 0;
}

.letter-intro {
  max-width: 42rem;
}

.letter-title {
  margin: 0.9rem 0 0;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 0.94;
}

.letter-lead {
  margin: 1.1rem 0 0;
}

.letter-frame {
  margin-top: 1.8rem;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(240, 195, 137, 0.08), transparent 24%),
    rgba(15, 8, 13, 0.86);
}

.letter-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.letter-salutation {
  margin: 0;
  color: rgba(248, 241, 235, 0.8);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.letter-sheet {
  position: relative;
  margin-top: 1.2rem;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.98), rgba(231, 214, 193, 0.96)),
    linear-gradient(135deg, rgba(126, 75, 61, 0.08), transparent 40%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 18px 54px rgba(0, 0, 0, 0.18);
}

.letter-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 24%),
    repeating-linear-gradient(
      180deg,
      rgba(95, 53, 44, 0.035) 0,
      rgba(95, 53, 44, 0.035) 1px,
      transparent 1px,
      transparent 28px
    );
  border-radius: inherit;
  pointer-events: none;
}

.letter-body {
  position: relative;
  z-index: 1;
}

.letter-paragraphs {
  display: grid;
  gap: 1.2rem;
}

.letter-paragraph {
  margin: 0;
  color: rgba(79, 53, 44, 0.94);
  line-height: 1.9;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.letter-paragraph.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.signature {
  margin: 1.6rem 0 0;
  color: var(--paper-text);
  font-weight: 700;
}

.letter-date {
  margin: 0.35rem 0 0;
  color: rgba(79, 53, 44, 0.76);
}

.footer {
  padding-bottom: 2rem;
  text-align: center;
}

.footer-line {
  margin: 0;
  color: rgba(248, 241, 235, 0.56);
}

body.has-script .reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

body.has-script .reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-warning {
  width: min(92vw, 760px);
  margin: 1rem auto 2rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(18, 8, 11, 0.88);
  color: var(--text);
  text-align: center;
}

@keyframes drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.5);
  }

  20% {
    opacity: 0.86;
  }

  100% {
    opacity: 0;
    transform: translate3d(12px, -120px, 0) scale(1.2);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .hero-stage {
    min-height: 40rem;
    padding-top: 0;
  }

  .hero-poster {
    width: min(100%, 36rem);
    min-height: 36rem;
  }

  .promise-panel,
  .beats-grid {
    grid-template-columns: 1fr;
  }

  .beats-grid::before {
    display: none;
  }

  .beat-card:nth-child(2),
  .beat-card:nth-child(3) {
    transform: none;
  }

  .beat-text,
  .beat-title {
    max-width: none;
  }
}

@media (max-width: 760px) {
  body::after,
  .frame-lines {
    inset: 0.7rem;
    border-radius: 24px;
  }

  .page-shell {
    width: min(100% - 1rem, 1180px);
    padding-top: 1rem;
  }

  .topbar {
    display: grid;
    gap: 0.5rem;
    border-radius: 26px;
  }

  .topbar-line--muted {
    text-align: left;
  }

  .intro-card,
  .promise-panel,
  .letter-frame {
    border-radius: 28px;
  }

  .hero-title {
    font-size: clamp(3.2rem, 16vw, 5.1rem);
    max-width: 8ch;
  }

  .hero-copy {
    order: 2;
    padding: 1.3rem;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
      linear-gradient(150deg, rgba(255, 255, 255, 0.05), transparent 42%),
      rgba(15, 8, 13, 0.88);
    backdrop-filter: blur(14px);
  }

  .hero-stage {
    order: 1;
    min-height: auto;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: 100%;
    min-height: min(66svh, 32rem);
    border-radius: 28px;
  }

  .hero-poster::before {
    inset: 0.8rem;
    border-radius: 22px;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .hero-chip {
    width: 100%;
    text-align: center;
  }

  .hero-seal {
    top: 0.9rem;
    right: 0.9rem;
    width: 5.6rem;
  }

  .promise-quote,
  .letter-title,
  .section-title {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .letter-sheet {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
