/* Woolly Wins — sky hill + bento + flock cascade (market art: blue/green, yellow knobs) */

:root {
  --sky-top: #b8e8ff;
  --sky-soft: #e8f7ff;
  --grass: #6cd45a;
  --grass-deep: #1f5c32;
  --grass-mid: #3d9e4a;
  --hill: #7dde62;
  --sun: #ffd54a;
  --sun-deep: #e6b800;
  --coral: #ff6b6b;
  --coral-deep: #e04f4f;
  --wool: #ffffff;
  --ink: #0f3d28;
  --ink-soft: rgba(15, 61, 40, 0.72);
  --shadow: 0 16px 40px rgba(15, 61, 40, 0.12);
  --radius: 24px;
  --radius-pill: 999px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sky-soft);
  overflow-x: hidden;
}

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

a {
  color: var(--grass-mid);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--wool);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.sky-hill__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-soft) 45%, #f4fff0 100%);
}

.sky-hill__hill {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 42vh;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, var(--hill) 0%, var(--grass) 55%, transparent 72%);
  opacity: 0.55;
}

.wool-puff {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--wool), #eef2f5);
  box-shadow: inset -4px -6px 12px rgba(15, 61, 40, 0.06), 0 8px 20px rgba(15, 61, 40, 0.08);
  animation: float-puff 7s ease-in-out infinite;
}

.wool-puff--1 {
  width: 64px;
  height: 64px;
  top: 18%;
  left: 6%;
}

.wool-puff--2 {
  width: 42px;
  height: 42px;
  top: 28%;
  right: 10%;
  animation-delay: -2s;
}

.wool-puff--3 {
  width: 52px;
  height: 52px;
  bottom: 22%;
  left: 14%;
  animation-delay: -4s;
}

@keyframes float-puff {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Crest nav — sits on green lip */
.crest-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 1rem;
}

.crest-nav__crest {
  max-width: 1120px;
  margin: 0 auto;
  height: 10px;
  background: var(--grass);
  border-radius: 20px 20px 0 0;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.crest-nav__bar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 3px solid var(--grass);
  border-top: none;
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease;
}

.crest-nav.is-scrolled .crest-nav__bar {
  box-shadow: 0 20px 48px rgba(15, 61, 40, 0.16);
}

.crest-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--grass-deep);
  text-decoration: none;
}

.crest-nav__brand img {
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15, 61, 40, 0.15);
}

.crest-nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  margin-right: 0.35rem;
}

.crest-nav__links a {
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.crest-nav__links a:hover {
  background: rgba(108, 212, 90, 0.2);
  color: var(--grass-deep);
  text-decoration: none;
}

.crest-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.crest-nav__links ~ .crest-nav__actions {
  margin-left: 0;
}

.crest-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(15, 61, 40, 0.12);
  border-radius: 12px;
  background: var(--wool);
  cursor: pointer;
}

.crest-nav__burger span {
  display: block;
  height: 2px;
  margin: 0 10px;
  background: var(--ink);
}

@media (min-width: 880px) {
  .crest-nav__links {
    display: flex;
  }
  .crest-nav__burger {
    display: none;
  }
}

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: 5.5rem 1.25rem 2rem;
  background: rgba(232, 247, 255, 0.97);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-sheet[hidden] {
  display: none;
}

.nav-sheet a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.85rem 1rem;
  background: var(--wool);
  border: 2px solid var(--grass);
  border-radius: 16px;
  color: var(--grass-deep);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  filter: brightness(1.03);
}

.btn--sm {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.78rem 1.4rem;
}

.btn--xl {
  font-size: 1.05rem;
  padding: 0.92rem 1.65rem;
}

.btn--block {
  width: 100%;
}

.btn--sun {
  background: linear-gradient(180deg, #ffe082, var(--sun));
  color: var(--grass-deep);
  box-shadow: 0 5px 0 var(--sun-deep), 0 12px 28px rgba(230, 184, 0, 0.35);
  border: 2px solid rgba(15, 61, 40, 0.08);
}

.btn--coral {
  background: linear-gradient(180deg, #ff8585, var(--coral));
  color: var(--wool);
  box-shadow: 0 5px 0 var(--coral-deep), 0 10px 24px rgba(224, 79, 79, 0.35);
}

.btn--grass-outline {
  background: var(--wool);
  color: var(--grass-deep);
  border: 2px solid var(--grass-mid);
  box-shadow: 0 6px 20px rgba(15, 61, 40, 0.08);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Hero — banner + overlapping device */
.hero__banner-wrap {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--wool);
  box-shadow: var(--shadow);
}

.hero__banner {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.hero__stage {
  display: grid;
  gap: 2rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 1;
  align-items: end;
}

@media (min-width: 900px) {
  .hero__stage {
    grid-template-columns: 1.05fr 0.85fr;
    margin-top: -3.5rem;
    gap: 2.5rem;
  }
}

.hero__copy {
  padding: 1.5rem 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid var(--grass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__kicker {
  margin: 0 0 0.5rem;
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grass-mid);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: var(--grass-deep);
}

.hero h1 span {
  display: block;
  color: var(--ink);
  font-size: 0.92em;
  margin-top: 0.25rem;
}

.hero__lead {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__device {
  margin: 0 auto;
  position: relative;
  max-width: 300px;
  padding: 0.65rem;
  background: linear-gradient(145deg, var(--wool), #f0f4f8);
  border: 4px solid var(--grass-deep);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero__device img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #1a1a1a;
}

.hero__tap {
  position: absolute;
  top: 12%;
  right: -8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: var(--wool);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.45);
  animation: tap-nudge 2.2s ease-in-out infinite;
}

.hero__tap svg {
  width: 22px;
  height: 22px;
}

@keyframes tap-nudge {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4px, -4px);
  }
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.section-head .eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--grass-mid);
  margin: 0 0 0.45rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin: 0;
  color: var(--grass-deep);
  line-height: 1.15;
}

.section-head h2 span {
  color: var(--coral);
}

.section-head__lead {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

/* Bento features grid */
.bento {
  margin-top: 4.5rem;
}

.bento__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bento__tile {
  padding: 1.35rem 1.25rem 1.4rem;
  background: var(--wool);
  border: 3px solid rgba(61, 158, 74, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 61, 40, 0.07);
}

.bento__tile--wide {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .bento__tile--wide:not(.bento__tile--mint) {
    grid-column: span 2;
  }
}

.bento__tile--mint {
  background: linear-gradient(135deg, #f0fff4, #e8f7ff);
  border-color: var(--grass);
}

.bento__well {
  width: 56px;
  height: 56px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff9c4, var(--sun));
  border: 3px solid #f9a825;
  box-shadow: 0 4px 0 #e6a700, inset 0 2px 4px rgba(255, 255, 255, 0.6);
  color: var(--grass-deep);
}

.bento__well svg {
  width: 26px;
  height: 26px;
}

.bento__tile h3 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  color: var(--grass-deep);
}

.bento__tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Flock cascade gallery */
.flock {
  margin-top: 4.5rem;
}

.flock__row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.flock__card {
  flex: 0 0 min(72vw, 220px);
  margin: 0;
  scroll-snap-align: center;
  padding: 0.45rem;
  background: var(--wool);
  border: 3px solid var(--grass);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.flock__card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 14px;
  background: #111;
}

.flock__card--a {
  transform: rotate(-4deg) translateY(8px);
}

.flock__card--b {
  transform: rotate(3deg) translateY(-4px);
}

.flock__card--c {
  transform: rotate(-2deg) translateY(12px);
}

.flock__card--d {
  transform: rotate(5deg) translateY(0);
}

@media (min-width: 960px) {
  .flock__row {
    justify-content: center;
    overflow: visible;
    flex-wrap: wrap;
  }
  .flock__card {
    flex: 0 0 200px;
  }
}

/* Download pod — game knob row */
.download {
  margin-top: 4.5rem;
}

.download__pod {
  text-align: center;
  padding: 2.25rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, var(--wool) 0%, #f4fff8 100%);
  border: 4px solid var(--grass);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.download__icon {
  margin: 0 auto 1rem;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15, 61, 40, 0.12);
}

.download__pod h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  margin: 0 0 0.35rem;
  color: var(--grass-deep);
}

.download__lead {
  font-weight: 700;
  color: var(--grass-mid);
  margin: 0 0 1rem;
}

.download__knobs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.download__knob {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff9c4, var(--sun));
  border: 3px solid #f9a825;
  color: var(--grass-deep);
  opacity: 0.85;
}

.download__knob--main {
  width: 68px;
  height: 68px;
  opacity: 1;
  box-shadow: 0 6px 0 #e6a700, 0 14px 28px rgba(230, 184, 0, 0.35);
}

.download__knob svg {
  width: 24px;
  height: 24px;
}

.download__knob--main svg {
  width: 30px;
  height: 30px;
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border-top: 3px solid var(--grass);
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--grass-deep);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer__links a {
  font-weight: 700;
  font-size: 0.92rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 61, 40, 0.45);
}

.modal__panel {
  position: relative;
  max-width: 400px;
  width: 100%;
  padding: 2rem 1.75rem;
  background: var(--wool);
  border-radius: var(--radius);
  border: 4px solid var(--grass);
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 61, 40, 0.2);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--sky-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--sky-top);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grass-deep);
}

.modal__panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  color: var(--grass-deep);
}

.modal__panel p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}
