/* Core design tokens preserved from the approved visual system */
:root {
  --bg-base: #faf8f6;
  --bg-soft: #fff7f8;
  --bg-rose: #fcedef;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --primary: #7b355c;
  --accent: #c87b95;
  --heading: #2d2d2d;
  --body: #666666;
  --muted: #999999;
  --success: #2d6a4f;
  --error: #a33a5c;
  --border-soft: rgba(200, 123, 149, 0.22);
  --border-strong: rgba(123, 53, 92, 0.65);
  --shadow-soft: 0 30px 80px rgba(123, 53, 92, 0.09);
  --shadow-hover: 0 18px 36px rgba(123, 53, 92, 0.16);
  --shadow-card-hover: 0 34px 90px rgba(123, 53, 92, 0.12);
  --focus: rgba(123, 53, 92, 0.22);
  --radius-card: 28px;
  --radius-ui: 12px;
  --max-width: 720px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  color: var(--body);
  background:
    radial-gradient(circle at top left, rgba(200, 123, 149, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(248, 233, 234, 0.8), transparent 24%),
    linear-gradient(145deg, var(--bg-base) 0%, var(--bg-soft) 44%, var(--bg-rose) 74%, #ffffff 100%);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

/* Soft drifting background accents */
.page-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.48;
  mix-blend-mode: multiply;
  animation: drift 20s ease-in-out infinite alternate;
}

.blob-one {
  top: -8rem;
  left: -7rem;
  width: 23rem;
  height: 23rem;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.95), transparent 40%),
    radial-gradient(circle at 68% 62%, rgba(200, 123, 149, 0.38), transparent 58%);
}

.blob-two {
  right: -7rem;
  bottom: -6rem;
  width: 24rem;
  height: 24rem;
  background:
    radial-gradient(circle at 52% 52%, rgba(255, 255, 255, 0.95), transparent 38%),
    radial-gradient(circle at 38% 64%, rgba(247, 186, 196, 0.42), transparent 62%);
  animation-duration: 24s;
}

.blob-three {
  top: 16%;
  left: -11rem;
  width: 22rem;
  height: 32rem;
  border-radius: 44% 56% 58% 42% / 38% 43% 57% 62%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(200, 123, 149, 0.16));
  animation-duration: 26s;
}

.blob-four {
  right: -11rem;
  bottom: 8%;
  width: 19rem;
  height: 29rem;
  border-radius: 54% 46% 42% 58% / 44% 52% 48% 56%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(200, 123, 149, 0.18));
  animation-duration: 22s;
}

/* Main floating card */
.card {
  position: relative;
  width: min(100%, var(--max-width));
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  animation: cardFade 900ms cubic-bezier(0.2, 1, 0.22, 1) both;
  transition: box-shadow 260ms ease, transform 260ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--radius-card) - 1px);
  background:
    radial-gradient(circle at top, rgba(247, 239, 241, 0.45), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
}

.brand,
.hero,
.launch,
.notify-card,
.footer {
  text-align: center;
}

/* Brand lockup */
.brand {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.brand-mark {
  width: clamp(9.5rem, 21vw, 12rem);
  margin-inline: auto;
}

.brand-text {
  display: grid;
  gap: 0.45rem;
}

.brand-name,
.brand-subtitle {
  margin: 0;
}

.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: 0.24em;
  color: var(--primary);
}

.brand-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.18em;
  color: var(--accent);
}

/* Hero */
.hero {
  margin-top: clamp(2.2rem, 6vw, 3.9rem);
}

.hero h1 {
  max-width: 11ch;
  margin: 0 auto;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.85rem, 7vw, 3.65rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--heading);
  animation: riseIn 900ms 150ms cubic-bezier(0.2, 1, 0.22, 1) both;
}

.hero-copy {
  max-width: 31rem;
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

/* Decorative divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto;
}

.divider-line {
  width: min(14rem, 100%);
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 123, 149, 0.08), rgba(200, 123, 149, 0.58), rgba(200, 123, 149, 0.08));
}

.divider-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #e899ae, #db738f);
  box-shadow: 0 0 0 0.35rem rgba(232, 153, 174, 0.08);
}

/* Launch section */
.launch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.5rem;
  color: #ea6f8f;
}

.launch-icon svg,
.notify-heading svg,
.footer-heart svg,
.button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.launch-icon svg {
  width: 2rem;
  height: 2rem;
}

.launch h2,
.first-product h2,
.notify-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
}

.launch h2 {
  color: var(--primary);
}

.launch p {
  max-width: 28rem;
  margin: 1rem auto 0;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.7;
}

/* CTA buttons */
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 2.5rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-width: 13rem;
  min-height: 3.9rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-ui);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

.button svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #8c2f60 0%, var(--primary) 54%, #8f2f5f 100%);
  box-shadow: 0 12px 24px rgba(123, 53, 92, 0.18);
}

.button-secondary {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border-strong);
}

.button:active {
  transform: translateY(0);
}

.button[disabled],
.button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button-loader {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.notify-button[aria-busy="true"] .button-loader {
  display: inline-flex;
}

.notify-button[aria-busy="true"] .button-label {
  transform: translateX(0.1rem);
}

/* First product section */
.first-product {
  margin-top: clamp(2.6rem, 5vw, 3.4rem);
  padding-inline: clamp(0.25rem, 2vw, 0.5rem);
}

.product-logo {
  width: clamp(8rem, 18vw, 10.5rem);
  margin: 0 auto 1rem;
}

.section-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.first-product h2 {
  margin-top: 0.7rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--heading);
}

.product-copy {
  max-width: 27rem;
  margin: 0.95rem auto 0;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.7;
}

.product-copy-detail {
  max-width: 31rem;
  margin-top: 0.45rem;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  margin: 1.35rem 0 0;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(252, 237, 239, 0.65);
  color: var(--primary);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
}

/* Notify form */
.notify-card {
  margin-top: clamp(2.5rem, 5vw, 3.4rem);
  padding: clamp(1.45rem, 3vw, 1.85rem);
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.notify-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--heading);
}

.notify-heading svg {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  color: #ea6f8f;
}

.notify-heading h2 {
  font-size: clamp(1.28rem, 2.5vw, 1.5rem);
}

.notify-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.95rem;
  margin-top: 1.35rem;
}

.notify-form input[type="email"] {
  min-height: 3.7rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.85rem;
  background: var(--surface-strong);
  color: var(--heading);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.notify-form input[type="email"]::placeholder {
  color: var(--muted);
}

.notify-form input[type="email"][aria-invalid="true"] {
  border-color: rgba(163, 58, 92, 0.42);
  background: rgba(255, 251, 252, 0.96);
}

.notify-button {
  min-width: 9.25rem;
}

.form-feedback {
  min-height: 1.25rem;
  margin: 0.9rem 0 0;
  font-size: 0.96rem;
  font-weight: 500;
  white-space: pre-line;
}

.form-feedback[data-state="success"] {
  color: var(--success);
}

.form-feedback[data-state="error"] {
  color: var(--error);
}

/* Footer */
.footer {
  margin-top: clamp(2.5rem, 5vw, 3.35rem);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 123, 149, 0.05), rgba(200, 123, 149, 0.28), rgba(200, 123, 149, 0.05));
}

.footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin: 1.5rem 0 0;
  font-size: 1rem;
  color: #777777;
}

.footer-separator {
  width: 1px;
  height: 1rem;
  background: rgba(200, 123, 149, 0.5);
}

.footer-heart {
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  color: #ea6f8f;
}

/* Shared accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.notify-form input[type="email"]:focus-visible {
  border-color: rgba(123, 53, 92, 0.55);
  box-shadow: 0 0 0 0.35rem rgba(123, 53, 92, 0.08);
}

.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.2, 1, 0.22, 1), transform 700ms cubic-bezier(0.2, 1, 0.22, 1);
}

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

/* Hover enhancements reserved for pointer devices */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
  }

  .button:hover,
  .button:focus-visible {
    transform: translateY(-2px);
  }

  .button-primary:hover,
  .button-primary:focus-visible {
    box-shadow: var(--shadow-hover);
  }

  .button-secondary:hover,
  .button-secondary:focus-visible {
    background: rgba(252, 237, 239, 0.82);
  }
}

/* Tablet layout */
@media (max-width: 900px) {
  .card {
    padding: clamp(2rem, 5vw, 3rem);
  }
}

/* Mobile stacking */
@media (max-width: 768px) {
  .brand-name {
    letter-spacing: 0.18em;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .notify-form {
    grid-template-columns: 1fr;
  }

  .notify-button {
    width: 100%;
  }
}

/* Small phones */
@media (max-width: 520px) {
  .page {
    padding: 1rem;
  }

  .card {
    width: min(92vw, var(--max-width));
    padding: 2rem;
  }

  .hero h1 {
    max-width: 10.5ch;
  }

  .brand-name {
    letter-spacing: 0.14em;
  }

  .notify-heading {
    align-items: flex-start;
  }

  .footer p {
    flex-direction: column;
    gap: 0.65rem;
  }

  .footer-separator {
    display: none;
  }
}

/* Large desktop breathing room */
@media (min-width: 1440px) {
  .page {
    padding-block: 4rem;
  }
}

/* Respect reduced motion preferences */
@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;
  }
}

@keyframes cardFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(1.5rem, -1rem, 0) scale(1.04);
  }

  100% {
    transform: translate3d(-1rem, 1.5rem, 0) scale(0.98);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
