/* ═══════════════════════════════════════════════════════════
   Smart Terra · Smart City Solutions
   Premium dark experience · glassmorphism · mesh gradients
   Brand: Dark Green #1a5c2a · Fresh Green #2E7D57 · Black #0a0a0a · Gold #c9a84c
   ═══════════════════════════════════════════════════════════ */

/* ───── Design tokens ───── */
:root {
  /* Surface */
  --bg: #070908;
  --bg-2: #0a0d0b;
  --bg-3: #0e1410;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --glass: rgba(14, 20, 16, 0.55);

  /* Text */
  --ink: #f3f7f4;
  --ink-2: #b6c4bb;
  --ink-3: #7d8d83;
  --ink-4: #5a6760;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Brand greens */
  --green: #2E7D57;          /* fresh green */
  --green-2: #3F9B6D;
  --green-deep: #15412F;     /* dark green */
  --green-soft: rgba(46, 125, 87, 0.10);
  --green-glow: rgba(46, 125, 87, 0.16);

  /* Gold accent */
  --gold: #A98F52;
  --gold-2: #C2A868;
  --gold-soft: rgba(169, 143, 82, 0.09);

  /* Semantic */
  --alert: #e2574c;
  --warn: #d8a23a;

  /* Sizing */
  --rad-sm: 10px;
  --rad: 14px;
  --rad-lg: 18px;
  --rad-xl: 26px;

  /* Shadow */
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-lg: 0 30px 70px -24px rgba(0,0,0,0.7), 0 8px 24px -10px rgba(0,0,0,0.5);
  --shadow-green: 0 14px 32px -18px rgba(46,125,87,0.30);
  --shadow-gold: 0 14px 32px -18px rgba(169,143,82,0.22);

  /* Type — خطوط النظام محليًّا (سيادة: لا تحميل خارجي) */
  --type-ar: system-ui, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  --type-en: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --type-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

/* ───── Base ───── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { background: var(--bg); color: var(--ink); width: 100%; max-width: 100%; }
body {
  font-family: var(--type-ar);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.lang-en { font-family: var(--type-en); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.skip { position: absolute; top: -60px; inset-inline-start: 16px; background: var(--green); color: #07140a; padding: 10px 16px; border-radius: var(--rad); z-index: 2000; transition: top .2s; font-weight: 600; }
.skip:focus { top: 16px; }

/* Bilingual visibility */
[data-en] { display: none; }
[data-ar] { display: revert; }
body.lang-en { direction: ltr; }
body.lang-en [data-ar] { display: none; }
body.lang-en [data-en] { display: revert; }

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

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
main, section, header, footer { max-width: 100%; overflow-x: clip; }

.numeric { font-family: var(--type-mono); font-feature-settings: "tnum"; }
.sr-headline { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ════════════ ATMOSPHERE / BACKGROUND ════════════ */
.atmos { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.atmos-mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 80% 8%, rgba(76,175,80,0.16), transparent 60%),
    radial-gradient(35% 30% at 12% 30%, rgba(26,92,42,0.30), transparent 65%),
    radial-gradient(30% 30% at 90% 70%, rgba(201,168,76,0.08), transparent 60%),
    radial-gradient(45% 45% at 50% 100%, rgba(76,175,80,0.10), transparent 70%);
  filter: blur(20px);
  animation: meshDrift 24s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
.atmos-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
}
.atmos-leaves { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }

/* ════════════ CUSTOM CURSOR ════════════ */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 3000; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.cursor { width: 34px; height: 34px; border: 1.5px solid rgba(255,255,255,0.6); transform: translate(-50%,-50%); transition: width .25s, height .25s, background .25s, opacity .3s; }
.cursor-dot { width: 6px; height: 6px; background: #fff; transform: translate(-50%,-50%); }
.cursor.hover { width: 56px; height: 56px; background: rgba(255,255,255,0.12); border-color: transparent; }
.cursor.down { width: 26px; height: 26px; }
body.cursor-ready { cursor: none; }
body.cursor-ready a, body.cursor-ready button { cursor: none; }

/* ════════════ SCROLL PROGRESS ════════════ */
.scroll-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--green-deep), var(--green), var(--gold)); box-shadow: 0 0 12px var(--green-glow); }

/* ════════════ BUTTONS ════════════ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 600;
  line-height: 1.2; white-space: nowrap; border: 1px solid transparent;
  overflow: hidden; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; box-shadow: 0 10px 30px -12px var(--green-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-green); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1c1707; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-secondary:hover { border-color: var(--green); transform: translateY(-2px); }

/* ripple */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,0.4); animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

body:not(.lang-en) .btn .arr-fwd, body:not(.lang-en) .visit .arr-fwd { transform: scaleX(-1); }

/* glass primitive */
.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

/* ════════════ HEADER ════════════ */
.topbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 150;
  transition: background .3s, backdrop-filter .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(7,9,8,0.7);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(0,0,0,0.8);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(76,175,80,0.4)); }
.brand-name { font-family: var(--type-en); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.brand-name em { font-style: normal; background: linear-gradient(120deg, var(--green-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.topnav { display: flex; gap: 2px; margin-inline-start: 18px; }
.topnav a { position: relative; font-size: 14px; color: var(--ink-2); padding: 8px 14px; border-radius: var(--rad-sm); transition: color .2s; }
.topnav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after, .topnav a.active::after { transform: scaleX(1); }
.topnav a.active { color: var(--ink); }

.topbar .spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.lang-toggle button { padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--ink-3); font-family: var(--type-en); font-weight: 600; transition: all .2s; }
.lang-toggle button.active { background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; }

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

/* ════════════ MOBILE OVERLAY ════════════ */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(7,9,8,0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
body.menu-open .mobile-overlay { opacity: 1; visibility: visible; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mobile-nav a { font-size: clamp(26px, 8vw, 40px); font-weight: 700; color: var(--ink); padding: 8px 16px; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s, color .2s; }
body.menu-open .mobile-nav a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-nav a:nth-child(1){ transition-delay:.06s } body.menu-open .mobile-nav a:nth-child(2){ transition-delay:.10s } body.menu-open .mobile-nav a:nth-child(3){ transition-delay:.14s } body.menu-open .mobile-nav a:nth-child(4){ transition-delay:.18s } body.menu-open .mobile-nav a:nth-child(5){ transition-delay:.22s } body.menu-open .mobile-nav a:nth-child(6){ transition-delay:.26s } body.menu-open .mobile-nav a:nth-child(7){ transition-delay:.30s }
.mobile-nav a:hover { color: var(--green); }
.mobile-overlay-foot { font-family: var(--type-en); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--gold); }

/* ════════════ HERO ════════════ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow { position: absolute; top: -10%; inset-inline-end: -5%; width: 60vmax; height: 60vmax; background: radial-gradient(circle, rgba(76,175,80,0.18), transparent 60%); filter: blur(40px); z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-text { max-width: 660px; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: var(--green-soft); color: var(--green-2); font-size: 13px; font-weight: 600; margin-bottom: 28px; border: 1px solid rgba(76,175,80,0.25); }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 var(--green-glow) } 70%{ box-shadow: 0 0 0 8px transparent } 100%{ box-shadow: 0 0 0 0 transparent } }

.hero-title { font-size: clamp(36px, 5vw, 66px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 26px; }
.hero-title .line-1 { display: block; }
.typewriter { background: linear-gradient(120deg, var(--green-2) 0%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.typewriter::after { content: "|"; -webkit-text-fill-color: var(--green); color: var(--green); animation: caret 1s steps(1) infinite; font-weight: 300; }
@keyframes caret { 50% { opacity: 0; } }

.hero .lede { font-size: clamp(16px, 1.3vw, 20px); color: var(--ink-2); line-height: 1.65; margin-bottom: 38px; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-trust .lbl { font-size: 11px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--type-en); }
.hero-trust .badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust .badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 7px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.hero-trust .badge svg { width: 14px; height: 14px; color: var(--green); }

/* Hero visual */
.hero-visual { position: relative; perspective: 1200px; }
.dash-card { border-radius: var(--rad-xl); overflow: hidden; transform-style: preserve-3d; }
.dash-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.dash-header .dots { display: flex; gap: 6px; }
.dash-header .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dash-header .dots span:first-child { background: #e2574c80; }
.dash-header .tt { margin-inline-start: 6px; font-size: 12.5px; color: var(--ink-3); font-family: var(--type-mono); }
.dash-header .live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-family: var(--type-en); font-weight: 700; letter-spacing: .08em; color: var(--green-2); }
.dash-header .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.8s infinite; }
.dash-body { padding: 20px; display: grid; gap: 16px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.dash-body .kpi { padding: 14px; background: var(--surface); border-radius: var(--rad); border: 1px solid var(--line); }
.dash-body .kpi .label { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.dash-body .kpi .val { font-size: 22px; font-weight: 700; color: var(--ink); font-family: var(--type-mono); }
.dash-body .kpi .trend { font-size: 11px; margin-top: 4px; font-family: var(--type-en); color: var(--green-2); }

.dash-spark { height: 90px; border-radius: var(--rad); background: var(--surface); border: 1px solid var(--line); overflow: hidden; padding: 4px; }
.dash-spark svg { width: 100%; height: 100%; }
.spark-line { stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-in .spark-line { animation: drawSpark 2s ease forwards .3s; }
@keyframes drawSpark { to { stroke-dashoffset: 0; } }

.dash-rows { display: grid; gap: 8px; }
.dash-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--rad-sm); background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.dash-row .ind { width: 8px; height: 8px; border-radius: 50%; }
.dash-row .ind.b { background: var(--green); } .dash-row .ind.g { background: var(--gold); } .dash-row .ind.w { background: var(--warn); }
.dash-row .pill { font-family: var(--type-en); font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--ink-3); }

.dash-chip { position: absolute; border-radius: var(--rad); padding: 11px 15px; font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 10px; z-index: 3; }
.dash-chip .ic { width: 30px; height: 30px; border-radius: var(--rad-sm); background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.dash-chip .ic.gold { background: var(--gold-soft); color: var(--gold); }
.dash-chip .ic svg { width: 15px; height: 15px; }
.dash-chip .chip-h { font-weight: 700; font-size: 13px; } .dash-chip .chip-s { font-size: 11px; color: var(--ink-3); }
.dash-chip.c1 { top: -20px; inset-inline-end: -14px; animation: float1 6s ease-in-out infinite; }
.dash-chip.c2 { bottom: -22px; inset-inline-start: -16px; animation: float2 7s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translateY(-12px); } }
@keyframes float2 { 50% { transform: translateY(10px); } }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); }
.scroll-indicator .mouse { width: 24px; height: 38px; border: 2px solid var(--line-2); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-indicator .wheel { width: 4px; height: 8px; border-radius: 4px; background: var(--green); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0%{ transform: translateY(0); opacity: 1 } 60%{ transform: translateY(10px); opacity: 0 } 100%{ opacity: 0 } }
.scroll-indicator .txt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--type-en); }

/* ════════════ SECTION PRIMITIVES ════════════ */
section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { margin-bottom: clamp(40px, 5vw, 68px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-2); font-family: var(--type-en); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.section-tag::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--green), var(--gold)); }
.section-head.center .section-tag::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--green)); }
.section-title { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 18px; }
body.lang-en .section-title { letter-spacing: -0.03em; }
.section-lede { font-size: clamp(16px, 1.2vw, 18px); color: var(--ink-2); line-height: 1.7; max-width: 660px; }
.section-head.center .section-lede { margin-inline: auto; }

/* ════════════ ABOUT ════════════ */
.about-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.about-points { display: grid; gap: 14px; margin-top: 30px; }
.about-points li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; font-size: 15.5px; color: var(--ink-2); }
.about-points .check { width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-top: 2px; }
.about-points .check svg { width: 12px; height: 12px; }

.about-visual { display: grid; place-items: center; }
.orbit { position: relative; width: min(420px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.orbit-core { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(76,175,80,0.25), rgba(26,92,42,0.1)); border: 1px solid rgba(76,175,80,0.35); box-shadow: 0 0 60px -10px var(--green-glow); z-index: 3; }
.orbit-core img { width: 70px; height: 70px; object-fit: contain; animation: floatCore 5s ease-in-out infinite; }
@keyframes floatCore { 50% { transform: translateY(-8px); } }
.orbit-ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.10); }
.orbit-ring.r1 { width: 62%; height: 62%; animation: spin 18s linear infinite; }
.orbit-ring.r2 { width: 82%; height: 82%; animation: spin 26s linear infinite reverse; }
.orbit-ring.r3 { width: 100%; height: 100%; animation: spin 34s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-ring .node { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line-2); color: var(--green); box-shadow: var(--shadow); }
.orbit-ring .node.g { color: var(--gold); } .orbit-ring .node.gold { color: var(--gold-2); }
.orbit-ring .node svg { width: 22px; height: 22px; }
.orbit-ring .node { animation: counterSpin 18s linear infinite; }
.orbit-ring.r2 .node { animation: counterSpin 26s linear infinite reverse; }
.orbit-ring.r3 .node { animation: counterSpin 34s linear infinite; }
@keyframes counterSpin { to { transform: translateX(-50%) rotate(-360deg); } }

/* ════════════ PRODUCTS ════════════ */
.products-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.product-card { position: relative; border-radius: var(--rad-xl); padding: 42px; overflow: hidden; transition: transform .3s, border-color .3s; transform-style: preserve-3d; will-change: transform; }
.product-card[data-kind="waste"] { --c: var(--green); --c-soft: var(--green-soft); }
.product-card[data-kind="garden"] { --c: var(--gold); --c-soft: var(--gold-soft); }
.product-card:hover { border-color: color-mix(in oklab, var(--c) 50%, transparent); }
.product-glow { position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 0%, var(--c-soft), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.product-card:hover .product-glow { opacity: 1; }
.product-card > * { position: relative; transform: translateZ(6px); }
.product-icon { width: 60px; height: 60px; border-radius: var(--rad); background: var(--c-soft); color: var(--c); display: grid; place-items: center; margin-bottom: 26px; border: 1px solid color-mix(in oklab, var(--c) 30%, transparent); }
.product-icon svg { width: 30px; height: 30px; transition: transform .5s; }
.product-card:hover .product-icon svg { transform: scale(1.1) rotate(-6deg); }
.product-tag { font-size: 11px; letter-spacing: 0.12em; font-weight: 700; text-transform: uppercase; color: var(--c); font-family: var(--type-en); margin-bottom: 12px; }
.product-card h3 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 14px; }
.product-card > p { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin-bottom: 24px; }
.product-feats { display: grid; gap: 11px; margin-bottom: 30px; padding-block: 22px; border-block: 1px solid var(--line); }
.product-feats li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.product-feats .check { width: 19px; height: 19px; border-radius: 50%; background: var(--c-soft); color: var(--c); display: grid; place-items: center; margin-top: 2px; }
.product-feats .check svg { width: 11px; height: 11px; }
.product-card .visit { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--c); color: #07140a; font-size: 14px; font-weight: 700; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.product-card[data-kind="garden"] .visit { color: #1c1707; }
.product-card .visit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--c); }
.product-card .visit svg { width: 14px; height: 14px; transition: transform .25s; }
.product-card .visit:hover svg { transform: translateX(3px); }
body:not(.lang-en) .product-card .visit:hover svg { transform: translateX(3px) scaleX(-1); }
/* ── visit-group: زرّان جنب بعض ── */
.product-card .visit-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* ── زر الدخول المباشر "LIVE" ── */
.product-card .visit-live {
  background: transparent;
  border: 1.5px solid rgba(76,175,80,.55);
  color: #7ee87e;
  font-size: 13px;
  padding: 10px 18px;
  gap: 7px;
  box-shadow: 0 0 18px rgba(76,175,80,.12);
}
.product-card .visit-live:hover {
  background: rgba(76,175,80,.12);
  border-color: #2E7D57;
  color: #a8f5a8;
  box-shadow: 0 6px 24px rgba(76,175,80,.22);
  transform: translateY(-2px);
}
.product-card .visit-live .live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3F9B6D;
  box-shadow: 0 0 8px #3F9B6D;
  animation: livePulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 5px #3F9B6D; opacity:1; }
  50%      { box-shadow: 0 0 14px #3F9B6D; opacity:.7; }
}

/* ════════════ FEATURES ════════════ */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-card { position: relative; padding: 30px; border-radius: var(--rad-lg); overflow: hidden; transition: transform .3s, border-color .3s; }
.feature-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 0%, var(--green-soft), transparent 70%); opacity: 0; transition: opacity .4s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(76,175,80,0.4); }
.feature-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; }
.feature-icon { width: 50px; height: 50px; border-radius: var(--rad-sm); background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 20px; border: 1px solid rgba(76,175,80,0.2); transition: transform .4s; }
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); color: var(--green-2); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 9px; }
.feature-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ════════════ DASHBOARD PREVIEW ════════════ */
.dashboard-mockup { border-radius: var(--rad-xl); overflow: hidden; display: grid; grid-template-columns: 224px 1fr; }
.dash-side { border-inline-end: 1px solid var(--line); background: rgba(255,255,255,0.02); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.dash-side .group { font-size: 11px; text-transform: uppercase; color: var(--ink-4); letter-spacing: 0.08em; padding: 14px 12px 6px; font-family: var(--type-en); }
.dash-side .item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--rad-sm); font-size: 13.5px; color: var(--ink-2); transition: all .2s; }
.dash-side .item:hover { background: var(--surface); color: var(--ink); }
.dash-side .item.active { background: var(--green-soft); color: var(--green-2); font-weight: 600; }
.dash-side .item svg { width: 16px; height: 16px; }
.dash-side .badge { margin-inline-start: auto; font-size: 11px; background: var(--green); color: #07140a; padding: 2px 7px; border-radius: 999px; font-family: var(--type-en); font-weight: 700; }
.dash-main { padding: 24px; display: grid; gap: 20px; }
.dash-main-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dash-main-head h5 { font-size: 18px; font-weight: 700; }
.dash-main-head .sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; display: inline-flex; align-items: center; gap: 7px; }
.dash-main-head .livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.8s infinite; }
.dash-main-head .controls { display: flex; gap: 6px; }
.dash-main-head .pill-btn { padding: 7px 13px; border-radius: var(--rad-sm); font-size: 12px; color: var(--ink-3); border: 1px solid var(--line); background: var(--surface); font-family: var(--type-en); transition: all .2s; }
.dash-main-head .pill-btn.active { background: var(--green); color: #07140a; border-color: var(--green); font-weight: 600; }
.dash-main-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.dash-main-kpis .kpi { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); }
.dash-main-kpis .kpi .label { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.dash-main-kpis .kpi .val { font-size: 28px; font-weight: 800; }
.dash-main-kpis .kpi .trend { font-size: 11.5px; color: var(--green-2); margin-top: 5px; font-family: var(--type-en); }
.dash-main-kpis .kpi .trend .muted { color: var(--ink-4); } .trend.muted { color: var(--ink-3); }
.dash-main-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.dash-col { display: grid; gap: 16px; }
.dash-panel { border: 1px solid var(--line); border-radius: var(--rad); background: var(--surface); padding: 18px; }
.dash-panel h6 { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.dash-panel h6 .meta { font-size: 12px; color: var(--ink-3); font-weight: 400; font-family: var(--type-en); }
.dash-panel.map { padding: 0; overflow: hidden; }
.dash-panel.map h6 { padding: 14px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.dash-panel.map .map-area { position: relative; height: 340px; background: rgba(0,0,0,0.2); }
.dash-panel.map .map-area svg { width: 100%; height: 100%; }
.dash-panel.map .legend { position: absolute; bottom: 12px; inset-inline-start: 12px; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--rad-sm); padding: 8px 12px; display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); }
.dash-panel.map .legend span { display: inline-flex; align-items: center; gap: 6px; }
.dash-panel.map .legend i { width: 8px; height: 8px; border-radius: 50%; }
.dash-panel.map .legend .b { background: var(--green); } .dash-panel.map .legend .g { background: var(--gold); } .dash-panel.map .legend .a { background: var(--alert); }
.task-list { display: grid; gap: 4px; }
.task-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; padding: 10px 0; align-items: center; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-row .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green-2); font-size: 11px; font-weight: 700; display: grid; place-items: center; font-family: var(--type-en); }
.task-row .avatar.b { background: var(--gold-soft); color: var(--gold); }
.task-row .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.task-row .info .name { font-size: 13px; color: var(--ink); font-weight: 600; }
.task-row .info .desc { font-size: 12px; color: var(--ink-3); }
.task-row .status { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-family: var(--type-en); font-weight: 600; }
.task-row .status.done { background: var(--green-soft); color: var(--green-2); }
.task-row .status.progress { background: var(--gold-soft); color: var(--gold); }
.task-row .status.new { background: rgba(255,255,255,0.06); color: var(--ink-2); }
.progress-list { display: grid; gap: 14px; }
.progress-item .row1 { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; color: var(--ink-2); }
.progress-item .row1 .val { font-family: var(--type-mono); color: var(--ink); font-weight: 600; }
.progress-item .bar { height: 7px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.progress-item .bar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-deep), var(--green)); transition: width 1.4s cubic-bezier(.4,0,.2,1); }
.progress-item.g .bar .fill { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.progress-item.gold .bar .fill { background: linear-gradient(90deg, var(--warn), var(--gold)); }

/* ════════════ COVERAGE MAP ════════════ */
.coverage-map { position: relative; border-radius: var(--rad-xl); padding: 20px; overflow: hidden; }
.region-map { width: 100%; height: auto; }
.region-map .land { animation: landPulse 6s ease-in-out infinite; }
@keyframes landPulse { 50% { stroke: rgba(76,175,80,0.6); } }
.ping { position: absolute; width: 16px; height: 16px; transform: translate(-50%,-50%); }
.ping .core { position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green-glow); }
.ping .ring { position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--green); animation: pingRing 2.4s ease-out infinite; }
.ping.gold .core { background: var(--gold); box-shadow: 0 0 12px rgba(201,168,76,0.6); } .ping.gold .ring { border-color: var(--gold); }
.ping.main .core { width: 14px; height: 14px; } .ping.main .ring { width: 14px; height: 14px; }
.ping:hover .core { transform: scale(1.3); }
@keyframes pingRing { 0%{ transform: scale(1); opacity: .9 } 100%{ transform: scale(3.4); opacity: 0 } }
.ping-tooltip { position: absolute; transform: translate(-50%,-150%); background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line-2); color: var(--ink); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 5; }
.ping-tooltip.show { opacity: 1; }

/* ════════════ STATS ════════════ */
.stats { padding-block: clamp(60px, 8vw, 100px); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 16px; border-radius: var(--rad-lg); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.stat::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, var(--green-soft), transparent 70%); opacity: .6; }
.stat:hover { transform: translateY(-4px); border-color: rgba(76,175,80,0.4); }
.stat-val { position: relative; font-family: var(--type-mono); font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(120deg, var(--green-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-val .suffix { font-size: 0.6em; }
.stat-lbl { position: relative; margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* ════════════ CLIENTS / MARQUEE ════════════ */
.clients { overflow: hidden; }
.marquee-group { margin-top: 30px; }
.marquee-label { font-family: var(--type-en); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-2); margin-bottom: 12px; padding-inline: var(--pad); }
.marquee-label.gold { color: var(--gold); }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
body:not(.lang-en) .marquee-track { animation-name: marqueeRtl; }
@keyframes marqueeRtl { to { transform: translateX(50%); } }
.logo-chip { flex-shrink: 0; padding: 14px 26px; border-radius: var(--rad); background: var(--surface); border: 1px solid var(--line); font-family: var(--type-en); font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; transition: color .2s, border-color .2s; }
.logo-chip:hover { color: var(--ink); border-color: var(--line-2); }

/* ════════════ TESTIMONIALS ════════════ */
.testi-carousel { max-width: 820px; margin: 0 auto; overflow: hidden; }
.testi-track { display: flex; width: 100%; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.testi-card { flex: 0 0 100%; max-width: 100%; padding: 40px clamp(28px,4vw,48px); border-radius: var(--rad-xl); margin: 0; }
.testi-card .quote-mark { font-family: Georgia, serif; font-size: 70px; line-height: .6; color: var(--green); opacity: .5; height: 30px; }
.testi-card blockquote { font-size: clamp(17px, 1.8vw, 22px); line-height: 1.6; font-weight: 500; color: var(--ink); margin: 14px 0 28px; }
.testi-card figcaption { display: flex; align-items: center; gap: 14px; }
.testi-card .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-2); font-family: var(--type-en); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.testi-card .av.g { background: var(--gold-soft); color: var(--gold); } .testi-card .av.gold { background: var(--gold-soft); color: var(--gold-2); }
.testi-card .who { display: flex; flex-direction: column; gap: 2px; }
.testi-card .who strong { font-size: 15px; } .testi-card .who span span { font-size: 13px; color: var(--ink-3); }
.testi-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.testi-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: grid; place-items: center; transition: all .2s; }
.testi-arrow:hover { background: var(--green); color: #07140a; border-color: var(--green); }
.testi-arrow svg { width: 18px; height: 18px; }
body:not(.lang-en) .testi-arrow svg { transform: scaleX(-1); }
.testi-dots { display: flex; gap: 8px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: all .3s; }
.testi-dots button.active { background: var(--green); width: 24px; border-radius: 999px; }

/* ════════════ CONTACT ════════════ */
.contact-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px,5vw,64px); border-radius: var(--rad-xl); padding: clamp(36px,5vw,60px); align-items: start; }
.contact-copy h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin: 12px 0 16px; }
.contact-copy > p { font-size: clamp(15px,1.1vw,17px); color: var(--ink-2); line-height: 1.7; margin-bottom: 30px; }
.contact-lines { display: grid; gap: 14px; }
.contact-line { display: flex; align-items: center; gap: 14px; }
.contact-line .ic { width: 40px; height: 40px; border-radius: var(--rad-sm); background: var(--surface); border: 1px solid var(--line); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.contact-line .ic svg { width: 17px; height: 17px; }
.contact-line .lbl { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.contact-line .val { font-size: 15px; color: var(--ink); font-weight: 500; }
.contact-line a.val { color: var(--green-2); } .contact-line a.val:hover { text-decoration: underline; }

.contact-form { display: grid; gap: 18px; }
.field { position: relative; }
.field input, .field textarea, .field select { width: 100%; padding: 16px 16px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .25s, box-shadow .25s; }
.field textarea { resize: vertical; min-height: 90px; padding-top: 20px; }
.field select { padding: 14px 16px; color: var(--ink); }
.field select option { background: #0d120f; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field label { position: absolute; inset-inline-start: 16px; top: 15px; font-size: 15px; color: var(--ink-3); pointer-events: none; transition: transform .2s, font-size .2s, color .2s; transform-origin: inline-start; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-9px); font-size: 11px; color: var(--green-2); }
.contact-form .btn { margin-top: 4px; }
.contact-form .btn.sent .btn-label { opacity: .6; }
.form-success { font-size: 13.5px; color: var(--green-2); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.form-success.show { opacity: 1; transform: translateY(0); }

/* ════════════ FOOTER ════════════ */
footer { border-top: 1px solid var(--line); padding: 40px 0; background: rgba(0,0,0,0.3); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand .fb-name { display: block; font-family: var(--type-en); font-weight: 700; font-size: 16px; color: var(--ink); }
.footer-brand .fb-tag { display: block; font-family: var(--type-en); font-size: 11px; letter-spacing: .08em; color: var(--gold); }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--ink); }

/* ════════════ CHATBOT ════════════ */
.chatbot { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 160; }
.chatbot-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -10px var(--green-glow); transition: transform .3s; }
.chatbot-fab:hover { transform: scale(1.06); }
.chatbot-fab svg { width: 26px; height: 26px; position: absolute; transition: opacity .25s, transform .25s; }
.chatbot-fab .ic-close { opacity: 0; transform: rotate(-45deg); }
body.chat-open .chatbot-fab .ic-chat { opacity: 0; transform: rotate(45deg); }
body.chat-open .chatbot-fab .ic-close { opacity: 1; transform: rotate(0); }
.chatbot-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: pingRing 2.6s ease-out infinite; }
body.chat-open .chatbot-fab::after { display: none; }

.chatbot-panel { position: absolute; bottom: 76px; inset-inline-end: 0; width: min(360px, calc(100vw - 32px)); border-radius: var(--rad-xl); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.96); transform-origin: bottom right; transition: opacity .3s, transform .3s, visibility .3s; }
body:not(.lang-en) .chatbot-panel { transform-origin: bottom left; }
body.chat-open .chatbot-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chatbot-head { padding: 16px; border-bottom: 1px solid var(--line); background: rgba(76,175,80,0.08); }
.ch-brand { display: flex; align-items: center; gap: 12px; }
.ch-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; border: 1px solid var(--line); }
.ch-avatar img { width: 26px; height: 26px; }
.ch-brand strong { display: block; font-size: 15px; }
.ch-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.ch-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.chatbot-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ch-msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.ch-msg.bot { background: var(--surface); border: 1px solid var(--line); border-start-start-radius: 4px; align-self: flex-start; }
.ch-msg.user { background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; border-end-end-radius: 4px; align-self: flex-end; }
.chatbot-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chatbot-quick button { font-size: 12.5px; padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); transition: all .2s; }
.chatbot-quick button:hover { border-color: var(--green); color: var(--ink); }
.chatbot-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chatbot-input input { flex: 1; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font: inherit; font-size: 14px; }
.chatbot-input input:focus { outline: none; border-color: var(--green); }
.chatbot-input button { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #07140a; display: grid; place-items: center; flex-shrink: 0; }
.chatbot-input button svg { width: 18px; height: 18px; }

/* ════════════ REVEAL / STAGGER ════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
[data-stagger] { transition-delay: var(--d, 0s); }

/* ════════════ REDUCED MOTION ════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .cursor, .cursor-dot { display: none; }
  body.cursor-ready { cursor: auto; }
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 1080px) {
  .hero-inner, .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; }
  .hero-visual { max-width: 540px; margin-inline: auto; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .dash-main-kpis { grid-template-columns: repeat(2,1fr); }
  .dashboard-mockup { grid-template-columns: 1fr; }
  .dash-side { flex-direction: row; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .dash-side .group, .dash-side .badge { display: none; }
  .dash-side .item { white-space: nowrap; }
  .dash-main-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topnav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .topbar-actions .btn-primary { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card { padding: 30px; }
  .scroll-indicator { display: none; }
  body.cursor-ready { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .dash-main-kpis { grid-template-columns: 1fr 1fr; }
  .dash-chip { display: none; }
  .chatbot { bottom: 16px; inset-inline-end: 16px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .hero-actions { width: 100%; }
  .testi-carousel { max-width: calc(100vw - 36px); }
  .testi-card { padding: 32px 22px; }
}

/* شارة «بيانات مباشرة» فوق الإحصاءات (تعيد استخدام keyframe pulse الموجود) */
.stats-live { text-align: center; margin-bottom: 22px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--green); color: var(--green-2); font-size: 12.5px; font-weight: 600; background: rgba(46, 158, 84, .07); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green-glow); animation: pulse 1.8s infinite; }

/* ═══════════════ قسم التطبيقين ═══════════════
   يُعيد استعمال .product-card و.visit القائمَين — قسمٌ جديد بأنماط جديدة كان
   سيُنتج بطاقتين تشبهان المنتجات ولا تطابقانها، وهو أسوأ من الاختلاف الصريح. */
.product-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.product-points li { position: relative; padding-inline-start: 22px; font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.product-points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent);
}
.app-meta { display: flex; gap: 14px; align-items: center; margin: 22px 0 14px; font-size: 13px; color: var(--muted); }
.app-ver { font-weight: 700; color: var(--c); }
.app-size::before { content: "·"; margin-inline-end: 8px; opacity: .5; }
button.visit.app-dl { border: 0; cursor: pointer; font: inherit; width: 100%; justify-content: center; }
button.visit.app-dl:disabled { opacity: .5; cursor: not-allowed; }
.app-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); opacity: .82; text-align: center; }
@media (max-width: 860px) { .products-grid { grid-template-columns: 1fr; } }

/* ═══════════════ صفحة «جارٍ التحميل» ═══════════════ */
.dl-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.dl-card { max-width: 560px; width: 100%; text-align: center; padding: 48px 38px; }
.dl-icon { width: 76px; height: 76px; margin: 0 auto 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--green); color: var(--green); }
.dl-icon svg { width: 34px; height: 34px; }
.dl-icon.busy svg { animation: dlbob 1.4s ease-in-out infinite; }
@keyframes dlbob { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
.dl-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.dl-sub { color: var(--muted); line-height: 1.75; margin-bottom: 26px; }
.dl-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; margin-bottom: 26px; }
.dl-bar i { display: block; height: 100%; width: 34%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--green)); animation: dlrun 1.25s ease-in-out infinite; }
@keyframes dlrun { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }
.dl-meta { display: flex; gap: 18px; justify-content: center; font-size: 13px; color: var(--muted); margin-bottom: 26px; flex-wrap: wrap; }
.dl-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dl-err { color: #ff8a8a; line-height: 1.7; }

/* ═══════════════ نموذج دخول العملاء ═══════════════ */
.signin-form { display: grid; gap: 6px; text-align: start; margin-bottom: 6px; }
.signin-form label { font-size: 13px; color: var(--muted); margin-top: 12px; }
.signin-form input {
  width: 100%; padding: 13px 15px; border-radius: var(--rad-md);
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s;
}
.signin-form input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,158,84,.18);
}
.signin-form input::placeholder { color: rgba(255,255,255,.28); }
.signin-form button { margin-top: 22px; width: 100%; justify-content: center; }
.signin-form button:disabled { opacity: .6; cursor: not-allowed; }
/* 2026-07-31 actual satellite maps and access surfaces */
.products-grid{grid-template-columns:repeat(3,minmax(0,1fr));direction:ltr}
.product-card{direction:inherit}
body:not(.lang-en) .product-card{direction:rtl}
.city-management-card{order:-10}
.product-card[data-kind="city"]{--c:#74d998;--c-soft:rgba(116,217,152,.15)}
.city-management-card .product-icon{font-size:2rem;color:#8df0ad}
.satellite-map,.real-garden-map{background:#07100b!important}
.satellite-map>svg,.real-garden-map .region-map,.real-garden-map>.ping{display:none}
.satellite-tile-map{position:absolute;inset:0;overflow:hidden;background:#07100b;isolation:isolate}
.satellite-tile-map::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(3,12,8,.06),rgba(3,12,8,.46));z-index:2}
.satellite-tile-map img{position:absolute;width:256px;height:256px;max-width:none;user-select:none;pointer-events:none;filter:saturate(.88) contrast(1.05)}
.dashboard-satellite{min-height:340px}
.gulf-satellite{position:relative;height:430px;border-radius:calc(var(--rad-xl) - 20px);margin:-20px}
.satellite-marker{position:absolute;z-index:4;transform:translate(-50%,-50%)}
.satellite-marker.garden{width:14px;height:14px;border-radius:50%;border:2px solid #ecffe9;background:#2fc96b;box-shadow:0 0 0 5px rgba(47,201,107,.22),0 0 22px rgba(47,201,107,.82)}
.satellite-marker.garden::after{content:"";position:absolute;inset:-10px;border-radius:50%;border:1px solid rgba(157,255,190,.6);animation:satellitePulse 2.4s ease-out infinite}
.satellite-tile-map .ping{width:20px;height:20px;border:0;background:none;padding:0;cursor:pointer}
.satellite-tile-map .ping .core{width:11px;height:11px;background:#75e7a1;border:2px solid #eaffef;box-shadow:0 0 0 5px rgba(27,148,76,.2),0 0 24px rgba(84,236,145,.95)}
.satellite-tile-map .ping.main .core{width:15px;height:15px}
.satellite-tile-map .ping .ring{border-color:#baffcf}
.satellite-attribution{position:absolute;z-index:5;right:10px;bottom:8px;padding:4px 7px;border-radius:6px;background:rgba(3,10,7,.68);color:rgba(255,255,255,.72);font:10px/1.2 var(--type-en);pointer-events:none}
@keyframes satellitePulse{0%{transform:scale(.6);opacity:.9}100%{transform:scale(2.8);opacity:0}}
.footer-contact{display:flex;flex-direction:column;gap:.35rem;font-size:.86rem}
.footer-contact a{color:var(--muted);transition:color 160ms ease}
.footer-contact a:hover{color:var(--green)}
.access-denied{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0,#153727,#050807 55%)}
.access-denied-card{width:min(560px,100%);padding:56px;text-align:center;border-radius:28px}
.access-denied-card img{width:90px}.access-denied-card h1{font-size:clamp(2.4rem,8vw,5rem);margin:.4em 0 .15em}.access-denied-card p{color:#b8c5bd}.access-denied-card .ar{font-size:1.15rem}.access-lock{display:block;font-size:3rem;color:#7dde9b}
@media(max-width:980px){.products-grid{grid-template-columns:1fr}.gulf-satellite{height:340px}.footer-inner{align-items:flex-start}.footer-contact{width:100%}}
@media(prefers-reduced-motion:reduce){.footer-contact a,.product-card{transition:none!important}}


/* --- contact multi-value ---------------------------------------------------
   سطر تواصلٍ يحمل أكثر من قيمة (رقمان، بريدان). القيم تُعرَض تحت بعضها لا
   بجوارها: الأرقام السعوديّة طويلة، والصفّ الواحد يكسرها على الجوّال في منتصف
   الرقم فيبدو رقمًا خاطئًا. و`val-alt` للقيمة الاحتياطيّة — تبقى قابلة للنقر
   وأخفت، فلا يظنّها الزائر العنوان الرسميّ. */
.contact-line .val + .val { display: block; margin-top: 4px; }
.contact-line .val-alt { color: var(--ink-3); font-size: .92em; }
.contact-line .val-alt:hover { color: var(--ink-2); }


/* ═══ services & technology (صفحتان جديدتان) ══════════════════════════════
   شبكةٌ واحدة تخدم القسمين: بطاقاتٌ متساوية الارتفاع بحدٍّ خفيف بدل التوهّج.
   `auto-fit` مع `minmax` لا أعمدة ثابتة — فالجوّال يحصل على عمودٍ واحد بلا
   استعلام وسائط، والشاشة العريضة تملأ بلا فراغٍ في آخر صفّ. */
.services, .tech { padding: 96px 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .section-sub { color: var(--ink-2); margin-top: 14px; line-height: 1.85; }

.svc-grid, .tech-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.svc-card, .tech-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 26px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.svc-card:hover, .tech-card:hover {
  border-color: var(--line-2); transform: translateY(-3px);
  background: var(--surface-2);
}
.svc-ic {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-2);
  border: 1px solid var(--line);
}
.svc-ic svg { width: 22px; height: 22px; }
.svc-card h3, .tech-card h3 { font-size: 1.12rem; margin: 0 0 10px; color: var(--ink); }
.svc-card p, .tech-card p { color: var(--ink-2); line-height: 1.85; font-size: .95rem; margin: 0; }

/* وسوم التقنيات: حقائق قصيرة لا زينة — تُقرأ سريعًا وتُجيب «بأيّ شيء تبنون؟» */
.svc-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.svc-tags span {
  font-size: .74rem; letter-spacing: .3px; padding: 4px 10px; border-radius: 999px;
  color: var(--ink-3); background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.svc-cta {
  margin-top: 48px; padding: 30px; border-radius: 16px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
}
.svc-cta p { color: var(--ink-2); margin: 0 0 18px; }

/* الصفحة المخفيّة لا تشغل مكانًا: `hidden` وحده يهزمه `display` في قواعد الأقسام. */
[data-page][hidden] { display: none !important; }
