/* ============================================================
   Advanced Smart Technologies (A Smartech) — styles.css
   Two disciplines: Web Development + Cybersecurity.
   Brand palette from logo: orange #f47920 + charcoal.
   Light & dark themes (data-theme). Bilingual LTR/RTL.
   ============================================================ */

/* ---------- Tokens (dark = default) ---------- */
:root {
  --ink:        #101114;   /* base background (neutral charcoal) */
  --ink-2:      #16181C;   /* raised panel */
  --ink-3:      #1C1F24;   /* card */
  --line:       #2A2E36;   /* hairline borders */
  --line-soft:  #212530;

  --primary:    #F47920;   /* logo orange */
  --primary-2:  #D9631A;
  --accent:     #FF9A4D;   /* warm amber accent */
  --secure:     #22C55E;   /* semantic only: terminal PASS */

  --text:       #ECEEF2;
  --muted:      #9AA1AD;
  --faint:      #6B7280;

  --grad:      linear-gradient(115deg, #F47920 0%, #FFA94D 100%);
  --grad-soft: linear-gradient(115deg, rgba(244,121,32,.16), rgba(255,169,77,.12));

  --nav-bg:  rgba(16,17,20,.78);
  --menu-bg: rgba(16,17,20,.97);

  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 24px 60px -24px rgba(0,0,0,.7);
  --glow:       0 0 0 1px rgba(244,121,32,.28), 0 20px 60px -20px rgba(244,121,32,.35);
  --lattice-op: .8;

  --f-display: "Space Grotesk", "Tajawal", system-ui, sans-serif;
  --f-body:    "Manrope", "Tajawal", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --ink:        #F6F7F9;
  --ink-2:      #FFFFFF;
  --ink-3:      #FFFFFF;
  --line:       #E4E7EC;
  --line-soft:  #ECEEF2;

  --text:       #1B1B1D;   /* logo charcoal */
  --muted:      #565C68;
  --faint:      #8A909C;

  --grad-soft: linear-gradient(115deg, rgba(244,121,32,.12), rgba(255,169,77,.10));
  --nav-bg:  rgba(246,247,249,.85);
  --menu-bg: rgba(255,255,255,.97);
  --shadow:  0 24px 50px -28px rgba(16,17,20,.22);
  --glow:    0 0 0 1px rgba(244,121,32,.20), 0 22px 50px -24px rgba(244,121,32,.28);
  --lattice-op: .55;
}
:root[data-theme="light"] .glow { opacity: .32; }

html[lang="ar"] {
  --f-display: "Tajawal", "Space Grotesk", system-ui, sans-serif;
  --f-body:    "Tajawal", "Manrope", system-ui, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
html { overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: .6ch;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--primary); opacity: .7; }
html[lang="ar"] .eyebrow { letter-spacing: normal; }

.section-head { max-width: 680px; margin-block-end: clamp(40px, 5vw, 64px); }
.section-head .title { font-size: clamp(1.9rem, 4vw, 3rem); margin-block: 18px 14px; }
.section-head .lede { color: var(--muted); font-size: 1.06rem; }

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

/* ---------- Khatam lattice backdrop ---------- */
.lattice {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23F47920' stroke-opacity='0.15' stroke-width='1'%3E%3Cpath d='M0 30H30V0'/%3E%3Cpath d='M30 120V90H0'/%3E%3Cpath d='M120 30H90V0'/%3E%3Cpath d='M90 120V90H120'/%3E%3Cpath d='M30 60H90'/%3E%3Cpath d='M60 30V90'/%3E%3Cpath d='M0 60H30'/%3E%3Cpath d='M90 60H120'/%3E%3C/g%3E%3Cg fill='%23F47920' fill-opacity='0.20'%3E%3Ccircle cx='30' cy='30' r='2.4'/%3E%3Ccircle cx='90' cy='90' r='2.4'/%3E%3Ccircle cx='60' cy='60' r='3'/%3E%3Ccircle cx='30' cy='90' r='2.4'/%3E%3Ccircle cx='90' cy='30' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
  opacity: var(--lattice-op);
}
.glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 620px; height: 620px; border-radius: 50%;
  filter: blur(90px); opacity: .5;
}
.glow--blue { background: radial-gradient(circle, rgba(244,121,32,.5), transparent 65%); }
.glow--cyan { background: radial-gradient(circle, rgba(255,169,77,.42), transparent 65%); }

/* ---------- Animated ambient background (hero) ---------- */
.hero .lattice   { animation: lattice-drift 48s linear infinite; }
.hero .glow--blue { animation: float-a 22s ease-in-out infinite alternate; }
.hero .glow--cyan { animation: float-b 27s ease-in-out infinite alternate; }
.hero__scan {
  position: absolute; inset-inline: 0; inset-block-start: -45%; height: 45%;
  z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(244,121,32,.13), transparent);
  animation: hero-scan 8.5s ease-in-out infinite;
}
@keyframes lattice-drift { from { background-position: 0 0; } to { background-position: 120px 120px; } }
@keyframes float-a { from { transform: translate(0,0) scale(1); } to { transform: translate(70px,55px) scale(1.15); } }
@keyframes float-b { from { transform: translate(0,0) scale(1); } to { transform: translate(-60px,-45px) scale(1.12); } }
@keyframes hero-scan {
  0%   { transform: translateY(0);    opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(320%); opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn i { font-size: .9em; }
.btn--primary { background: var(--grad); color: #1B1207; box-shadow: 0 14px 34px -12px rgba(244,121,32,.55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(244,121,32,.7); }
.btn--ghost { border-color: var(--line); color: var(--text); background: color-mix(in srgb, var(--text) 3%, transparent); }
.btn--ghost:hover { border-color: var(--primary); background: var(--grad-soft); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-block-end: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-block-end-color: var(--line-soft);
  box-shadow: 0 12px 40px -24px rgba(0,0,0,.45);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; color: var(--text); }
.brand__logo { flex: none; width: auto; height: 65px; }
/* Both logos are transparent PNGs with the real branded lettering */
.brand__logo--dark  { display: block; }   /* dark mode = white text */
.brand__logo--light { display: none; }    /* light mode = charcoal text */
:root[data-theme="light"] .brand__logo--dark  { display: none; }
:root[data-theme="light"] .brand__logo--light { display: block; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav__links a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle, .icon-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--text); font-family: var(--f-mono); font-size: .82rem; font-weight: 500;
  transition: border-color .2s ease, background .2s ease;
}
.lang-toggle { padding: 9px 14px; }
.icon-toggle { width: 40px; height: 40px; }
.lang-toggle:hover, .icon-toggle:hover { border-color: var(--primary); background: var(--grad-soft); }
.lang-toggle i, .icon-toggle i { color: var(--primary); }

.nav__burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; color: var(--text); font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(130px, 18vh, 190px) clamp(70px, 9vw, 110px); overflow: hidden; }
.hero .glow--blue { inset-block-start: -160px; inset-inline-start: -120px; }
.hero .glow--cyan { inset-block-end: -220px; inset-inline-end: -120px; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.3rem); margin-block: 22px 22px; }
.hero__lede { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 34px 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--text) 2%, transparent);
  font-size: .82rem; color: var(--muted); font-weight: 500;
}
.chip i { color: var(--primary); }

/* Hero scan terminal (stays dark in both themes — it's a code window) */
.terminal {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #1A1D22, #101114);
  box-shadow: var(--shadow); overflow: hidden; position: relative;
  direction: ltr; text-align: left;
}
.terminal::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(244,121,32,.06) 50%, transparent 100%);
  background-size: 100% 8px; opacity: .5;
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-block-end: 1px solid #23262d; background: rgba(255,255,255,.02); }
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; background: #33425f; }
.terminal__dot--r { background: #ff5f57; } .terminal__dot--y { background: #febc2e; } .terminal__dot--g { background: #28c840; }
.terminal__title { margin-inline-start: 8px; font-family: var(--f-mono); font-size: .78rem; color: #6B7280; }
.terminal__body { padding: 20px 20px 24px; font-family: var(--f-mono); font-size: .86rem; line-height: 1.85; min-height: 268px; color: #ECEEF2; }
.t-line { white-space: pre-wrap; word-break: break-word; }
.t-prompt { color: var(--accent); } .t-cmd { color: #ECEEF2; }
.t-ok { color: var(--secure); } .t-key { color: #ffb877; } .t-dim { color: #6B7280; }
.t-cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--accent); vertical-align: -2px; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Hero: animated secure data core ---------- */
.cyber-stage {
  position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1;
  margin-inline: auto; display: grid; place-items: center; perspective: 1000px;
}
.c-base {
  position: absolute; bottom: 30%; width: 240px; height: 74px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(244,121,32,.4), transparent 70%);
  filter: blur(8px);
}
.cyber-beam {
  position: absolute; bottom: 42%; left: 50%; width: 200px; height: 58%;
  transform: translateX(-50%);
  background: linear-gradient(to top, rgba(244,121,32,.5), rgba(255,169,77,.12) 55%, transparent 88%);
  clip-path: polygon(38% 100%, 62% 100%, 90% 0, 10% 0);
  filter: blur(6px);
  animation: beam-pulse 4.5s ease-in-out infinite;
}
@keyframes beam-pulse {
  0%, 100% { opacity: .5;  transform: translateX(-50%) scaleY(1); }
  50%      { opacity: .85; transform: translateX(-50%) scaleY(1.06); }
}
.cyber-particles { position: absolute; inset: 0; }
.cyber-particles span {
  position: absolute; bottom: 42%; width: 5px; height: 5px; border-radius: 50%;
  background: #ffc48a; box-shadow: 0 0 8px 2px rgba(244,121,32,.85);
  opacity: 0; animation: rise 5s linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) scale(.5);  opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateY(-240px) scale(1); opacity: 0; }
}
.cyber-code { position: absolute; inset: 0; font-family: var(--f-mono); pointer-events: none; }
.cyber-code span {
  position: absolute; font-size: .78rem; color: rgba(255,169,77,.55);
  animation: code-float 6s ease-in-out infinite;
}
@keyframes code-float {
  0%, 100% { transform: translateY(0);    opacity: .25; }
  50%      { transform: translateY(-10px); opacity: .7; }
}
.cyber-core { position: relative; width: 300px; height: 300px; transform-style: preserve-3d; display: grid; place-items: center; }
.c-ring {
  position: absolute; border-radius: 50%; border: 2px solid rgba(244,121,32,.22);
  border-top-color: rgba(255,169,77,.95); transform: rotateX(74deg);
  animation: ring-spin 7s linear infinite;
}
.c-ring--1 { width: 280px; height: 280px; }
.c-ring--2 { width: 208px; height: 208px; border-top-color: rgba(244,121,32,.9); animation-duration: 5s; animation-direction: reverse; }
.c-ring--3 { width: 140px; height: 140px; border-top-color: rgba(255,205,155,.95); animation-duration: 3.6s; }
@keyframes ring-spin { to { transform: rotateX(74deg) rotateZ(360deg); } }
.c-disc {
  position: absolute; width: 116px; height: 116px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffe0bd, #f47920 46%, #9c3c07 82%);
  box-shadow: 0 0 55px 10px rgba(244,121,32,.55), inset 0 0 30px rgba(255,255,255,.25);
  animation: disc-glow 3.5s ease-in-out infinite;
}
@keyframes disc-glow {
  0%, 100% { box-shadow: 0 0 48px 8px rgba(244,121,32,.5),  inset 0 0 30px rgba(255,255,255,.2); }
  50%      { box-shadow: 0 0 82px 18px rgba(244,121,32,.8), inset 0 0 34px rgba(255,255,255,.35); }
}
.c-shield {
  position: absolute; z-index: 3; color: #1b1207; font-size: 2.6rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  animation: shield-float 4s ease-in-out infinite;
}
@keyframes shield-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Hero: secure operations console mockup ---------- */
/* The card deck stays dark in both themes (a "product screenshot"),
   so the orange glow + severity badges read the same everywhere. */
.console-stage {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1;
  margin-inline: auto; display: grid; place-items: center; perspective: 1500px;
}
.console-deck {
  position: relative; z-index: 1; width: 100%;
  transform-style: preserve-3d;
  transform: rotateX(7deg) rotateY(-11deg);
  animation: deck-float 8s ease-in-out infinite;
}
@keyframes deck-float {
  0%, 100% { transform: rotateX(7deg) rotateY(-11deg) translateY(0); }
  50%      { transform: rotateX(7deg) rotateY(-11deg) translateY(-14px); }
}
.mock-card {
  border-radius: 16px; border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(158deg, #1d2027, #131519);
  box-shadow: 0 30px 60px -22px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
  color: #E7E9EE;
}
.mock-card__head {
  display: flex; align-items: center; justify-content: space-between;
}
.mock-eyebrow {
  font-family: var(--f-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .16em; color: #9aa0ac;
}
.mock-card__head i { color: var(--primary); font-size: .95rem; }

/* peeking back card */
.mock-card--back {
  position: absolute; top: -34px; inset-inline-end: -26px; width: 62%;
  padding: 16px 18px; transform: translateZ(-60px) rotate(3deg); opacity: .9;
}
.mock-spark { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: 14px; }
.mock-spark span {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--primary), rgba(244,121,32,.25));
  animation: spark 2.2s ease-in-out infinite;
}
.mock-spark span:nth-child(1) { height: 40%; animation-delay: 0s; }
.mock-spark span:nth-child(2) { height: 70%; animation-delay: .15s; }
.mock-spark span:nth-child(3) { height: 30%; animation-delay: .30s; }
.mock-spark span:nth-child(4) { height: 85%; animation-delay: .45s; }
.mock-spark span:nth-child(5) { height: 55%; animation-delay: .60s; }
.mock-spark span:nth-child(6) { height: 95%; animation-delay: .75s; }
.mock-spark span:nth-child(7) { height: 48%; animation-delay: .90s; }
.mock-spark span:nth-child(8) { height: 68%; animation-delay: 1.05s; }
@keyframes spark { 0%,100% { transform: scaleY(.82); } 50% { transform: scaleY(1.08); } }

/* main card */
.mock-card--main { position: relative; padding: 22px 22px 20px; }
.mock-title { font-size: 1.14rem; font-weight: 700; margin: 12px 0 18px; color: #fff; }
.mock-queue-label {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: #7f8593;
}
.mock-queue { list-style: none; margin: 10px 0 18px; padding: 0; display: grid; gap: 9px; }
.mock-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 11px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06);
}
.mock-row__ico {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; font-size: .82rem;
}
.ico-alert { background: rgba(244,121,32,.16); color: #ffb066; }
.ico-scan  { background: rgba(255,255,255,.06); color: #cfd3db; }
.ico-ok    { background: rgba(34,197,94,.15);  color: #4ade80; }
.mock-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mock-row__body strong { font-size: .84rem; font-weight: 600; color: #EDEFF3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row__body small { font-size: .7rem; color: #868c99; }
.mock-badge {
  flex: none; font-family: var(--f-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .04em; padding: 4px 9px; border-radius: 999px;
}
.b-high { background: rgba(244,121,32,.18); color: #ffb066; border: 1px solid rgba(244,121,32,.4); }
.b-mid  { background: rgba(255,255,255,.07); color: #c3c8d2; border: 1px solid rgba(255,255,255,.12); }
.b-ok   { background: rgba(34,197,94,.14);   color: #55d98a; border: 1px solid rgba(34,197,94,.35); }
.mock-live {
  flex: none; font-family: var(--f-mono); font-size: .6rem; font-weight: 700; color: #ffb066;
  display: inline-flex; align-items: center; gap: 5px;
}
.mock-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 8px 1px rgba(244,121,32,.9);
  animation: blink 1.4s ease-in-out infinite;
}
.mock-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px; border-radius: 10px; font-size: .78rem; font-weight: 600; color: #EDEFF3;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08);
}
.mock-act i { color: var(--primary); font-size: .82rem; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

@media (max-width: 560px) {
  .mock-card--back { display: none; }
  .console-deck { transform: none; animation: none; }
}

/* ---------- Marquee ---------- */
.ticker { border-block: 1px solid var(--line-soft); background: var(--ink-2); overflow: hidden; }
.ticker__track { display: flex; gap: 40px; align-items: center; padding-block: 18px; width: max-content; animation: scroll-x 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { font-family: var(--f-mono); font-size: .84rem; color: var(--faint); letter-spacing: .04em; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.ticker__item i { color: var(--primary); font-size: 1rem; }
.ticker__cat {
  font-family: var(--f-mono); font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); display: inline-flex; align-items: center;
  gap: 8px; white-space: nowrap; padding-inline: 18px 4px; border-inline-start: 2px solid var(--primary);
}
.ticker__cat::before { content: "›"; color: var(--accent); font-size: 1.1em; }
html[lang="ar"] .ticker__cat { letter-spacing: normal; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
html[dir="rtl"] .ticker__track { animation-direction: reverse; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--ink-2); padding: 34px 26px; text-align: center; }
.stat__num { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.05; }
.stat__num .unit { font-size: .55em; }
.stat__num.txt { font-size: clamp(1.3rem, 2.4vw, 1.7rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: .9rem; margin-block-start: 10px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about p { color: var(--muted); font-size: 1.05rem; }
.about p + p { margin-block-start: 16px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; background: var(--ink-2); transition: transform .25s ease, border-color .25s ease; }
.pillar:hover { transform: translateY(-4px); border-color: var(--primary); }
.pillar i { font-size: 1.5rem; color: var(--primary); }
.pillar h4 { font-size: 1.06rem; margin-block: 14px 6px; }
.pillar p { font-size: .9rem; margin: 0; color: var(--muted); }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 40px); background: var(--ink-2); overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.svc::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: inline-start; transition: transform .3s ease; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--glow); }
.svc:hover::before { transform: scaleX(1); }
.svc__icon { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); color: var(--primary); font-size: 1.45rem; }
.svc__idx { position: absolute; inset-block-start: 24px; inset-inline-end: 26px; font-family: var(--f-mono); font-size: .8rem; color: var(--faint); }
.svc h3 { font-size: 1.5rem; margin-block: 20px 6px; }
.svc__count { font-family: var(--f-mono); font-size: .78rem; color: var(--primary); }
.svc__desc { color: var(--muted); font-size: .98rem; margin-block-start: 14px; }
.svc__list { margin-block-start: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc__list li { font-size: .82rem; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 12px; background: color-mix(in srgb, var(--text) 1.5%, transparent); }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ind {
  display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--ink-2); transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.ind:hover { transform: translateY(-4px); border-color: var(--primary); background: var(--grad-soft); }
.ind i { font-size: 1.3rem; color: var(--primary); width: 28px; text-align: center; }
.ind span { font-weight: 600; font-size: .95rem; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.why { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--ink-2); }
.why__ico { color: var(--primary); font-size: 1.5rem; }
.why h4 { font-size: 1.15rem; margin-block: 12px 8px; }
.why p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Trust banner ---------- */
.trust-banner {
  margin-block-start: 40px; text-align: center; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; background: var(--grad-soft); position: relative; overflow: hidden;
}
.trust-banner p { font-family: var(--f-display); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 500; margin: 0; }
.trust-banner i { color: var(--primary); }

/* ---------- Frameworks ---------- */
.frameworks { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.framework { font-family: var(--f-mono); font-size: .84rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; background: var(--ink-2); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); }
.contact__info h3 { font-size: 1.6rem; margin-block-end: 14px; }
.contact__info p { color: var(--muted); }
.contact-list { margin-block-start: 28px; display: grid; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-item__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); color: var(--primary); font-size: 1.1rem; flex: none; }
.contact-item small { color: var(--faint); font-size: .8rem; display: block; }
.contact-item a, .contact-item span { font-weight: 600; }

.form { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); background: var(--ink-2); display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--ink); color: var(--text); font-family: inherit; font-size: .95rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(244,121,32,.18); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%238A909C' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
html[dir="rtl"] .field select { background-position: left 15px center; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__note { font-size: .84rem; color: var(--faint); text-align: center; }
.form__ok { display: none; align-items: center; gap: 10px; color: var(--secure); font-weight: 600; font-size: .95rem; }
.form__ok.show { display: flex; }

/* ---------- Footer ---------- */
.footer { border-block-start: 1px solid var(--line-soft); background: var(--ink-2); padding-block: 56px 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer__logo { display: inline-block; }
.footer__logo-img { width: 150px; height: auto; }
/* Both transparent PNGs — dark is the default theme */
.footer__logo-img--dark  { display: block; }
.footer__logo-img--light { display: none; }
:root[data-theme="light"] .footer__logo-img--dark  { display: none; }
:root[data-theme="light"] .footer__logo-img--light { display: block; }
.footer__brand p { color: var(--muted); font-size: .92rem; margin-block: 18px 0; max-width: 36ch; }
.footer h5 { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-block-end: 16px; }
html[lang="ar"] .footer h5 { letter-spacing: normal; }
.footer li { margin-block-end: 10px; }
.footer li a { color: var(--muted); font-size: .92rem; transition: color .2s ease; }
.footer li a:hover { color: var(--primary); }
.socials { display: flex; gap: 10px; margin-block-start: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: all .2s ease; }
.socials a:hover { color: var(--text); border-color: var(--primary); background: var(--grad-soft); }
.footer__bottom { margin-block-start: 40px; padding-block-start: 24px; border-block-start: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: .84rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--nav-bg); backdrop-filter: blur(10px); color: var(--text);
  display: grid; place-items: center; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, border-color .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--primary); }

[data-aos] { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid > *, .about__grid > *, .contact__grid > * { min-width: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__burger { display: grid; place-items: center; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; inset-block-start: 74px; inset-inline: 0; padding: 16px var(--gutter) 22px;
    background: var(--menu-bg); backdrop-filter: blur(18px); border-block-end: 1px solid var(--line-soft);
  }
  .nav__links.open a { padding: 13px 14px; }
}
@media (max-width: 640px) {
  /* Keep the nav on one row: drop the CTA (Contact lives in the menu) */
  .nav__actions .btn { display: none; }
  .nav__actions { gap: 8px; }
  .nav__inner { height: 64px; gap: 12px; }
  .nav__links.open { inset-block-start: 64px; }
  .brand__logo { height: 38px; padding: 4px 7px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .hero__trust { gap: 8px; }
  .hero__trust .chip { font-size: .8rem; }
  .console-stage { display: none; }
  .stat { padding: 26px 16px; }
}
