* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #f7f6f2;
  color: #1a1a1a;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow-x: hidden;
}

/* ========================================
   HERO
======================================== */

.hero-container {
  width: 100%;
  max-width: 760px;

  padding: 32px 24px;

  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;
}


/* ========================================
   HEADER
======================================== */

.header-text {
  position: relative;
  z-index: 3;
}

.header-text h1 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;

  color: #111827;

  margin-bottom: 10px;

  transition: opacity 0.5s ease;
}

.subtitle {
  max-width: 460px;

  margin: 0 auto;

  font-size: 1rem;
  line-height: 1.45;

  color: #6b7280;

  transition: opacity 0.5s ease;
}


/* ========================================
   STAGE
======================================== */

.stage {
  position: relative;

  width: 100%;
  height: 390px;

  display: flex;
  justify-content: center;
  align-items: center;

  perspective: 1000px;
}


/* ========================================
   BUCKET
======================================== */

.bucket-img {
  width: clamp(280px, 30vw, 390px);
  height: auto;

  object-fit: contain;

  transform-origin: center center;

  transition:
    transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 1.2s ease;

  z-index: 1;

  cursor: pointer;
}


/* ========================================
   FOLDED NOTE
======================================== */

.folded-note-img {
  position: absolute;

  width: 130px;
  height: auto;

  opacity: 0;

  z-index: 2;

  transform-origin: center center;

  pointer-events: none;
}


/* ========================================
   CTA
======================================== */

.cta-wrapper {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.btn-primary {
  background-color: #1f2937;
  color: #ffffff;

  border: none;

  padding: 14px 30px;

  font-size: 0.9rem;
  font-weight: 500;

  letter-spacing: 0.07em;

  border-radius: 999px;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background-color: #000000;
  transform: translateY(-2px);

  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
}


/* ========================================
   ANIMATION TRIGGER STATES
======================================== */

/* Smooth fade + movement for header and CTA */

.header-text,
.cta-wrapper {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.hero-container.animating .header-text {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.hero-container.animating #cta-wrapper {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}


/* Camera zoom simulation into bucket */

.stage.animating .bucket-img {
  transform: scale(1.7) translateY(20px);
  opacity: 0.25;
}


/* Note extract & unfold sequence */

.stage.animating .folded-note-img {
  animation: drawAndUnfold 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}


/* ========================================
   NOTE EXTRACTION
======================================== */

.stage.animating .folded-note-img {
  animation:
    drawAndUnfold
    1.4s
    cubic-bezier(0.25, 1, 0.5, 1)
    forwards;
}


@keyframes drawAndUnfold {

  0% {
    opacity: 0;
    transform:
      translateY(60px)
      scale(0.3)
      rotateX(45deg);
  }

  40% {
    opacity: 1;
    transform:
      translateY(-20px)
      scale(1.1)
      rotateX(15deg);
  }

  70% {
    transform:
      translateY(-10px)
      scale(1.8)
      rotateX(-10deg)
      rotate(5deg);
  }

  100% {
    opacity: 1;
    transform:
      translateY(0)
      scale(2.2)
      rotateX(0deg)
      rotate(0deg);
  }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

  .hero-container {
    padding: 24px 20px;
    gap: 4px;
  }

  .header-text h1 {
    font-size: 2.25rem;
  }

  .subtitle {
    font-size: 0.95rem;
    max-width: 340px;
  }

  .stage {
    height: clamp(290px, 48vh, 350px);
  }

  .bucket-img {
    width: min(285px, 100%);
  }

  .btn-primary {
    padding: 13px 27px;
  }
}


/* ========================================
   VERY SMALL SCREENS
======================================== */

@media (max-width: 380px) {

  .header-text h1 {
    font-size: 2rem;
  }

  .stage {
    height: 320px;
  }

  .bucket-img {
    width: 260px;
  }
}