/* ============================================================
   SYNTRIX — style.css
   Premium dark AI + Education Tech + Product Ecosystem
   ------------------------------------------------------------
   Contents:
   01. CSS Variables & Reset
   02. Base / Typography
   03. Utilities & Layout
   04. Background
   05. Custom Cursor
   06. Preloader
   07. Navigation
   08. Mobile Menu
   09. Hero
   10. Vision
   11. Products Ecosystem
   12. Syntrix AI Tools
   13. Core Services
   14. Roadmap
   15. CTA
   16. Contact
   17. Footer
   18. Reveal Animations
   19. Responsive Breakpoints
   20. Reduced Motion
   ============================================================ */

/* ============ 01. CSS Variables & Reset ============ */
:root {
  color-scheme: dark;

  --navy-950: #060a14;
  --navy-900: #0a1020;
  --navy-800: #0e1730;
  --navy-700: #14203f;

  --blue-500: #2f7dff;
  --blue-400: #4d90ff;
  --cyan-400: #17d8ff;
  --cyan-300: #4fe6ff;

  --ink: #eaf1ff;
  --ink-dim: #9fb0cc;
  --ink-faint: #6b7c99;

  --line: rgba(120, 160, 230, 0.14);
  --line-strong: rgba(120, 170, 255, 0.28);

  --glass: rgba(13, 20, 38, 0.55);
  --glass-strong: rgba(16, 26, 50, 0.78);

  --eco-hub: rgba(10, 20, 40, 0.6);

  --grad: linear-gradient(120deg, var(--blue-400), var(--cyan-400));

  --radius: 16px;
  --radius-lg: 22px;

  --maxw: 1240px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --font-en: "Inter", system-ui, -apple-system, sans-serif;
  --font-ar: "Cairo", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-lang="en"] { --font-body: var(--font-en); }
[data-lang="ar"] { --font-body: var(--font-ar); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-js { visibility: visible; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: inherit; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(47, 125, 255, 0.4); color: #fff; }

/* ============ 02. Base / Typography ============ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section { padding: 120px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-400);
  background: rgba(23, 216, 255, 0.08);
  border: 1px solid rgba(23, 216, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 16px; }
.section-sub { color: var(--ink-dim); font-size: 1.05rem; max-width: 560px; }

/* ============ 03. Utilities & Layout ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #04121f;
  box-shadow: 0 10px 34px rgba(47, 125, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(23, 216, 255, 0.4);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(120, 160, 230, 0.04);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-400);
  color: var(--cyan-300);
  box-shadow: 0 12px 34px rgba(23, 216, 255, 0.15);
}

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: 8px; }

.nav .btn-cta {
  padding: 7px 15px;
  font-size: 0.82rem;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(47, 125, 255, 0.28);
}

/* ============ 04. Background ============ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(90, 140, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 140, 220, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.glow-a { width: 620px; height: 620px; background: rgba(47, 125, 255, 0.22); top: -220px; left: -120px; }
.glow-b { width: 520px; height: 520px; background: rgba(23, 216, 255, 0.14); top: 40%; right: -180px; }
.glow-c { width: 460px; height: 460px; background: rgba(47, 125, 255, 0.16); bottom: -140px; left: 35%; }

[data-lang="ar"] .glow-a { left: auto; right: -120px; }
[data-lang="ar"] .glow-b { right: auto; left: -180px; }
[data-lang="ar"] .glow-c { left: auto; right: 35%; }

.bg-particles { position: absolute; inset: 0; }

.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(120, 190, 255, 0.6);
  box-shadow: 0 0 8px rgba(80, 170, 255, 0.7);
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 0.7; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(-120vh); opacity: 0; }
}

/* ============ 05. Custom Cursor ============ */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body[data-cursor="enabled"] .cursor { display: block; }
}

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
}
.cursor-dot { width: 7px; height: 7px; background: var(--cyan-300); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(23, 216, 255, 0.5);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              border-color 0.25s, background 0.25s;
}
.cursor-ring.is-active {
  width: 52px; height: 52px;
  border-color: rgba(23, 216, 255, 0.9);
  background: rgba(23, 216, 255, 0.06);
}

/* ============ 06. Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--navy-950);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader { animation: preloaderFailSafe 0s linear 5s forwards; }
@keyframes preloaderFailSafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader-badge { width: 56px; height: 56px; animation: preloaderPulse 1s ease-in-out infinite; }
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.preloader-word {
  font-family: var(--font-en);
  font-weight: 800; font-size: 1.7rem;
  letter-spacing: 0.35em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowPulse 1.4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { filter: drop-shadow(0 0 6px rgba(47,125,255,0.5)); }
  50%     { filter: drop-shadow(0 0 20px rgba(23,216,255,0.85)); }
}
.preloader-bar {
  width: 200px; height: 2px;
  background: rgba(120, 160, 230, 0.15);
  border-radius: 2px; overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--grad);
  animation: preloaderBar 1.15s var(--ease) infinite;
}
@keyframes preloaderBar {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
[data-lang="ar"] .preloader-bar span { animation-name: preloaderBarAr; }
@keyframes preloaderBarAr {
  0%   { transform: translateX(120%); }
  100% { transform: translateX(-320%); }
}

/* ============ 07. Navigation ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s var(--ease-soft), box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
}
.nav.is-scrolled {
  background: rgba(8, 13, 26, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-logo {
  width: 40px; height: 40px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s;
}
.brand-logo.show { opacity: 1; }
.brand-logo.hide { display: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-en); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.06em; }
.brand-sub { font-family: var(--font-en); font-size: 0.6rem; letter-spacing: 0.42em; color: var(--cyan-400); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color 0.25s;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-link[data-i18n="nav.home"] { margin-inline-start: 20px; }

.nav-link.has-dropdown { display: inline-flex; align-items: center; gap: 5px; }
.nav-link.has-dropdown::before {
  content: "";
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  transition: transform 0.25s var(--ease), opacity 0.25s;
  flex-shrink: 0;
}
.nav-link.has-dropdown:hover::before,
.nav-dropdown.is-open .has-dropdown::before { opacity: 0.9; transform: rotate(180deg); }

.nav-dropdown { position: relative; }
.nav-dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: auto;
  min-width: 200px;
  padding: 6px;
  background: rgba(12, 18, 36, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(23,216,255,0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), visibility 0.2s, transform 0.2s var(--ease);
  z-index: 100;
}
[data-lang="ar"] .dropdown-menu { left: auto; right: 0; }

.dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-dim);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.dropdown-item:hover {
  color: var(--ink);
  background: rgba(47,125,255,0.1);
}
.dropdown-item.is-active {
  color: var(--cyan-300);
  background: rgba(23,216,255,0.08);
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-en);
  font-size: 0.82rem; font-weight: 600;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(120, 160, 230, 0.05);
}
.lang-sep { color: var(--ink-faint); }
.lang-btn { color: var(--ink-faint); transition: color 0.25s; padding: 2px 4px; }
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { color: var(--cyan-300); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center; justify-content: center;
  gap: 5px; flex-direction: column;
}
.menu-toggle span {
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 08. Mobile Menu ============ */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86%, 360px);
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--line);
  z-index: 1200;
  padding: calc(var(--nav-h) + 20px) 30px 40px;
  transform: translateX(110%);
  transition: transform 0.45s var(--ease);
  display: flex; flex-direction: column;
  justify-content: space-between;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  overflow-y: auto;
}
[data-lang="ar"] .mobile-menu { left: 0; right: auto; border-left: none; border-right: 1px solid var(--line); transform: translateX(-110%); box-shadow: 20px 0 60px rgba(0,0,0,0.5); }
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-links { display: flex; flex-direction: column; gap: 2px; }
.mobile-link {
  padding: 14px 10px;
  font-size: 1.1rem; font-weight: 600;
  color: var(--ink);
  transition: color 0.25s, padding-inline-start 0.25s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: start;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
}
.mobile-link:last-child { border-bottom: none; }
[data-lang="ar"] .mobile-link:hover { padding-inline-start: 18px; }
.mobile-link:hover { color: var(--cyan-300); }

.mobile-dropdown { border-bottom: 1px solid var(--line); }
.mobile-dropdown:last-child { border-bottom: none; }

.mobile-dropdown-toggle {
  font-size: 1.1rem; font-weight: 600;
  color: var(--ink);
  padding: 14px 10px;
  border-bottom: none !important;
}
.mobile-dropdown-toggle::after {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.mobile-dropdown.is-open .mobile-dropdown-toggle::after { transform: rotate(180deg); opacity: 0.8; }

.mobile-dropdown-menu {
  display: none;
  padding: 0 0 8px 16px;
}
.mobile-dropdown.is-open .mobile-dropdown-menu { display: block; }
[data-lang="ar"] .mobile-dropdown-menu { padding: 0 16px 8px 0; }

.mobile-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-dim);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s, padding-inline-start 0.25s;
}
.mobile-dropdown-item:hover {
  color: var(--cyan-300);
  background: rgba(23,216,255,0.08);
  padding-inline-start: 18px;
}

.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(4, 8, 16, 0.6);
  backdrop-filter: blur(3px);
  z-index: 1100;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }

/* ============ 09. Hero ============ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 24px;
}
.hero-title .grad { display: block; }

.hero-sub { color: var(--ink-dim); font-size: 1.12rem; max-width: 520px; margin-bottom: 34px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(120, 160, 230, 0.04);
}

/* Hero visual — ecosystem */
.hero-visual { position: relative; height: 520px; min-height: 480px; }

.ecosystem { position: absolute; inset: 0; }
.ecosystem line { animation: linePulse 3s ease-in-out infinite; }
.ecosystem .eco-outer { fill: rgba(20, 30, 60, 0.9); stroke: var(--blue-500); }
.ecosystem .eco-hub { fill: #0a1428; stroke: var(--cyan-400); }

@keyframes linePulse {
  0%,100% { stroke-opacity: 0.25; }
  50%     { stroke-opacity: 0.9; }
}
@keyframes linkFade {
  0%,100% { opacity: 0.2; }
  50%     { opacity: 1; }
}

.hero-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 3;
}
.hero-core-badge { width: 88px; height: 88px; color: var(--cyan-300); animation: coreSpin 18s linear infinite; }
@keyframes coreSpin { to { transform: rotate(360deg); } }
.hero-core-name {
  font-family: var(--font-en);
  font-weight: 800; font-size: 1.4rem;
  letter-spacing: 0.12em;
  margin-top: 10px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.7;
}
.scroll-cue-line {
  width: 2px; height: 46px;
  background: linear-gradient(var(--cyan-400), transparent);
  border-radius: 2px;
  animation: scrollCue 1.8s var(--ease-soft) infinite;
}
@keyframes scrollCue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ 10. Vision ============ */
.vision {
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(47,125,255,0.08), transparent 70%);
  text-align: center;
}

.vision-content { max-width: 860px; margin: 0 auto; }

.vision-badge { margin-bottom: 24px; }

.vision-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.vision-sub {
  color: var(--ink-dim);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

.vision-ecosystem {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
}

.eco-pill {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cyan-300);
  padding: 12px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.eco-pill:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-400);
  box-shadow: 0 12px 34px rgba(23,216,255,0.18);
}

.vision-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.vision-stat {
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.vision-stat:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 40px rgba(47,125,255,0.12);
}
.vision-stat-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vision-stat-label { display: block; margin-top: 8px; color: var(--ink-dim); font-size: 0.9rem; }

/* ============ 11. Products / AI Tools / Services — Content Cards ============ */
.products-section {
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(23,216,255,0.05), transparent 70%);
}
.ai-section {
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(47,125,255,0.06), transparent 70%);
}

/* ── Grid ───────────────────────────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

/* ── Accent palette (rotates per card) ─────────────────────── */
.content-card--0 { --ca:#4d90ff; --ca-soft:rgba(47,125,255,.09); --ca-border:rgba(47,125,255,.24); }
.content-card--1 { --ca:#17d8ff; --ca-soft:rgba(23,216,255,.09); --ca-border:rgba(23,216,255,.24); }
.content-card--2 { --ca:#22c55e; --ca-soft:rgba(34,197,94,.09);  --ca-border:rgba(34,197,94,.24); }
.content-card--3 { --ca:#a855f7; --ca-soft:rgba(168,85,247,.09); --ca-border:rgba(168,85,247,.24); }
.content-card--4 { --ca:#f59e0b; --ca-soft:rgba(245,158,11,.09); --ca-border:rgba(245,158,11,.24); }
.content-card--5 { --ca:#ec4899; --ca-soft:rgba(236,72,153,.09); --ca-border:rgba(236,72,153,.24); }

/* ── Card base ─────────────────────────────────────────────── */
.content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  min-height: 180px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background .25s;
}
.content-card:hover {
  transform: translateY(-6px);
  border-color: var(--ca-border, var(--line-strong));
  box-shadow: 0 18px 48px rgba(47,125,255,.12);
  background: var(--glass-strong);
}

/* ── Head (icon + status) ──────────────────────────────────── */
.content-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.content-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--ca, var(--cyan-300));
  background: var(--ca-soft, rgba(23,216,255,.08));
  border: 1px solid var(--ca-border, rgba(23,216,255,.22));
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.content-card-icon svg { width: 22px; height: 22px; }
.content-card:hover .content-card-icon {
  transform: translateY(-3px) scale(1.06);
  background: var(--ca-border, var(--cyan-400));
  color: #04121f;
}

/* ── Status pill ───────────────────────────────────────────── */
.content-card-status {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.6;
}
.content-card-status--soon {
  color: var(--cyan-300);
  background: rgba(23,216,255,.1);
  border: 1px solid rgba(23,216,255,.3);
}
.content-card-status--featured {
  color: #04121f;
  background: var(--grad);
  border: 1px solid transparent;
  font-weight: 600;
}

/* ── Body ──────────────────────────────────────────────────── */
.content-card-body { flex: 1; display: flex; flex-direction: column; }

.content-card-cat {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.content-card-title {
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.content-card-desc {
  color: var(--ink-dim);
  font-size: .88rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── Foot / action link ────────────────────────────────────── */
.content-card-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-card-action {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ca, var(--cyan-400));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s, gap .2s;
}
.content-card-action::after { content: "\2192"; }
[data-lang="ar"] .content-card-action::after { content: "\2190"; }
.content-card-action:hover { gap: 8px; color: #fff; }

/* ── Skeleton loading ──────────────────────────────────────── */
.card-skeleton {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  min-height: 180px;
  pointer-events: none;
}

.skeleton-block {
  background: rgba(120,160,230,.07);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.skeleton-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.04) 50%, transparent 100%);
  animation: skShimmer 1.5s ease-in-out infinite;
}
@keyframes skShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.skeleton-line {
  height: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}
.skeleton-line--sm  { width: 40%; }
.skeleton-line--title { width: 70%; height: 14px; margin-bottom: 12px; }
.skeleton-line:last-child { width: 50%; margin-bottom: 0; }

/* ============ 14. Roadmap ============ */
.roadmap-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(47,125,255,0.06), transparent 70%);
}

.roadmap-track {
  position: relative;
  padding: 40px 0;
}

.roadmap-line {
  position: absolute;
  top: 52px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: rgba(120, 160, 230, 0.15);
  border-radius: 3px;
  overflow: hidden;
}
.roadmap-line-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 3px;
  transition: width 1.5s var(--ease);
}
.roadmap-line-fill.is-animated { width: 100%; }

.roadmap-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.roadmap-stage {
  text-align: center;
  position: relative;
  padding-top: 14px;
}

.stage-marker {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.stage-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 3px solid var(--blue-500);
  position: relative;
  box-shadow: 0 0 0 6px var(--navy-950);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.roadmap-stage:hover .stage-dot {
  transform: scale(1.2);
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 6px var(--navy-950), 0 0 22px rgba(23,216,255,0.5);
}

.stage-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 6px;
}
.stage-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stage-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stage-items li {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  font-size: 0.92rem;
  color: var(--ink-dim);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.stage-items li:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 8px 26px rgba(47,125,255,0.12);
}

/* ============ 15. CTA ============ */
.cta-section {
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 90vw); height: 400px;
  background: radial-gradient(ellipse at center, rgba(47,125,255,0.28), rgba(23,216,255,0.1) 45%, transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
  pointer-events: none;
}
.cta-inner { position: relative; padding: 40px 0; }
.cta-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; }
.cta-sub { color: var(--ink-dim); font-size: 1.15rem; margin: 20px 0 40px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============ 16. Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.contact-sub { color: var(--ink-dim); margin-bottom: 36px; }

.contact-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 20px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  width: 50px; height: 50px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--cyan-300);
  background: rgba(23,216,255,0.07);
  border: 1px solid var(--line-strong);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-label { display: block; font-size: 0.78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-value { font-size: 1.05rem; font-weight: 500; color: var(--ink); transition: color 0.25s; }
a.contact-value:hover { color: var(--cyan-300); }

.contact-form {
  display: flex; flex-direction: column; gap: 20px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink-dim); }
.field input, .field textarea {
  padding: 14px 16px;
  background: rgba(8,13,26,0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(47,125,255,0.14);
}
.field.is-error input, .field.is-error textarea { border-color: #ff5d5d; }
.field-error { display: none; font-size: 0.82rem; color: #ff8a8a; }
.field.is-error .field-error { display: block; }

.form-success {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(60, 220, 140, 0.35);
  background: rgba(40, 160, 100, 0.1);
  color: #7af0b8;
  border-radius: 12px;
  font-weight: 500;
}
.form-success svg { width: 22px; height: 22px; }
.form-success[hidden] { display: none; }

/* ============ 17. Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(var(--navy-900), var(--navy-950));
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-tagline { color: var(--ink-dim); max-width: 300px; }
.footer-ecosystem {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.footer-ecosystem span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-head { font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 6px; }
.footer-link { color: var(--ink-dim); transition: color 0.25s, padding-inline-start 0.25s; width: fit-content; }
.footer-link:hover { color: var(--cyan-300); padding-inline-start: 4px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.9rem;
  flex-wrap: wrap; gap: 12px;
}
.footer-en { font-family: var(--font-en); letter-spacing: 0.12em; font-size: 0.78rem; color: var(--cyan-400); }

/* ============ 18. Reveal Animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ 19. Responsive Breakpoints ============ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { height: 460px; max-width: 640px; margin: 0 auto; width: 100%; }
  .content-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 90px 0; }

  .vision-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }

  .roadmap-stages { grid-template-columns: 1fr; gap: 50px; }
  .roadmap-line { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .nav-link { padding: 8px 8px; font-size: 0.84rem; }
  .nav-actions { gap: 10px; }
  .lang-switch { padding: 5px 8px; font-size: 0.76rem; }
  .btn-cta { padding: 6px 12px !important; font-size: 0.78rem !important; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .nav-actions .btn-cta { display: none; }
  .lang-switch { font-size: 0.75rem; padding: 5px 10px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { letter-spacing: 0.3em; }

  .section { padding: 70px 0; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-visual { height: 400px; }

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

  .contact-form { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 300px; }
}

@media (max-width: 380px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

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

/* ============ 21. Dynamic Data States ============ */
.data-state {
  display: none;
}
.data-state.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.data-state.is-loading .state-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--cyan-400);
  border-radius: 50%;
  animation: state-spin 0.8s linear infinite;
}
@keyframes state-spin { to { transform: rotate(360deg); } }

.state-retry {
  margin-left: 10px;
  padding: 5px 14px;
  border: 1px solid var(--cyan-400);
  border-radius: 8px;
  background: rgba(23,216,255,0.1);
  color: var(--cyan-300);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.state-retry:hover { background: rgba(23,216,255,0.2); }
.data-state.is-empty,
.data-state.is-error {
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  margin-top: 10px;
}

.data-state {
  display: none;
}
.form-error {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255,93,93,0.35);
  background: rgba(200,40,60,0.12);
  color: #ff9b9b;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.92rem;
  margin-top: 14px;
}
.form-error[hidden] { display: none; }

/* ============ 22. Search Panel ============ */
.search-trigger {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.search-trigger svg { width: 18px; height: 18px; }
.search-trigger:hover { color: var(--ink); border-color: var(--cyan-400); background: rgba(23,216,255,0.08); }

/* ============ 22b. Theme Toggle ============ */
.theme-toggle {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--cyan-400);
  background: rgba(23,216,255,0.08);
}
.theme-toggle svg { width: 18px; height: 18px; }
html[data-theme="dark"] .t-icon-moon { display: none; }
html[data-theme="light"] .t-icon-sun { display: none; }

.theme-toggle-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
}
.theme-toggle-text { font-size: 0.9rem; font-weight: 600; }

@media (max-width: 900px) {
  .nav-actions .theme-toggle { display: none; }
}

.mobile-menu-footer { display: flex; flex-direction: column; gap: 12px; }

body.search-open { overflow: hidden; }

.search-panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 100px 24px 60px;
  max-height: 100vh;
  overflow-y: auto;
  background: rgba(8,14,28,0.97);
  backdrop-filter: blur(20px);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.search-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.search-form {
  max-width: 600px;
  margin: 0 auto 30px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--glass);
  overflow: hidden;
}
.search-input {
  flex: 1;
  border: none; background: transparent;
  padding: 16px 20px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}
.search-input::placeholder { color: var(--ink-faint); }
.search-submit,
.search-close {
  border: none; background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  padding: 16px;
  display: grid; place-items: center;
  transition: color 0.2s;
}
.search-submit:hover, .search-close:hover { color: var(--ink); }
.search-submit svg { width: 18px; height: 18px; }
.search-close { font-size: 1.3rem; padding: 12px 16px; }

.search-results {
  max-width: 600px;
  margin: 0 auto;
}
.search-msg {
  text-align: center;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 20px 0;
}
.search-item {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  margin-bottom: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.search-item:hover { border-color: var(--blue-500); background: rgba(47,125,255,0.08); }
.search-item.is-inactive { opacity: 0.55; cursor: default; }
.search-item.is-inactive:hover { background: var(--glass); border-color: var(--line); }
.search-item-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.search-item-type {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.search-item-title {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.search-item-excerpt {
  display: block;
  color: var(--ink-dim);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 600px) {
  .search-panel { padding: 80px 16px 40px; }
}

/* ============ 23. Blog + Vision About + Post Modal ============ */
.blog-section { position: relative; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
}
.blog-card:hover {
  border-color: var(--blue-500);
  background: var(--glass-strong);
  transform: translateY(-6px);
}
.blog-card:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}
.blog-card-visual {
  position: relative;
  height: 150px;
  flex: 0 0 auto;
  overflow: hidden;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0e2a4d 0%, #123b63 45%, #0b1c38 100%);
  display: grid;
  place-items: center;
}
.blog-card-cover-mark::after {
  content: "S";
  font-family: var(--font-mono);
  font-size: 3rem;
  color: rgba(23, 216, 255, 0.25);
}
.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-card-cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-300);
  border: 1px solid rgba(23, 216, 255, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
}
.blog-card-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.blog-card-title {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.blog-card-excerpt {
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
}
.blog-card-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan-300);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.blog-card-link::after {
  content: "→";
  transition: transform 0.2s;
}
.blog-card:hover .blog-card-link::after { transform: translateX(4px); }
[dir="rtl"] .blog-card-link::after { content: "←"; }
[dir="rtl"] .blog-card:hover .blog-card-link::after { transform: translateX(-4px); }

/* Post modal (opens when clicking a blog card) */
body.modal-open { overflow: hidden; }
.post-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.24s;
}
.post-modal.is-open { opacity: 1; }
.post-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(6px);
}
.post-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--navy-800);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 38px 34px;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s var(--ease);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.post-modal.is-open .post-modal-dialog { transform: translateY(0) scale(1); }
.post-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.post-modal-close:hover { color: var(--ink); border-color: var(--cyan-400); }
.post-modal-close svg { width: 18px; height: 18px; }
.post-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-modal-meta time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.post-modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 16px;
  padding-inline-end: 30px;
}
.post-modal-content {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.9;
}
.post-modal-content h1,
.post-modal-content h2,
.post-modal-content h3 { color: var(--ink); margin: 18px 0 8px; }
.post-modal-content p { margin: 0 0 12px; }
.post-modal-content a { color: var(--cyan-300); text-decoration: underline; }
.post-modal-content img { max-width: 100%; border-radius: 12px; }

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-modal { padding: 14px; }
  .post-modal-dialog { padding: 28px 20px; }
}

/* ============ 24. Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .particle { display: none; }
}

/* ============ 25. Light Theme ============ */
html[data-theme="light"] {
  color-scheme: light;

  --navy-950: #f1f5f9;
  --navy-900: #f8fafc;
  --navy-800: #ffffff;
  --navy-700: #e2e8f0;

  --cyan-400: #0891b2;
  --cyan-300: #0e7490;

  --ink: #0f172a;
  --ink-dim: #475569;
  --ink-faint: #94a3b8;

  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.22);

  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.94);

  --eco-hub: rgba(226, 232, 240, 0.9);
}

html[data-theme="light"] .glow-a { background: rgba(47, 125, 255, 0.14); }
html[data-theme="light"] .glow-b { background: rgba(23, 216, 255, 0.1); }
html[data-theme="light"] .glow-c { background: rgba(47, 125, 255, 0.1); }

html[data-theme="light"] .preloader-bar { background: rgba(15, 23, 42, 0.12); }

html[data-theme="light"] .nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .dropdown-menu {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .mobile-menu,
html[data-theme="light"] [data-lang="ar"] .mobile-menu {
  box-shadow: 0 0 60px rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .search-panel { background: rgba(248, 250, 252, 0.97); }

html[data-theme="light"] .ecosystem .eco-outer { fill: rgba(226, 232, 240, 0.9); }
html[data-theme="light"] .ecosystem .eco-hub { fill: #e2e8f0; }

html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea {
  background: rgba(255, 255, 255, 0.85);
}
html[data-theme="light"] .field.is-error input,
html[data-theme="light"] .field.is-error textarea { border-color: #ef4444; }
html[data-theme="light"] .field-error { color: #dc2626; }

html[data-theme="light"] .form-success {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
html[data-theme="light"] .form-error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

html[data-theme="light"] .card-skeleton { background: var(--glass-strong); }
html[data-theme="light"] .skeleton-block { background: rgba(15, 23, 42, 0.07); }
html[data-theme="light"] .skeleton-block::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
}

html[data-theme="light"] .content-card-action:hover { color: var(--ink); }

html[data-theme="light"] .blog-card-cover {
  background: linear-gradient(135deg, #cfe3ff 0%, #d5f2fa 45%, #dfe7ff 100%);
}
html[data-theme="light"] .blog-card-cover-mark::after { color: rgba(8, 145, 178, 0.4); }

html[data-theme="light"] .post-modal-dialog {
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
}

@layer theme-transitions {
  [data-theme] *, [data-theme] *::before, [data-theme] *::after {
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  }
}
