/* SAMPLE hero — static HTML/CSS + GSAP. No build step. */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink-1: #ffd6d0;
  --pink-2: #f7b3a8;
  --coral: #e8887a;
  --ink: #2a1f24;
  --cream: #fff8f5;
  --cta: #2a1f24;
  --cta-text: #fff8f5;
  --radius: 18px;
  --max: 1100px;
}

html {
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.45;
}

.sample-banner {
  position: relative;
  z-index: 50;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  background: #2a1f24;
  color: #ffd6d0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255, 214, 208, 0.85) 0%, rgba(247, 179, 168, 0.7) 45%, rgba(232, 136, 122, 0.55) 100%),
    url("assets/bg.jpg") center / cover no-repeat;
  z-index: 0;
}

.curtains {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
}

.curtain {
  flex: 1 1 50%;
  height: 100%;
  background:
    linear-gradient(180deg, #f2c4bc 0%, #e8a89c 50%, #d98a7c 100%);
  will-change: transform;
}

.curtain--left {
  border-right: 1px solid rgba(42, 31, 36, 0.08);
  transform-origin: left center;
}

.curtain--right {
  border-left: 1px solid rgba(42, 31, 36, 0.08);
  transform-origin: right center;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: min(100%, var(--max));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42, 31, 36, 0.7);
}

.headline {
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  max-width: 16ch;
  line-height: 1.1;
  color: var(--ink);
}

.subhead {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 36ch;
  color: rgba(42, 31, 36, 0.78);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-text);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
  min-height: 44px;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-1px);
  background: #3d2c33;
}

.cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.stage {
  position: relative;
  width: min(100%, 560px);
  margin-top: 1.75rem;
  /* room for breakout overhang */
  padding-bottom: 2.5rem;
}

.mockup {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1216;
  box-shadow:
    0 30px 60px rgba(42, 31, 36, 0.28),
    0 8px 20px rgba(42, 31, 36, 0.18);
  will-change: transform, opacity;
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: #2a1f24;
}

.mockup-chrome .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f7b3a8;
  opacity: 0.85;
}

.mockup-chrome .dot:nth-child(2) { background: #ffd6d0; }
.mockup-chrome .dot:nth-child(3) { background: #e8887a; }

.mockup-chrome .url {
  margin-left: 0.5rem;
  flex: 1;
  font-size: 0.65rem;
  color: rgba(255, 248, 245, 0.55);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #3d2c33;
}

.mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.breakout {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -4%;
  width: min(118%, 640px);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(42, 31, 36, 0.35));
  will-change: transform, opacity;
}

.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: rgba(42, 31, 36, 0.65);
  background: var(--cream);
}

.site-footer p {
  max-width: 40ch;
  margin: 0 auto;
}

/* Initial animated state (JS may override for reduced motion) */
body:not(.is-ready) .mockup,
body:not(.is-ready) .breakout,
body:not(.is-ready) .eyebrow,
body:not(.is-ready) .headline,
body:not(.is-ready) .subhead,
body:not(.is-ready) .cta {
  opacity: 0;
}

@media (max-width: 640px) {
  .hero {
    padding: 2rem 1rem 3rem;
    min-height: auto;
  }

  .stage {
    width: min(100%, 360px);
    padding-bottom: 1.75rem;
  }

  .breakout {
    width: min(125%, 420px);
    bottom: -2%;
  }

  .headline {
    max-width: 14ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .curtain,
  .mockup,
  .breakout,
  .eyebrow,
  .headline,
  .subhead,
  .cta {
    transition: none !important;
  }

  body:not(.is-ready) .mockup,
  body:not(.is-ready) .breakout,
  body:not(.is-ready) .eyebrow,
  body:not(.is-ready) .headline,
  body:not(.is-ready) .subhead,
  body:not(.is-ready) .cta {
    opacity: 1;
  }

  .curtains {
    display: none;
  }
}
