@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
:root {
  --bg: #000711;
  --surface: #03111e;
  --surface2: #061522;
  --line: #142638;
  --text: #e7ebf1;
  --muted: #929dac;
  --purple: #7b24df;
  --violet: #a73fff;
  --cyan: #27d8ff;
}

/* ===================== TOKENS ===================== */
:root {
  --bg: #060a16;
  --bg-alt: hsl(225, 56%, 7%);
  --surface: #0d1428;
  --surface-2: #111a33;
  --border: #1b2440;
  --border-soft: #161f38;
  --purple: #6f03ad;
  --purple-2: #9941fd;
  --purple-deep: #6f029b98;
  --cyan: #06c2db;
  --text: #f3f5fb;
  --text-dim: #a6adc4;
  --text-mute: #6b738f;
  --green: #02fa72;
  --font: "Cairo", "Tajawal", sans-serif;
  --neon-green: #00ff88;
  --neon-glow: rgba(0, 255, 136, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  direction: rtl;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}
ul {
  list-style: none;
}

.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 30px;
}

.container-fluid {
  width: 100%;
  padding: 0 30px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn svg {
  flex-shrink: 0;
}
.btn--primary {
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-deep) 100%
  );
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.65);
  display: inline-flex;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -6px rgba(124, 92, 255, 0.8);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--purple-2);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--purple-2);
  background: rgba(124, 92, 255, 0.06);
}
.btn--lg {
  padding: 14px 26px;
  font-size: 15.5px;
}
.btn--block {
  width: 100%;
  margin-top: 18px;
}

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 22, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
  padding: 20px 30px;
  direction: ltr !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 200px;
}
.brand__logo {
  width: 48px;
  height: 48px;
  border: 2px solid #8d2bdf;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: grid;
  place-items: center;
  color: #f8f7f8;
  font-weight: 800;
  font-size: 17px;
  background: rgb(104, 3, 236);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.nav__link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s ease;
  position: relative;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}
.nav__link:hover {
  color: var(--text);
}
.nav__link--active {
  color: var(--text);
}
.nav__link--active::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -27px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 4px;
}
.lang-switch .chev {
  opacity: 0.6;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
  flex-shrink: 0;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons duplicated inside the mobile hamburger menu.
   Hidden everywhere by default; only revealed on small screens
   when the mobile nav is open (see the 860px media query). */
.nav__mobile-actions {
  display: none;
}
.nav__mobile-btn-wrap {
  display: block;
  width: 100%;
}

.avatar {
  width: 38px;
  height: 38px;
  border: 1px solid #293647;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
}
.user strong {
  display: block;
  font-size: 10px;
}
.user small {
  color: #8b96a5;
  font-size: 9px;
}
.app {
  display: flex;
}
.sidebar {
  width: 178px;
  min-height: calc(100vh - 71px);
  border-left: 1px solid #132536;
  background: #020b16;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.side-links {
  padding-top: 25px;
}
.side-links a {
  height: 51px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  color: #c9ced6;
  text-decoration: none;
  font-size: 12px;
}
.side-links a i {
  font-size: 16px;
  color: #d6dce3;
}
.upgrade {
  margin: 0 14px 16px;
  padding: 14px 10px 11px;
  border: 1px solid #1a3043;
  background: #061321;
  border-radius: 6px;
}
.upgrade div {
  font-size: 10px;
  color: #dfe3ea;
}
.upgrade div:first-letter {
  color: #ad3fff;
}
.upgrade p {
  font-size: 9px;
  color: #8b97a5;
  line-height: 1.5;
  margin: 12px 0;
}
.primary {
  border: 1px solid #8d2de9;
  background: linear-gradient(135deg, #6819ce, #8427e8);
  color: #fff;
  border-radius: 5px;
  height: 31px;
  font-size: 9px;
}
.upgrade .primary {
  width: 100%;
}
.main {
  width: calc(100% - 178px);
  padding: 19px 34px 25px;
  overflow: hidden;
}
.crumb {
  font-size: 9px;
  color: #8d98a6;
  margin: 0 0 14px;
}
.hero {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 25px;
  align-items: center;
}
.about {
  padding-left: 1px;
}
.about h1 {
  font-size: 29px;
  margin: 0 0 8px;
  letter-spacing: -0.7px;
}
.about h2 {
  font-size: 14px;
  color: #a846f2;
  font-weight: 500;
  margin: 0 0 28px;
}
.about p {
  color: #c5cbd3;
  line-height: 1.9;
  font-size: 11px;
}
.panel {
  background: linear-gradient(145deg, #061522, #03101b);
  border: 1px solid #142a3d;
  border-radius: 7px;
  box-shadow: 0 7px 25px #0004;
}
.mission {
  height: 255px;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  overflow: hidden;
  position: relative;
}
.mission:before {
  content: "";
  position: absolute;
  left: 5%;
  right: 45%;
  top: -20%;
  bottom: -20%;
  background: radial-gradient(circle, #671cff45, transparent 62%);
  pointer-events: none;
}
.holo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.rings {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid #7132e9aa;
  box-shadow:
    inset 0 0 35px #5d1df944,
    0 0 35px #5d1df933;
}
.rings:before,
.rings:after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid #2b9eff55;
}
.rings:after {
  inset: 55px;
  border-color: #d04aff55;
}
.cube-d {
  z-index: 2;
  font-size: 78px;
  font-weight: 800;
  color: #a34cff;
  text-shadow:
    0 0 10px #b840ff,
    0 0 25px #5430ff;
}
.platform {
  position: absolute;
  width: 150px;
  height: 28px;
  border-radius: 50%;
  bottom: 38px;
  background: radial-gradient(ellipse, #a633ffcc, #3020a500 68%);
  border-bottom: 2px solid #3cdcff;
  box-shadow: 0 0 25px #8c2cff;
}
.mission-copy {
  padding: 33px 28px 15px 8px;
  z-index: 1;
}
.mission-copy h2 {
  font-size: 16px;
  margin: 0 0 14px;
}
.mission-copy p {
  font-size: 11px;
  color: #c5cbd3;
  line-height: 1.65;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 28px;
}
.pillars > div {
  display: flex;
  gap: 9px;
}
.pillars i {
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid #4d1b7b;
  background: #1b1033;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ad45ff;
  font-size: 16px;
}
.pillars b {
  display: block;
  font-size: 10px;
}
.pillars small {
  display: block;
  color: #8f9ba9;
  line-height: 1.45;
  margin-top: 5px;
  font-size: 8px;
}
.tabs {
  height: 47px;
  margin-top: 20px;
  display: flex;
  align-items: stretch;
  padding: 0 10px;
}
.tabs button {
  background: none;
  border: 0;
  color: #e1e4e9;
  padding: 0 17px;
  border-bottom: 2px solid transparent;
  font-size: 10px;
}
.tabs button.active {
  color: #bd6cff;
  border-bottom-color: #9b36ff;
  background: #7b27e50d;
}
.stats {
  height: 104px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 18px 15px;
}
.stats > div {
  display: flex;
  align-items: center;
  gap: 13px;
  border-left: 1px solid #162a3d;
  padding-right: 12px;
}
.stats > div:last-child {
  border: 0;
}
.stats i {
  font-size: 28px;
  color: #9c3fff;
  text-shadow: 0 0 15px #922fff77;
}
.stats span {
  font-size: 9px;
  color: #e0e4ea;
}
.stats b {
  display: block;
  font-size: 19px;
  margin-bottom: 6px;
}
.three-cols {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1.15fr;
  gap: 17px;
  margin-top: 20px;
}
.three-cols > .panel {
  min-height: 422px;
}
.what,
.capabilities {
  padding: 24px;
}
.three-cols h2 {
  font-size: 16px;
  margin: 0 0 15px;
}
.what p {
  font-size: 10px;
  color: #b8c0ca;
  line-height: 1.85;
  margin: 0;
}
.syria-art {
  height: 230px;
  margin-top: 15px;
  filter: drop-shadow(0 0 14px #632cff55);
}
.syria-art svg {
  width: 100%;
  height: 100%;
}
.capabilities {
  padding-bottom: 18px;
}
.cap {
  display: flex;
  gap: 11px;
  margin: 15px 0;
}
.cap i {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  background: #1b1033;
  border: 1px solid #4a1c73;
  border-radius: 6px;
  color: #a846ff;
  font-size: 17px;
}
.cap b {
  display: block;
  font-size: 10px;
  margin: 4px 0;
}
.cap small {
  font-size: 9px;
  color: #8f9aa8;
}
.explore {
  display: block;
  color: #b24eff;
  font-size: 10px;
  text-decoration: none;
  margin-top: 30px;
}
.right-col {
  display: grid;
  grid-template-rows: 1.35fr 0.85fr;
  gap: 16px;
}
.why,
.trusted {
  padding: 24px;
}
.why ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.why li {
  font-size: 10px;
  color: #bec5ce;
  margin: 11px 0;
}
.why li:before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #7433b5;
  color: #ad4fff;
  border-radius: 50%;
  margin-right: 9px;
}
.trusted h2 {
  margin-bottom: 20px;
}
.orgs {
  display: flex;
  gap: 18px;
}
.orgs span {
  width: 61px;
  height: 47px;
  border: 1px solid #203347;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #c5ccd5;
  background: #06121e;
}
.trusted a {
  display: block;
  color: #b450ff;
  font-size: 10px;
  margin-top: 18px;
  text-decoration: none;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: 0.25s;
  background: #0b1927;
  border: 1px solid #7c35bf;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 10px;
  z-index: 9;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .mission {
    height: 250px;
  }
  .three-cols {
    grid-template-columns: 1fr 1fr;
  }
  .right-col {
    grid-column: 1/-1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .sidebar {
    width: 155px;
  }
  .main {
    width: calc(100% - 155px);
    padding-left: 25px;
    padding-right: 25px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
    height: auto;
  }
  .stats > div:nth-child(3) {
    border: 0;
  }
  .stats > div {
    padding: 12px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    display: none;
  }
  .main {
    width: 100%;
    padding: 15px;
  }
  .hero,
  .three-cols,
  .right-col {
    display: block;
  }
  .mission {
    margin-top: 15px;
    height: auto;
    min-height: 270px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats > div {
    border-bottom: 1px solid #162a3d !important;
    border-right: 0 !important;
  }
  .tabs {
    overflow: auto;
  }
  .tabs button {
    white-space: nowrap;
  }
  .three-cols > .panel,
  .right-col .panel {
    margin-top: 15px;
  }
  .pillars {
    gap: 8px;
  }
  .mission-copy {
    padding: 22px;
  }
  .syria-art {
    height: 190px;
  }
}
@media (max-width: 500px) {
  .top-actions .avatar,
  .top-actions .bell {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stats > div {
    border-bottom: 1px solid #162a3d !important;
  }
  .mission {
    grid-template-columns: 1fr;
  }
  .holo {
    height: 160px;
  }
  .mission-copy {
    padding-top: 5px;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .about h1 {
    font-size: 25px;
  }
}
/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {
  .topbar {
    height: 64px;
  }

  .topbar-inner {
    padding: 0 16px;
  }

  /* Hide desktop elements */

  .desktop-nav,
  .top-actions {
    display: none;
  }

  /* Brand */

  .dlogo {
    width: 36px;
    height: 36px;

    font-size: 20px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text small {
    font-size: 8px;
  }

  /* Hamburger */

  .burger {
    display: flex;
  }

  /* Mobile dropdown */

  .mobile-nav {
    position: absolute;

    top: calc(100% + 8px);
    left: 12px;
    right: 12px;

    display: flex;
    flex-direction: column;

    padding: 10px;

    background: linear-gradient(
      145deg,
      rgba(8, 14, 28, 0.98),
      rgba(5, 10, 22, 0.98)
    );

    border: 1px solid rgba(92, 105, 139, 0.22);

    border-radius: 14px;

    box-shadow:
      0 20px 45px rgba(0, 0, 0, 0.45),
      0 0 25px rgba(91, 33, 182, 0.08);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  /* Open state */

  .mobile-nav.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
  }

  /* Links */

  .mobile-nav a {
    min-height: 47px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 0 13px;

    border-radius: 9px;

    color: #8995ad;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition:
      background 0.2s ease,
      color 0.2s ease;
  }

  .mobile-nav a i {
    width: 20px;

    text-align: center;

    font-size: 16px;

    color: #74819a;
  }

  .mobile-nav a:hover {
    color: #fff;

    background: rgba(124, 58, 237, 0.08);
  }

  .mobile-nav a:hover i {
    color: #a78bfa;
  }

  /* Active */

  .mobile-nav a.active {
    color: #fff;

    background: linear-gradient(
      90deg,
      rgba(124, 58, 237, 0.16),
      rgba(34, 211, 238, 0.04)
    );

    border: 1px solid rgba(124, 58, 237, 0.14);
  }

  .mobile-nav a.active i {
    color: #a78bfa;
  }

  /* Divider */

  .mobile-divider {
    height: 1px;

    margin: 9px 4px;

    background: rgba(100, 115, 145, 0.14);
  }

  /* Account */

  .mobile-account {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px 8px 7px;
  }

  .mobile-account .avatar {
    width: 36px;
    height: 36px;
  }

  .mobile-account > div:last-child {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
  }

  .mobile-account strong {
    color: #e8edf7;

    font-size: 11px;
  }

  .mobile-account small {
    margin-top: 4px;

    color: #65728b;

    font-size: 9px;
  }
}

/* =====================================================
   VERY SMALL PHONES
===================================================== */

@media (max-width: 380px) {
  .topbar-inner {
    padding: 0 12px;
  }

  .brand-text small {
    display: none;
  }

  .mobile-nav {
    left: 8px;
    right: 8px;
  }
}

/* ---- Mobile nav / burger breakpoint (desktop untouched above 860px) ---- */
@media (max-width: 860px) {
  .header__actions {
    display: none;
  }
  .nav {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: linear-gradient(
      160deg,
      rgba(9, 15, 30, 0.98),
      rgba(5, 9, 20, 0.98)
    );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 14px 16px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.55);

    /* Smooth reveal instead of an abrupt display:none/flex swap,
       and no inner scrollbar under normal use. */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 45;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav__link {
    width: 100%;
    padding: 13px 6px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
  }
  .nav__link--active::after {
    display: none;
  }

  .nav__pages {
    width: 100%;
  }
  .nav__pages-trigger {
    width: 100%;
  }
  .mega {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 4px;
    box-shadow: none;
    border-color: var(--border-soft);
    background: var(--surface-2);
    margin-top: 6px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__pages.is-open .mega {
    display: grid;
  }
  .mega__col a {
    padding: 9px 4px;
  }

  /* Login / Explore buttons, moved out of the header and shown
     full-width inside the hamburger menu on mobile only. */
  .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 14px;
  }
  .nav__mobile-actions .lang-switch {
    justify-content: center;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
  }
  .nav__mobile-actions .btn--block {
    margin-top: 0;
    width: 100%;
  }
}

/* Extra safety for very narrow phones so the dropdown never
   touches the viewport edges or overlaps the burger/logo. */
@media (max-width: 380px) {
  .header__inner {
    padding: 16px 16px;
  }
  .brand {
    width: auto;
  }
  .nav {
    right: 10px;
    left: 10px;
    padding: 12px 12px 16px;
  }
}
