@font-face {
  font-family: "arianamu";
  src: url("/landing/assets/arianamu-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "arianamu";
  src: url("/landing/assets/arianamu-bold.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
:root {
  --deep: #0f0e0d;
  --bg: #141312;
  --card: #1b1a18;
  --raised: #25231f;
  --line: rgba(239, 233, 222, 0.08);
  --line-strong: rgba(239, 233, 222, 0.14);
  --text: #efe9de;
  --text-2: #aaa398;
  --muted: #8a847a;
  --gold: #d99c03;
  --on-gold: #1a1406;
  --tile-green: #3d9160;
  --tile-gold: #d1961c;
  --tile-gray: #2b2926;
  --tile-empty: #1d1c1a;
  --sans: "arianamu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font: 500 16px/1 var(--sans);
  cursor: pointer;
  border: 0;
  transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.btn.primary:hover {
  background: #e6a710;
}
.btn.secondary {
  background: var(--raised);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn.secondary:hover {
  background: #2e2b26;
}
.btn.small {
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 10px;
}

.tile {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  font: 600 28px/1 var(--sans);
  color: var(--text);
  background: var(--tile-empty);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  user-select: none;
}
.tile.filled {
  background: var(--raised);
  box-shadow: inset 0 0 0 1px rgba(239, 233, 222, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: pop 120ms var(--ease);
}
.tile.correct, .tile.close, .tile.absent {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}
.tile.correct {
  background: var(--tile-green);
  color: #fff;
}
.tile.close {
  background: var(--tile-gold);
  color: var(--on-gold);
}
.tile.absent {
  background: var(--tile-gray);
  color: #a39d92;
}
.tile.flip {
  animation: flip 480ms var(--ease) both;
  animation-delay: calc(var(--i) * 180ms);
}
.tile.sm {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 19px;
  animation: none;
}

@keyframes pop {
  from {
    transform: scale(0.88);
  }
  to {
    transform: scale(1);
  }
}
@keyframes flip {
  0% {
    transform: rotateX(0);
    background: var(--raised);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(239, 233, 222, 0.22);
  }
  49% {
    transform: rotateX(90deg);
    background: var(--raised);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(239, 233, 222, 0.22);
  }
  51% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0);
  }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav .brand img {
  display: block;
  height: 38px;
  width: auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 112px;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero .accent {
  color: var(--gold);
}
.hero .lead {
  margin-top: 24px;
  max-width: 520px;
  font-size: 18px;
  color: var(--text-2);
}
.hero .note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 24px;
    padding-bottom: 80px;
    text-align: center;
  }
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .actions {
    justify-content: center;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.actions.center {
  justify-content: center;
}
@media (max-width: 480px) {
  .actions {
    flex-direction: column;
  }
  .actions .btn {
    width: 100%;
  }
}

.board-wrap {
  justify-self: center;
  padding: 28px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.board-wrap figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 420px) {
  .board-wrap {
    padding: 16px;
  }
}

.board {
  display: grid;
  gap: 8px;
  perspective: 600px;
}
.board .row {
  display: flex;
  gap: 8px;
}
.board .row.solved .tile {
  animation: bounce 360ms var(--ease) both;
  animation-delay: calc(var(--i) * 70ms);
}
@media (max-width: 420px) {
  .board .tile {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}
@media (max-width: 360px) {
  .board {
    gap: 6px;
  }
  .board .row {
    gap: 6px;
  }
  .board .tile {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
}
.replay {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--raised);
  color: var(--text-2);
  font: 500 13px/1 var(--sans);
  cursor: pointer;
  transition: color 160ms var(--ease), opacity 160ms var(--ease);
}
.replay:hover:not(:disabled) {
  color: var(--text);
}
.replay:disabled {
  opacity: 0.4;
  cursor: default;
}

section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 600;
  text-wrap: balance;
}

.sub {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 17px;
}

.rules {
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--line);
}

.legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.legend .tile.sm {
  width: 48px;
  height: 48px;
  font-size: 22px;
  flex-shrink: 0;
}
.legend b {
  display: block;
  font-weight: 500;
}
.legend span:not(.tile) {
  display: block;
  font-size: 14px;
  color: var(--text-2);
}
@media (max-width: 800px) {
  .legend {
    grid-template-columns: 1fr;
  }
}

.features {
  padding-bottom: 96px;
}
.features .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .features .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .features .grid {
    grid-template-columns: 1fr;
  }
}
.features .card {
  padding: 24px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 160ms var(--ease);
}
.features .card:hover {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.features .card h3 {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}
.features .card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-2);
}
.features .card-tiles {
  display: flex;
  gap: 6px;
}

.steps {
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--line);
}
.steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
@media (max-width: 800px) {
  .steps ol {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.steps li {
  display: flex;
  gap: 16px;
}
.steps .num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--raised);
  color: var(--gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 36px;
}
.steps p {
  font-size: 15px;
  color: var(--text-2);
}

.cta {
  padding-bottom: 96px;
}
.cta .cta-box {
  padding: 64px 24px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
@media (max-width: 600px) {
  .cta .cta-box {
    padding: 48px 16px;
  }
}
.cta .cta-tiles {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}
.cta .actions {
  margin-top: 28px;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 32px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer a {
  transition: color 160ms var(--ease);
}
.footer a:hover {
  color: var(--text);
}

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