@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400..600;1,400..600&family=Outfit:wght@600;700;800;900&display=swap');

:root {
  --ink: #f8f7fa;
  --ink-soft: #9f9aad;
  --paper: #0b090f;
  --surface: #14111d;
  --surface-strong: #1a1726;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --gold: #ffb300;
  --gold-dark: #ffa000;
  --green: #10b981;
  --red: #ef4444;
  --blue: #3b82f6;
  --plum: #6f42c1;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
  pointer-events: none;
}

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

a {
  color: inherit;
}

a,
button {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Outfit, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 24px;
  font-size: 60px;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: 56px;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
}

p {
  color: var(--ink-soft);
}

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 12px 16px;
  color: var(--ink);
  background: var(--gold);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 9, 15, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100% - 32px, var(--container));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 820;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ink-soft);
  border-radius: var(--radius);
  font-weight: 720;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links .nav-cta {
  margin-left: 8px;
  color: #111;
  background: var(--gold);
  box-shadow: 0 10px 22px rgba(255, 179, 0, 0.25);
}

.nav-links .nav-cta:hover {
  background: #ffc64f;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 88px;
}

.section-dark {
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 18%, rgba(59, 130, 246, 0.16), transparent 34%),
    radial-gradient(circle at 16% 12%, rgba(255, 179, 0, 0.14), transparent 30%),
    linear-gradient(180deg, #0e0c15 0%, #151221 100%);
}

.section-light {
  background: var(--paper);
}

.section-muted {
  background: var(--surface-strong);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 30px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 76% 42%, rgba(0, 0, 0, 0.72), transparent 62%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--red), var(--blue));
}

.hero-grid,
.section-heading,
.game-grid,
.split-layout,
.screen-gallery,
.cta-card,
.footer-grid {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 46px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 18px 0 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  background: currentColor;
  border-radius: 99px;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 820;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button-primary {
  color: #111;
  background: var(--gold);
  box-shadow: 0 16px 34px rgba(255, 179, 0, 0.28);
}

.button-primary:hover {
  background: #ffc64f;
}

.button-secondary {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 0;
}

.hero-stats div {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 860;
}

.hero-stats span {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 14px;
}

.hero-showcase {
  position: relative;
  min-height: 450px;
  isolation: isolate;
  perspective: 1100px;
}

.hero-stage {
  position: relative;
  width: 100%;
  min-height: 450px;
  transform-style: preserve-3d;
}

.hero-stage-glow {
  position: absolute;
  inset: 0 -4% -4% -2%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 54% 42%, rgba(255, 179, 0, 0.26), transparent 34%),
    radial-gradient(ellipse at 72% 34%, rgba(52, 211, 153, 0.17), transparent 28%),
    radial-gradient(ellipse at 40% 72%, rgba(96, 165, 250, 0.2), transparent 34%),
    linear-gradient(135deg, transparent 20%, rgba(255, 255, 255, 0.05), transparent 62%);
  filter: blur(24px);
  opacity: 0.9;
}

.hero-icon-cloud {
  position: absolute;
  inset: 0;
  z-index: 4;
  transform-style: preserve-3d;
}

.hero-icon-cloud::before,
.hero-icon-cloud::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 0;
  border-radius: 999px;
  pointer-events: none;
}

.hero-icon-cloud::before {
  width: 520px;
  height: 230px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 179, 0, 0.22), rgba(96, 165, 250, 0.14), transparent);
  filter: blur(18px);
  opacity: 0.58;
  transform: translate(-50%, -50%) rotate(-16deg) skewX(-12deg);
}

.hero-icon-cloud::after {
  width: 430px;
  height: 430px;
  background:
    conic-gradient(from 210deg, transparent 0deg, rgba(255, 255, 255, 0.16) 44deg, transparent 96deg, rgba(52, 211, 153, 0.12) 152deg, transparent 214deg, rgba(255, 179, 0, 0.12) 278deg, transparent 330deg);
  mask-image: radial-gradient(circle, transparent 48%, #000 51%, #000 58%, transparent 61%);
  opacity: 0.42;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-10deg);
}

.hero-icon-card {
  --size: 60px;
  --x: 0px;
  --y: 0px;
  --z: 120px;
  --r: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: var(--size);
  height: var(--size);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 22%;
  background: transparent;
  filter:
    drop-shadow(0 24px 18px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 20px rgba(255, 179, 0, 0.08));
  transform: translate3d(calc(-50% + var(--x)), calc(-50% + var(--y)), var(--z)) rotate(var(--r));
  animation: icon-card-float 7.2s ease-in-out infinite;
}

.hero-icon-card::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -16%;
  z-index: -1;
  height: 24%;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 999px;
  filter: blur(9px);
  transform: rotate(-8deg);
}

.hero-icon-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18%;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    0 2px 0 rgba(255, 255, 255, 0.16) inset;
}

.icon-card-1 { --size: 90px; --x: -34px; --y: -28px; --z: 190px; --r: -6deg; animation-delay: -0.4s; }
.icon-card-2 { --size: 84px; --x: 62px; --y: 42px; --z: 180px; --r: 7deg; animation-delay: -1.8s; }
.icon-card-3 { --size: 76px; --x: -122px; --y: 46px; --z: 158px; --r: 5deg; animation-delay: -2.2s; }
.icon-card-4 { --size: 76px; --x: 102px; --y: -88px; --z: 166px; --r: -5deg; animation-delay: -3s; }
.icon-card-5 { --size: 74px; --x: -118px; --y: -104px; --z: 152px; --r: 8deg; animation-delay: -4.1s; }
.icon-card-6 { --size: 62px; --x: -198px; --y: -12px; --z: 112px; --r: -9deg; animation-delay: -1.1s; }
.icon-card-7 { --size: 62px; --x: 164px; --y: -10px; --z: 112px; --r: 7deg; animation-delay: -2.6s; }
.icon-card-8 { --size: 60px; --x: -178px; --y: 118px; --z: 104px; --r: 6deg; animation-delay: -3.8s; }
.icon-card-9 { --size: 60px; --x: 152px; --y: 112px; --z: 106px; --r: -5deg; animation-delay: -0.9s; }
.icon-card-10 { --size: 58px; --x: -182px; --y: -176px; --z: 94px; --r: 10deg; animation-delay: -4.8s; }
.icon-card-11 { --size: 58px; --x: 142px; --y: -174px; --z: 94px; --r: -8deg; animation-delay: -5.4s; }
.icon-card-12 { --size: 60px; --x: -4px; --y: -184px; --z: 128px; --r: 4deg; animation-delay: -2.9s; }
.icon-card-13 { --size: 58px; --x: -12px; --y: 162px; --z: 122px; --r: -6deg; animation-delay: -1.5s; }
.icon-card-14 { --size: 56px; --x: -244px; --y: 58px; --z: 84px; --r: -4deg; animation-delay: -4.5s; }
.icon-card-15 { --size: 56px; --x: 196px; --y: -74px; --z: 86px; --r: 6deg; animation-delay: -2.1s; }
.icon-card-16 { --size: 56px; --x: -238px; --y: -78px; --z: 82px; --r: 5deg; animation-delay: -3.3s; }
.icon-card-17 { --size: 56px; --x: 186px; --y: 42px; --z: 84px; --r: -7deg; animation-delay: -5.8s; }
.icon-card-18 { --size: 54px; --x: -84px; --y: 218px; --z: 78px; --r: 8deg; animation-delay: -1.7s; }
.icon-card-19 { --size: 54px; --x: 84px; --y: 210px; --z: 78px; --r: -6deg; animation-delay: -3.6s; }

@keyframes icon-card-float {
  0%, 100% {
    transform: translate3d(calc(-50% + var(--x)), calc(-50% + var(--y)), var(--z)) rotate(var(--r));
  }
  50% {
    transform: translate3d(calc(-50% + var(--x)), calc(-50% + var(--y) - 10px), calc(var(--z) + 12px)) rotate(var(--r));
  }
}

.phone-stack {
  position: relative;
  min-height: 580px;
}

.phone-card {
  position: absolute;
  overflow: hidden;
  margin: 0;
  background: #08070a;
  border: 10px solid #08070a;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.phone-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-card-main {
  z-index: 2;
  right: 18%;
  bottom: 4%;
  width: min(260px, 54vw);
  aspect-ratio: 9 / 16;
}

.phone-card-side {
  z-index: 1;
  width: 180px;
  aspect-ratio: 9 / 16;
  opacity: 0.92;
}

.phone-card-top {
  top: 4%;
  right: 2%;
}

.phone-card-bottom {
  bottom: 0;
  left: 4%;
}

.showcase-panel {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 46px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(330px, 88vw);
  padding: 16px;
  color: var(--ink);
  background: rgba(20, 17, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.showcase-panel img {
  flex: 0 0 64px;
  border-radius: var(--radius);
}

.showcase-panel strong {
  display: block;
  font-size: 18px;
}

.showcase-panel span {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 650px;
  font-size: 18px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.homepage-game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.homepage-game-grid .game-card {
  min-width: 0;
  min-height: 330px;
  padding: 22px;
}

.homepage-game-grid .game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--gold));
  opacity: 0.9;
}

.homepage-game-grid .game-card::after {
  content: "";
  position: absolute;
  top: -44px;
  right: -44px;
  width: 132px;
  height: 132px;
  background: radial-gradient(circle, var(--card-glow, rgba(255, 179, 0, 0.2)), transparent 68%);
  opacity: 0.72;
  pointer-events: none;
}

.homepage-game-grid .game-icon {
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
}

.homepage-game-grid h3 {
  min-height: 48px;
  margin-bottom: 10px;
  font-size: 20px;
}

.homepage-game-grid p {
  min-height: 72px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.homepage-game-grid .store-actions {
  flex-direction: column;
  gap: 8px;
}

.homepage-game-grid .store-btn {
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 12px;
}

.homepage-game-grid .game-tag {
  margin-bottom: 12px;
}

.app-card-bead {
  --card-accent: #34d399;
  --card-glow: rgba(52, 211, 153, 0.22);
}

.app-card-ludo {
  --card-accent: #60a5fa;
  --card-glow: rgba(96, 165, 250, 0.22);
}

.app-card-alignit {
  --card-accent: #a78bfa;
  --card-glow: rgba(167, 139, 250, 0.24);
}

.app-card-chess {
  --card-accent: #fbbf24;
  --card-glow: rgba(251, 191, 36, 0.24);
}

.app-card-checkers {
  --card-accent: #ef4444;
  --card-glow: rgba(239, 68, 68, 0.2);
}

@media (max-width: 1080px) {
  .homepage-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .homepage-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-game-grid .game-card {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .homepage-game-grid {
    grid-template-columns: 1fr;
  }

  .homepage-game-grid h3,
  .homepage-game-grid p {
    min-height: 0;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: 28px;
  background: rgba(20, 17, 29, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 255, 255, 0.04);
}

.game-card-featured {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.12) 0%, rgba(20, 17, 29, 0.8) 50%, rgba(111, 66, 193, 0.12) 100%), rgba(20, 17, 29, 0.65);
  border-color: rgba(255, 179, 0, 0.25);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 179, 0, 0.03);
}

.game-card-featured:hover {
  border-color: rgba(255, 179, 0, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 179, 0, 0.12);
}

.game-card-featured p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.game-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}

.game-card:hover .game-icon {
  transform: scale(1.05);
}

.game-card-featured .game-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.game-card-copy {
  max-width: 520px;
}

.game-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 10px;
  color: #ffb300;
  background: rgba(255, 179, 0, 0.1);
  border: 1px solid rgba(255, 179, 0, 0.25);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-card-featured .game-tag {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

.game-tag.board, .game-tag.tag-board {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}

.game-tag.strategy, .game-tag.tag-strategy {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.game-tag.classic, .game-tag.tag-classic {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}

.game-tag.puzzle, .game-tag.tag-puzzle {
  color: #f472b6;
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.25);
}

.game-card p {
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-size: 15px;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
}

.store-actions .text-link {
  margin-top: 0;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 24px;
}

.game-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.game-card-featured .game-meta span {
  color: var(--ink);
  background: rgba(255, 179, 0, 0.06);
  border-color: rgba(255, 179, 0, 0.18);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: var(--ink);
  text-decoration: none;
  font-family: Outfit, sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.store-btn svg {
  flex-shrink: 0;
  fill: currentColor;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.store-btn:active {
  transform: translateY(0);
}

.store-btn.google-play:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
}

.store-btn.app-store:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
  color: #60a5fa;
}

.game-card-featured .store-btn {
  padding: 10px 20px;
  font-size: 14px;
}

.section-actions {
  display: flex;
  justify-content: center;
  width: min(100% - 32px, var(--container));
  margin: 34px auto 0;
}

.button-outline {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.button-outline:hover {
  background: var(--surface-strong);
}

.apps-hero {
  padding: 82px 0 70px;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  align-items: end;
  gap: 42px;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.catalog-hero h1 {
  margin-bottom: 18px;
}

.catalog-hero p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.catalog-stats {
  display: grid;
  gap: 12px;
}

.catalog-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.catalog-stats strong {
  display: block;
  color: var(--ink);
  font-family: Outfit, sans-serif;
  font-size: 30px;
  line-height: 1;
}

.catalog-stats span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.apps-hero .section-heading {
  margin-bottom: 0;
}

.apps-hero h1 {
  margin-left: auto;
  margin-right: auto;
}

.apps-hero .section-heading p:not(.eyebrow) {
  color: var(--ink-soft);
}

.apps-catalog-section {
  padding-top: 72px;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 20px;
}

.catalog-toolbar h2 {
  margin-bottom: 0;
  font-size: 42px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-tab {
  min-height: 44px;
  padding: 8px 14px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-tab:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.filter-tab.is-active {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
}

.catalog-count {
  width: min(100% - 32px, var(--container));
  margin: 0 auto 22px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.app-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.directory-card {
  display: flex;
  flex-direction: column;
  min-height: 286px;
  padding: 20px;
  background: rgba(20, 17, 29, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.directory-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.directory-card[hidden] {
  display: none;
}

.directory-featured {
  background:
    linear-gradient(135deg, rgba(255, 179, 0, 0.1), transparent 58%),
    rgba(20, 17, 29, 0.72);
  border-color: rgba(255, 179, 0, 0.24);
}

.directory-card-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.directory-icon {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

.directory-card h3 {
  margin-bottom: 0;
  font-size: 21px;
}

.directory-card p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 18px;
}

.directory-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.directory-card .store-actions {
  gap: 8px;
}

.directory-card .store-btn {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.split-layout > div:first-child {
  position: sticky;
  top: 116px;
}

.split-layout p {
  max-width: 580px;
  font-size: 18px;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-list h3,
.feature-list p {
  grid-column: 2;
}

.feature-list p {
  margin-bottom: 0;
  font-size: 16px;
}

.feature-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--ink);
  background: var(--gold);
  border-radius: var(--radius);
  font-weight: 860;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.screen-gallery figure {
  margin: 0;
}

.screen-gallery img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #0b0a0d;
  border: 8px solid #0b0a0d;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.screen-gallery figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-weight: 780;
  text-align: center;
}

.cta-section {
  padding: 80px 0;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 48px;
  color: var(--ink);
  background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12), transparent 50%), 
              radial-gradient(circle at 20% 80%, rgba(234, 179, 8, 0.05), transparent 50%), 
              rgba(20, 17, 29, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cta-card h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 50%, #dcd7e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-card p:not(.eyebrow) {
  max-width: 600px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.cta-card .button {
  flex: 0 0 auto;
}

.cta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  padding: 42px 0;
  background: #07060a;
  color: var(--ink-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.footer-links a {
  min-height: 44px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  font-weight: 720;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

/* Pillars of Play Section */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.16);
}

.pillar-icon-container {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}

/* Specific glows for cards */
.pillar-card-ai .pillar-icon-container {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #a78bfa;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.pillar-card-ai:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(139, 92, 246, 0.12);
}

.pillar-card-multiplayer .pillar-icon-container {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #22d3ee;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.pillar-card-multiplayer:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(6, 182, 212, 0.12);
}

.pillar-card-puzzles .pillar-icon-container {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: #facc15;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
}

.pillar-card-puzzles:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(234, 179, 8, 0.12);
}

.pillar-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  z-index: 2;
}

.pillar-card p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  z-index: 2;
}

/* Support Page Styles */
.support-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.support-form-card,
.support-info-card {
  background: rgba(20, 17, 29, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.support-form-card h2,
.support-info-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--ink);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba%28255,255,255,0.6%29'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

select.form-control option {
  background: #0f0c1b;
  color: var(--ink);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.support-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.support-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.support-info-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--gold);
  flex-shrink: 0;
}

.support-info-text h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}

.support-info-text p {
  font-size: 14px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.support-info-text a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.support-info-text a:hover {
  color: #fff;
  text-decoration: underline;
}


@media (max-width: 980px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 46px;
  }

  .hero-grid,
  .split-layout,
  .catalog-hero {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 540px;
  }

  .hero-stage {
    max-width: 620px;
    min-height: 540px;
    margin: 0 auto;
  }

  .phone-card-main {
    right: 50%;
    transform: translateX(50%);
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }


  .split-layout > div:first-child {
    position: static;
  }

  .screen-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .catalog-toolbar h2 {
    font-size: 36px;
  }

  .filter-tabs {
    justify-content: flex-start;
  }

  .app-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 36px;
  }

  .site-header {
    position: sticky;
  }

  .nav {
    min-height: 68px;
  }

  .brand span {
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: rgba(14, 12, 21, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .nav-links .nav-cta {
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 32px 0 42px;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    padding: 28px 0 0;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    min-height: 50px;
    padding: 12px 16px;
    font-size: 15px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stats div {
    padding: 12px 10px;
  }

  .hero-stats strong {
    font-size: 20px;
  }

  .hero-stats span {
    font-size: 11px;
    line-height: 1.35;
  }

  .hero-showcase {
    position: absolute;
    top: 146px;
    right: 0;
    z-index: 1;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    opacity: 0.24;
    pointer-events: none;
  }

  .hero-stage {
    min-height: 420px;
    transform: translateX(38%) scale(0.7);
    transform-origin: top right;
  }

  .hero-icon-card {
    filter:
      drop-shadow(0 18px 14px rgba(0, 0, 0, 0.4))
      drop-shadow(0 0 14px rgba(255, 179, 0, 0.08));
  }

  .phone-stack {
    min-height: 450px;
  }

  .phone-card-main {
    width: min(240px, 72vw);
  }

  .phone-card-side {
    width: 138px;
  }

  .showcase-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -40px auto 0;
  }

  .game-grid,
  .screen-gallery,
  .pillars-grid {
    grid-template-columns: 1fr;
  }


  .game-card-featured {
    grid-column: span 1;
  }

  .feature-list article {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-list h3,
  .feature-list p {
    grid-column: 1;
  }

  .feature-icon {
    grid-row: auto;
  }

  .cta-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .cta-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .cta-actions .button {
    width: 100%;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .catalog-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .catalog-stats div {
    padding: 14px 10px;
  }

  .catalog-stats strong {
    font-size: 24px;
  }

  .catalog-stats span {
    font-size: 12px;
    line-height: 1.3;
  }

  .catalog-toolbar h2 {
    font-size: 32px;
  }

  .app-directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-card {
    min-height: 0;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-tab {
    flex: 1 1 auto;
  }

}

@media (max-width: 480px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-showcase {
    top: 154px;
    right: 0;
    width: 100%;
    min-height: 390px;
    opacity: 0.2;
  }

  .hero-stage {
    min-height: 390px;
    transform: translateX(42%) scale(0.62);
  }

  .showcase-panel {
    margin: -30px auto 0;
  }

  .apps-hero {
    padding: 58px 0 56px;
  }

  .catalog-hero {
    gap: 28px;
  }

  .pillar-card {
    padding: 28px 24px;
  }

  .support-form-card,
  .support-info-card {
    padding: 28px 20px;
  }
}


@media (max-width: 1080px) {
  .homepage-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .homepage-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .homepage-game-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
