@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;
  }
}

/* Freeze demo: the duel's frozen board as in the game (src/pages/duel/freeze/style.scss) */
.freeze {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 64px;
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .freeze {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.freeze-facts {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.freeze-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(140, 205, 255, 0.09), rgba(140, 205, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(191, 230, 255, 0.14);
}
.freeze-facts b {
  font-weight: 600;
  color: #e6f6ff;
}
.freeze-facts span {
  font-size: 15px;
  color: var(--text-2);
}
.freeze-demo {
  justify-self: center;
  padding: 28px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (max-width: 420px) {
  .freeze-demo {
    padding: 16px;
  }
}

.frostBoard {
  position: relative;
}
.frostBoard > .board {
  transition: filter 600ms var(--ease);
}
.frostBoard.on > .board {
  filter: saturate(0.35) brightness(1.08) hue-rotate(-8deg);
  animation: frostHit 420ms var(--ease) both;
}
@keyframes frostHit {
  0% { translate: 0 0; }
  20% { translate: -5px 0; }
  40% { translate: 4px 0; }
  60% { translate: -3px 0; }
  80% { translate: 1px 0; }
  100% { translate: 0 0; }
}

.frostLayer {
  position: absolute;
  inset: -10px;
  z-index: 3;
  overflow: hidden;
  border-radius: 16px;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(170, 220, 255, 0.1) 0%, rgba(170, 220, 255, 0.22) 60%, rgba(220, 242, 255, 0.42) 100%),
    linear-gradient(180deg, rgba(150, 205, 245, 0.16), rgba(90, 150, 200, 0.1));
  box-shadow:
    inset 0 0 0 1px rgba(191, 230, 255, 0.38),
    inset 0 0 28px rgba(190, 232, 255, 0.45),
    inset 0 0 70px rgba(150, 210, 255, 0.18);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  clip-path: circle(0% at 50% 50%);
  opacity: 0;
}
.frostBoard.on > .frostLayer {
  opacity: 1;
  animation: frostSpread 650ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.frostBoard.thaw > .frostLayer {
  clip-path: circle(150% at 50% 50%);
  animation: frostMelt 700ms var(--ease) forwards;
}
.frostCrystals {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    repeating-conic-gradient(from 0deg at 0% 0%, rgba(235, 248, 255, 0.5) 0deg 1.2deg, transparent 1.2deg 7deg),
    repeating-conic-gradient(from 90deg at 100% 0%, rgba(235, 248, 255, 0.45) 0deg 1deg, transparent 1deg 8deg),
    repeating-conic-gradient(from 180deg at 100% 100%, rgba(235, 248, 255, 0.5) 0deg 1.2deg, transparent 1.2deg 7deg),
    repeating-conic-gradient(from 270deg at 0% 100%, rgba(235, 248, 255, 0.45) 0deg 1deg, transparent 1deg 8deg);
  -webkit-mask:
    radial-gradient(circle at 0% 0%, #000 0, transparent 90px),
    radial-gradient(circle at 100% 0%, #000 0, transparent 80px),
    radial-gradient(circle at 100% 100%, #000 0, transparent 90px),
    radial-gradient(circle at 0% 100%, #000 0, transparent 80px);
  mask:
    radial-gradient(circle at 0% 0%, #000 0, transparent 90px),
    radial-gradient(circle at 100% 0%, #000 0, transparent 80px),
    radial-gradient(circle at 100% 100%, #000 0, transparent 90px),
    radial-gradient(circle at 0% 100%, #000 0, transparent 80px);
}
.frostBoard.on .frostCrystals {
  animation: frostCrystals 900ms 250ms var(--ease) forwards;
}
.frostBoard.thaw .frostCrystals {
  opacity: 1;
}
.frostShine {
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, 0.22) 50%, transparent 56%);
  translate: -60% 0;
  animation: frostShine 3.2s 500ms var(--ease) infinite;
}
.frostSnow i {
  position: absolute;
  top: -16px;
  display: block;
  color: rgba(235, 248, 255, 0.85);
  filter: drop-shadow(0 0 3px rgba(190, 232, 255, 0.8));
  animation-name: frostFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.frostSnow svg {
  display: block;
  width: 100%;
  height: 100%;
}
@keyframes frostSpread {
  to { clip-path: circle(150% at 50% 50%); }
}
@keyframes frostCrystals {
  to { opacity: 1; }
}
@keyframes frostMelt {
  from { opacity: 1; filter: blur(0); translate: 0 0; }
  to { opacity: 0; filter: blur(6px); translate: 0 10px; }
}
@keyframes frostShine {
  0%, 55% { translate: -60% 0; }
  100% { translate: 60% 0; }
}
@keyframes frostFall {
  from { translate: 0 0; rotate: 0deg; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  to { translate: var(--drift, 0) 340px; rotate: 180deg; opacity: 0; }
}

/* The note in the middle of the frozen board */
.frostNote {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(36, 62, 84, 0.94), rgba(20, 36, 50, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(191, 230, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(140, 205, 255, 0.18);
  color: #e6f6ff;
  text-align: center;
  translate: -50% -50%;
}
.frostBoard.on > .frostNote {
  display: flex;
  animation: frostNoteIn 420ms 200ms var(--ease) both;
}
@keyframes frostNoteIn {
  from { opacity: 0; scale: 0.92; }
  to { opacity: 1; scale: 1; }
}
.frostNoteIcon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 230, 255, 0.22), rgba(191, 230, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(191, 230, 255, 0.38);
}
.frostNoteIcon svg {
  width: 22px;
  height: 22px;
  color: #e6f6ff;
  filter: drop-shadow(0 0 6px rgba(170, 225, 255, 0.9));
  animation: freezeIconTurn 8s linear infinite;
}
@keyframes freezeIconTurn {
  to { rotate: 360deg; }
}
.frostNoteText {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
}
/* Empties as the thaw comes */
.frostThaw {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 220px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  background: rgba(191, 230, 255, 0.08);
  color: #bfe6ff;
  box-shadow: inset 0 0 0 1px rgba(191, 230, 255, 0.24);
}
.frostThawFill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(191, 230, 255, 0.28), rgba(191, 230, 255, 0.14));
}
.frostBoard.on .frostThawFill {
  animation: frostThawFill 10s linear forwards;
}
@keyframes frostThawFill {
  from { width: 100%; }
  to { width: 0%; }
}
.frostThawText {
  position: relative;
  font-variant-numeric: tabular-nums;
}

/* After the thaw: the game's iced «Սառեցնել» button brings the ice back */
.freezeAgain {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  translate: -50% -50%;
  font: 500 16px/1 var(--sans);
  cursor: pointer;
  background: linear-gradient(160deg, #2f526d 0%, #1f374b 55%, #172a3a 100%);
  color: #e6f6ff;
  box-shadow:
    inset 0 0 0 1px rgba(191, 230, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -6px 12px rgba(120, 190, 240, 0.18),
    0 0 14px rgba(140, 205, 255, 0.16),
    0 12px 30px rgba(0, 0, 0, 0.45);
  transition: box-shadow 160ms var(--ease);
}
.freezeAgain:hover {
  box-shadow:
    inset 0 0 0 1px rgba(191, 230, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -6px 12px rgba(120, 190, 240, 0.18),
    0 0 20px rgba(140, 205, 255, 0.3),
    0 12px 30px rgba(0, 0, 0, 0.45);
}
.freezeAgain svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 4px rgba(170, 225, 255, 0.85));
}
.frostBoard.off > .freezeAgain {
  display: inline-flex;
  animation: frostNoteIn 300ms var(--ease) both;
}
@media (prefers-reduced-motion: reduce) {
  .frostBoard.on > .frostLayer {
    clip-path: none;
  }
  .frostBoard.on .frostCrystals {
    opacity: 1;
  }
  .frostBoard.thaw > .frostLayer {
    opacity: 0;
  }
}
