:root {
  --bg: #081511;
  --bg-deep: #04100d;
  --surface: rgba(11, 31, 24, 0.54);
  --surface-strong: rgba(10, 27, 21, 0.74);
  --line: rgba(235, 221, 177, 0.2);
  --text: #f6f0de;
  --muted: rgba(246, 240, 222, 0.76);
  --gold: #d5b36a;
  --gold-soft: rgba(213, 179, 106, 0.32);
  --forest: #28553d;
  --leaf: #87a85b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --light-x: 50%;
  --light-y: 30%;
  --light-intensity: 0.24;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at top, rgba(39, 85, 61, 0.28), transparent 38%),
    linear-gradient(180deg, #10251c 0%, var(--bg) 45%, var(--bg-deep) 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.sound-off .sound-toggle {
  opacity: 0.68;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 13, 0.2), rgba(2, 10, 8, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(213, 179, 106, 0.08), transparent 18%),
    radial-gradient(circle at 80% 15%, rgba(135, 168, 91, 0.08), transparent 22%);
  pointer-events: none;
  z-index: -3;
}

main {
  position: relative;
}

button {
  font: inherit;
}

.light-overlay,
.grain-overlay,
.tunnel-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.light-overlay {
  z-index: 4;
  mix-blend-mode: screen;
  background:
    radial-gradient(
      circle at var(--light-x) var(--light-y),
      rgba(255, 240, 198, calc(0.12 + var(--light-intensity))),
      rgba(255, 240, 198, 0.02) 18%,
      transparent 54%
    );
  transition: background 0.5s ease, opacity 0.5s ease;
}

.grain-overlay {
  z-index: 3;
  opacity: 0.12;
  background-image: url('../assets/images/textura-floresta.png');
  background-size: cover;
  mix-blend-mode: soft-light;
  animation: grainShift 28s ease-in-out infinite;
}

.tunnel-transition {
  z-index: 20;
  opacity: 0;
  transform: scale(1) translateZ(0);
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.18, 1), transform 0.8s cubic-bezier(0.77, 0, 0.18, 1);
  background:
    radial-gradient(circle at center, rgba(215, 183, 112, 0.2) 0%, rgba(22, 45, 31, 0.58) 28%, rgba(5, 11, 9, 0.9) 72%),
    url('../assets/images/textura-floresta.png');
  background-size: 140% 140%, cover;
  filter: blur(1.8px) saturate(1.15);
  box-shadow: inset 0 0 200px rgba(4, 12, 8, 0.85);
}

.tunnel-transition.active {
  opacity: 1;
  transform: scale(1.24) translateZ(0);
}

.progress-nav {
  position: fixed;
  top: 50%;
  right: 22px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-50%);
}

.progress-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(246, 240, 222, 0.34);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.progress-dot.active,
.progress-dot:hover {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(213, 179, 106, 0.15);
  transform: scale(1.12);
}

.sound-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 16;
  border: 1px solid rgba(246, 240, 222, 0.22);
  background: rgba(8, 21, 17, 0.65);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.sound-toggle:hover {
  transform: translateY(-1px);
  background: rgba(8, 21, 17, 0.85);
  border-color: rgba(213, 179, 106, 0.45);
}

.section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem clamp(1.4rem, 3vw, 3rem);
  isolation: isolate;
  overflow: hidden;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s ease, transform 1s ease;
}

.section.active {
  opacity: 1;
  transform: translateY(0);
}

.section::before,
.section::after {
  content: '';
  position: absolute;
  inset: -4%;
  pointer-events: none;
  transition: transform 1s ease, opacity 1s ease, filter 0.8s ease;
}

.section::before {
  z-index: -2;
  background: linear-gradient(180deg, rgba(5, 16, 12, 0.18), rgba(5, 16, 12, 0.72));
}

.section::after {
  z-index: -1;
  opacity: 0.34;
  background-size: cover;
  background-position: center;
  transform: translateY(var(--parallax-offset, 0px)) scale(var(--scale-dynamic, 1.08));
  filter: blur(1px) brightness(0.7);
}

.section.active::after {
  opacity: 0.5;
}

.intro {
  background:
    radial-gradient(circle at 50% 20%, rgba(213, 179, 106, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(19, 46, 39, 0.84), rgba(8, 21, 17, 0.96));
}

.limiar {
  background: linear-gradient(180deg, #0b1f1a 0%, #112d24 100%);
}

.floresta {
  background: linear-gradient(180deg, #0a1d17 0%, #133528 54%, #081712 100%);
}

.saberes {
  background: linear-gradient(180deg, #0b1f1a 0%, #163428 100%);
}

.fragrancia {
  flex-direction: column;
  gap: 2rem;
  padding-top: 6rem;
  padding-bottom: 4rem;
  background: linear-gradient(180deg, #081812 0%, #10271e 38%, #07130f 100%);
}

.final {
  background:
    radial-gradient(circle at top, rgba(213, 179, 106, 0.12), transparent 26%),
    linear-gradient(180deg, #071510 0%, #0d211a 100%);
}

.limiar::after {
  background-image: url('../assets/images/Portal dourado na floresta tropical.png');
}

.floresta::after {
  background-image: url('../assets/images/caminho da selva.png');
}

.saberes::after {
  background-image: url('../assets/images/Aldeia ribeirinha ao amanhecer.png');
}

.fragrancia::after {
  background-image: url('../assets/images/Raízes iluminadas na floresta tropical.png');
  opacity: 0.22;
}

.final::after {
  background-image: url('../assets/images/Raio de sol na floresta ao amanhecer.png');
  opacity: 0.2;
}

.hero-copy,
.section-content,
.section-heading,
.note-inner {
  position: relative;
  z-index: 2;
}

.hero-copy,
.section-content,
.final-content,
.section-heading {
  width: min(100%, 840px);
  text-align: center;
}

.hero-copy {
  display: grid;
  place-items: center;
  gap: 1rem;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.32;
  mix-blend-mode: screen;
}

.ambient-orb-1 {
  width: 28vw;
  height: 28vw;
  min-width: 180px;
  min-height: 180px;
  top: 12%;
  left: 10%;
  background: radial-gradient(circle, rgba(213, 179, 106, 0.5), transparent 70%);
  animation: drift 16s ease-in-out infinite;
}

.ambient-orb-2 {
  width: 24vw;
  height: 24vw;
  min-width: 160px;
  min-height: 160px;
  right: 12%;
  bottom: 14%;
  background: radial-gradient(circle, rgba(135, 168, 91, 0.35), transparent 72%);
  animation: drift 18s ease-in-out infinite reverse;
}

.eyebrow,
.card-label,
.note-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(246, 240, 222, 0.72);
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(213, 179, 106, 0.45);
}

h1,
 h2,
 h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 0.96;
}

h1 {
  font-size: clamp(4rem, 11vw, 7rem);
  letter-spacing: 0.02em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

h2 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

p {
  color: var(--muted);
  max-width: 690px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7;
}

.lede {
  font-size: clamp(1.15rem, 1.7vw, 1.34rem);
  color: var(--text);
}

.hero-text,
.support-copy {
  max-width: 620px;
}

.hint {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
}

.bottle {
  width: min(32vw, 220px);
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.48));
  animation: bottleFloat 6s ease-in-out infinite;
}

.cta-button,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 240, 222, 0.22);
  color: var(--text);
  background: rgba(12, 29, 23, 0.5);
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover,
.cta-link:hover {
  transform: translateY(-2px);
  background: rgba(22, 49, 37, 0.82);
  border-color: rgba(213, 179, 106, 0.48);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.cta-link.secondary {
  background: transparent;
}

.quote-line {
  width: 120px;
  height: 1px;
  margin: 1.4rem auto;
  background: linear-gradient(90deg, transparent, rgba(213, 179, 106, 0.7), transparent);
}

.sensory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.sensory-card {
  padding: 1.25rem;
  border: 1px solid rgba(246, 240, 222, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(19, 46, 37, 0.76), rgba(9, 25, 19, 0.76));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.sensory-card p {
  max-width: none;
  margin-top: 0.8rem;
  font-size: 0.97rem;
}

.ingredient-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2rem;
}

.ingredient-trail span {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 240, 222, 0.12);
  background: rgba(13, 31, 24, 0.66);
  color: rgba(246, 240, 222, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.section-heading {
  display: grid;
  gap: 1rem;
}

.fragrance-pyramid {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.nota {
  min-height: 25vh;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(246, 240, 222, 0.12);
  box-shadow: var(--shadow);
}

.nota::before,
.nota::after {
  content: '';
  position: absolute;
  inset: 0;
}

.nota::before {
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  filter: blur(2px) saturate(1.08);
}

.nota::after {
  background: linear-gradient(90deg, rgba(4, 11, 9, 0.86), rgba(4, 11, 9, 0.48));
}

.note-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.8rem;
  align-content: center;
  justify-items: start;
  text-align: left;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  min-height: 100%;
}

.note-inner p {
  margin: 0;
  max-width: 420px;
}

.topo::before {
  background-image: url('../assets/images/Raio de sol na floresta ao amanhecer.png');
}

.coracao::before {
  background-image: url('../assets/images/Raio de sol na floresta densa.png');
}

.fundo::before {
  background-image: url('../assets/images/Raízes iluminadas na floresta tropical.png');
}

.final-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

[data-atmosphere='portal'] {
  --section-glow: rgba(213, 179, 106, 0.24);
}

[data-atmosphere='forest'] {
  --section-glow: rgba(135, 168, 91, 0.2);
}

[data-atmosphere='ancestral'] {
  --section-glow: rgba(123, 164, 128, 0.16);
}

[data-atmosphere='perfume'] {
  --section-glow: rgba(213, 179, 106, 0.18);
}

[data-atmosphere='closure'] {
  --section-glow: rgba(246, 240, 222, 0.12);
}

.section-content::before,
.final-content::before,
.section-heading::before {
  content: '';
  position: absolute;
  inset: -20% 12% auto;
  height: 50%;
  background: radial-gradient(circle, var(--section-glow, rgba(213, 179, 106, 0.14)), transparent 68%);
  z-index: -1;
  filter: blur(32px);
}

canvas {
  z-index: 1;
}

@keyframes grainShift {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.05) translate3d(-1%, 1%, 0);
  }
}

@keyframes bottleFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(18px, -24px, 0);
  }
}

@media (max-width: 900px) {
  .progress-nav {
    right: 14px;
  }

  .sensory-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 6.5rem;
    padding-bottom: 5rem;
  }
}

@media (max-width: 640px) {
  .sound-toggle {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 2rem);
  }

  .sound-toggle:hover {
    transform: translateX(-50%);
  }

  .progress-nav {
    top: auto;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    background: rgba(8, 21, 17, 0.56);
    backdrop-filter: blur(14px);
  }

  .note-inner {
    justify-items: center;
    text-align: center;
  }

  .note-inner p {
    max-width: 100%;
  }

  .section::after {
    opacity: 0.24;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
