:root {
  --cream: #f7f1e8;
  --ivory: #fbf7f1;
  --peach: #f3ddd0;
  --blush: #e8c4b8;
  --rose: #c9897a;
  --ink: #3d342e;
  --muted: #6b5e54;
  --line: #e6d9cc;
  --white: #fffcf8;
  --font-brand: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--cream);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    var(--ivory) 0%,
    var(--cream) 38%,
    var(--peach) 68%,
    #f0d2c4 100%
  );
  background-size: 180% 180%;
  animation: atmosphere-drift 28s ease-in-out infinite alternate;
  pointer-events: none;
}

.drift {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  will-change: transform, opacity;
}

.drift-a {
  width: min(68vw, 36rem);
  height: min(68vw, 36rem);
  top: -14%;
  left: -12%;
  background: rgba(232, 196, 184, 0.78);
  animation: float-a 24s ease-in-out infinite;
}

.drift-b {
  width: min(74vw, 40rem);
  height: min(74vw, 40rem);
  right: -18%;
  bottom: -16%;
  background: rgba(243, 221, 208, 0.82);
  animation: float-b 30s ease-in-out infinite;
}

.drift-c {
  width: min(52vw, 28rem);
  height: min(52vw, 28rem);
  top: 36%;
  left: 32%;
  background: rgba(255, 248, 240, 0.85);
  animation: float-c 26s ease-in-out infinite;
}

@keyframes atmosphere-drift {
  0% {
    background-position: 0% 10%;
  }
  100% {
    background-position: 100% 90%;
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(18%, 16%) scale(1.14);
    opacity: 0.85;
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate(-20%, -14%) scale(1.12);
    opacity: 0.9;
  }
}

@keyframes float-c {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-14%, 12%) scale(1.18);
    opacity: 0.75;
  }
}

.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
}

.brand {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(2.75rem, 8vw, 4rem);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.headline {
  margin: 1rem 0 0;
  max-width: 18ch;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  line-height: 1.35;
  color: var(--ink);
}

.support {
  margin: 1rem 0 0;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: scale(0.99);
  opacity: 0.95;
}

.btn.primary {
  background: var(--rose);
  color: var(--white);
}

.btn.soft {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Soft receive-style bloom: scale settle, opacity bloom, halo breathe */
.glow {
  position: relative;
  width: 9rem;
  height: 9rem;
  margin-top: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-sm {
  width: 6.5rem;
  height: 6.5rem;
  margin-top: 2rem;
}

.glow-halo {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(232, 196, 184, 0.45);
  animation: halo-breathe 3.2s ease-in-out infinite;
}

.glow-orb {
  position: relative;
  width: 58%;
  height: 58%;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 10px 28px rgba(201, 137, 122, 0.22);
  animation: orb-bloom 1.1s cubic-bezier(0.22, 1, 0.36, 1) both,
    orb-core-pulse 3.6s ease-in-out 1.1s infinite;
}

@keyframes orb-bloom {
  0% {
    transform: scale(0.82);
    opacity: 0.35;
  }
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
}

/* Inner core: gentle scale + opacity with the outer halo */
@keyframes orb-core-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes halo-breathe {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.32;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.72;
  }
}

.section {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  text-align: center;
}

.section h2 {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.section p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
}

.muted {
  color: var(--muted);
}

.muted.small {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  max-width: 34ch;
}

.invite .code-label {
  margin: 2rem 0 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.invite .code {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  justify-content: center;
  align-items: center;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

.footer .dot {
  margin: 0 0.4rem;
}

.legal-top {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}

.legal-brand {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.legal {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3.5rem;
  text-align: left;
}

.legal h1 {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--ink);
  text-align: center;
}

.legal-meta {
  margin: 0.65rem 0 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.legal p {
  margin: 0 0 0.85rem;
}

.legal ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.45rem;
}

.legal a {
  color: var(--rose);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere {
    animation: none;
    background-size: 100% 100%;
  }

  .drift {
    animation: none;
    opacity: 0.6;
    transform: none;
  }

  .glow-halo,
  .glow-orb {
    animation: none;
  }
}
