:root {
  color-scheme: light;
  --blue-950: #06214d;
  --blue-850: #0a3f84;
  --blue-700: #0b74d1;
  --blue-500: #14a6ff;
  --sky: #b7e7ff;
  --cream: #fff3cf;
  --glaze: #ffe7a8;
  --gold: #f7b032;
  --berry: #ff4f87;
  --mint: #7ef8ca;
  --ink: #07152d;
  --white: #fffaf0;
  --shadow: rgba(4, 16, 42, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 16% 18%, rgba(126, 248, 202, 0.28), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(255, 79, 135, 0.24), transparent 22rem),
    linear-gradient(135deg, var(--blue-950) 0%, var(--blue-850) 42%, var(--blue-700) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sprinkle-field {
  position: fixed;
  inset: 0;
  z-index: 5;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero,
.flavor-strip,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100svh - 282px);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 42px) 0 clamp(18px, 2.4vw, 34px);
}

.hero-copy {
  max-width: 560px;
  position: relative;
  z-index: 6;
}

h1 {
  max-width: 8ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(4.4rem, 11vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 42px rgba(4, 16, 42, 0.25);
}

.hero-line {
  max-width: 34rem;
  margin: 24px 0 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.36;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action {
  color: var(--ink);
  background: linear-gradient(135deg, var(--cream), var(--glaze));
  box-shadow: 0 16px 38px rgba(4, 16, 42, 0.22), inset 0 -2px 0 rgba(7, 21, 45, 0.12);
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.primary-action:active {
  transform: translateY(1px);
}

.waffnut-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(48vw, 520px);
  isolation: isolate;
  perspective: 900px;
}

.waffnut {
  width: min(100%, 540px);
  height: auto;
  transform:
    translate3d(calc(var(--tilt-x, 0) * 1px), calc(var(--tilt-y, 0) * 1px), 0)
    rotateX(calc(var(--tilt-y, 0) * -0.05deg))
    rotateY(calc(var(--tilt-x, 0) * 0.05deg));
  filter: drop-shadow(0 42px 44px rgba(4, 16, 42, 0.34));
  animation: floatWaffnut 5.8s ease-in-out infinite;
  will-change: transform;
  z-index: 3;
}

.waffnut.launched {
  animation: floatWaffnut 5.8s ease-in-out infinite, sugarPop 860ms cubic-bezier(0.16, 1, 0.3, 1);
}

.shadow {
  position: absolute;
  bottom: 9%;
  width: min(62%, 390px);
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(4, 16, 42, 0.36), rgba(4, 16, 42, 0));
  filter: blur(8px);
  transform: translateY(calc(var(--tilt-y, 0) * -0.16px));
  z-index: 1;
}

.orbit {
  position: absolute;
  width: min(78%, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 240, 0.19);
  border-radius: 999px;
  z-index: 0;
}

.orbit-one {
  transform: rotateX(64deg) rotateZ(-18deg);
}

.orbit-two {
  width: min(58%, 430px);
  border-color: rgba(126, 248, 202, 0.22);
  transform: rotateX(62deg) rotateZ(22deg);
}

.flavor-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 20px;
}

.flavor-strip article {
  min-height: 132px;
  padding: clamp(16px, 2vw, 22px);
  background: rgba(255, 250, 240, 0.11);
  border: 1px solid rgba(255, 250, 240, 0.16);
  backdrop-filter: blur(18px);
}

.flavor-strip article:first-child {
  border-radius: 8px 0 0 8px;
}

.flavor-strip article:last-child {
  border-radius: 0 8px 8px 0;
}

.flavor-strip h2 {
  margin: 10px 0 6px;
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.flavor-strip p {
  max-width: 19rem;
  margin: 0;
  color: rgba(255, 250, 240, 0.74);
  font-size: 0.9rem;
  line-height: 1.34;
}

.flavor-chip {
  display: block;
  width: 44px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(4, 16, 42, 0.18);
}

.vanilla {
  background: linear-gradient(90deg, var(--cream), var(--glaze));
}

.berry {
  background: linear-gradient(90deg, #5517c7, var(--berry));
}

.maple {
  background: linear-gradient(90deg, var(--gold), #8d4a14);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  color: rgba(255, 250, 240, 0.66);
  font-size: 0.86rem;
}

@media (min-width: 861px) {
  body {
    min-height: 100svh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  main {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
  }

  .hero {
    min-height: 0;
  }
}

@keyframes floatWaffnut {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -22px;
  }
}

@keyframes sugarPop {
  0% {
    scale: 1;
  }

  42% {
    scale: 1.09;
  }

  100% {
    scale: 1;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 100svh;
    padding-top: clamp(16px, 4vw, 28px);
    padding-bottom: 22px;
  }

  .hero-copy {
    max-width: none;
    position: relative;
    z-index: 4;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(4.45rem, 20vw, 7.1rem);
    line-height: 0.84;
  }

  .hero-line {
    max-width: 30rem;
    margin-top: 18px;
    font-size: clamp(1.05rem, 4vw, 1.28rem);
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .primary-action {
    min-height: 46px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .waffnut-stage {
    min-height: clamp(270px, 52svh, 430px);
    margin-top: clamp(-54px, -7vw, -22px);
  }

  .waffnut {
    width: min(88vw, 510px);
  }

  .shadow {
    bottom: 4%;
  }

  .flavor-strip {
    grid-template-columns: 1fr;
    margin-top: -4px;
    padding-bottom: 34px;
  }

  .flavor-strip article,
  .flavor-strip article:first-child,
  .flavor-strip article:last-child {
    border-radius: 8px;
  }
}

@media (max-width: 560px) {
  .hero,
  .flavor-strip,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    min-height: 100svh;
    padding-top: 16px;
    padding-bottom: 18px;
  }

  h1 {
    max-width: 7.6ch;
    font-size: clamp(3.9rem, 19vw, 5.35rem);
  }

  .hero-line {
    max-width: 21rem;
    margin-top: 14px;
    font-size: 1.02rem;
  }

  .hero-actions {
    display: flex;
    margin-top: 18px;
  }

  .primary-action {
    width: auto;
    min-width: 0;
    min-height: 43px;
    padding-inline: 12px;
  }

  .waffnut-stage {
    min-height: clamp(235px, 43svh, 320px);
    margin-top: -24px;
  }

  .waffnut {
    width: min(91vw, 390px);
  }

  .orbit {
    width: min(74vw, 330px);
  }

  .orbit-two {
    width: min(56vw, 250px);
  }

  .shadow {
    width: min(62vw, 260px);
    height: 34px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .sprinkle-field {
    display: none;
  }
}
