:root {
  --blue: #6977ee;
  --blue-deep: #535bd5;
  --lilac: #c6b7ef;
  --pink: #efc4df;
  --peach: #e79a8e;
  --ink: #232448;
  --cream: #f7ecfb;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background: #6d73e8;
  overflow: hidden;
}

a { color: inherit; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(255, 213, 220, .62) 0 19%, transparent 46%),
    linear-gradient(180deg, #6977ee 0%, #8f8ff0 33%, #dab7e8 63%, #e49a8f 100%);
}

.atmosphere,
.atmosphere > * {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sun-glow {
  inset: 20% 18% auto;
  height: 54%;
  background: radial-gradient(circle at 50% 50%, rgba(255,238,244,.45), rgba(255,220,230,.12) 40%, transparent 72%);
  filter: blur(14px);
}

.contours {
  opacity: .23;
  mix-blend-mode: soft-light;
  background-image:
    repeating-radial-gradient(ellipse at 16% 12%, transparent 0 26px, rgba(255,255,255,.46) 27px 28px, transparent 29px 45px),
    repeating-radial-gradient(ellipse at 78% 18%, transparent 0 32px, rgba(255,255,255,.34) 33px 34px, transparent 35px 52px),
    repeating-radial-gradient(ellipse at 62% 90%, transparent 0 36px, rgba(67,60,117,.22) 37px 38px, transparent 39px 60px);
  transform: scale(1.15);
}

.grain {
  opacity: .12;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.cloud {
  width: 46vw;
  height: 16vw;
  min-width: 360px;
  min-height: 110px;
  border-radius: 50%;
  filter: blur(9px);
  opacity: .25;
  background:
    radial-gradient(circle at 20% 55%, rgba(255,240,249,.95) 0 21%, transparent 22%),
    radial-gradient(circle at 39% 38%, rgba(255,240,249,.95) 0 27%, transparent 28%),
    radial-gradient(circle at 57% 52%, rgba(255,240,249,.95) 0 24%, transparent 25%),
    radial-gradient(circle at 75% 46%, rgba(255,240,249,.95) 0 28%, transparent 29%);
  animation: drift 18s ease-in-out infinite alternate;
}
.cloud-a { inset: 13% auto auto -9%; }
.cloud-b { inset: 22% -13% auto auto; transform: scale(.72); animation-delay: -7s; }
.cloud-c { inset: 54% auto auto -17%; transform: scale(.63); animation-delay: -11s; opacity: .18; }
.cloud-d { inset: 62% -20% auto auto; transform: scale(.7); animation-delay: -3s; opacity: .16; }

.brand {
  position: absolute;
  z-index: 10;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.brand-logo {
  display: block;
  width: clamp(255px, 31.5vw, 700px);
  height: auto;
  object-fit: contain;
  opacity: .96;
  filter: drop-shadow(0 8px 16px rgba(255,255,255,.10));
}

.social-stack {
  position: absolute;
  z-index: 12;
  top: max(25px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 54px;
  padding: 9px 13px 9px 10px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 999px;
  background: rgba(55,53,123,.16);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: rgba(255,255,255,.94);
  box-shadow: 0 8px 22px rgba(50,42,105,.10);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(55,53,123,.27);
  box-shadow: 0 12px 26px rgba(50,42,105,.16);
  outline: none;
}
.social-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex: 0 0 auto;
}
.facebook-icon {
  fill: currentColor;
  stroke: none;
}
.social-dot { fill: currentColor; stroke: none; }

.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.mascot-wrap {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 12%;
  width: min(62vw, 920px);
  transform: translate3d(-50%,0,0);
  transform-origin: 50% 85%;
  will-change: transform;
  animation: mascotIn 1.15s .15s cubic-bezier(.18,.75,.22,1) both;
}

.mascot {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  filter: drop-shadow(0 42px 32px rgba(52,35,79,.20));
  animation: breathe 5.6s ease-in-out 1.5s infinite;
}

.goodnews-link {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: clamp(58px, 8vh, 92px);
  display: block;
  text-decoration: none;
  transform: translateX(-50%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), filter .28s ease;
  outline: none;
  animation: stickerIn .8s .65s cubic-bezier(.18,.75,.22,1) both;
}

.goodnews-link:hover,
.goodnews-link:focus-visible {
  transform: translateX(-50%) scale(1.04) translateY(-4px);
  filter: drop-shadow(0 18px 22px rgba(55,42,106,.20));
}

.goodnews-cloud {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: min(88vw, 510px);
  padding: 20px 28px;
  color: #5e67d9;
  font-size: clamp(14px, 1.45vw, 22px);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  border: 2px solid rgba(104,118,236,.92);
  border-radius: 999px;
  background:
    radial-gradient(circle at 8% 50%, rgba(219,205,247,.98) 0 17px, transparent 18px),
    radial-gradient(circle at 16% 24%, rgba(219,205,247,.98) 0 18px, transparent 19px),
    radial-gradient(circle at 26% 70%, rgba(219,205,247,.98) 0 18px, transparent 19px),
    radial-gradient(circle at 38% 22%, rgba(219,205,247,.98) 0 18px, transparent 19px),
    radial-gradient(circle at 50% 74%, rgba(219,205,247,.98) 0 18px, transparent 19px),
    radial-gradient(circle at 61% 24%, rgba(219,205,247,.98) 0 18px, transparent 19px),
    radial-gradient(circle at 73% 68%, rgba(219,205,247,.98) 0 18px, transparent 19px),
    radial-gradient(circle at 85% 24%, rgba(219,205,247,.98) 0 18px, transparent 19px),
    radial-gradient(circle at 92% 52%, rgba(219,205,247,.98) 0 17px, transparent 18px),
    linear-gradient(180deg, rgba(232,224,251,.98), rgba(212,199,244,.98));
  box-shadow:
    0 10px 22px rgba(81,76,170,.14),
    inset 0 1px 0 rgba(255,255,255,.72);
}
.goodnews-cloud::before,
.goodnews-cloud::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.goodnews-cloud::before {
  inset: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(126,138,241,.34);
}
.goodnews-text {
  position: relative;
  z-index: 1;
  text-align: center;
}
.goodnews-arrow {
  position: relative;
  z-index: 1;
  font-size: 1.35em;
  line-height: 1;
}

.footer {
  position: absolute;
  z-index: 10;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  opacity: .74;
  text-transform: uppercase;
}
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.dot { opacity: .55; }

@keyframes drift {
  from { translate: -2% -1%; scale: .98; }
  to   { translate: 4% 2%; scale: 1.04; }
}
@keyframes breathe {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.006); }
}
@keyframes titleIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(.97); filter: blur(9px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); filter: blur(0); }
}
@keyframes mascotIn {
  from { opacity: 0; transform: translate3d(-50%,75px,0) scale(.94); }
  to { opacity: 1; transform: translate3d(-50%,0,0) scale(1); }
}
@keyframes stickerIn {
  from { opacity: 0; transform: rotate(8deg) translateY(30px) scale(.9); }
  to { opacity: 1; }
}

@media (max-width: 860px) {
  .hero { min-height: 640px; }
  .social-stack {
    top: max(17px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    gap: 8px;
  }
  .social-link {
    padding: 8px;
  }
  .social-link span { display: none; }
  .social-icon { width: 19px; height: 19px; }
  .brand-logo {
    width: min(61vw, 332px);
  }
  .mascot-wrap {
    width: min(102vw, 760px);
    bottom: 20%;
  }
  .goodnews-link {
    bottom: calc(max(60px, env(safe-area-inset-bottom)) + 3.5vh);
  }
  .goodnews-cloud {
    min-width: min(84vw, 440px);
    padding: 18px 24px;
    font-size: clamp(12px, 1.9vw, 18px);
    gap: 12px;
  }
  .footer {
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    font-size: 8px;
    white-space: nowrap;
    opacity: .62;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: min(66vw, 290px);
  }
  .mascot-wrap {
    width: 118vw;
    max-width: none;
    bottom: 19%;
  }
  .goodnews-link {
    bottom: calc(max(70px, env(safe-area-inset-bottom)) + 2.5vh);
  }
  .goodnews-cloud {
    min-width: min(86vw, 360px);
    padding: 15px 18px;
    gap: 10px;
    font-size: 11px;
    letter-spacing: .06em;
  }
  .goodnews-arrow { font-size: 1.2em; }
  .footer {
    font-size: 7px;
    gap: 6px;
    letter-spacing: .12em;
  }
}

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