/* =============================================
   JATTAA — Puzzle Games Studio
   Design: Dark, premium, geometric
   ============================================= */

:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f1a;
  --bg-3: #13131f;
  --surface: #16162a;
  --surface-2: #1c1c32;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);

  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --teal: #14b8a6;
  --teal-light: #5eead4;
  --orange: #fb923c;
  --rose: #f43f5e;

  --text: #f1f0ff;
  --text-2: #9d9db8;
  --text-3: #5a5a7a;

  --gradient: linear-gradient(135deg, var(--purple), var(--teal));
  --gradient-warm: linear-gradient(135deg, var(--purple), var(--rose));

  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --font: "Space Grotesk", sans-serif;
  --font-mono: "Space Mono", monospace;

  --nav-h: 72px;
  --max-w: 1200px;
}

/* ---- LIGHT MODE ---- */
[data-theme="light"] {
  --bg: #f8f7ff;
  --bg-2: #f0eeff;
  --bg-3: #e8e4f8;
  --surface: #ffffff;
  --surface-2: #f3f1fd;
  --border: rgba(100, 90, 160, 0.12);
  --border-hover: rgba(100, 90, 160, 0.28);
  --text: #0d0c1d;
  --text-2: #3e3c60;
  --text-3: #8886a8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- UTILS ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-2);
  font-size: 17px;
  max-width: 520px;
  line-height: 1.7;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 0 36px rgba(139, 92, 246, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  transition:
    background 0.3s,
    backdrop-filter 0.3s,
    border-bottom 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(248, 247, 255, 0.88);
}

[data-theme="light"] .hero-badge {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.35);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: 8px;
  display: block;
  position: relative;
}
.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
}
.logo-mark::before {
  width: 10px;
  height: 10px;
  top: 7px;
  left: 7px;
}
.logo-mark::after {
  width: 10px;
  height: 10px;
  bottom: 7px;
  right: 7px;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  height: 36px;
  padding: 0 12px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-2);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  flex-shrink: 0;
}
.lang-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  transform: scale(1.1);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-2);
  transition: stroke 0.2s;
}

/* Dark mode: show sun (to switch to light). Light mode: show moon (to switch to dark). */
[data-theme="dark"] .icon-moon,
:not([data-theme]) .icon-moon {
  display: none;
}
[data-theme="dark"] .icon-sun,
:not([data-theme]) .icon-sun {
  display: block;
}
[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#puzzleCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(0.7);
  }
}

/* Puzzle Grid */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 340px;
  height: 340px;
}

.puzzle-piece {
  border-radius: 12px;
  animation: piecePulse 4s ease-in-out infinite;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.puzzle-piece:hover {
  transform: scale(1.05);
}

.p1 {
  background: rgba(139, 92, 246, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.5);
  animation-delay: 0s;
}
.p2 {
  background: rgba(20, 184, 166, 0.2);
  border: 1px solid rgba(20, 184, 166, 0.3);
  animation-delay: 0.3s;
}
.p3 {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
  animation-delay: 0.6s;
}
.p4 {
  background: rgba(20, 184, 166, 0.3);
  border: 1px solid rgba(20, 184, 166, 0.4);
  animation-delay: 0.9s;
}
.p5 {
  background: rgba(139, 92, 246, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  animation-delay: 0s;
}
.p6 {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.2);
  animation-delay: 1.2s;
}
.p7 {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.25);
  animation-delay: 1.5s;
}
.p8 {
  background: rgba(20, 184, 166, 0.35);
  border: 1px solid rgba(20, 184, 166, 0.45);
  animation-delay: 1.8s;
}
.p9 {
  background: rgba(139, 92, 246, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.4);
  animation-delay: 0.5s;
}

@keyframes piecePulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* ---- STATS ---- */
.stats {
  padding: 60px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats-grid--centered {
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.stat-num.stat-text {
  font-size: clamp(22px, 2.8vw, 36px);
  letter-spacing: 0.02em;
}

.stat-item--highlight .stat-num {
  font-size: clamp(48px, 6vw, 80px);
}

/* ---- GAMES ---- */
.games {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-desc {
  margin: 0 auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.games-grid--single {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
  cursor: pointer;
}

.game-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}
[data-theme="light"] .game-card:hover {
  box-shadow: 0 20px 60px rgba(100, 90, 160, 0.15);
}

.game-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.game-card--solo {
  grid-column: span 1 !important;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.game-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

.game-card--solo .game-card-img {
  height: auto;
  min-height: 260px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
}
.game-card--solo .game-icon-img {
  border-radius: 0;
}

.game-card-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.game-card.featured .game-card-img {
  height: auto;
  min-height: 260px;
}

.game-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-placeholder svg {
  width: 120px;
  height: 120px;
}

.gp1 {
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.2) 0%, transparent 70%), var(--bg-3);
}
.gp2 {
  background: radial-gradient(ellipse at center, rgba(20, 184, 166, 0.2) 0%, transparent 70%), var(--bg-3);
}
.gp3 {
  background: radial-gradient(ellipse at center, rgba(251, 146, 60, 0.2) 0%, transparent 70%), var(--bg-3);
}
.gp4 {
  background: radial-gradient(ellipse at center, rgba(244, 63, 94, 0.2) 0%, transparent 70%), var(--bg-3);
}

.game-card-body {
  padding: 28px;
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.game-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.game-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.game-status.released {
  color: var(--teal-light);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.25);
}
.game-status.coming-soon {
  color: var(--orange);
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.game-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.game-desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.game-platforms {
  display: flex;
  gap: 8px;
}
.game-platforms span {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: var(--bg-3);
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ---- FEATURES ---- */
.features {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    border-color 0.3s,
    background 0.3s;
}
.feature-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 20px;
  height: 20px;
}

.fi1 {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-light);
}
.fi2 {
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal-light);
}
.fi3 {
  background: rgba(251, 146, 60, 0.15);
  color: var(--orange);
}
.fi4 {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose);
}

.feature-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature-body p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---- ABOUT ---- */
.about {
  padding: 120px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.about-card {
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-icon-ring {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ringRotate 12s linear infinite;
}
.r1 {
  width: 200px;
  height: 200px;
  border-color: rgba(139, 92, 246, 0.25);
  animation-duration: 18s;
}
.r2 {
  width: 150px;
  height: 150px;
  border-color: rgba(20, 184, 166, 0.3);
  animation-direction: reverse;
  animation-duration: 12s;
}
.r3 {
  width: 100px;
  height: 100px;
  border-color: rgba(139, 92, 246, 0.4);
  animation-duration: 8s;
}

@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}

.about-center-mark {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: white;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
  position: relative;
  z-index: 1;
}

.about-quote {
  text-align: center;
  max-width: 300px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.about-quote p {
  font-size: 15px;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 12px;
}
.about-quote cite {
  font-size: 13px;
  color: var(--text-3);
  font-style: normal;
  font-family: var(--font-mono);
}

.about-text p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-values {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.value-chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 8px 16px;
  border-radius: 100px;
}

/* ---- CONTACT ---- */
.contact {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.contact-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-desc {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
  margin: 16px auto 40px;
  max-width: 480px;
}

.subscribe-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 6px 6px 20px;
  transition: border-color 0.3s;
}
.form-row:focus-within {
  border-color: rgba(139, 92, 246, 0.5);
}

.form-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
}
.form-input::placeholder {
  color: var(--text-3);
}

.form-note {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 12px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-link:hover {
  color: var(--purple-light);
}
.contact-link svg {
  width: 18px;
  height: 18px;
}

/* ---- FOOTER ---- */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 14px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--text);
}

.footer-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(20, 184, 166, 0.4);
  padding: 1px 6px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-3);
}

.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--text-2);
}

/* ---- MOBILE NAV ---- */
@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .nav > .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
  }
  [data-theme="light"] .nav-links.open {
    background: rgba(248, 247, 255, 0.98);
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid--centered {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .game-card.featured {
    grid-column: span 1;
    display: block;
  }
  .game-card--solo {
    grid-template-columns: 1fr;
  }
  .game-card--solo .game-card-img {
    min-height: 280px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .game-card--solo .game-icon-img {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .features-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual {
    display: none;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    text-align: center;
    justify-content: center;
  }
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .contact-links {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }
}

/* ---- SCROLL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---- ARABIC / RTL ---- */
[lang="ar"] {
  --font: "IBM Plex Sans Arabic", sans-serif;
  --font-mono: "IBM Plex Sans Arabic", sans-serif;
}

/* Remove letter-spacing from elements that use it — looks wrong in Arabic */
[dir="rtl"] .section-tag,
[dir="rtl"] .stat-label,
[dir="rtl"] .game-tag,
[dir="rtl"] .game-status,
[dir="rtl"] .footer-col h5,
[dir="rtl"] .hero-scroll span,
[dir="rtl"] .hero-badge {
  letter-spacing: 0;
}

/* Stat dividers flip side in RTL */
[dir="rtl"] .stat-item {
  border-right: none;
  border-left: 1px solid var(--border);
}
[dir="rtl"] .stat-item:last-child {
  border-left: none;
}

/* Game card image border-radius: rounded on the right side in RTL (image column comes first visually) */
[dir="rtl"] .game-card--solo .game-card-img {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
[dir="rtl"] .game-card--solo .game-icon-img {
  border-radius: 0;
}

/* Status badge pushes to the end of the row in RTL */
[dir="rtl"] .game-status {
  margin-left: 0;
  margin-right: auto;
}

/* Footer badge spacing flips in RTL */
[dir="rtl"] .footer-badge {
  margin-left: 0;
  margin-right: 6px;
}

/* On mobile, card stacks the same in both directions */
@media (max-width: 1024px) {
  [dir="rtl"] .game-card--solo .game-card-img {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  [dir="rtl"] .game-card--solo .game-icon-img {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

/* ---- SUCCESS STATE ---- */
.subscribe-form.success .form-row {
  border-color: rgba(20, 184, 166, 0.5);
}
