/* =====================================================
   DIGITEREX — GLOBAL DESIGN SYSTEM v2
   Aesthetic : Dark Luxury Editorial
   Accent    : Electric Lime #b4f800
   Fonts     : Bebas Neue (display) + Plus Jakarta Sans (body)
   Icons     : Font Awesome 6 Free
   NOTE: Fonts & FA loaded via <link> in HTML head, NOT @import
         @import is render-blocking; <link rel="preload"> is not.
===================================================== */

/* ── TOKENS ── */
:root {
  --lime: #b4f800;
  --lime-dim: rgba(180, 248, 0, 0.10);
  --lime-glow: rgba(180, 248, 0, 0.22);
  --blue: #3b82f6;
  --violet: #7c3aed;
  --red: #ef4444;
  --green: #22c55e;
  --orange: #f97316;

  --bg: #0a0a0a;
  --bg1: #0f0f0f;
  --bg2: #141414;
  --bg3: #1a1a1a;
  --surface: #1c1c1c;
  --surface2: #242424;
  --line: rgba(255, 255, 255, 0.06);
  --line2: rgba(255, 255, 255, 0.11);
  --line3: rgba(255, 255, 255, 0.18);

  --text: #f5f5f5;
  --text2: #888;
  --text3: #555;
  --white: #fff;

  --f-display: 'Bebas Neue', sans-serif;
  --f-body: 'Plus Jakarta Sans', sans-serif;
  --f-ar: 'Tajawal', sans-serif;

  --nav-h: 72px;
  --max-w: 1240px;
  --r: 14px;
  --r-sm: 8px;
  --r-pill: 100px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease2: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg: #f9f9f9;
  --bg1: #f2f2f2;
  --bg2: #ebebeb;
  --bg3: #e4e4e4;
  --surface: #ffffff;
  --surface2: #f5f5f5;
  --line: rgba(0, 0, 0, 0.07);
  --line2: rgba(0, 0, 0, 0.12);
  --line3: rgba(0, 0, 0, 0.18);
  --text: #111;
  --text2: #555;
  --text3: #999;
  --lime: #5a7a00;
  --lime-dim: rgba(90, 122, 0, 0.08);
  --lime-glow: rgba(90, 122, 0, 0.18);
}

/* ── LOGO THEME SWITCH ── */
.logo-light {
  display: none
}

[data-theme="light"] .logo-dark {
  display: none
}

[data-theme="light"] .logo-light {
  display: block
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  transition: background .4s var(--ease2), color .4s var(--ease2);
}

[lang="ar"] body {
  font-family: var(--f-ar);
  direction: rtl
}

img,
video {
  max-width: 100%;
  display: block
}

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

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

/* ── CUSTOM CURSOR ── */
#cur {
  width: 10px;
  height: 10px;
  background: var(--lime);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease);
  mix-blend-mode: difference;
}

#cur-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(180, 248, 0, .45);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all .14s var(--ease);
}

body:has(a:hover) #cur,
body:has(button:hover) #cur {
  width: 18px;
  height: 18px
}

body:has(a:hover) #cur-ring,
body:has(button:hover) #cur-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(180, 248, 0, .2)
}

/* ── NOISE ── */
#noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 72px);
  gap: 16px;
  transition: background .35s var(--ease2), border-color .35s;
}

#nav.scrolled {
  background: rgba(10, 10, 10, .88);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line2);
}

[data-theme="light"] #nav.scrolled {
  background: rgba(249, 249, 249, .9)
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--text);
}

.nav-logo img {
  height: 40px;
  border-radius: 8px;
  background: var(--lime);
  width: auto;
  object-fit: contain
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 900;
  color: #0a0a0a;
  font-family: var(--f-body);
  letter-spacing: .05em;
  flex-shrink: 0;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
}

.nav-a {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text2);
  transition: color .2s, background .2s;
  letter-spacing: .01em;
}

.nav-a:hover {
  color: var(--text)
}

.nav-a.active {
  color: var(--lime)
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line2);
  background: var(--surface);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  transition: all .2s;
}

.icon-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: var(--lime-dim)
}

/* ── LANGUAGE DROPDOWN ── */
.lang-drop {
  position: relative
}

.lang-drop-btn {
  gap: 5px;
  min-width: 76px;
  font-size: .72rem;
  letter-spacing: .05em;
  padding: 0 10px;
}

.lang-flag {
  font-size: .95rem;
  line-height: 1
}

.lang-code {
  font-weight: 700
}

.lang-chevron {
  font-size: .55rem;
  color: var(--text3);
  transition: transform .25s var(--ease);
  flex-shrink: 0
}

.lang-drop.open .lang-chevron {
  transform: rotate(180deg)
}

.lang-drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  z-index: 9999;
}

[dir="rtl"] .lang-drop-menu {
  right: auto;
  left: 0
}

.lang-drop.open .lang-drop-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all
}

.lang-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text2);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  transition: background .15s, color .15s;
  text-align: start;
}

.lang-opt:last-child {
  border-bottom: none
}

.lang-opt:hover {
  background: var(--surface2);
  color: var(--text)
}

.lang-opt.active {
  color: var(--lime);
  background: var(--lime-dim)
}

.nav-cta {
  padding: 9px 22px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: #0a0a0a;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .nav-cta {
  color: #ffffff
}

.nav-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: translateX(-100%);
  transition: transform .5s
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--lime-glow)
}

.nav-cta:hover::after {
  transform: translateX(100%)
}

.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line2);
  background: var(--surface);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-burger span {
  width: 16px;
  height: 1.5px;
  background: var(--text2);
  border-radius: 2px;
  transition: all .3s
}

/* ── DRAWER ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: all
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 86vw);
  z-index: 1200;
  background: var(--bg2);
  border-left: 1px solid var(--line2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
}

.drawer.open {
  transform: translateX(0)
}

[lang="ar"] .drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--line2);
  transform: translateX(-100%)
}

[lang="ar"] .drawer.open {
  transform: translateX(0)
}

.drawer-close {
  align-self: flex-end;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line2);
  background: var(--surface);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px
}

.drawer-a {
  padding: 13px 14px;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text2);
  transition: all .2s
}

.drawer-a:hover {
  background: var(--surface2);
  color: var(--lime)
}

.drawer-a.active {
  color: var(--lime)
}

/* ── PAGE WRAP TRANSITION ── */
.pw {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease)
}

.pw.ready {
  opacity: 1;
  transform: translateY(0)
}

/*
  .pg-hero — standard top section on inner pages.
  padding-top = nav height + comfortable breathing room (same feel as index hero).
*/
.pg-hero {
  padding: calc(var(--nav-h) + 80px) clamp(20px, 4vw, 72px) 80px;
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.pg-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(180, 248, 0, .07), transparent 70%);
  pointer-events: none;
}

.pg-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center
}

/* ── CONTAINER ── */
.w {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 72px)
}

section {
  padding: clamp(80px, 11vw, 130px) clamp(20px, 4vw, 72px);
  position: relative
}

/* ── TYPE ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
  font-family: var(--f-body);
}

.tag i {
  font-size: .65rem
}

.h1 {
  font-family: var(--f-display);
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: .94;
  letter-spacing: .02em;
  color: var(--text)
}

.h2 {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: .96;
  letter-spacing: .02em;
  color: var(--text)
}

.h3 {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--text)
}

[lang="ar"] .h1,
[lang="ar"] .h2,
[lang="ar"] .h3 {
  font-family: var(--f-ar);
  letter-spacing: 0;
  line-height: 1.15
}

.body-lg {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  color: var(--text2);
  line-height: 1.75;
  font-weight: 400;
  max-width: 540px
}

.body-sm {
  font-size: .85rem;
  color: var(--text2);
  line-height: 1.7
}

[lang="ar"] .body-lg,
[lang="ar"] .body-sm {
  font-weight: 400
}

/* Gradient on display text */
.lime-text {
  color: var(--lime)
}

.outline-text {
  -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
  -webkit-text-fill-color: transparent;
  color: transparent
}

[data-theme="light"] .outline-text {
  -webkit-text-stroke: 1px rgba(0, 0, 0, .18)
}

[lang="ar"] .outline-text {
  -webkit-text-fill-color: unset;
  -webkit-text-stroke: none;
  color: var(--text)
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-lime {
  background: var(--lime);
  color: #0a0a0a
}

[data-theme="light"] .btn-lime {
  color: #ffffff
}

.btn-lime:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px var(--lime-glow)
}

.btn-outline {
  border: 1px solid var(--line3);
  color: var(--text)
}

.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: var(--lime-dim);
  transform: translateY(-2px)
}

.btn-sm {
  padding: 9px 20px;
  font-size: .77rem
}

/* ── PILL / BADGE ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--lime-dim);
  border: 1px solid rgba(180, 248, 0, .2);
  font-size: .7rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  animation: blink 2s infinite
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* ── CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: all .4s var(--ease);
  position: relative;
}

.card:hover {
  border-color: rgba(180, 248, 0, .18);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(180, 248, 0, .06)
}

/* ── SCROLL REVEAL ── */
/*
  Base: fade up (safe for both LTR and RTL — no horizontal movement)
  .sl  : slide from inline-start (LTR = left, RTL = right)
  .sr-r: slide from inline-end   (LTR = right, RTL = left)
  All transitions end at translate(0) so they work in every direction.
*/
.sr {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  will-change: opacity, transform;
}

/* LTR slide-left — flipped automatically in RTL via logical property emulation */
.sr.sl {
  transform: translate(-36px, 0)
}

[dir="rtl"] .sr.sl {
  transform: translate(36px, 0)
}

/* Explicit right-enter (LTR) — also flipped for RTL */
.sr.sr-r {
  transform: translate(36px, 0)
}

[dir="rtl"] .sr.sr-r {
  transform: translate(-36px, 0)
}

/* Revealed state — reset ALL transforms */
.sr.in {
  opacity: 1;
  transform: translate(0, 0)
}

.d1 {
  transition-delay: .08s
}

.d2 {
  transition-delay: .16s
}

.d3 {
  transition-delay: .24s
}

.d4 {
  transition-delay: .32s
}

.d5 {
  transition-delay: .4s
}

.d6 {
  transition-delay: .48s
}

/* ── HR ── */
hr.fade {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line2), transparent);
  border: none
}

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg1);
  padding: 14px 0
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: tick 30s linear infinite;
  width: max-content;
  will-change: transform;
  /* GPU layer */
  transform: translateZ(0);
}

.ticker-track:hover {
  animation-play-state: paused
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  font-size: .73rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
  border-right: 1px solid var(--line);
}

.ticker-item i {
  color: var(--lime);
  font-size: .65rem
}

@keyframes tick {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

[dir="rtl"] .ticker-track {
  animation-name: tick-rtl
}

@keyframes tick-rtl {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(50%)
  }
}

/* ── INPUTS ── */
.inp {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  padding: 13px 16px;
  color: var(--text);
  font-size: .88rem;
  transition: border-color .2s, box-shadow .2s;
}

.inp:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-dim)
}

.inp::placeholder {
  color: var(--text3)
}

textarea.inp {
  resize: vertical;
  min-height: 112px
}

.lbl {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
  margin-bottom: 7px
}

/* ── FOOTER ── */
footer {
  background: var(--bg1);
  border-top: 1px solid var(--line);
  padding: 72px clamp(20px, 4vw, 72px) 28px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px
}

.footer-logo {
  margin-bottom: 14px
}

.footer-tagline {
  font-size: .83rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 240px
}

.footer-col-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text3);
  margin-bottom: 16px
}

[lang="ar"] .footer-col-title {
  letter-spacing: 0
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px
}

.footer-links a {
  font-size: .83rem;
  color: var(--text2);
  transition: color .2s
}

.footer-links a:hover {
  color: var(--lime)
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap
}

.footer-copy {
  font-size: .75rem;
  color: var(--text3)
}

.socials {
  display: flex;
  gap: 7px
}

.soc {
  width: 34px;
  height: 34px;
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: .78rem;
  transition: all .2s
}

.soc:hover {
  border-color: var(--lime);
  color: var(--lime)
}

/* ── CTA BANNER ── */
.cta-banner {
  margin: 0 clamp(20px, 4vw, 72px) clamp(72px, 10vw, 110px);
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 24px;
  padding: clamp(60px, 8vw, 96px) clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 20%;
  right: 20%;
  height: 250px;
  background: radial-gradient(ellipse, rgba(180, 248, 0, .07), transparent 70%);
  pointer-events: none
}

.cta-banner-inner {
  position: relative;
  z-index: 1
}

.cta-banner .h2 {
  margin-bottom: 14px
}

.cta-banner p {
  font-size: .95rem;
  color: var(--text2);
  max-width: 440px;
  margin: 0 auto 36px;
  line-height: 1.75
}

.email-row {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  justify-content: center;
}

.email-row .inp {
  flex: 1;
  border-radius: var(--r-pill);
  padding: 13px 20px
}

.email-row .btn {
  border-radius: var(--r-pill)
}

/* ── RESPONSIVE ── */
@media(max-width:980px) {
  .nav-links {
    display: none
  }

  .nav-right {
    margin-inline-start: auto;
    justify-content: flex-end;
  }

  .nav-burger {
    display: flex
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:600px) {
  .nav-cta {
    display: none
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  body,
  #cur,
  #cur-ring {
    cursor: auto
  }

  #cur,
  #cur-ring {
    display: none
  }

  .email-row {
    flex-direction: column
  }
}