/* NumberFall landing - palette mirrors src/game/palette.ts */

:root {
  --bg: #0e1226;
  --panel: #161c3a;
  --edge: #232b58;
  --slot: #1b2148;
  --danger: #ff5d73;
  --text: #ffffff;
  --muted: #8d97c8;
  --green: #3ddc84;
  --gold: #ffd93d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--green);
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 72px 0 56px;
}

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

.brand {
  margin: 0;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand .fall {
  color: var(--green);
}

.tagline {
  margin: 14px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 170px;
  min-height: 56px;
  padding: 8px 18px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: #05070f;
  color: var(--text);
  text-decoration: none;
  position: relative;
}

.badge small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge strong {
  font-size: 19px;
  font-weight: 800;
}

.badge .soon {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #0e1226;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.play-web {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--green);
  border-bottom: 4px solid #227949;
  color: #0b3321;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.play-web:hover {
  filter: brightness(1.06);
}

/* ------------------------------------------------------------ CSS board */

.board {
  flex-shrink: 0;
  width: 300px;
  padding: 14px;
  border-radius: 20px;
  background: var(--panel);
  border: 2px solid var(--edge);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.spawn {
  position: relative;
  height: 66px;
}

.spawn .tile {
  position: absolute;
  left: 108px;
  animation: bob 2.6s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.danger {
  height: 0;
  margin: 0 2px 8px;
  border-top: 3px dashed var(--danger);
  opacity: 0.75;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--slot);
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  border-bottom: 5px solid rgba(0, 0, 0, 0.45);
}

.grid .tile {
  width: auto;
  height: auto;
  aspect-ratio: 1;
}

.t2 {
  background: #35b1ff;
}
.t4 {
  background: #3ddc84;
}
.t8 {
  background: #ffb02e;
}
.t16 {
  background: #ff6b6b;
}
.t32 {
  background: #b15dff;
}
.t64 {
  background: #2ee6d6;
}
.t128 {
  background: #ff7ab6;
}
.t256 {
  background: #ffd93d;
}
.t512 {
  background: #6c7bff;
}
.t1024 {
  background: #ff8e3c;
}

/* -------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 64px;
}

.card {
  padding: 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--edge);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.card .hl {
  color: var(--gold);
  font-weight: 800;
}

/* ---------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--edge);
  padding: 26px 0 40px;
  font-size: 13.5px;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}

footer a {
  color: var(--muted);
}

/* ---------------------------------------------------------- privacy page */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.doc h1 {
  font-size: 34px;
  font-weight: 900;
}

.doc h2 {
  margin-top: 36px;
  font-size: 20px;
  font-weight: 800;
}

.doc p,
.doc li {
  color: #c6cdf0;
  font-size: 15.5px;
}

.doc .back {
  font-weight: 700;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 760px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 44px;
  }

  .hero-copy {
    max-width: none;
  }

  .cta-row,
  .play-web {
    justify-content: center;
  }

  .brand {
    font-size: 42px;
  }

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