/* ============================================================
   APEX HORIZON — Showcase Landing Page Stylesheet
   © 2026 Codeshift Games · Built by Ali Durra
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg-0: #1f2530;
  --bg-1: #262d3a;
  --bg-2: #2e3644;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-2: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(0, 229, 255, 0.4);

  --cyan: #00e5ff;
  --cyan-soft: rgba(0, 229, 255, 0.13);
  --gold: #ffc94d;
  --gold-soft: rgba(255, 201, 77, 0.13);
  --text: #eef2f8;
  --text-dim: #a8b4c8;
  --text-faint: #74809a;

  --font-display: "Orbitron", sans-serif;
  --font-heading: "Rajdhani", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;
  --nav-h: 72px;

  --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--cyan);
  color: var(--bg-0);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-0);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), #0077aa);
  border-radius: 99px;
  border: 2px solid var(--bg-0);
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.accent {
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

/* ============================================================
   PRELOADER
============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-0);
  display: grid;
  place-items: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}
.preloader-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: 0.3em;
  color: var(--text);
  animation: pulse-logo 1.6s ease-in-out infinite;
}
.preloader-logo span {
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.6);
}
@keyframes pulse-logo {
  50% {
    opacity: 0.55;
  }
}

.preloader-bar {
  width: 220px;
  height: 3px;
  margin: 1.4rem auto 0.9rem;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cyan),
    var(--gold),
    transparent
  );
  animation: bar-sweep 1.2s ease-in-out infinite;
}
@keyframes bar-sweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(420%);
  }
}

.preloader-text {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--text-faint);
}

/* ============================================================
   CURSOR GLOW & SCROLL PROGRESS
============================================================ */
#cursor-glow {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.07), transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  left: 0;
  top: 0;
}
#cursor-glow.on {
  opacity: 1;
}
@media (hover: none) {
  #cursor-glow {
    display: none;
  }
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
}

/* ============================================================
   NAVIGATION
============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(24, 29, 36, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Brand logos: Codeshift Games logo image only */
.brand-logos { display: flex; align-items: center; }
.brand-logo {
  width: 40px; height: 40px; object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 4px;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.15);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.brand:hover .brand-logo {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--bg-0);
  background: linear-gradient(135deg, var(--cyan), #0090b8);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.45);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}
.brand-text b {
  color: var(--text);
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  gap: 0.7rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Language switch (EN / AR) */
.lang-switch {
  position: relative; display: inline-flex; align-items: center;
  padding: 3px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.3s;
}
.lang-switch:hover { border-color: var(--border-glow); }
.lang-opt {
  position: relative; z-index: 1;
  min-width: 42px; text-align: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.08em; padding: 0.35rem 0.55rem; border-radius: 99px;
  color: var(--text-dim); transition: color 0.3s;
  line-height: 1;
}
.lang-opt.active { color: var(--bg-0); }
.lang-thumb {
  position: absolute; top: 3px; left: 3px;
  width: calc(50% - 3px); height: calc(100% - 6px);
  border-radius: 99px;
  background: linear-gradient(120deg, var(--cyan), #35f1c8);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
  transition: transform 0.35s var(--ease-out);
}
.lang-switch.ar .lang-thumb { transform: translateX(100%); }

/* RTL (Arabic) mode */
html[dir="rtl"] body { font-family: "Cairo", var(--font-body); }
html[dir="rtl"] .section-title,
html[dir="rtl"] .hero-title { letter-spacing: 0; }
html[dir="rtl"] .nav-links a,
html[dir="rtl"] .btn,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .studio-tag,
html[dir="rtl"] .chip,
html[dir="rtl"] .hero-tagline,
html[dir="rtl"] .hero-stats span,
html[dir="rtl"] .spec-tab,
html[dir="rtl"] .spec-list dt,
html[dir="rtl"] .feature-toggle,
html[dir="rtl"] .footer h4,
html[dir="rtl"] .field label { letter-spacing: 0.02em; }
html[dir="rtl"] .spec-list dd,
html[dir="rtl"] .profile-list dd { text-align: left; }
html[dir="rtl"] .spec-list div,
html[dir="rtl"] .profile-list div { flex-direction: row-reverse; }
html[dir="rtl"] .social-list a:hover { transform: translateX(-4px); }
html[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 0.3rem; }
html[dir="rtl"] .feature-details li { padding-left: 0; padding-right: 1.3rem; }
html[dir="rtl"] .feature-details li::before { left: auto; right: 0; }
html[dir="rtl"] .spec-card h3 { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .toast { transform: translate(-50%, 20px); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s,
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  color: var(--bg-0);
  background: linear-gradient(120deg, var(--cyan), #35f1c8);
  box-shadow: 0 4px 24px rgba(0, 229, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(0, 229, 255, 0.5);
}

.btn-outline {
  color: var(--text);
  border: 1px solid var(--border-glow);
  background: var(--cyan-soft);
}
.btn-outline:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 201, 77, 0.2);
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1rem;
}
.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}
.btn-block {
  width: 100%;
}

.btn-play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--bg-0);
}

/* ============================================================
   SECTION SCAFFOLDING
============================================================ */
.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: 3.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.section-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ============================================================
   GLASSMORPHISM CARDS
============================================================ */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2rem;
  position: relative;
  transition:
    border-color 0.35s ease,
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
}
.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-glow),
    0 20px 50px rgba(0, 0, 0, 0.45);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 229, 255, 0.25);
}
.card-icon svg {
  width: 26px;
  height: 26px;
}
.card-icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(0, 229, 255, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s;
}
.glass-card:hover .card-icon::after {
  opacity: 1;
}

/* ============================================================
   [1] HERO
============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  background:
    radial-gradient(
      ellipse 80% 55% at 50% -10%,
      rgba(0, 229, 255, 0.14),
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 40% at 85% 90%,
      rgba(255, 201, 77, 0.08),
      transparent 60%
    ),
    var(--bg-0);
}

#particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse 90% 70% at 50% 45%,
    transparent 45%,
    rgba(24, 29, 36, 0.8) 100%
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(
    ellipse 70% 55% at 50% 40%,
    black,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 55% at 50% 40%,
    black,
    transparent 75%
  );
  animation: grid-drift 24s linear infinite;
}
@keyframes grid-drift {
  to {
    background-position:
      70px 70px,
      70px 70px;
  }
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(0, 0, 0, 0.18) 3px 4px
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.studio-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.55rem 1.2rem;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}
.studio-tag b {
  color: var(--gold);
}
.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: dot-blink 2s ease-in-out infinite;
}
@keyframes dot-blink {
  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 9.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
}
.hero-title .title-line {
  display: block;
}
.hero-title .title-line.accent {
  background: linear-gradient(
    90deg,
    var(--cyan) 10%,
    #7ef9ff 45%,
    var(--gold) 95%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(0, 229, 255, 0.35));
  animation: hue-shift 8s ease-in-out infinite alternate;
}
@keyframes hue-shift {
  to {
    filter: drop-shadow(0 0 34px rgba(255, 201, 77, 0.35));
  }
}

.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
  text-shadow: 0 0 18px rgba(255, 201, 77, 0.4);
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 2.4rem;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.hero-sub b {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 860px;
  margin: 0 auto;
}
.hero-stats li {
  min-width: 120px;
}
.hero-stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}
.hero-stats span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-faint);
  border-radius: 12px;
  position: relative;
}
.mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  50% {
    transform: translateY(10px);
    opacity: 0.2;
  }
}
.hint-text {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--text-faint);
}

/* ============================================================
   [2] ABOUT
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.about-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.about-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.about-card p + p {
  margin-top: 0.8rem;
}
.about-card p b {
  color: var(--text);
}

.profile-list {
  display: grid;
  gap: 0.65rem;
}
.profile-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.profile-list dt {
  color: var(--text-faint);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
}
.profile-list dd {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}
.profile-list dd:nth-child(3) {
  color: var(--cyan);
}

/* ============================================================
   [3] FEATURES
============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  cursor: pointer;
  overflow: hidden;
}
.feature-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 229, 255, 0.1),
    transparent 55%
  );
  transition: opacity 0.4s;
}
.feature-card:hover .feature-glow {
  opacity: 1;
}

.chip {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1rem;
  background: var(--gold-soft);
  border: 1px solid rgba(255, 201, 77, 0.3);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}
.feature-card > p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.feature-details {
  display: grid;
  gap: 0.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s var(--ease-out),
    opacity 0.4s,
    margin-top 0.5s var(--ease-out);
}
.feature-details li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.feature-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--cyan);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}
.feature-card.expanded .feature-details {
  max-height: 300px;
  opacity: 1;
  margin-top: 1.2rem;
}
.feature-card.expanded {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.feature-toggle {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.feature-toggle::after {
  content: " ▾";
  transition: transform 0.3s;
  display: inline-block;
}
.feature-card.expanded .feature-toggle::after {
  transform: rotate(180deg);
}

/* ============================================================
   [4] GALLERY — PRESET COMPARISON
============================================================ */
.gallery-tabs {
  position: relative;
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  backdrop-filter: blur(12px);
  margin-bottom: 2rem;
}
.gallery-tab {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.65rem 1.6rem;
  border-radius: 99px;
  transition: color 0.3s;
}
.gallery-tab:hover { color: var(--text); }
.gallery-tab.active { color: var(--bg-0); }

.gallery-panels { position: relative; }
.gallery-panel { display: none; }
.gallery-panel.active {
  display: block;
  animation: panel-in 0.45s var(--ease-out);
}

.gallery-figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  margin: 0;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.gallery-figure:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow), 0 24px 60px rgba(0, 0, 0, 0.5);
}
.gallery-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.4s;
  filter: saturate(0.96);
}
.gallery-figure:hover img {
  transform: scale(1.03);
  filter: saturate(1.1);
}

.gallery-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.4rem 1.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(24, 29, 36, 0.88));
  text-align: start;
}
.gallery-panel[data-gallery-panel="low"] .gallery-figure figcaption { color: var(--text-dim); }
.gallery-panel[data-gallery-panel="high"] .gallery-figure figcaption { color: var(--gold); }

/* ============================================================
   [5] SPECS
============================================================ */
.spec-tabs {
  position: relative;
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  backdrop-filter: blur(12px);
  margin-bottom: 2rem;
}
.spec-tab {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.65rem 1.6rem;
  border-radius: 99px;
  transition: color 0.3s;
}
.spec-tab:hover {
  color: var(--text);
}
.spec-tab.active {
  color: var(--bg-0);
}

.tab-indicator {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 0;
  height: calc(100% - 0.8rem);
  border-radius: 99px;
  background: linear-gradient(120deg, var(--cyan), #35f1c8);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.45);
  transition:
    left 0.4s var(--ease-out),
    width 0.4s var(--ease-out);
}

.spec-panels {
  position: relative;
}
.spec-panel {
  display: none;
}
.spec-panel.active {
  display: block;
  animation: panel-in 0.45s var(--ease-out);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.spec-card {
  max-width: 820px;
}
.spec-card h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.spec-badge {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.spec-badge.accent {
  color: var(--bg-0);
  background: var(--cyan);
  border-color: transparent;
}
.spec-badge.gold {
  color: var(--bg-0);
  background: var(--gold);
  border-color: transparent;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}
.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s;
}
.spec-list div:hover {
  border-color: var(--border-glow);
}
.spec-list dt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}
.spec-list dd {
  color: var(--text);
  font-size: 0.92rem;
  text-align: right;
}

.spec-footnote {
  margin-top: 1.6rem;
  color: var(--text-faint);
  font-size: 0.88rem;
}
.spec-footnote b {
  color: var(--gold);
}

/* ============================================================
   [6] FOOTER — simple copyright bar
============================================================ */
.footer {
  position: relative;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(
      ellipse 60% 50% at 20% 0%,
      rgba(0, 229, 255, 0.07),
      transparent 60%
    ),
    var(--bg-1);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.88rem;
  text-align: center;
  letter-spacing: 0.04em;
}
.footer-bottom p { margin: 0; }

/* ============================================================
   MODALS
============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(920px, 94%);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease-out);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    var(--shadow-glow);
}
.modal.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-glow);
  transition:
    transform 0.25s var(--ease-out),
    color 0.25s,
    border-color 0.25s;
}
.modal-close:hover {
  transform: rotate(90deg) scale(1.08);
  color: var(--cyan);
  border-color: var(--cyan);
}

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #03050a;
  border: 1px solid var(--border);
}
.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-placeholder {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  position: relative;
  text-align: center;
  padding: 1rem;
  background:
    radial-gradient(
      ellipse 60% 50% at 50% 40%,
      rgba(0, 229, 255, 0.12),
      transparent 70%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 4px,
      rgba(0, 229, 255, 0.03) 4px 5px
    );
}
.video-pulse {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.4);
  animation: ripple 2.4s ease-out infinite;
}
@keyframes ripple {
  from {
    transform: scale(0.5);
    opacity: 1;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}
.video-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
}
.video-note {
  color: var(--text-faint);
  font-size: 0.78rem;
}
.video-note code {
  color: var(--cyan);
}

.modal-caption {
  padding-top: 1.2rem;
}
.modal-caption h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.modal-caption p {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.wishlist-content {
  width: min(480px, 94%);
  padding: 2.4rem;
}
.wishlist-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.wishlist-lead {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.wishlist-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
.wishlist-fineprint {
  color: var(--text-faint);
  font-size: 0.75rem;
  text-align: center;
}

/* ============================================================
   TOAST
============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 500;
  padding: 0.9rem 1.6rem;
  border-radius: 99px;
  background: rgba(10, 14, 23, 0.9);
  border: 1px solid var(--border-glow);
  color: var(--text);
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    transform 0.35s var(--ease-out),
    visibility 0.35s;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.toast.gold {
  border-color: rgba(255, 201, 77, 0.5);
  box-shadow: 0 0 40px rgba(255, 201, 77, 0.15);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: rgba(24, 29, 36, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.35s var(--ease-out),
      opacity 0.3s,
      visibility 0.3s;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child {
    border-bottom: 0;
  }
  .nav-links a {
    display: block;
    padding: 1rem 8%;
  }

  .nav-toggle {
    display: flex;
  }
  /* Keep the language switcher (EN / AR) visible and tappable in the mobile navbar */
  .nav-actions {
    display: flex;
    margin-left: auto;
    align-items: center;
  }
  .lang-switch {
    padding: 4px;
  }
  .lang-opt {
    min-width: 44px;
    padding: 0.45rem 0.6rem;
    font-size: 0.75rem;
  }

  .gallery-tab {
    padding: 0.65rem 1rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .spec-list {
    grid-template-columns: 1fr;
  }
  .spec-tabs {
    width: 100%;
  }
  .spec-tab {
    flex: 1;
    padding: 0.65rem 0.6rem;
    font-size: 0.78rem;
  }
  .gallery-tab {
    flex: 1;
    padding: 0.65rem 0.6rem;
    font-size: 0.78rem;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .hero-stats {
    gap: 1.2rem;
  }
  .hero-stats li {
    min-width: 40%;
  }
  .modal-close {
    top: 10px;
    right: 10px;
  }
}
