/* ============================================================
   UNITOAD — pastel dream / Robinhood Chain
   Single-screen landing page. Palette lifted straight off the logo:
   cotton-candy sky, six-band rainbow, plum ink, glitter.
   ============================================================ */

:root {
  /* sky */
  --sky-1: #f9d6e8;
  --sky-2: #f0c0dd;
  --sky-3: #dda9d9;
  --sky-4: #c9a2e0;

  /* ink */
  --ink:       #46243f;
  --ink-soft:  #6b3f63;
  --ink-mute:  #8c6285;

  /* rainbow bands */
  --r-red:    #ff7d9a;
  --r-orange: #ffb46b;
  --r-yellow: #ffe27a;
  --r-green:  #9ce8ad;
  --r-blue:   #8fd6f2;
  --r-purple: #c1a7f5;

  /* accents */
  --pink:  #ff8fc0;
  --pink-deep: #f0629f;

  --shadow-s: 0 2px 10px rgba(115, 60, 110, .10);
  --shadow-m: 0 14px 40px rgba(115, 60, 110, .16);
  --shadow-l: 0 30px 80px rgba(115, 60, 110, .22);

  --r-md: 22px;
  --r-xl: 46px;

  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1200px;
  --pad: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sky-2);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
}

::selection { background: var(--pink); color: #fff; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: #fff; padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   AMBIENT SKY
   ============================================================ */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.sky__wash {
  position: absolute; inset: -10%;
  background:
    radial-gradient(120% 90% at 12% 8%,  #ffe9f4 0%, transparent 55%),
    radial-gradient(110% 80% at 88% 14%, #e6d2ff 0%, transparent 58%),
    radial-gradient(130% 100% at 50% 110%, #ffd9ec 0%, transparent 60%),
    linear-gradient(165deg, var(--sky-1) 0%, var(--sky-2) 38%, var(--sky-3) 72%, var(--sky-4) 100%);
}

/* two soft rainbow arcs sweeping the backdrop */
.sky__rainbow {
  position: absolute;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    transparent 0deg 18deg,
    var(--r-purple) 24deg,
    var(--r-blue)   32deg,
    var(--r-green)  40deg,
    var(--r-yellow) 48deg,
    var(--r-orange) 56deg,
    var(--r-red)    64deg,
    transparent 72deg 360deg
  );
  filter: blur(26px);
  opacity: .5;
  animation: drift 46s ease-in-out infinite alternate;
}
.sky__rainbow--a {
  width: 150vmax; height: 150vmax;
  top: -66vmax; left: -42vmax;
  mask: radial-gradient(circle, transparent 40%, #000 41%, #000 52%, transparent 53%);
  -webkit-mask: radial-gradient(circle, transparent 40%, #000 41%, #000 52%, transparent 53%);
}
.sky__rainbow--b {
  width: 108vmax; height: 108vmax;
  top: 22vmax; right: -52vmax;
  opacity: .3;
  animation-duration: 62s;
  animation-direction: alternate-reverse;
  mask: radial-gradient(circle, transparent 42%, #000 43%, #000 51%, transparent 52%);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 43%, #000 51%, transparent 52%);
}

@keyframes drift {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to   { transform: translate3d(3vw, 2vh, 0) rotate(9deg); }
}

.sky__stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.sky__clouds { position: absolute; inset: 0; }

.cloud {
  position: absolute;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,.55) 62%, transparent);
  filter: blur(3px);
  border-radius: 50%;
  opacity: .8;
  animation: float-x linear infinite;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
  filter: inherit;
}
.cloud::before { width: 62%; height: 88%; left: 4%;  top: -34%; }
.cloud::after  { width: 48%; height: 74%; right: 8%; top: -22%; }

.cloud--1 { width: 340px; height: 92px;  top: 12%;  left: -22%; animation-duration: 92s;  animation-delay: -12s; }
.cloud--2 { width: 240px; height: 70px;  top: 34%;  left: -18%; animation-duration: 128s; animation-delay: -50s; opacity: .55; }
.cloud--3 { width: 430px; height: 110px; top: 62%;  left: -30%; animation-duration: 76s;  animation-delay: -30s; opacity: .65; }
.cloud--4 { width: 180px; height: 56px;  top: 78%;  left: -14%; animation-duration: 150s; animation-delay: -90s; opacity: .5; }
.cloud--5 { width: 300px; height: 86px;  top: 88%;  left: -24%; animation-duration: 104s; animation-delay: -66s; opacity: .6; }

@keyframes float-x {
  from { transform: translateX(0); }
  to   { transform: translateX(160vw); }
}

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

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink) 0%, #ff9ad0 45%, var(--r-purple) 100%);
  box-shadow: 0 10px 26px rgba(240, 98, 159, .38), inset 0 1px 0 rgba(255,255,255,.6);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.9,.3,1.4), box-shadow .22s ease;
  white-space: nowrap;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 36px rgba(240,98,159,.46), inset 0 1px 0 rgba(255,255,255,.7); }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(-1px) scale(.99); }

.btn--big { padding: 17px 34px; font-size: 1.08rem; }

.btn--white {
  background: #fff;
  color: var(--pink-deep);
  box-shadow: 0 14px 34px rgba(70, 36, 63, .28);
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease, backdrop-filter .3s ease;
}
.nav.is-stuck {
  background: rgba(255, 246, 251, .74);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 6px 30px rgba(115,60,110,.12);
  padding-block: 9px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: .04em;
  margin-right: auto;
}
.nav__mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  box-shadow: 0 4px 16px rgba(240,98,159,.36);
  transition: transform .5s cubic-bezier(.2,.9,.3,1.4);
}
.nav__brand:hover .nav__mark { transform: rotate(-12deg) scale(1.1); }

.nav__word {
  background: linear-gradient(92deg, var(--r-red), var(--r-orange), var(--r-yellow), var(--r-green), var(--r-blue), var(--r-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: saturate(1.25) brightness(.94);
}

.nav__cta { padding: 11px 22px; font-size: .95rem; }

/* ============================================================
   HERO
   ============================================================ */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 60px) var(--pad) clamp(40px, 6vw, 80px);
}
.hero__inner { width: 100%; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero__title {
  font-size: clamp(3.6rem, 12.5vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: .88;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.hero__line {
  background: linear-gradient(96deg, var(--r-red) 0%, var(--r-orange) 22%, var(--r-yellow) 40%, var(--r-green) 60%, var(--r-blue) 80%, var(--r-purple) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: saturate(1.3) brightness(.92) drop-shadow(0 5px 18px rgba(255,255,255,.7));
  animation: shimmer 9s ease-in-out infinite;
}
.hero__line--alt { animation-delay: -4.5s; }

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero__tag {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 500;
  color: var(--ink);
  margin: 18px 0 0;
}
.hero__tag em { color: var(--pink-deep); font-style: italic; }

.hero__blurb {
  max-width: 46ch;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.hero__blurb strong { color: var(--ink); font-weight: 600; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.ca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-s);
  max-width: 100%;
}
.ca__label {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--pink-deep);
}
.ca__value {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .8rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ca__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  border: 0;
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .84rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--r-purple));
  box-shadow: 0 6px 16px rgba(240,98,159,.34);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ca__copy:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(240,98,159,.42); }

/* — hero art — */

.hero__art { position: relative; display: grid; justify-items: center; }

.orb {
  position: absolute;
  inset: 4% 2% 16%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(255,209,236,.55) 45%, rgba(193,167,245,.28) 70%, transparent 76%);
  filter: blur(18px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(1.07); opacity: 1; }
}

.hero__frame {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1;
  animation: bob 6.5s ease-in-out infinite;
  will-change: transform;
}
.hero__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 5px solid rgba(255,255,255,.92);
  box-shadow: var(--shadow-l), 0 0 70px rgba(255,169,214,.5);
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50%      { transform: translateY(-16px) rotate(.6deg); }
}

.sparkle {
  position: absolute;
  width: 26px; height: 26px;
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  background: #fff;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.95));
  animation: twinkle 3.2s ease-in-out infinite;
}
.sparkle--1 { top: 4%;  left: 8%;  animation-delay: 0s;    transform: scale(.9); }
.sparkle--2 { top: 16%; right: 2%; animation-delay: -1.1s; width: 34px; height: 34px; }
.sparkle--3 { bottom: 12%; left: 0%; animation-delay: -2s; width: 20px; height: 20px; }
.sparkle--4 { bottom: 2%; right: 16%; animation-delay: -2.6s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1) rotate(90deg); }
}

.hero__caption {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--ink-mute);
  text-align: center;
}

/* ============================================================
   CTA BAND
   ============================================================ */

/* No colour wash here: a pink overlay turns his green hide brown. The artwork's
   own empty floor is the canvas instead — the toad sits left, the type sits
   right on a gradient that resolves to the exact cream of the piece. */
.band {
  position: relative;
  overflow: hidden;
  background: #ece2d6;
  border-top: 3px solid rgba(255,255,255,.8);
}
.band__img {
  width: 100%;
  height: clamp(300px, 44vw, 500px);
  object-fit: cover;
  object-position: 22% 46%;
}
.band__copy {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 26px;
  text-align: right;
  padding: var(--pad);
  background: linear-gradient(96deg, rgba(236,226,214,0) 26%, rgba(236,226,214,.82) 48%, rgba(236,226,214,.96) 62%);
}
.band__copy h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  color: #4a3a2c;
}

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 48px) var(--pad) clamp(28px, 4vw, 44px);
  text-align: center;
}
.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1.5px solid rgba(255,255,255,.7);
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: .04em;
}
.foot__brand img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-s);
}
.foot__social { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.foot__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink-soft);
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-s);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.4), color .25s ease, background .25s ease;
}
.foot__social a:hover {
  transform: translateY(-3px);
  background: #fff;
  color: var(--pink-deep);
}

.foot__dis {
  margin: 24px auto 0;
  max-width: 78ch;
  font-size: .78rem;
  line-height: 1.7;
  color: var(--ink-mute);
}
.foot__copy {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--ink-mute);
}

/* ============================================================
   TOAST + SPARKLE TRAIL
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 24px);
  z-index: 300;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--r-purple));
  box-shadow: 0 16px 40px rgba(240,98,159,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.9,.3,1.4);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.trail {
  position: fixed;
  z-index: 150;
  pointer-events: none;
  width: 12px; height: 12px;
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  animation: trail-out .8s ease-out forwards;
}
@keyframes trail-out {
  from { opacity: 1; transform: scale(1) rotate(0deg); }
  to   { opacity: 0; transform: scale(.1) translateY(26px) rotate(160deg); }
}

.confetti {
  position: fixed;
  top: -20px;
  z-index: 250;
  pointer-events: none;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__frame { width: min(78%, 380px); }
  .hero__title { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .hero__title { font-size: clamp(3rem, 17vw, 5rem); }
  .nav__cta { padding: 10px 16px; font-size: .88rem; }

  .ca { flex-wrap: wrap; border-radius: var(--r-md); padding: 14px; }
  .ca__value { width: 100%; }
  .ca__copy { width: 100%; justify-content: center; }

  /* Too narrow for a side-by-side read — frame the toad in the upper half and
     stack the type beneath him on the cream floor. */
  .band__img {
    height: clamp(400px, 108vw, 520px);
    object-position: 38% 34%;
  }
  .band__copy {
    justify-items: center;
    text-align: center;
    align-content: end;
    background: linear-gradient(rgba(236,226,214,0) 34%, rgba(236,226,214,.92) 56%, rgba(236,226,214,.99) 72%);
  }

  .foot__top { flex-direction: column; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */

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