:root {
  --ink-900: #2c2530;
  --ink-700: #4f4454;
  --ink-500: #665a69;
  --ivory: rgba(255, 250, 244, 0.84);
  --ivory-strong: rgba(255, 250, 244, 0.92);
  --line: rgba(121, 100, 97, 0.2);
  --accent: #6a4f57;
  --accent-hover: #5a434a;
  --soft-shadow: 0 20px 60px rgba(45, 34, 45, 0.24);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink-900);
  font-family: "Inter", "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #c8bdc5;
}

.bg-image {
  position: absolute;
  inset: -7%;
  background-image: url("assets/daisy-bg.jpg");
  background-size: cover;
  background-position: center;
  transform-origin: center;
  animation: daisyFloat 38s ease-in-out infinite alternate;
  will-change: transform;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(56, 44, 48, 0.5), rgba(234, 224, 210, 0.3) 42%, rgba(252, 247, 241, 0.7)),
    radial-gradient(circle at 15% 0%, rgba(255, 240, 226, 0.24), transparent 58%);
}

.bg-glow {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  right: -12vmax;
  top: -10vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 239, 214, 0.26), rgba(255, 239, 214, 0));
  filter: blur(14px);
  animation: glowShift 28s ease-in-out infinite alternate;
}

.layout {
  width: min(1160px, 100% - 2rem);
  margin: 0 auto;
  padding: 1rem 0 2.75rem;
  display: grid;
  gap: 1rem;
}

.hero-card,
.support-card,
.bottom-cta {
  background: var(--ivory);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--soft-shadow);
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: clamp(1.35rem, 3.4vw, 2.45rem);
}

.eyebrow {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-700);
}

h1 {
  font-size: clamp(2rem, 6vw, 3.65rem);
  line-height: 0.98;
}

.subheadline {
  margin-top: 0.95rem;
  color: var(--ink-700);
  font-size: clamp(1.03rem, 2.4vw, 1.28rem);
  max-width: 56ch;
}

.supporting-text,
.bonus-text,
.micro-trust,
.support-card p,
.bottom-cta p {
  color: var(--ink-500);
}

.supporting-text {
  margin-top: 0.8rem;
}

.feature-row {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.feature-row li {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(121, 100, 97, 0.18);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  color: var(--ink-700);
  text-align: center;
}

.bonus-text {
  margin-top: 0.95rem;
}

.form-shell {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(121, 100, 97, 0.17);
}

.placeholder-form label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink-700);
}

.input-row {
  display: grid;
  gap: 0.6rem;
}

input[type='email'] {
  width: 100%;
  border: 1px solid rgba(102, 90, 105, 0.34);
  border-radius: 999px;
  padding: 0.82rem 0.95rem;
  font-size: 1rem;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.86);
}

input[type='email']::placeholder {
  color: #8b7d90;
}

input[type='email']:focus-visible,
.cta-btn:focus-visible,
.text-link:focus-visible {
  outline: 2px solid rgba(106, 79, 87, 0.62);
  outline-offset: 2px;
}

.cta-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.88rem 1rem;
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), #7c5b64);
  box-shadow: 0 10px 20px rgba(95, 65, 72, 0.28);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 24px rgba(95, 65, 72, 0.32);
  filter: saturate(1.05);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-emphasis {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.micro-trust {
  margin-top: 0.95rem;
  font-size: 0.92rem;
}

.support-card,
.bottom-cta {
  border-radius: 24px;
  padding: 1.15rem 1rem;
}

.support-card h2 {
  font-size: clamp(1.5rem, 4.2vw, 2rem);
  margin-bottom: 0.38rem;
}

.bottom-cta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}

.text-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.page-enter {
  opacity: 0;
  transform: translateY(7px);
}

.page-ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 600ms ease;
}

@keyframes daisyFloat {
  0% {
    transform: scale(1.03) translate3d(-1.1%, -0.6%, 0);
  }
  50% {
    transform: scale(1.08) translate3d(1.25%, -0.2%, 0);
  }
  100% {
    transform: scale(1.05) translate3d(0.4%, 1%, 0);
  }
}

@keyframes glowShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-2.4vmax, 1.6vmax, 0);
  }
}

@media (min-width: 920px) {
  .layout {
    min-height: 100vh;
    align-content: center;
    grid-template-columns: 2fr 1.05fr;
    grid-template-areas:
      "hero support"
      "hero bottom";
    gap: 1.15rem;
  }

  .hero-card {
    grid-area: hero;
    align-self: center;
  }

  .support-card {
    grid-area: support;
    align-self: end;
  }

  .bottom-cta {
    grid-area: bottom;
    align-self: start;
  }

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

  .input-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .cta-btn {
    min-width: 184px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .bg-image,
  .bg-glow {
    animation: none !important;
  }
}
