:root {
  --bg-deep: #14080c;
  --bg-mid: #1f0e14;
  --ink: #f7f0f2;
  --ink-soft: rgba(247, 240, 242, 0.78);
  --brand: #ba1c3a;
  --accent: #ba1c3a;
  --accent-hover: #d42848;
  --glow-a: rgba(186, 28, 58, 0.38);
  --glow-b: rgba(120, 24, 48, 0.45);
  --glow-c: rgba(80, 40, 55, 0.35);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* —— Atmosphere —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 12% 18%, var(--glow-a), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 82%, var(--glow-b), transparent 50%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 48%, #2a1018 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
  animation: drift 18s ease-in-out infinite;
}

.blob-a {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: -8%;
  left: -6%;
  background: var(--glow-a);
  animation-duration: 20s;
}

.blob-b {
  width: min(45vw, 400px);
  height: min(45vw, 400px);
  bottom: -10%;
  right: -4%;
  background: var(--glow-b);
  animation-duration: 24s;
  animation-delay: -6s;
}

.blob-c {
  width: min(35vw, 320px);
  height: min(35vw, 320px);
  top: 40%;
  left: 45%;
  background: var(--glow-c);
  animation-duration: 22s;
  animation-delay: -12s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, 4%) scale(1.06);
  }
  66% {
    transform: translate(-4%, 2%) scale(0.96);
  }
}

/* —— Stage —— */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2.5rem);
}

.logo-wrap {
  margin-bottom: clamp(1.1rem, 2.5vw, 1.5rem);
}

.logo-mark {
  width: clamp(4.5rem, 12vw, 6.25rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(186, 28, 58, 0.35));
  animation: heartbeat 2.8s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.045);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.03);
  }
  56% {
    transform: scale(1);
  }
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.headline {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 32rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.25rem);
}

/* —— Actions —— */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.25rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn-primary {
  color: var(--ink);
  background: transparent;
  border-bottom: 1.5px solid rgba(244, 240, 232, 0.55);
  padding: 0.35rem 0;
  border-radius: 0;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  border-bottom-color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.btn-donate {
  color: #fff;
  background: var(--accent);
  padding: 0.7rem 1.35rem;
  border-radius: 2px;
}

.btn-donate:hover,
.btn-donate:focus-visible {
  background: var(--accent-hover);
  transform: scale(1.03);
  outline: none;
}

.btn-donate:active {
  transform: scale(0.98);
}

/* —— Social —— */
.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.social a {
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.social a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.social a:hover,
.social a:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.social a:hover::after,
.social a:focus-visible::after {
  transform: scaleX(1);
}

.sep {
  color: rgba(244, 240, 232, 0.35);
  user-select: none;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.is-ready .reveal {
  /* animation runs on load via class or default */
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }

  .logo-mark {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .btn,
  .social a {
    transition: none;
  }
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-donate {
    width: 100%;
    max-width: 16rem;
  }
}
