:root {
  --font-title: 'Oxanium', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --bg-dark: #050314;
  --bg-card: rgba(18, 10, 43, 0.95);
  --bg-soft: rgba(30, 19, 70, 0.9);
  --accent: #00eeff;
  --accent-soft: #ab47bc;
  --accent-strong: #ff80ab;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-muted: #c7c3e0;
  --radius-card: 24px;
  --shadow-soft: 0 18px 60px rgba(10, 0, 40, 0.9);
  --blur: blur(14px);
}

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

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

/* Background blobs */
.background-blob {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  z-index: -2;
}

.top-left {
  top: -120px;
  left: -160px;
  background: radial-gradient(circle at 30% 30%, #5c6bc0, #1a237e);
}

.bottom-right {
  bottom: -180px;
  right: -160px;
  background: radial-gradient(circle at 70% 70%, #e040fb, #880e4f);
}

.background-gradient-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header / nav */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 3, 20, 0.92);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  padding: 4px;
  background: radial-gradient(circle at 20% 0%, var(--accent-strong), var(--accent));
  box-shadow: 0 0 18px rgba(224, 64, 251, 0.7);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.brand-text-main {
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff, var(--accent-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

nav {
  display: none;
}

@media (min-width: 860px) {
  nav {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
  }

  nav a {
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }

  nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-subtle);
    text-decoration: none;
    color: var(--text-main);
  }

  nav a.active {
    background: var(--accent);
    color: #050314;
    border-color: transparent;
  }

  .ext-icon svg {
    width: 14px;
    height: 14px;
    margin-left: 4px;
  }
}

.page-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 18px 60px;
}

/* Generic sections */
.section-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  margin-bottom: 36px;
}

.section-inner {
  padding: 28px 26px 30px;
}

.section-header {
  margin-bottom: 22px;
}

h2 {
  font-family: var(--font-title);
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* HERO */
.hero-section .section-inner {
  padding: 30px 28px 32px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.3rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 10px;
}

.highlight-text {
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 14px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.hero-badge {
  font-family: var(--font-title);
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, var(--accent-strong), var(--accent));
  color: #050314;
  font-family: var(--font-title);
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 12px 40px lch(76.32% 44.03 236.43 / 0.85);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(76.32% 44.03 236.43 / 0.85);
  text-decoration: none;
}

.btn-ghost {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
  font-size: 0.9rem;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mock {
  position: relative;
  width: 240px;
  max-width: 100%;
  border-radius: 32px;
  padding: 10px;
  background: radial-gradient(circle at 10% 0%, var(--accent), #311b92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9);
}

.hero-phone {
  transform: translateY(4px);
}

.phone-bezel {
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.phone-screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Download section */
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 26px;
  align-items: center;
}

@media (max-width: 900px) {
  .download-layout {
    grid-template-columns: 1fr;
  }
}

.download-text p {
  margin-top: 8px;
  color: var(--text-muted);
}

.download-list {
  list-style: none;
  margin: 16px 0 18px;
}

.download-list li {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.btn-download-big {
  display: inline-block;
  margin-top: 2px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #050314;
  box-shadow: 0 14px 44px rgba(224, 64, 251, 0.9);
  text-decoration: none;
}

.btn-download-big:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.download-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-side {
  display: flex;
  justify-content: flex-end;
}

.download-card {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.download-card h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  margin-bottom: 10px;
}

.download-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.download-meta-row:first-of-type {
  border-top: none;
}

/* Gameplay / media */
.gameplay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: flex-start;
}

@media (max-width: 950px) {
  .gameplay-layout {
    grid-template-columns: 1fr;
  }
}

.gameplay-phone-wrapper {
  display: flex;
  justify-content: center;
}

.gameplay-phone {
  width: 260px;
}

.gameplay-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.thumbs-title-row,
.video-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.thumbs-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ⬅️ التصميم الجديد للأزرار (المعرض واليوتيوب) */
.btn-link-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;

  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-link-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent-strong); 
}

.btn-link-icon:hover {
  background: var(--accent-soft);
  color: var(--bg-dark); 
  border-color: var(--accent-soft);
  text-decoration: none;
}

.btn-link-icon:hover svg {
  stroke: var(--bg-dark); 
}
/* ➡️ نهاية التصميم الجديد */

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

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

.thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.16s ease-out, transform 0.16s ease-out, border-color 0.16s;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

/* Video */
.video-block {
  margin-top: 6px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

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

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

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

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 6px;
}

.feature-item h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 6px;
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-note {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 0, 10, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-container {
  position: relative;
  max-width: 82vw;
  max-height: 88vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  font-size: 1.3rem;
}

.lightbox-nav.prev {
  left: -54px;
}

.lightbox-nav.next {
  right: -54px;
}

@media (max-width: 720px) {
  .lightbox-nav.prev {
    left: 10px;
  }
  .lightbox-nav.next {
    right: 10px;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}
.hero-banner-box {
    width: 100%;
    height: 100%;
    max-width: 100%;

    border-radius: 20px;
    padding: 0%;

    background: linear-gradient(135deg, #ff8dfb, #6f00ff);
    box-shadow: 0 0 45px rgba(148, 0, 255, 0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.hero-banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}