:root {
  --ink: #0f1f17;
  --felt: #163528;
  --felt-deep: #0b1a12;
  --bone: #f3ead7;
  --tile: #fff8ea;
  --amber: #e8a33a;
  --amber-hot: #ffb84a;
  --mute: rgba(243, 234, 215, 0.72);
  --line: rgba(243, 234, 215, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Anybody", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--bone);
  background:
    radial-gradient(ellipse 90% 60% at 80% -10%, rgba(232, 163, 58, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 100%, rgba(70, 140, 100, 0.22), transparent 50%),
    linear-gradient(165deg, var(--felt) 0%, var(--felt-deep) 55%, var(--ink) 100%);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(243, 234, 215, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 234, 215, 0.4) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

a {
  color: var(--amber-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--bone);
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 0.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--bone);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--mute);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--bone);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: end;
  min-height: calc(100vh - 5.5rem);
  padding: 2.5rem 0 3.5rem;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-copy .tag {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  font-size: 1.08rem;
  color: var(--mute);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--amber-hot);
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--bone);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(243, 234, 215, 0.35);
  color: var(--bone);
}

.board {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(145deg, #1d4634, #10261b 70%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(243, 234, 215, 0.08);
  overflow: hidden;
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.board::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(243, 234, 215, 0.18);
  border-radius: 1rem;
}

.tile {
  position: absolute;
  width: 4.4rem;
  height: 8.4rem;
  border-radius: 0.7rem;
  background: linear-gradient(180deg, var(--tile), #efe2c5);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  animation: slam 700ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.tile span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.tile span + span {
  border-top: 2px solid rgba(15, 31, 23, 0.18);
}

.tile-a {
  left: 18%;
  top: 22%;
  transform: rotate(-18deg);
  animation-delay: 120ms;
}

.tile-b {
  left: 42%;
  top: 34%;
  transform: rotate(8deg);
  animation-delay: 280ms;
}

.tile-c {
  right: 16%;
  bottom: 18%;
  transform: rotate(24deg);
  animation-delay: 420ms;
}

.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.chip {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.82rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

.legal {
  padding: 2rem 0 4rem;
  max-width: 44rem;
}

.legal h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
}

.legal .updated {
  color: var(--mute);
  margin: 0 0 2rem;
  font-size: 0.92rem;
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.legal p,
.legal li {
  color: rgba(243, 234, 215, 0.88);
}

.legal ul {
  padding-left: 1.2rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slam {
  from {
    opacity: 0;
    transform: translateY(-40px) rotate(var(--spin, 0deg)) scale(1.08);
  }
  to {
    opacity: 1;
  }
}

.tile-a { --spin: -18deg; }
.tile-b { --spin: 8deg; }
.tile-c { --spin: 24deg; }

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }

  .board {
    order: -1;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .board,
  .tile,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}
