:root {
  --navy: #0f2447;
  --blue: #2b9df0;
  --coral: #f25f4c;
  --yellow: #ffd23f;
  --cream: #fbf7ef;
  --paper: #ffffff;
  --muted: #4b5a78;
  --r: 18px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; padding-bottom: 48px; background: var(--cream); color: var(--navy); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.9rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* buttons + links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--coral); color: var(--navy); font: 800 1rem var(--head); text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--navy); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { background: var(--yellow); transform: translateY(-2px); box-shadow: 0 5px 0 var(--navy); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn--full { width: 100%; }
.link { font: 700 1rem var(--head); color: var(--navy); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 85% / 0 2px no-repeat; transition: background-size .25s; padding: 12px 0; }
.link:hover { background-size: 100% 2px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 239, .92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(15, 36, 71, .1); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand img { height: 52px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: var(--navy); font: 700 .95rem var(--head); text-decoration: none; padding: 12px 0; background: linear-gradient(currentColor, currentColor) 0 85% / 0 2px no-repeat; transition: background-size .25s; }
.nav__links a:not(.btn):hover { background-size: 100% 2px; }

/* hero */
.hero { min-height: calc(100svh - 72px); display: flex; align-items: center; padding: 48px 0; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { font: 800 .85rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: #c8402f; margin-bottom: 18px; }
.lede { font-size: 1.2rem; color: var(--muted); margin: 22px 0 32px; max-width: 34em; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__art { position: relative; display: grid; place-items: center; padding: 48px 32px; background: var(--blue); border-radius: 28px; box-shadow: 10px 10px 0 var(--coral); }
.hero__art img { width: min(340px, 80%); filter: drop-shadow(0 8px 0 rgba(15, 36, 71, .15)); }

/* sections */
.sec { padding: 96px 0; }
.sec h2 { margin-bottom: 48px; }
.sec--navy { background: var(--navy); color: #fff; }

.games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.game__link { position: relative; display: block; height: 100%; padding: 20px 20px 24px; background: var(--paper); border: 2px solid var(--navy); border-radius: var(--r); color: inherit; text-decoration: none; box-shadow: 0 4px 0 var(--navy); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.game--cta .game__link { background: var(--yellow); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.game--cta .game__link p { color: var(--navy); }
.game--cta .btn { margin-top: 6px; }
.game__link:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--navy); }
.game__link img { margin-bottom: 14px; transition: transform .3s; }
.game__link:hover img { transform: scale(1.03); }
.game__link p { color: var(--muted); font-size: 1rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps h3 { margin: 18px 0 10px; }
.steps p { color: #c9d4ea; }
.step__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--navy); font: 900 1.4rem var(--head); }

.sec--signup { background: var(--blue); }
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.signup h2 { margin-bottom: 18px; }
.signup__copy p { font-size: 1.15rem; max-width: 30em; }
.form, .signup__done { background: var(--paper); border: 2px solid var(--navy); border-radius: 24px; padding: 32px; box-shadow: 8px 8px 0 var(--navy); }
.signup__done p { color: var(--muted); margin-top: 8px; }
.field { margin-bottom: 18px; }
.field label { display: block; font: 700 .95rem var(--head); margin-bottom: 6px; }
.field input { width: 100%; min-height: 48px; padding: 0 16px; border: 2px solid var(--navy); border-radius: 12px; font: 400 1rem var(--body); color: var(--navy); background: #fff; }
.field input:focus-visible { outline-offset: 2px; }
.field__err { display: block; color: #b3261e; font-size: .9rem; margin-top: 6px; }
.field__err:empty { display: none; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); cursor: pointer; }
.field--check label { font: 500 .95rem/1.4 var(--body); margin: 0; cursor: pointer; }
.field--check .field__err { grid-column: 2; margin-top: 0; }
.form__msg { margin-top: 14px; color: #b3261e; font-size: .95rem; }
.form__msg[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 0; background: rgba(251, 247, 239, .95); backdrop-filter: blur(8px); border-top: 1px solid rgba(15, 36, 71, .15); }
.foot__in { display: flex; align-items: center; gap: 14px; }
.foot__brand { display: inline-flex; border-radius: 4px; }
.foot__logo { height: 26px; width: auto; display: block; }
.foot p { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.foot__small { margin-left: auto; }

/* hero entrance: once, on load */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise .6s both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; } .hero__copy > :nth-child(3) { animation-delay: .16s; } .hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__art { animation: rise .7s .15s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__in, .signup { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .sec { padding: 64px 0; }
  .nav__links a:not(.btn) { display: none; }
  .hero__actions .btn { width: 100%; }
  .foot__in > p:not(.foot__small) { display: none; }
}
