:root {
  --blue: #69a8ff;
  --blue-dark: #226dda;
  --purple: #4312a4;
  --purple-deep: #130052;
  --cream: #fff7da;
  --ink: #130b25;
  --white: #ffffff;
  --soft: rgba(255, 255, 255, 0.82);
  --panel: rgba(40, 14, 119, 0.86);
  --line: rgba(255, 255, 255, 0.22);
  --shadow: 0 24px 60px rgba(18, 0, 60, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #45b9f2 url("assets/mc-background.png") center top / cover fixed no-repeat;
  color: var(--white);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(31, 183, 242, 0.1), rgba(18, 0, 82, 0.26));
  pointer-events: none;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
}

.logo-link {
  display: inline-flex;
  width: clamp(116px, 13vw, 190px);
  height: clamp(58px, 6.8vw, 94px);
  align-items: center;
  justify-content: flex-start;
}

.logo-link img,
.hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 0 rgba(0, 0, 0, 0.24)) drop-shadow(0 16px 22px rgba(0, 0, 0, 0.24));
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24, 5, 91, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.nav a,
.pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16), 0 10px 22px rgba(31, 85, 190, 0.2);
}

.nav a:hover,
.pill:hover {
  background: #7fb6ff;
  transform: translateY(-1px);
}

.pill.primary {
  background: linear-gradient(180deg, #8cc4ff, var(--blue-dark));
}

.pill.disabled {
  background: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.72);
  cursor: default;
  box-shadow: inset 0 0 0 1px var(--line);
}

main {
  width: min(1180px, calc(100% - 30px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: clamp(20px, 5vw, 70px);
  padding: 22px 0 56px;
}

.hero-copy {
  max-width: 690px;
}

.hero-logo {
  width: min(100%, 620px);
  height: auto;
  margin-bottom: 18px;
}

.hero-copy p,
.panel p,
.footer p {
  color: var(--cream);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  text-shadow: 0 2px 5px rgba(12, 0, 48, 0.34);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.milk-stage {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.milk-stage img {
  width: min(100%, 380px);
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 30px 34px rgba(17, 0, 68, 0.28));
  animation: milkBounce 2.8s ease-in-out infinite;
}

.pop {
  position: absolute;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--purple);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(18, 0, 60, 0.22);
  animation: floatPop 2.5s ease-in-out infinite;
}

.pop.one {
  top: 18%;
  left: 8%;
}

.pop.two {
  right: 4%;
  top: 38%;
  animation-delay: 0.5s;
}

.pop.three {
  left: 16%;
  bottom: 18%;
  color: #8e6300;
  background: #ffdc61;
  animation-delay: 1s;
}

.panel {
  margin: 0 0 26px;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(103, 46, 219, 0.88), rgba(26, 4, 109, 0.92));
  box-shadow: var(--shadow);
}

.announcement,
.play-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 340px);
  align-items: center;
  gap: 26px;
}

.announcement img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.2));
}

.label {
  margin: 0 0 12px;
  color: var(--soft) !important;
  font-size: 0.82rem !important;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(2.6rem, 6.5vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.55rem;
  line-height: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.feature-grid p {
  margin-bottom: 0;
  font-size: 1rem;
}

.play-panel figure {
  margin: 0;
}

.play-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 10px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.18);
}

figcaption {
  margin-top: 10px;
  color: var(--cream);
  font-weight: 900;
  text-align: center;
}

.footer {
  width: min(1180px, calc(100% - 30px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
}

.footer img {
  width: 118px;
  height: auto;
  object-fit: contain;
}

.footer p {
  margin: 0;
  color: var(--white);
  font-size: 0.95rem;
}

@keyframes milkBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.025);
  }
}

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

@media (max-width: 850px) {
  body {
    background-attachment: scroll;
    background-position: center top;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    padding: 12px;
  }

  .logo-link {
    width: 112px;
    height: 64px;
    flex: 0 0 auto;
  }

  .nav {
    gap: 7px;
    padding: 7px;
  }

  .nav a {
    min-height: 38px;
    padding: 9px 13px;
    font-size: 0.82rem;
  }

  .hero,
  .announcement,
  .play-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .milk-stage {
    min-height: 340px;
    order: -1;
  }

  .milk-stage img {
    max-height: 320px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  main,
  .footer {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    flex-direction: column;
    gap: 8px;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .panel {
    border-radius: 24px;
    padding: 18px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .pill {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
