/* =========================
   ROOT VARIABLES
========================= */
:root {
  --primary-gradient: linear-gradient(135deg, #10121f, #2b1014);
  --secondary-gradient: linear-gradient(135deg, #ff3131, #9f111b);
  --dark: #10121f;
  --dark-alt: #1b1f35;
  --text: #5a6075;
  --light-bg: #f7f7fa;
  --white: #ffffff;
  --accent: #ff3131;
  --yellow: #ff3131;
  --red-soft: rgba(31, 13, 13, 0.14);
  --red-border: rgba(255,49,49,0.36);
  --border: rgba(255,255,255,0.15);
  --shadow: 0 15px 40px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --transition: all 0.35s ease;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Exo 2", sans-serif;
  background: var(--light-bg);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-thumb {
  background: var(--secondary-gradient);
  border-radius: 20px;
}

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

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

ul {
  list-style: none;
}

button,
input,
textarea {
  border: none;
  outline: none;
  font-family: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1320px, 92%);
  margin: auto;
}

.section {
  padding: 110px 0;
  position: relative;
}

/* =========================
   GLOBAL TITLE
========================= */
.section-title {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-title span {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.05);
  font-family: "Barlow Condensed", sans-serif;
  z-index: 1;
}

.section-title h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

/* =========================
   BUTTONS
========================= */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 12px;
  background: var(--secondary-gradient);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: rgba(34,34,34,0.95);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

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

.store-btn i {
  font-size: 1.4rem;
}

/* =========================
   PRELOADER
========================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #111;
  display: grid;
  place-items: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hide-loader {
  opacity: 0;
  visibility: hidden;
}

/* =========================
   SQUARE SVG LOADER
========================= */
.loader.square-loader {
  --path: #ff3b3b;
  --duration: 2.5s;

  width: 64px;
  height: 64px;
  position: relative;
  display: inline-block;
}

.loader.square-loader svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Animated Square Border */
.loader.square-loader svg rect {
  fill: none;
  stroke: var(--path);
  stroke-width: 8px;
  stroke-linejoin: round;
  stroke-linecap: round;

  /* Creates moving square border animation */
  stroke-dasharray: 192 64 192 64;
  stroke-dashoffset: 0;

  animation: pathRect var(--duration)
    cubic-bezier(0.785, 0.135, 0.15, 0.86)
    infinite;
}

/* =========================
   ANIMATION
========================= */
@keyframes pathRect {
  25% {
    stroke-dashoffset: 64;
  }

  50% {
    stroke-dashoffset: 128;
  }

  75% {
    stroke-dashoffset: 192;
  }

  100% {
    stroke-dashoffset: 256;
  }
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(16,18,31,0.88);
  backdrop-filter: blur(12px);
  padding: 18px 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.nav-container {
  width: 100%;
  margin: 0;
  padding: 0 clamp(16px, 4vw, 56px) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.5rem;
  color: white;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.logo img,
.footer-brand h3 img,
.legal-logo img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  flex: 0 0 auto;
}

.logo {
  padding-left: 0;
}

.logo > span,
.footer-brand h3 > span,
.legal-logo > span {
  margin-left: 4px;
}

.logo > span span,
.footer-brand h3 > span span,
.legal-logo > span span {
  color: var(--yellow);
}

.nav-list {
  display: flex;
  gap: 34px;
}

.nav-list a {
  color: white;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-list a:hover {
  color: var(--yellow);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: var(--transition);
}

.nav-list a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  background: transparent;
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 100vh;
  padding-top: 130px;
  background:
    linear-gradient(90deg, rgba(16,18,31,0.95) 0%, rgba(16,18,31,0.76) 44%, rgba(16,18,31,0.42) 100%),
    url("images/img/img2.jpeg") center/cover;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, black, transparent 76%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--light-bg));
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: calc(100vh - 130px);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red-soft);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-content h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.95;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  max-width: 560px;
  color: rgba(161, 104, 204, 0.95);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 14px;
  max-width: 560px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--red-border);
  border-radius: 12px;
  background: rgba(53, 28, 164, 0.08);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--yellow);
}

.hero-stats span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}

/* =========================
   HERO VISUAL
========================= */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-stack {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-phone {
  width: 290px;
  height: 580px;
  background: #111;
  padding: 14px;
  border-radius: 30px;
  z-index: 5;
  box-shadow: var(--shadow-lg);
}

.main-phone img {
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.screen {
  position: absolute;
  width: 210px;
  height: 430px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.screen-left {
  left: 10px;
  transform: rotate(-14deg);
}

.screen-right {
  right: 10px;
  transform: rotate(14deg);
}

/* =========================
   GAMEPLAY
========================= */
.gameplay-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  background: linear-gradient(180deg, #ffffff, #f9fafd);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gameplay-video {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(16,18,31,0.08);
  background: #111;
}

.gameplay-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.24));
  pointer-events: none;
}

.video-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.gameplay-video img {
  width: 100%;
  min-height: 510px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gameplay-video:hover img {
  transform: scale(1.04);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  color: var(--accent);
  font-size: 2.2rem;
  box-shadow: 0 22px 48px rgba(0,0,0,0.22);
  transition: transform 0.25s ease, background 0.25s ease;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: white;
}

.gameplay-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gameplay-content h3 {
  font-size: 2.6rem;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.gameplay-intro {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 26px;
}

.gameplay-features {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding-left: 18px;
}

.gameplay-features li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  line-height: 1.75;
}

.gameplay-features li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-size: 0.9rem;
}

.gameplay-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.gameplay-meta div {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
  border: 1px solid rgba(16,18,31,0.06);
}

.gameplay-meta strong {
  display: block;
  font-size: 1.7rem;
  color: var(--dark);
}

.gameplay-meta span {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 0.95rem;
}

.gameplay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 12px;
  border: 1px solid rgba(16,18,31,0.12);
  background: rgba(255,255,255,0.92);
  color: var(--dark);
  font-weight: 600;
  transition: var(--transition);
}

.secondary-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* =========================
   VIDEO MODAL
========================= */
.video-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.4s ease;
  z-index: 9999;
}

.video-modal.active {
  visibility: visible;
  opacity: 1;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
}

.video-container {
  position: relative;
  width: min(900px, 92%);
  aspect-ratio: 16/9;
  z-index: 2;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.video-controls {
  position: absolute;
  left: 50%;
  bottom: -68px;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 3;
}

.video-nav-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--secondary-gradient);
  color: white;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-nav-btn:hover {
  transform: translateY(-4px);
}

.close-video {
  position: absolute;
  top: -55px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  font-size: 1.2rem;
}

/* =========================
   GALLERY
========================= */
.gallery {
  background: #ececf7;
}

.gallery-slide img {
  height: 580px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* =========================
   MOBILE SCREENSHOTS
========================= */
.screenshots {
  background:
    radial-gradient(circle at 15% 18%, rgba(255,49,49,0.14), transparent 28%),
    linear-gradient(180deg, #f7f7fa, #ffffff);
  overflow: hidden;
}

.screenshot-carousel-wrapper {
  position: relative;
  max-width: 920px;
  margin: auto;
}

.screenshot-carousel {
  position: relative;
  height: 560px;
  perspective: 1200px;
  margin-bottom: 10px;
}

.screenshot-phone {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(-50%) scale(0.72);
  transition: transform 0.65s ease, opacity 0.65s ease, filter 0.65s ease;
  animation: phoneFloat 5s ease-in-out infinite;
}

.screenshot-phone::before {
  content: "";
  position: absolute;
  inset: auto 18% -22px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16,18,31,0.18);
  filter: blur(12px);
  transform: scaleX(0.9);
}

.screenshot-phone.is-active {
  z-index: 3;
  opacity: 1;
  transform: translateX(-50%) translateY(-18px) scale(1);
}

.screenshot-phone.is-left {
  z-index: 2;
  opacity: 0.72;
  filter: saturate(0.9) brightness(0.86);
  transform: translateX(calc(-50% - 220px)) translateY(36px) rotateY(18deg) rotateZ(-4deg) scale(0.82);
}

.screenshot-phone.is-right {
  z-index: 2;
  opacity: 0.72;
  filter: saturate(0.9) brightness(0.86);
  transform: translateX(calc(-50% + 220px)) translateY(36px) rotateY(-18deg) rotateZ(4deg) scale(0.82);
}

.screenshot-phone.is-hidden {
  z-index: 1;
  opacity: 0;
  transform: translateX(-50%) translateY(60px) scale(0.68);
  pointer-events: none;
}

.phone-frame {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 9 / 16;
  padding: 12px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 34px;
  background:
    linear-gradient(145deg, #1e2238, #070812);
  box-shadow:
    0 28px 60px rgba(16,18,31,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 74px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: #070812;
  z-index: 2;
}

.phone-frame img {
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.04);
}

.screenshot-phone:hover .phone-frame {
  transform: translateY(-12px) scale(1.03);
  box-shadow:
    0 34px 74px rgba(16,18,31,0.34),
    0 0 0 6px rgba(255,49,49,0.08);
}

.screenshot-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.screenshot-nav {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--secondary-gradient);
  color: white;
  box-shadow: var(--shadow);
  transition: var(--transition);
  pointer-events: all;
  flex-shrink: 0;
}

#prevScreenshot {
  margin-left: 16px;
}

#nextScreenshot {
  margin-right: 16px;
}

.screenshot-nav:hover {
  transform: scale(1.08);
}

.screenshot-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.screenshot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 49, 49, 0.3);
  cursor: pointer;
  transition: all 0.35s ease;
  border: 2px solid transparent;
}

.screenshot-indicator:hover {
  background: rgba(255, 49, 49, 0.6);
  transform: scale(1.2);
}

.screenshot-indicator.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
  transform: scale(1);
}

.screenshot-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(16, 18, 31, 0.7);
  backdrop-filter: blur(8px);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 49, 49, 0.2);
  z-index: 10;
}

@keyframes phoneFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

/* =========================
   GAMES COLLECTION
========================= */
.games-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.game-card {
  position: relative;
  min-height: 380px;
  width: 400px;
  max-width: 100%;
  background: var(--dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.game-card img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.65s ease, filter 0.65s ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(16,18,31,0.88) 100%);
  z-index: 1;
}

.game-info,
.game-overlay {
  position: absolute;
  left: 24px;
  right: 24px;
  z-index: 2;
}

.game-info {
  bottom: 24px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.game-tag {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(255,230,109,0.14);
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.game-info h3,
.game-overlay h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  color: white;
}

.game-overlay {
  bottom: 24px;
  opacity: 0;
  transform: translateY(28px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.game-overlay p {
  color: rgba(255,255,255,0.76);
  margin: 12px 0 20px;
}

.game-store-links {
  display: flex;
  gap: 12px;
}

.game-store-links a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 1.25rem;
  transition: var(--transition);
}

.game-store-links a:hover {
  background: var(--secondary-gradient);
  transform: translateY(-4px);
}

.game-card:hover,
.game-card:focus-within,
.game-card:focus {
  box-shadow: var(--shadow-lg);
}

.game-card:hover img,
.game-card:focus-within img,
.game-card:focus img {
  transform: scale(1.08);
  filter: brightness(0.72) saturate(1.2);
}

.game-card:hover .game-info,
.game-card:focus-within .game-info,
.game-card:focus .game-info {
  opacity: 0;
  transform: translateY(-18px);
}

.game-card:hover .game-overlay,
.game-card:focus-within .game-overlay,
.game-card:focus .game-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FEATURES
========================= */
.features {
  background:
    linear-gradient(135deg, rgba(16,18,31,0.96), rgba(27,31,53,0.94)),
    url("images/img/img4.jpeg") center/cover;
  color: white;
}

.features .section-title span {
  color: rgba(255,255,255,0.08);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--red-border);
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--secondary-gradient);
  color: white;
  font-size: 1.45rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feature-card p {
  color: rgba(255,255,255,0.76);
}

/* =========================
   CONTACT
========================= */
.contact-form {
  max-width: 800px;
  margin: auto;
  display: grid;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  padding: 18px 20px;
  border-radius: 14px;
  background: white;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 180px;
  resize: none;
}

.form-status {
  min-height: 24px;
  color: var(--text);
  font-weight: 600;
}

/* =========================
   FOOTER
========================= */
.footer {
  margin-top: 80px;
  background:
    linear-gradient(135deg, rgba(16,18,31,0.98), rgba(27,31,53,0.96)),
    url("images/img/img4.jpeg") center/cover;
  color: white;
  padding-top: 76px;
}

.footer-content {
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: clamp(16px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) 0.7fr 0.8fr 1.1fr;
  gap: 42px;
  padding-bottom: 48px;
}

.footer-brand h3 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.7rem;
  line-height: 1;
  margin-bottom: 10px;
}

.footer-brand h3 img {
  width: 86px;
  height: 86px;
}

.footer-brand p {
  max-width: 360px;
  padding-left: 20px;
  /* color: rgba(255,255,255,0.72); */
  color: rgba(161, 104, 204, 0.95);
}

.footer-links,
.footer-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links h4,
.footer-download h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}

.footer-links a {
  color: rgba(255,255,255,0.72);
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #ff6f6f;
}

.footer-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-store-buttons .store-btn {
  padding: 13px 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: rgba(255,255,255,0.66);
}

.footer-legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255,255,255,0.78);
  transition: var(--transition);
}

.footer-social {
  display: flex;
  align-items: center;
}

.footer-social a {
  color: rgba(255,255,255,0.78);
  transition: var(--transition);
  margin-right: 16px;
}

.footer-social a:last-child {
  margin-right: 0;
}

.footer-social a:hover {
  color: #ff6f6f;
}

/* =========================
   LEGAL PAGES
========================= */
.legal-page {
  background: var(--light-bg);
}

.legal-hero {
  padding: 58px 0 70px;
  background:
    linear-gradient(135deg, rgba(16,18,31,0.96), rgba(82,15,20,0.86)),
    url("images/img/img4.jpeg") center/cover;
  color: white;
}

.legal-hero-container {
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: clamp(16px, 4vw, 56px);
}

.legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 54px;
}

.legal-logo img {
  width: 86px;
  height: 86px;
}

.legal-hero h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}

.legal-hero p {
  color: rgba(255,255,255,0.74);
  text-align: center;
}

.legal-content {
  max-width: 920px;
  padding: 72px 0;
}

.legal-content section {
  padding: 28px 0;
  border-bottom: 1px solid rgba(16,18,31,0.1);
}

.legal-content h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--text);
}

.legal-content a {
  color: var(--accent);
  font-weight: 700;
}

/* =========================
   SCROLL TOP
========================= */
.scroll-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 54px;
  height: 54px;
  display: none;
  place-items: center;
  border-radius: 14px;
  background: var(--secondary-gradient);
  color: white;
  font-size: 1.3rem;
  z-index: 999;
  box-shadow: var(--shadow);
}

/* =========================
   SWIPER
========================= */
.swiper-button-next,
.swiper-button-prev {
  color: var(--accent) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 26px !important;
  font-weight: bold;
}

/* =========================
   REVEAL
========================= */
.hidden-reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: all 0.8s ease;
}

.show-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1150px) {
  .hero-container,
  .gameplay-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content p {
    margin-inline: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero {
    padding-bottom: 80px;
  }

  .gameplay-video {
    min-height: 380px;
  }

  .gameplay-meta {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .gameplay-actions {
    justify-content: center;
  }

  .games-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }

  .screenshot-phone.is-left {
    transform: translateX(calc(-50% - 150px)) translateY(44px) rotateY(16deg) rotateZ(-4deg) scale(0.78);
  }

  .screenshot-phone.is-right {
    transform: translateX(calc(-50% + 150px)) translateY(44px) rotateY(-16deg) rotateZ(4deg) scale(0.78);
  }

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

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background: rgba(16,18,31,0.98);
    backdrop-filter: blur(12px);
    transition: var(--transition);
    padding: 30px;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 24px;
  }

  .menu-toggle {
    display: block;
  }

  .games-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }

  .game-card {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .section {
    padding: 85px 0;
  }

  .main-phone {
    width: 220px;
    height: 440px;
  }

  .screen {
    display: none;
  }

  .gallery-slide img {
    height: 380px;
  }

  .store-btn,
  .primary-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-buttons,
  .footer-store-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-stats,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-carousel {
    height: 520px;
  }

  .screenshot-carousel-wrapper {
    padding: 0 12px;
  }

  .screenshot-phone.is-left {
    opacity: 0.42;
    transform: translateX(calc(-50% - 86px)) translateY(54px) rotateY(14deg) scale(0.72);
  }

  .screenshot-phone.is-right {
    opacity: 0.42;
    transform: translateX(calc(-50% + 86px)) translateY(54px) rotateY(-14deg) scale(0.72);
  }

  .phone-frame {
    width: min(280px, 82vw);
  }

  .screenshot-counter {
    font-size: 0.75rem;
    padding: 6px 10px;
    top: 12px;
    right: 12px;
  }

  .screenshot-indicators {
    gap: 6px;
    margin-top: 18px;
  }

  .screenshot-indicator {
    width: 6px;
    height: 6px;
  }

  .screenshot-indicator.active {
    width: 20px;
  }

  .screenshot-controls {
    top: 50%;
    transform: translateY(-50%);
  }

  #prevScreenshot {
    margin-left: 8px;
  }

  #nextScreenshot {
    margin-right: 8px;
  }

  .game-card {
    min-height: 420px;
  }

  .game-card img {
    filter: brightness(0.72) saturate(1.15);
  }

  .game-info {
    display: none;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand p,
  .footer-links,
  .footer-download,
  .footer-legal {
    padding-left: 20px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-social {
    justify-content: center;
    margin: 10px 0;
  }

  /* .footer-social a {
    margin: 5px 0;
  } */

  /* .footer-social a:last-child {
    margin-right: 0;
  } */

  .video-container {
    width: 95%;
  }

  .close-video {
    top: -48px;
    right: 4px;
  }

  .video-controls {
    bottom: -62px;
  }

  .gameplay-video {
    min-height: 340px;
  }

  .gameplay-content h3 {
    font-size: 2rem;
  }

  .gameplay-intro {
    font-size: 0.98rem;
    margin-bottom: 20px;
  }

  .gameplay-features {
    padding-left: 0;
    grid-template-columns: 1fr;
  }

  .gameplay-meta {
    grid-template-columns: 1fr;
  }

  .gameplay-actions {
    flex-direction: column;
    gap: 12px;
  }

  .secondary-btn,
  .primary-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .screenshot-carousel {
    height: 460px;
    margin-bottom: 70px;
  }

  .screenshot-carousel-wrapper {
    padding: 0;
  }

  .screenshot-phone.is-left {
    transform: translateX(calc(-50% - 62px)) translateY(50px) rotateY(12deg) scale(0.68);
  }

  .screenshot-phone.is-right {
    transform: translateX(calc(-50% + 62px)) translateY(50px) rotateY(-12deg) scale(0.68);
  }

  .phone-frame {
    width: min(240px, 90vw);
  }

  .screenshot-indicator {
    width: 5px;
    height: 5px;
  }

  .screenshot-indicator.active {
    width: 16px;
  }

  .screenshot-nav {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  #prevScreenshot {
    margin-left: 4px;
  }

  #nextScreenshot {
    margin-right: 4px;
  }

  .gameplay-video {
    min-height: 300px;
  }

  .video-badge {
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .gameplay-meta {
    gap: 10px;
  }

  .gameplay-actions {
    gap: 10px;
  }

  .footer-social a {
    margin-right: 10px;
  }

  .footer-social a:last-child {
    margin-right: 0;
  }
}
