:root {
  --bg-deep: #07050c;
  --bg-mid: #120a18;
  --accent: #f0b4c8;
  --accent-2: #9b7fd8;
  --accent-soft: rgba(240, 180, 200, 0.4);
  --gold: #e8c992;
  --cyan-glow: rgba(120, 220, 255, 0.08);
  --text: #faf5f8;
  --text-muted: rgba(250, 245, 248, 0.62);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.11);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-lg: 1.35rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% -25%, rgba(140, 70, 120, 0.5), transparent 58%),
    radial-gradient(ellipse 70% 55% at 110% 30%, rgba(90, 60, 160, 0.28), transparent 52%),
    radial-gradient(ellipse 55% 45% at -5% 75%, rgba(200, 110, 130, 0.18), transparent 48%),
    radial-gradient(circle at 50% 100%, var(--cyan-glow), transparent 42%),
    linear-gradient(185deg, var(--bg-deep) 0%, var(--bg-mid) 42%, #0a0610 100%);
  z-index: -3;
  animation: bgShift 22s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% {
    filter: hue-rotate(-8deg) brightness(1);
  }
  100% {
    filter: hue-rotate(10deg) brightness(1.06);
  }
}

.cursor-bloom {
  position: fixed;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(240, 180, 200, 0.14) 0%,
    rgba(155, 127, 216, 0.06) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
}

body:hover .cursor-bloom {
  opacity: 1;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.22;
  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: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.glow-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0);
  transition: transform 0.35s ease-out;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.48;
  animation: floatOrb 16s var(--ease-out) infinite;
}

.orb-a {
  width: min(48vw, 400px);
  height: min(48vw, 400px);
  background: rgba(210, 130, 170, 0.38);
  top: 8%;
  left: -12%;
}

.orb-b {
  width: min(38vw, 320px);
  height: min(38vw, 320px);
  background: rgba(110, 80, 190, 0.32);
  bottom: 15%;
  right: -8%;
  animation-delay: -5s;
}

.orb-c {
  width: min(32vw, 260px);
  height: min(32vw, 260px);
  background: rgba(232, 201, 146, 0.14);
  top: 48%;
  left: 38%;
  animation-delay: -9s;
}

.orb-d {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  background: rgba(100, 200, 255, 0.1);
  top: 70%;
  left: 5%;
  animation-delay: -3s;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(5%, -4%) scale(1.06);
  }
  66% {
    transform: translate(-4%, 5%) scale(0.97);
  }
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  translate: -50% 120%;
  z-index: 200;
  padding: 0.85rem 1.35rem;
  background: rgba(20, 12, 28, 0.92);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 24px var(--accent-soft);
  transition: translate 0.55s var(--ease-spring), opacity 0.4s ease;
  opacity: 0;
  max-width: min(92vw, 26rem);
  text-align: center;
  pointer-events: none;
}

.toast.is-on {
  translate: -50% 0;
  opacity: 1;
}

.confetti-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 150;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 12px;
  top: -20px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0.85;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

.hero-frame {
  position: absolute;
  inset: clamp(1rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 45%, rgba(240, 180, 200, 0.03) 100%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.2);
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.tag-pill {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-muted);
  font-weight: 500;
}

.tag-pill--gold {
  border-color: rgba(232, 201, 146, 0.35);
  color: var(--gold);
}

.hero-tags-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 1.25rem;
  max-width: 22rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 12vw, 7rem);
  line-height: 1.02;
  margin: 0 0 1.35rem;
  background: linear-gradient(
    125deg,
    var(--text) 0%,
    var(--accent) 38%,
    var(--accent-2) 62%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShine 6s ease-in-out infinite, titleGradient 10s ease infinite alternate;
}

.hero-name {
  cursor: pointer;
  outline: none;
}

.hero-name:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@keyframes titleGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes titleShine {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

.hero-lead {
  max-width: 36rem;
  color: var(--text-muted);
  margin: 0 auto 2.75rem;
  font-weight: 300;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-hint svg {
  animation: bounce 2.2s var(--ease-out) infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

.section-divider {
  max-width: 12rem;
  margin: 0 auto;
  padding: 0 1.25rem 0.5rem;
}

.section-divider span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), var(--gold), var(--accent-soft), transparent);
  opacity: 0.7;
}

.section {
  padding: clamp(3.5rem, 10vw, 6.5rem) clamp(1.25rem, 4vw, 2rem);
  max-width: 58rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.75rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 2.25rem;
  font-style: italic;
}

.letter-card {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35), 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.letter-dear {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0 0 1rem;
}

.letter-card p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.letter-card p:last-of-type {
  margin-bottom: 0;
}

.letter-sign {
  margin-top: 1.75rem !important;
  margin-bottom: 0 !important;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  font-style: italic;
}

.letter-sign-name {
  color: var(--gold);
}

.cards {
  display: grid;
  gap: 1.15rem;
}

.cards--six {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .cards--six {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards--six {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

.card {
  position: relative;
  padding: 1.65rem 1.45rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s, box-shadow 0.5s;
}

.card--shine::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(12deg);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}

.card--shine:hover::after {
  transform: translateX(100%) rotate(12deg);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 180, 200, 0.35);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.38), 0 0 48px var(--accent-soft);
}

.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.85rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.quote-section {
  text-align: center;
}

.quote-after {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin: -1rem 0 0;
}

.big-quote {
  margin: 0;
  padding: clamp(2rem, 6vw, 3.5rem);
  border-left: none;
  position: relative;
}

.big-quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.22;
  display: block;
  margin-bottom: 0.5rem;
}

.big-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 4vw, 2.05rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
  max-width: 38rem;
  margin-inline: auto;
}

.section-fun .bento {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.5rem;
}

@media (min-width: 720px) {
  .section-fun .bento {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
  }
  .bento__cell--wide {
    grid-column: 1 / -1;
  }
}

.bento__cell {
  padding: 1.5rem 1.35rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.bento__cell:hover {
  border-color: rgba(155, 127, 216, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.bento__label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 500;
}

.compliment-text {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 1.25rem;
  min-height: 3.2em;
  transition: opacity 0.22s ease;
}

.btn-glow {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(240, 180, 200, 0.35), rgba(155, 127, 216, 0.3));
  box-shadow: 0 4px 24px var(--accent-soft);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.btn-glow:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 32px rgba(240, 180, 200, 0.35);
}

.btn-glow:active {
  transform: scale(0.98);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.badge--gold {
  border-color: rgba(232, 201, 146, 0.4);
  color: var(--gold);
}

.badge--pulse {
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

.prank-range {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0 1rem;
  cursor: pointer;
}

.prank-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 12px var(--accent-soft);
  cursor: grab;
}

.prank-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 12px var(--accent-soft);
}

.prank-out {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

.easter-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: center;
}

.ghost-btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--accent);
  background: transparent;
  border: 1px dashed rgba(240, 180, 200, 0.4);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, border-style 0.3s ease, transform 0.3s var(--ease-spring);
}

.ghost-btn:hover {
  background: rgba(240, 180, 200, 0.1);
  border-style: solid;
  transform: scale(1.03);
}

.easter-hint__text {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 22rem;
  line-height: 1.5;
}

.interactive-section {
  text-align: center;
}

.secret-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(135deg, rgba(232, 164, 184, 0.22), rgba(155, 127, 216, 0.18));
  border: 1px solid var(--glass-border);
  padding: 1rem 1.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}

.secret-btn:hover {
  transform: scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 0 36px var(--accent-soft);
}

.secret-btn:active {
  transform: scale(0.98);
}

.secret-btn__open {
  display: none;
}

.secret-btn.is-open .secret-btn__idle {
  display: none;
}

.secret-btn.is-open .secret-btn__open {
  display: inline;
}

.secret-panel {
  margin-top: 2rem;
  padding: 1.85rem 1.65rem;
  max-width: 30rem;
  margin-inline: auto;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  animation: panelIn 0.75s var(--ease-out) forwards;
}

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

.secret-panel p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.secret-panel__p2 {
  margin-top: 1.15rem !important;
  padding-top: 1.15rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.95rem !important;
}

.footer {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer-heart-btn {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.footer-heart {
  font-size: 1.65rem;
  color: var(--accent);
  display: inline-block;
  animation: heartbeat 1.8s ease-in-out infinite;
  transition: transform 0.35s var(--ease-spring);
}

.footer-heart-btn:hover .footer-heart {
  transform: scale(1.2);
}

.footer-heart-btn:active .footer-heart {
  transform: scale(0.9);
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.18);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.1);
  }
}

.footer-fine {
  margin-top: 0.75rem !important;
  font-size: 0.75rem !important;
  opacity: 0.75;
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

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

.reveal[data-delay="1"] {
  transition-delay: 0.12s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.36s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.48s;
}
.reveal[data-delay="5"] {
  transition-delay: 0.6s;
}

.cards .reveal[data-delay="0"] {
  transition-delay: 0s;
}
.cards .reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.cards .reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.cards .reveal[data-delay="3"] {
  transition-delay: 0.24s;
}
.cards .reveal[data-delay="4"] {
  transition-delay: 0.32s;
}
.cards .reveal[data-delay="5"] {
  transition-delay: 0.4s;
}

.hero .reveal {
  opacity: 1;
  transform: none;
  animation: heroFade 1.2s var(--ease-out) backwards;
}

.hero .reveal[data-delay="0"] {
  animation-delay: 0.08s;
}
.hero .reveal[data-delay="1"] {
  animation-delay: 0.28s;
}
.hero .reveal[data-delay="2"] {
  animation-delay: 0.52s;
}
.hero .reveal[data-delay="3"] {
  animation-delay: 0.78s;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
