:root {
  --cream: #f9f5fb;
  --cream-deep: #efe4f3;
  --ink: #2b2436;
  --ink-soft: #5c5468;
  --rose: #c65b8c;
  --rose-deep: #a8447a;
  --teal: #2f9e93;
  --teal-deep: #1f7d74;
  --teal-soft: #8fdccf;
  --pink: #f6c8dd;
  --lavender: #d7c8f2;
  --mint: #b7f0d3;
  --light-teal: #9fe4e0;
  --line: rgba(43, 36, 54, 0.14);
  --serif: "Fraunces", "Iowan Old Style", serif;
  --sans: "Instrument Sans", -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 82% 8%, rgba(183, 240, 211, 0.28), transparent 60%),
    radial-gradient(ellipse 55% 50% at 6% 92%, rgba(198, 91, 140, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 3rem 1.75rem 4rem;
}

/* Mark / header */
.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--rose);
}
.mark__glyph { display: flex; flex-shrink: 0; }
.mark__text {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  margin-top: clamp(3.5rem, 10vw, 7rem);
  max-width: 640px;
}

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
  opacity: 0;
  animation: rise 0.7s 0.05s cubic-bezier(.16,1,.3,1) forwards;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0.9rem 0 0.6rem;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.8s 0.15s cubic-bezier(.16,1,.3,1) forwards;
}
.hero__title em {
  font-style: italic;
  color: var(--teal);
  background: linear-gradient(100deg, var(--rose), var(--lavender) 40%, var(--teal-soft) 70%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subhead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: rise 0.8s 0.22s cubic-bezier(.16,1,.3,1) forwards;
}

.hero__body {
  opacity: 0;
  animation: rise 0.8s 0.28s cubic-bezier(.16,1,.3,1) forwards;
}
.hero__body p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 1.1rem;
}
.hero__body .hero__cta {
  color: var(--ink);
  margin-bottom: 2.4rem;
}

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

/* Bottle illustration */
.bottle-scene {
  position: absolute;
  top: clamp(1rem, 7vw, 4rem);
  right: clamp(-0.5rem, 2vw, 2rem);
  width: 220px;
  height: 340px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: rise 0.9s 0.5s cubic-bezier(.16,1,.3,1) forwards;
}

.bottle-glow {
  position: absolute;
  inset: -25% -35%;
  background: radial-gradient(circle at 50% 42%, rgba(215, 200, 242, 0.55), rgba(183, 240, 211, 0.32) 55%, transparent 75%);
  filter: blur(30px);
  z-index: -1;
}

.bottle {
  position: relative;
  width: 100%;
  height: 100%;
  animation: bottle-float 6.5s ease-in-out infinite;
}

@keyframes bottle-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

.bottle__cap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 38px;
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(160deg, #4a3d5e 0%, #241c30 75%);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.25), inset 0 -6px 8px rgba(0, 0, 0, 0.25);
}

.bottle__neck {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 20px;
  background: linear-gradient(180deg, var(--pink), var(--lavender));
  clip-path: polygon(22% 0%, 78% 0%, 100% 100%, 0% 100%);
}

.bottle__body {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 152px;
  height: 250px;
  overflow: hidden;
  border-radius: 60px 60px 88px 88px / 70px 70px 100px 100px;
  background: linear-gradient(165deg, var(--pink) 0%, var(--lavender) 38%, var(--mint) 68%, var(--light-teal) 100%);
  box-shadow:
    inset -14px -10px 30px rgba(255, 255, 255, 0.35),
    inset 12px 14px 26px rgba(43, 36, 54, 0.12),
    0 30px 45px -20px rgba(43, 36, 54, 0.3);
}
.bottle__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.28) 72%);
  mix-blend-mode: overlay;
}

.bottle__sheen {
  position: absolute;
  top: -10%;
  left: 14%;
  width: 24%;
  height: 120%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 70%);
  transform: rotate(9deg);
  filter: blur(2px);
}

.bottle__label {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.bottle__shadow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  height: 18px;
  background: radial-gradient(ellipse, rgba(43, 36, 54, 0.28), transparent 70%);
  filter: blur(4px);
}

@media (max-width: 900px) {
  .bottle-scene {
    position: static;
    margin: 2.5rem auto 0;
    width: 150px;
    height: 230px;
  }
}

/* Signup */
.signup {
  opacity: 0;
  animation: rise 0.8s 0.4s cubic-bezier(.16,1,.3,1) forwards;
}
.signup__hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.signup__row {
  display: flex;
  gap: 0.6rem;
  max-width: 30rem;
  flex-wrap: wrap;
}

.signup input[type="email"] {
  flex: 1 1 15rem;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  padding: 0.75rem 0.2rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  min-width: 0;
  transition: border-color 0.25s ease;
}
.signup input[type="email"]::placeholder { color: #948aa3; }
.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
}
.signup input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: var(--rose);
}

.signup button {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 0.85rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.signup button:hover { background: var(--teal-deep); }
.signup button:active { transform: scale(0.97); }

.signup button.is-loading .btn__text { opacity: 0; }
.signup button.is-loading .btn__spinner { opacity: 1; }

.btn__spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.btn__spinner::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(244, 239, 230, 0.35);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.signup__note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: #948aa3;
}
.signup__note.is-error { color: var(--rose); }

/* Success state */
.success {
  max-width: 30rem;
  border-left: 2px solid var(--teal);
  padding-left: 1rem;
}
.success__mark {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--teal-deep);
  margin-bottom: 0.35rem;
}
.success__body {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Specimens */
.specimens {
  margin-top: clamp(4rem, 12vw, 8rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.specimen {
  padding: 2rem 1.6rem 2rem 0;
  border-right: 1px solid var(--line);
}
.specimen:last-child { border-right: none; }
.specimen:nth-child(2) { padding-left: 1.6rem; }
.specimen:nth-child(3) { padding-left: 1.6rem; }

.specimen__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--rose);
  margin-bottom: 0.9rem;
}

.specimen__title {
  font-family: var(--serif);
  font-weight: 450;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.specimen__body {
  font-size: 0.94rem;
  color: var(--ink-soft);
  max-width: 20rem;
}

/* Footer */
.footer {
  margin-top: clamp(3.5rem, 10vw, 6rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: #948aa3;
}
.footer__contact {
  margin-bottom: 0.5rem;
}
.footer a {
  color: var(--rose-deep);
}

@media (max-width: 720px) {
  .specimens {
    grid-template-columns: 1fr;
  }
  .specimen {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1.8rem 0;
  }
  .specimen:nth-child(2),
  .specimen:nth-child(3) { padding-left: 0; }
  .specimen:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__subhead, .hero__body, .signup, .bottle-scene {
    animation: none;
    opacity: 1;
  }
  .bottle {
    animation: none;
  }
}
