:root {
  --ink: #14181f;
  --ink-soft: #2a3140;
  --paper: #f2f5f8;
  --paper-2: #e4ebf2;
  --coral: #ff4d2e;
  --coral-deep: #e03a1c;
  --mint: #1fbf9a;
  --amber: #f0a202;
  --line: rgba(20, 24, 31, 0.1);
  --shadow: 0 18px 50px rgba(20, 24, 31, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(255, 77, 46, 0.14), transparent 55%),
    radial-gradient(900px 600px at -10% 20%, rgba(31, 191, 154, 0.12), transparent 50%),
    linear-gradient(160deg, #f7fafc 0%, var(--paper) 45%, var(--paper-2) 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.35rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.brand-lockup {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff6a45 0%, var(--coral) 55%, #ffb347 120%);
  box-shadow: 0 8px 18px rgba(255, 77, 46, 0.28);
}

.brand-lockup-c {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1;
}

.brand-mark-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  line-height: 1;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: 1.2rem;
  color: #0b0d12;
}

.brand-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
  padding: 0.18rem 0.45rem;
  border: 1.5px solid rgba(224, 58, 28, 0.35);
  border-radius: 999px;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: var(--ink);
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 2.35rem;
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232a3140' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    right 0.7rem center / 10px no-repeat;
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
}

.lang-switch select:focus {
  outline: 2px solid rgba(255, 77, 46, 0.35);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[dir="rtl"] .site-nav,
html[dir="rtl"] .nav-right,
html[dir="rtl"] .cta-row,
html[dir="rtl"] .store-links,
html[dir="rtl"] .game-top,
html[dir="rtl"] .site-footer {
  direction: rtl;
}

html[dir="rtl"] .lang-switch select {
  background-position: left 0.7rem center;
  padding: 0.4rem 0.75rem 0.4rem 2rem;
}

.hero {
  position: relative;
  min-height: 72vh;
  min-height: 72dvh;
  display: grid;
  align-items: center;
  padding: 7rem 1rem 3rem;
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 12%, rgba(255, 77, 46, 0.16), transparent 60%),
    radial-gradient(700px 480px at 10% 75%, rgba(31, 191, 154, 0.12), transparent 55%),
    linear-gradient(165deg, #f8fafc 0%, #eef3f8 48%, #e6edf5 100%);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.25) 0%, rgba(248, 250, 252, 0.7) 70%, rgba(248, 250, 252, 0.96) 100%),
    url("../images/game-bg.png") center / cover no-repeat;
  opacity: 0.22;
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
  max-width: 46rem;
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.hero-brand {
  margin: 0 0 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.75rem;
}

.hero-brand-main {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: #0b0d12;
}

.hero-brand-sub {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--coral);
  padding: 0.35rem 0.7rem;
  border-radius: 0.55rem;
  box-shadow: 0 10px 24px rgba(255, 77, 46, 0.28);
  transform: translateY(-0.15em);
}

.hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink-soft);
  max-width: 28rem;
}

.hero-lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  color: #4a5568;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 77, 46, 0.28);
}

.btn-primary:hover {
  background: var(--coral-deep);
}

.btn-secondary {
  background: #fff;
  border-color: rgba(20, 24, 31, 0.12);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0 1rem;
}

.section-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(20, 24, 31, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(18px);
}

.game.is-in {
  opacity: 1;
  transform: translateY(0);
}

.game:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.game-top {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.game-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(20, 24, 31, 0.12);
}

.game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-meta h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.game-tag {
  display: inline-block;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.game p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

.store-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.store-link:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
  background: #fff7f4;
}

.game-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 2rem;
}

.game-jump a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.game-jump a:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
}

.feature {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.feature.is-in {
  opacity: 1;
  transform: none;
}

.feature-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.12);
}

.feature-head h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.feature-intro {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 40rem;
}

.feature-about {
  margin: 0;
  max-width: 46rem;
  color: #4a5568;
  font-size: 1.02rem;
}

.feature-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 200px));
  gap: 0.85rem;
  justify-content: start;
}

.feature-shots img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(20, 24, 31, 0.12);
  background: #fff;
}

.feature-videos h4,
.feature-cols h4 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0d12;
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.12);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature-why h4 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.feature-why ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
  color: #4a5568;
  max-width: 40rem;
}

.feature-cols {
  display: none;
}

.feature .store-links {
  margin-top: 0.25rem;
}

.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 3rem auto 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@keyframes drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); }
}

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

@media (max-width: 719px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 5.75rem 1rem 2rem;
  }

  .hero-brand-sub {
    transform: none;
  }
}
