:root {
  --bg: #120d14;
  --bg-soft: #211523;
  --card: rgba(255, 250, 246, 0.095);
  --card-strong: rgba(255, 250, 246, 0.14);
  --text: #fff8f3;
  --muted: #d8c2bd;
  --rose: #f1a9b8;
  --rose-deep: #d97591;
  --cream: #fff0d9;
  --gold: #e9c675;
  --leaf: #8eb89a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 158, 179, 0.22), transparent 32rem),
    radial-gradient(circle at 85% 15%, rgba(233, 198, 117, 0.13), transparent 28rem),
    linear-gradient(140deg, #100b12 0%, #1d111f 48%, #0e1114 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  z-index: -4;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.section-wrap {
  width: min(var(--max-width), calc(100% - 36px));
  margin-inline: auto;
}

.page-glow {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 999px;
  filter: blur(75px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -3;
}

.page-glow-one {
  left: -10rem;
  top: 9rem;
  background: var(--rose);
}

.page-glow-two {
  right: -12rem;
  bottom: 5rem;
  background: var(--leaf);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: 6rem;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4rem;
  width: 1px;
  height: 4.8rem;
  background: linear-gradient(to bottom, transparent, rgba(255, 240, 217, 0.7), transparent);
}

.eyebrow,
.section-kicker,
.track-label {
  margin: 0 0 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 750;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 890px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 0;
}

p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.85;
}

.hero-copy {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.soft-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  width: fit-content;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid rgba(255, 240, 217, 0.24);
  border-radius: 999px;
  padding: 0.88rem 1.25rem;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.soft-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 240, 217, 0.54);
  background: rgba(255, 255, 255, 0.09);
}

.note-card,
.listen-card,
.weakness-card,
.feedback-card {
  position: relative;
  margin-block: 7rem;
  padding: clamp(1.4rem, 5vw, 4rem);
  border: 1px solid rgba(255, 240, 217, 0.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    radial-gradient(circle at top right, rgba(241, 169, 184, 0.18), transparent 28rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.note-card::before,
.listen-card::before,
.weakness-card::before,
.feedback-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 240, 217, 0.12), transparent 28%, rgba(241, 169, 184, 0.08));
  mask: linear-gradient(#000, transparent 72%);
}

.note-card p,
.listen-card p,
.weakness-card p,
.feedback-card p {
  max-width: 720px;
}

.ornament {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  top: clamp(1.5rem, 5vw, 4rem);
  color: var(--rose);
  font-size: 2.4rem;
  opacity: 0.8;
}

.garden-path {
  position: relative;
  display: grid;
  gap: 1.3rem;
  margin-block: 6rem;
  padding-left: 2rem;
}

.path-line {
  position: absolute;
  left: 0.54rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(233, 198, 117, 0.8), transparent);
}

.path-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.path-item span {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  border-radius: 999px;
  background: radial-gradient(circle, var(--cream), var(--rose));
  box-shadow: 0 0 22px rgba(241, 169, 184, 0.55);
}

.path-item p {
  margin: 0;
}

.primary-button,
.secondary-button,
.submit-button,
.ghost-button,
.play-button {
  border: 0;
  color: var(--text);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

.primary-button,
.secondary-button,
.submit-button {
  margin-top: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.primary-button {
  background: linear-gradient(135deg, var(--rose-deep), #f0a7b7 55%, #f4d097);
  box-shadow: 0 16px 42px rgba(217, 117, 145, 0.28);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.095);
  border: 1px solid rgba(255, 240, 217, 0.24);
}

.submit-button {
  width: 100%;
  background: linear-gradient(135deg, #447d58, var(--leaf));
  box-shadow: 0 16px 42px rgba(142, 184, 154, 0.21);
}

.primary-button:hover,
.secondary-button:hover,
.submit-button:hover,
.ghost-button:hover,
.play-button:hover {
  transform: translateY(-2px);
}

.audio-experience {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 1.2rem;
  align-items: stretch;
}

.visualizer-shell,
.custom-player {
  border: 1px solid rgba(255, 240, 217, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(18, 13, 20, 0.42);
  overflow: hidden;
}

.visualizer-shell {
  position: relative;
  min-height: 310px;
  box-shadow: inset 0 0 70px rgba(241, 169, 184, 0.08);
}

.visualizer-shell::before {
  content: "";
  position: absolute;
  inset: 2.4rem;
  border: 1px solid rgba(255, 240, 217, 0.1);
  border-radius: 999px;
}

.visualizer-shell.is-playing {
  box-shadow: inset 0 0 80px rgba(241, 169, 184, 0.15), 0 18px 60px rgba(241, 169, 184, 0.12);
}

#visualizerCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.visualizer-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.pulse-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 0 34px rgba(255, 240, 217, 0.86);
  opacity: 0.84;
}

.visualizer-shell.is-playing .pulse-dot {
  animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.55); opacity: 1; }
}

.custom-player {
  padding: clamp(1.1rem, 3vw, 1.6rem);
  display: grid;
  align-content: center;
  gap: 1.45rem;
}

.player-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.play-button {
  width: 4.6rem;
  height: 4.6rem;
  flex: 0 0 4.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #251323;
  background: linear-gradient(135deg, var(--cream), var(--rose));
  box-shadow: 0 14px 36px rgba(241, 169, 184, 0.28);
  font-size: 1.35rem;
}

.progress-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.progress-bar,
.volume-control {
  accent-color: var(--rose);
}

.progress-bar {
  width: 100%;
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.ghost-button {
  min-height: 2.55rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 240, 217, 0.13);
}

.volume-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-left: auto;
}

.volume-control {
  max-width: 130px;
}

.countdown-area {
  margin-top: 1.4rem;
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(1.2rem, 4vw, 2.4rem);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 240, 217, 0.25);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

#countdownNumber {
  flex: 0 0 auto;
  min-width: clamp(5rem, 14vw, 8.5rem);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 0 36px rgba(241, 169, 184, 0.45);
}

#weaknessMessage {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 240, 217, 0.84);
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  line-height: 1.7;
  font-style: italic;
  text-wrap: balance;
}

#weaknessResult {
  display: none;
  width: 100%;
  margin: 0;
  padding: 1.2rem;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: center;
}

#weaknessResult.final-weakness-reveal {
  animation: finalReveal 900ms ease both;
}

.countdown-pop {
  animation: countdownPop 520ms ease both;
}

.message-pop {
  animation: messagePop 640ms ease both;
}

@keyframes countdownPop {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes messagePop {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes finalReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .countdown-area {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    min-height: 17rem;
  }

  #countdownNumber {
    min-width: 0;
  }

  #weaknessMessage {
    max-width: 100%;
  }
}

.feedback-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.95rem;
  max-width: 660px;
}

.feedback-form label {
  color: var(--cream);
  font-weight: 750;
}

.feedback-form select,
.feedback-form textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(255, 240, 217, 0.17);
  border-radius: 18px;
  background: rgba(18, 13, 20, 0.52);
  outline: none;
  padding: 0.95rem 1rem;
}

.feedback-form textarea {
  resize: vertical;
  min-height: 150px;
}

.feedback-form select:focus,
.feedback-form textarea:focus {
  border-color: rgba(241, 169, 184, 0.78);
  box-shadow: 0 0 0 4px rgba(241, 169, 184, 0.11);
}

.site-footer {
  padding-block: 4rem 5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 248, 243, 0.68);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.petal-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.petal {
  position: absolute;
  top: -10vh;
  width: 16px;
  height: 24px;
  border-radius: 70% 30% 70% 30%;
  background: linear-gradient(145deg, rgba(255, 238, 242, 0.88), rgba(241, 169, 184, 0.42));
  opacity: 0.46;
  animation-name: fallPetal;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.p1 { left: 7%; animation-duration: 14s; animation-delay: -8s; }
.p2 { left: 16%; animation-duration: 19s; animation-delay: -3s; transform: scale(0.85); }
.p3 { left: 25%; animation-duration: 16s; animation-delay: -11s; }
.p4 { left: 34%; animation-duration: 22s; animation-delay: -5s; transform: scale(1.15); }
.p5 { left: 45%; animation-duration: 18s; animation-delay: -14s; }
.p6 { left: 53%; animation-duration: 25s; animation-delay: -6s; transform: scale(0.75); }
.p7 { left: 62%; animation-duration: 17s; animation-delay: -10s; }
.p8 { left: 71%; animation-duration: 21s; animation-delay: -2s; transform: scale(1.08); }
.p9 { left: 79%; animation-duration: 15s; animation-delay: -12s; }
.p10 { left: 86%; animation-duration: 23s; animation-delay: -7s; }
.p11 { left: 92%; animation-duration: 20s; animation-delay: -4s; transform: scale(0.8); }
.p12 { left: 98%; animation-duration: 26s; animation-delay: -15s; transform: scale(1.2); }

@keyframes fallPetal {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(42px, 52vh, 0) rotate(180deg);
  }
  100% {
    transform: translate3d(-32px, 112vh, 0) rotate(360deg);
  }
}

.is-soft-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.fade-in-up {
  animation: fadeInUp 520ms ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 780px) {
  .section-wrap {
    width: min(100% - 26px, var(--max-width));
  }

  .hero {
    text-align: left;
    place-content: center;
  }

  .hero-copy,
  h1 {
    margin-inline: 0;
  }

  .audio-experience {
    grid-template-columns: 1fr;
  }

  .visualizer-shell {
    min-height: 260px;
  }

  .player-topline {
    align-items: flex-start;
  }

  .volume-label {
    margin-left: 0;
    width: 100%;
  }

  .volume-control {
    max-width: 100%;
    width: 100%;
  }

  .note-card,
  .listen-card,
  .weakness-card,
  .feedback-card {
    margin-block: 4rem;
  }
}

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

  .petal-field {
    display: none;
  }
}

.player-status {
  margin: -0.4rem 0 0;
  color: rgba(255, 240, 217, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.play-button:disabled,
.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
}

@media (max-width: 520px) {
  .player-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .volume-label,
  .volume-control {
    grid-column: 1 / -1;
  }

  .volume-label {
    margin-left: 0;
  }

  .volume-control {
    width: 100%;
    max-width: none;
  }
}

/*------------------------------*/
.headphones-cta {
  margin: 1.4rem 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 240, 217, 0.86);
  text-align: center;
}

.headphones-cta::after {
  content: "";
  display: block;
  width: 52px;
  height: 1px;
  margin: 0.75rem auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 214, 137, 0.8),
    transparent
  );
}