:root {
  --night: #0e1742;
  --night-2: #172463;
  --blue: #2152c4;
  --red: #d6262f;
  --red-dark: #9e1820;
  --yellow: #f6c62b;
  --blonde: #e4b46e;
  --cream: #fff5e4;
  --ink: #0a0f2c;
  --muted: #b9c2e6;
  --display: "Bowlby One", "Arial Black", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: #2a2766; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 80% 110%, rgba(214, 38, 47, .28), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, #2a2766 100%);
  background-color: #2a2766;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* night sky */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 34%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 88%, #fff 50%, transparent 51%);
  opacity: .55;
}

header, main, footer { position: relative; z-index: 1; }

/* header */
.top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .01em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
}

.top-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 245, 228, .35);
  text-decoration: none;
  font-weight: 700;
  transition: border-color .2s, background .2s;
}
.top-x:hover { border-color: var(--cream); background: rgba(255, 255, 255, .06); }

/* hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.ticker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  border-radius: 6px;
  transform: rotate(-2deg);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 132px);
  line-height: .9;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 5px 5px 0 var(--red), 10px 10px 0 var(--ink);
}

.tagline {
  margin: 28px 0 10px;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--blonde);
}

.desc {
  margin: 0 0 32px;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  border: 3px solid var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: var(--cream); color: var(--ink); }

.ca {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  padding: 8px 8px 8px 16px;
  border-radius: 12px;
  background: rgba(10, 15, 44, .55);
  border: 2px dashed rgba(246, 198, 43, .55);
}

.ca-label {
  font-family: var(--display);
  font-size: 14px;
  color: var(--yellow);
}

.ca code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  color: var(--cream);
}

.ca-copy {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 15px var(--body);
  cursor: pointer;
  transition: background .2s;
}
.ca-copy:hover { background: #ffd84f; }
.ca-copy.is-copied { background: #7fdc8f; }

.hero-art { position: relative; }
.hero-text { position: relative; z-index: 2; }

.frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid var(--yellow);
  box-shadow: 14px 14px 0 var(--red), 14px 14px 0 6px var(--ink);
  transform: rotate(2deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-12px); }
}

.sticker {
  position: absolute;
  left: -22px;
  bottom: 36px;
  padding: 14px 18px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.05;
  text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: 4px 4px 0 var(--ink);
}

/* the look */
.kit {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 96px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.kit article {
  padding: 28px;
  border-radius: 20px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.kit article:nth-child(1) { background: var(--blonde); }
.kit article:nth-child(2) { background: var(--cream); }
.kit article:nth-child(3) { background: var(--red); color: #fff; }

.num {
  font-family: var(--display);
  font-size: 14px;
  opacity: .7;
}

.kit h2 {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  text-transform: uppercase;
}

.kit p { margin: 0; font-size: 16px; line-height: 1.55; }

/* footer */
.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid rgba(255, 245, 228, .15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 15px;
}
.foot-brand img { width: 32px; height: 32px; border-radius: 50%; }

.foot-links { display: flex; gap: 20px; }
.foot-links a {
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  padding: 10px 0;
}
.foot-links a:hover { color: var(--yellow); }

.foot-note {
  width: 100%;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 16px;
  }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; width: 100%; }
  .sticker { left: -8px; }
  .kit { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .top { padding: 16px; }
  .top-x span { display: none; }
  .hero, .kit, .foot { padding-left: 16px; padding-right: 16px; }
  .btn { flex: 1 1 auto; }
  .frame { box-shadow: 8px 8px 0 var(--red), 8px 8px 0 5px var(--ink); }
}


/* ============ animations ============ */

/* twinkling stars + shooting stars */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sky .tw {
  position: absolute;
  width: var(--s, 2px); height: var(--s, 2px);
  border-radius: 50%;
  background: #fff;
  opacity: .2;
  animation: twinkle var(--t, 3s) ease-in-out var(--dl, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .15; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.3); }
}
.sky .shoot {
  position: absolute;
  width: 160px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 70%, var(--yellow));
  transform: rotate(-18deg);
  animation: shoot 1.1s ease-out forwards;
}
@keyframes shoot {
  0% { opacity: 0; translate: 0 0; }
  15% { opacity: 1; }
  100% { opacity: 0; translate: 520px -170px; }
}

/* hero entrance */
.js .enter { opacity: 0; animation: rise .7s cubic-bezier(.2,.9,.3,1.3) var(--d, 0ms) forwards; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.js .ticker.enter { animation-name: drop; }
@keyframes drop {
  0% { opacity: 0; transform: translateY(-40px) rotate(-14deg); }
  70% { opacity: 1; transform: translateY(4px) rotate(2deg); }
  100% { opacity: 1; transform: rotate(-2deg); }
}

.title .ch {
  display: inline-block;
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), color .2s;
}
.js .title .ch {
  opacity: 0;
  animation: fly-in .8s cubic-bezier(.2,.9,.25,1.25) forwards;
  animation-delay: calc(150ms + var(--i) * 55ms);
}
@keyframes fly-in {
  0% { opacity: 0; transform: translate(-120px, 40px) rotate(-20deg) scale(.6); }
  100% { opacity: 1; transform: none; }
}
.js .title .ch.done { animation: none; opacity: 1; }
.js .title .ch.done.hop { animation: hop .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes hop {
  0% { transform: none; }
  40% { transform: translateY(-22px) rotate(-6deg); color: var(--yellow); }
  100% { transform: none; }
}

.js .enter-art { opacity: 0; animation: swoop 1.1s cubic-bezier(.2,.9,.25,1.1) .25s forwards; }
@keyframes swoop {
  0% { opacity: 0; transform: translate(180px, -120px) rotate(12deg) scale(.8); }
  100% { opacity: 1; transform: none; }
}

/* 3D tilt on pointer */
.hero-art { perspective: 1000px; }
.tilt {
  position: relative;
  z-index: 1;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
  transform-style: preserve-3d;
}

/* flying speed lines behind the picture */
.speed { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.speed i {
  position: absolute;
  right: -40px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 245, 228, .55);
  animation: whoosh 1.6s linear infinite;
}
.speed i:nth-child(1) { top: 12%; width: 120px; animation-delay: 0s; }
.speed i:nth-child(2) { top: 28%; width: 70px; animation-delay: .5s; background: var(--yellow); }
.speed i:nth-child(3) { top: 46%; width: 150px; animation-delay: .9s; }
.speed i:nth-child(4) { top: 63%; width: 90px; animation-delay: .3s; background: var(--red); }
.speed i:nth-child(5) { top: 80%; width: 130px; animation-delay: 1.2s; }
.speed i:nth-child(6) { top: 94%; width: 60px; animation-delay: .7s; background: var(--yellow); }
@keyframes whoosh {
  0% { transform: translateX(0) scaleX(.3); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(-640px) scaleX(1.4); opacity: 0; }
}

/* sticker wiggle */
.sticker { z-index: 2; animation: wiggle 4s ease-in-out 1.6s infinite; cursor: default; }
@keyframes wiggle {
  0%, 84%, 100% { transform: rotate(-8deg) scale(1); }
  88% { transform: rotate(-14deg) scale(1.08); }
  92% { transform: rotate(-2deg) scale(1.08); }
  96% { transform: rotate(-10deg) scale(1); }
}
.sticker:hover { animation: wiggle-fast .5s ease-in-out infinite; }
@keyframes wiggle-fast {
  0%, 100% { transform: rotate(-8deg) scale(1.1); }
  50% { transform: rotate(-2deg) scale(1.1); }
}

/* buttons: little jelly on hover */
.btn:hover { animation: jelly .5s ease; }
@keyframes jelly {
  0% { transform: translate(-2px, -2px) scale(1); }
  30% { transform: translate(-2px, -2px) scale(1.08, .92); }
  50% { transform: translate(-2px, -2px) scale(.95, 1.05); }
  70% { transform: translate(-2px, -2px) scale(1.03, .97); }
  100% { transform: translate(-2px, -2px) scale(1); }
}

/* cards: reveal + hover tilt */
.js .reveal { opacity: 0; transform: translateY(50px) rotate(-3deg); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.9,.25,1.3); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in:nth-child(2) { transition-delay: .12s; }
.js .reveal.in:nth-child(3) { transition-delay: .24s; }
.kit article { transition: transform .3s cubic-bezier(.3,1.6,.5,1), box-shadow .3s; }
.js .kit article.in:hover,
.kit article:hover { transform: translate(-4px, -6px) rotate(-1.5deg); box-shadow: 10px 12px 0 var(--ink); transition-delay: 0s; }

/* click bursts */
.burst {
  position: fixed;
  z-index: 50;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  pointer-events: none;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: burst .8s cubic-bezier(.1,.8,.3,1) forwards;
}
@keyframes burst {
  0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1.2) rotate(var(--r)); opacity: 0; }
}
.pop {
  position: fixed;
  z-index: 51;
  pointer-events: none;
  padding: 6px 12px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  font-family: var(--display);
  font-size: 18px;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
  animation: pop 1s cubic-bezier(.2,1.6,.4,1) forwards;
}
@keyframes pop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-20deg); opacity: 1; }
  30% { transform: translate(-50%, -110%) scale(1.15) rotate(-6deg); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(-50%, -170%) scale(1) rotate(-6deg); opacity: 0; }
}

.brand img { transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(360deg) scale(1.1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .enter, .js .enter-art, .js .title .ch, .js .reveal { opacity: 1 !important; transform: none !important; }
  .sky, .speed { display: none; }
}
