:root {
  --bg: #fffaf5;
  --surface: rgba(255, 250, 245, 0.76);
  --surface-strong: rgba(255, 248, 241, 0.94);
  --line: rgba(139, 112, 109, 0.12);
  --text: #534342;
  --muted: #876f70;
  --pink: #f4c8d3;
  --pink-deep: #dd95aa;
  --sage: #9fb8a6;
  --cream: #fff3e4;
  --lavender: #d7cbe8;
  --gold: #f0c779;
  --shadow: 0 20px 60px rgba(129, 98, 92, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 200, 211, 0.32), transparent 30%),
    radial-gradient(circle at bottom right, rgba(159, 184, 166, 0.18), transparent 24%),
    linear-gradient(180deg, #fffdf9 0%, #fff7f2 48%, #fffaf6 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
}

.glow-one {
  width: 24rem;
  height: 24rem;
  top: -8rem;
  right: -8rem;
  background: rgba(244, 200, 211, 0.34);
}

.glow-two {
  width: 22rem;
  height: 22rem;
  left: -8rem;
  bottom: 10%;
  background: rgba(215, 203, 232, 0.28);
}

.petal {
  position: absolute;
  opacity: 0.32;
  animation: floatPetal linear infinite;
  font-size: clamp(1rem, 2vw, 1.6rem);
}

.petal-one { top: 16%; left: 10%; animation-duration: 14s; }
.petal-two { top: 28%; left: 82%; animation-duration: 18s; }
.petal-three { top: 62%; left: 8%; animation-duration: 17s; }
.petal-four { top: 74%; left: 76%; animation-duration: 16s; }
.petal-five { top: 40%; left: 52%; animation-duration: 20s; }
.petal-six { top: 12%; left: 62%; animation-duration: 15s; }

.section {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem 4rem;
}

.section-shell,
.hero {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-card,
.card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(2rem, 5vw, 4.5rem);
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #8b656c;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  line-height: 1.05;
  margin: 0;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(3.3rem, 10vw, 6.4rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
}

p {
  margin: 0;
  line-height: 1.7;
}

.lead {
  max-width: 36rem;
  margin: 1.2rem 0 1.8rem;
  font-size: clamp(1.04rem, 2.2vw, 1.25rem);
  color: var(--muted);
}

.wave {
  display: inline-block;
  transform-origin: 75% 75%;
  animation: wave 2.8s ease-in-out infinite;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.3rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  font-weight: 700;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(126, 95, 100, 0.16);
}

.button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(221, 149, 170, 0.32);
  outline-offset: 2px;
}

.primary {
  background: linear-gradient(135deg, #eaa6bb, #ddb9f1);
  color: #40292f;
}

.secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  border: 1px solid rgba(143, 117, 115, 0.12);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  margin: 0.9rem 0 0.75rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.task-grid {
  display: grid;
  gap: 1rem;
}

.task-card,
.idea-card,
.bloom-card,
.question-card,
.completion-card,
.success-card {
  padding: 1.35rem;
}

.task-badge {
  display: inline-block;
  margin-bottom: 1rem;
  color: #997479;
  font-size: 0.92rem;
  font-weight: 700;
}

.task-card p,
.idea-card p,
.question-card p,
.success-card p {
  color: var(--muted);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.1rem 0;
}

.option-button {
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  border: 1px solid rgba(143, 117, 115, 0.1);
}

.option-button.is-wrong {
  animation: wobble 360ms ease;
}

.option-button.is-right {
  background: linear-gradient(135deg, #f2d4de, #d6e4d6);
}

.task-status {
  margin-top: 0.8rem;
  font-weight: 600;
}

.slider-wrap {
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0;
}

input[type="range"] {
  width: 100%;
  accent-color: #db9db0;
}

.slider-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  color: var(--text);
}

.secret-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(143, 117, 115, 0.08);
}

.completion-card {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.generator-shell,
.question-shell,
.success-shell {
  display: grid;
  gap: 1.25rem;
}

.idea-card {
  display: grid;
  gap: 1.25rem;
}

.idea-display {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  border-radius: calc(var(--radius-lg) - 8px);
  background:
    radial-gradient(circle at top right, rgba(244, 200, 211, 0.26), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(255, 243, 228, 0.94));
  border: 1px solid rgba(143, 117, 115, 0.08);
  text-align: center;
}

.idea-content {
  display: grid;
  gap: 0.7rem;
}

.idea-icon {
  font-size: 2.8rem;
}

.idea-title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.idea-description {
  max-width: 26rem;
}

.idea-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.bloom-card {
  display: grid;
  place-items: center;
  padding: 1.8rem;
}

.bloom-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 1rem;
  color: var(--text);
}

.bloom-label {
  font-weight: 700;
  color: #8d6d70;
}

.bloom-flower {
  position: relative;
  width: 110px;
  height: 180px;
  display: block;
}

.bloom-petal,
.bloom-stem {
  position: absolute;
  transition: transform 650ms ease, border-radius 650ms ease, background 650ms ease;
}

.bloom-petal {
  top: 34px;
  width: 38px;
  height: 60px;
  background: linear-gradient(180deg, #e7a4b6, #d98da5);
  border-radius: 70% 70% 52% 52%;
}

.bloom-petal.left {
  left: 19px;
  transform: rotate(-10deg) translateY(0);
}

.bloom-petal.center {
  left: 36px;
  height: 72px;
  width: 40px;
  z-index: 2;
}

.bloom-petal.right {
  left: 53px;
  transform: rotate(10deg) translateY(0);
}

.bloom-stem {
  left: 50px;
  top: 82px;
  width: 8px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(180deg, #87a08d, #5c7b67);
}

.bloom-button.is-bloomed .left {
  transform: translate(-14px, -10px) rotate(-32deg);
}

.bloom-button.is-bloomed .center {
  transform: translateY(-6px);
}

.bloom-button.is-bloomed .right {
  transform: translate(14px, -10px) rotate(32deg);
}

.question-card {
  max-width: 760px;
}

.pause-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3b7c8, #dec6ea);
  animation: pulse 1.9s ease-in-out infinite;
}

.question-intro {
  margin-top: 1rem;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
}

.big-question {
  margin-top: 0.7rem;
  margin-bottom: 1.2rem;
}

.question-layout {
  display: grid;
  gap: 1rem;
}

.question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.no-button-wrap {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.no-button {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  will-change: transform;
}

.maybe-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(143, 117, 115, 0.08);
}

.final-note {
  margin-top: 1rem;
  color: #8d7271;
}

.tulip-cluster {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
}

.tulip {
  position: relative;
  width: 88px;
  height: 180px;
}

.bud,
.stem {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.bud {
  top: 0;
  width: 62px;
  height: 80px;
  border-radius: 70% 70% 42% 42%;
  background: linear-gradient(180deg, #f7bac9, #dd97ad);
  box-shadow: inset 0 -8px 16px rgba(255, 255, 255, 0.24);
}

.stem {
  top: 60px;
  width: 7px;
  height: 116px;
  border-radius: 999px;
  background: linear-gradient(180deg, #91af98, #628069);
}

.tulip-left .bud {
  transform: translateX(-50%) rotate(-10deg);
}

.tulip-right .bud {
  transform: translateX(-50%) rotate(10deg);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.success-card {
  position: relative;
  overflow: hidden;
}

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  width: 10px;
  height: 18px;
  border-radius: 999px;
  opacity: 0.9;
  animation: confettiFall 3.6s linear forwards;
}

@keyframes floatPetal {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(12px, -22px, 0) rotate(12deg); }
  100% { transform: translate3d(-10px, -44px, 0) rotate(-10deg); }
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(12deg); }
  40% { transform: rotate(-6deg); }
  60% { transform: rotate(12deg); }
  80% { transform: rotate(0deg); }
}

@keyframes wobble {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(420px) rotate(420deg); }
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .task-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .idea-card {
    grid-template-columns: 1.3fr auto;
    align-items: center;
  }

  .idea-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 759px) {
  .hero {
    justify-items: center;
    text-align: center;
  }

  .hero-card {
    max-width: 100%;
  }

  .completion-card {
    justify-content: center;
    text-align: center;
  }

  .idea-actions,
  .question-actions {
    flex-direction: column;
  }

  .idea-actions .button,
  .question-actions .button,
  .completion-card .button,
  .no-button-wrap .button {
    width: 100%;
  }

  .no-button-wrap {
    justify-content: stretch;
  }
}

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