/* ============================================================
   meeple · landing — playful / toy-like board game aesthetic
   ============================================================ */

:root {
  /* Brand palette pulled from the meeple key art */
  --paper:    #f4efe1;
  --paper-2:  #ece4d0;
  --ink:      #15324a;
  --ink-soft: #2c4a63;
  --teal:     #25b3c2;
  --teal-dk:  #1a8d9b;
  --yellow:   #ffc12e;
  --blue:     #2f63c7;
  --purple:   #8a55d6;
  --red:      #e34a3c;
  --green:    #6cb547;
  --pink:     #ef5da8;

  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-soft: 0 18px 40px -18px rgba(21, 50, 74, .45);

  --font-display: "Lilita One", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --radius: 22px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(21, 50, 74, .07) 1px, transparent 0);
  background-size: 22px 22px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--yellow); color: var(--ink); }

/* ---------- Decorative floating field ---------- */
.confetti-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.float-piece {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  transform: rotate(var(--r));
  animation: bob 6s ease-in-out infinite;
  animation-delay: var(--d);
  opacity: .9;
  will-change: transform;
}
.dice--red    { color: var(--red); }
.dice--purple { color: var(--purple); }
.dice--yellow { color: var(--yellow); }
.dice--blue   { color: var(--blue); }
.star  { color: var(--yellow); font-size: clamp(1rem, 2.4vw, 2rem); }
.star--sm { color: var(--teal); }

@keyframes bob {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50%      { transform: rotate(calc(var(--r) + 4deg)) translateY(-16px); }
}

/* ---------- Layout helpers ---------- */
main { position: relative; z-index: 1; }
section { position: relative; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem clamp(1.1rem, 4vw, 2.4rem);
  backdrop-filter: blur(6px);
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 2px solid rgba(21,50,74,.08);
  z-index: -1;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand__meep { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(2px 2px 0 var(--ink)); }
.brand__word {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: .5px;
  background: linear-gradient(92deg, var(--blue) 0 30%, var(--teal) 30% 55%, var(--red) 55% 75%, var(--yellow) 75% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  line-height: 1;
}
.nav__links { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.8rem); font-weight: 800; }
.nav__links a { transition: color .2s; }
.nav__links a:not(.nav__cta):hover { color: var(--teal-dk); }
.nav__cta {
  background: var(--ink);
  color: var(--paper);
  padding: .5rem 1.1rem;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--teal);
  transition: transform .15s, box-shadow .15s;
}
.nav__cta:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--teal); }

/* ---------- HERO ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.1rem, 4vw, 2.4rem) 2rem;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .8rem;
  color: var(--teal-dk);
  background: #fff;
  padding: .5rem .9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-hard);
  border: 2px solid var(--ink);
}
.kicker__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 30%, transparent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.3); } }

.hero__title {
  font-family: var(--font-display);
  line-height: .92;
  margin: 1.1rem 0 1.2rem;
  text-transform: uppercase;
}
.hero__title .line { display: block; }
.line--banner {
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  color: var(--ink-soft);
  letter-spacing: 1px;
}
.line--big {
  font-size: clamp(3.4rem, 10vw, 6.6rem);
  color: var(--ink);
  text-shadow: 2px 4px 0 rgba(21, 50, 74, .14);
}
.line--accent {
  font-size: clamp(2.2rem, 6.2vw, 4rem);
  color: var(--teal);
  -webkit-text-stroke: 2.5px var(--ink);
  paint-order: stroke fill;
  transform: rotate(-2deg);
  transform-origin: left;
}
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 34ch;
  color: var(--ink-soft);
  font-weight: 600;
}
.hero__lead strong { color: var(--red); }

/* signup */
.signup { margin-top: 1.6rem; max-width: 460px; }
.signup__row {
  display: flex;
  gap: .6rem;
  background: #fff;
  padding: .5rem;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-hard);
}
.signup__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  padding: .35rem .9rem;
  min-width: 0;
}
.signup__input::placeholder { color: #9aa6ad; }
.signup__input:focus { outline: none; }
.signup__hint {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: .6rem 0 0 .9rem;
}
.signup__hint.is-ok { color: var(--green); }
.signup__hint.is-err { color: var(--red); }

.btn {
  font-family: var(--font-display);
  letter-spacing: .5px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: .65rem 1.3rem;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .14s ease, box-shadow .14s ease, background .2s;
}
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn--dark    { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--teal); }
.btn:hover    { transform: translate(-2px,-2px); }
.btn--primary:hover { box-shadow: 5px 5px 0 var(--ink); background: #ffce55; }
.btn--dark:hover { box-shadow: 5px 5px 0 var(--teal); }
.btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }

/* pills */
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
  list-style: none;
  font-weight: 800;
}
.hero__pills li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .35rem .9rem .35rem .45rem;
  font-size: .92rem;
}
.pill__ico {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: .85rem;
}
.pill__ico[data-c="teal"]   { background: var(--teal); }
.pill__ico[data-c="purple"] { background: var(--purple); color:#fff; }
.pill__ico[data-c="yellow"] { background: var(--yellow); }

/* hero art */
.hero__art { position: relative; justify-self: center; }
.art__frame {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(2deg);
  transition: transform .4s cubic-bezier(.2,.9,.3,1.2);
}
.art__frame:hover { transform: rotate(0deg) scale(1.02); }
.art__frame img { width: min(480px, 78vw); height: auto; }
.art__badge {
  position: absolute;
  top: 14px; left: -42px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .4rem 3rem;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
  z-index: 2;
  font-size: .85rem;
}
.art__shadow {
  position: absolute;
  inset: auto 8% -22px 8%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(21,50,74,.28), transparent 70%);
  z-index: -1;
}
/* ---------- MARQUEE ---------- */
.marquee {
  margin-top: 1rem;
  background: var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  transform: rotate(-1.4deg) scale(1.03);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: scroll 22s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 2px;
  padding: .55rem 0;
  text-transform: uppercase;
}
.marquee__track span:nth-child(2) { color: var(--teal); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- FEATURES ---------- */
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.4rem);
}
.section-head { text-align: center; margin-bottom: 2.8rem; }
.section-head__tag {
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .78rem;
  color: var(--purple);
  background: color-mix(in srgb, var(--purple) 16%, #fff);
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}
.section-head h2 em {
  font-style: normal;
  color: var(--teal);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.card {
  position: relative;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.8rem;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translate(-3px,-3px); box-shadow: 12px 12px 0 var(--ink); }
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
}
.card--teal::before   { background: var(--teal); }
.card--purple::before { background: var(--purple); }
.card--yellow::before { background: var(--yellow); }
.card__ico {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  font-size: 1.8rem;
  border-radius: 18px;
  border: 3px solid var(--ink);
  margin-bottom: 1.1rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.card--teal   .card__ico { background: color-mix(in srgb, var(--teal) 28%, #fff); }
.card--purple .card__ico { background: color-mix(in srgb, var(--purple) 22%, #fff); }
.card--yellow .card__ico { background: color-mix(in srgb, var(--yellow) 35%, #fff); }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.card p { color: var(--ink-soft); font-weight: 600; }
.card__soon {
  display: inline-block;
  margin-top: 1rem;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: 1px;
  padding: .3rem .7rem;
  border-radius: 999px;
}
.card__corner {
  position: absolute;
  bottom: -30px; right: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: currentColor;
  opacity: .08;
}
.card--teal   { color: var(--teal); }
.card--purple { color: var(--purple); }
.card--yellow { color: var(--yellow); }
.card h3, .card p, .card__ico { color: var(--ink); }

/* ---------- CTA BAND ---------- */
.cta-band {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.1rem, 4vw, 2.4rem);
}
.cta-band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--teal);
  border: 4px solid var(--ink);
  border-radius: 30px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band__inner::after {
  content: "🎲";
  position: absolute;
  font-size: 11rem;
  right: -1.5rem; bottom: -3rem;
  opacity: .14;
  transform: rotate(-18deg);
}
.cta-band__text h2 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: .95;
  text-transform: uppercase;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}
.cta-band__text h2 .hl { color: var(--yellow); }
.cta-band__text p {
  color: var(--ink);
  font-weight: 700;
  margin-top: .7rem;
  max-width: 40ch;
}
.signup--band { margin-top: 0; position: relative; z-index: 1; }
.signup__hint--band { color: var(--ink); }

/* Instagram follow CTA (replaces the email form in the band) */
.follow { position: relative; z-index: 1; }
.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: .65rem 1.2rem .65rem .7rem;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ig-btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.ig-btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.ig-btn__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 2px 2px 0 var(--ink);
  flex-shrink: 0;
}
.ig-btn__txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.ig-btn__label { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); letter-spacing: .3px; }
.ig-btn__handle { font-weight: 800; font-size: .92rem; color: var(--purple); }
.ig-btn__arrow { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-left: .2rem; transition: transform .15s ease; }
.ig-btn:hover .ig-btn__arrow { transform: translateX(4px); }
.follow__hint { font-weight: 700; color: var(--ink); font-size: .88rem; margin: .75rem 0 0 .3rem; }

/* ---------- FOOTER ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem clamp(1.1rem, 4vw, 2.4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  border-top: 2px dashed rgba(21,50,74,.25);
}
.brand__word--sm { font-size: 1.6rem; }
.footer__brand p { font-weight: 600; color: var(--ink-soft); margin-top: .2rem; }
.footer__social { display: flex; gap: 1.2rem; font-weight: 800; }
.footer__social a { transition: color .2s; }
.footer__social a:hover { color: var(--teal-dk); }
.footer__legal { width: 100%; font-weight: 600; color: var(--ink-soft); font-size: .88rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .7s cubic-bezier(.2,.8,.25,1) forwards;
  animation-delay: calc(var(--i, 0) * .12s);
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .kicker, .hero__pills { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .signup { margin-inline: auto; }
  .hero__art { order: -1; margin-bottom: .5rem; }
  .cards { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .signup__row { flex-direction: column; border-radius: 22px; }
  .signup__row .btn { width: 100%; }
  .line--accent { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
