/* ============================================================
   NAMAA-OS (نمو) — Arabic-First Agtech Platform v2.0
   Direction: RTL | Language: Arabic (Gulf/MSA)
   Font: Noto Kufi Arabic | Palette: OLED Black + Botanical Green
   
   IMPORTANT: All spacing uses CSS Logical Properties.
   Never use margin-left/right or padding-left/right.
   Use margin-inline-start/end and padding-inline-start/end.
   ============================================================ */

/* 1. FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800&display=swap');

/* 2. DESIGN TOKENS */
:root {
  --banner-h: 40px;
  /* --- Palette --- */
  --bg:          #000000;
  --s1:          #060606;
  --s2:          #0c0c0c;
  --s3:          #111311;
  --s4:          #181a18;
  --s5:          #1e211f;

  --accent:       #00E676;
  --accent-dim:   rgba(0, 230, 118, 0.08);
  --accent-mid:   rgba(0, 230, 118, 0.15);
  --accent-2:     #00BFA5;
  --danger:       #FF5252;
  --warn:         #FFD740;

  --t1:  #E8E8E6;
  --t2:  #888884;
  --t3:  #4a4a47;
  --t4:  #2a2a28;

  --br:   rgba(255,255,255,0.05);
  --br2:  rgba(255,255,255,0.09);
  --bra:  rgba(0,230,118,0.15);
  --rule: rgba(255,255,255,0.03);

  /* --- Typography --- */
  --font: 'Noto Kufi Arabic', system-ui, sans-serif;

  --tx-xs:   clamp(0.7rem,  1.2vw, 0.78rem);
  --tx-sm:   clamp(0.82rem, 1.5vw, 0.9rem);
  --tx-base: clamp(0.95rem, 1.8vw, 1.05rem);
  --tx-lg:   clamp(1.05rem, 2vw,   1.2rem);
  --tx-xl:   clamp(1.2rem,  2.5vw, 1.5rem);
  --tx-2xl:  clamp(1.5rem,  3vw,   2rem);
  --tx-3xl:  clamp(2rem,    4vw,   2.8rem);
  --tx-4xl:  clamp(2.6rem,  5.5vw, 4rem);
  --tx-5xl:  clamp(3.2rem,  7vw,   5.5rem);

  --lh-tight:  1.45;
  --lh-snug:   1.65;
  --lh-normal: 1.8;
  --lh-loose:  1.95;

  /* --- Spacing --- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.5rem;   --sp-6: 2rem;
  --sp-8: 3rem;     --sp-10: 4rem;    --sp-12: 6rem;
  --sp-16: clamp(5rem, 10vh, 8rem);
  --sp-20: clamp(7rem, 14vh, 12rem);

  /* --- Layout --- */
  --wrap: 1320px;
  --pad:  clamp(1.25rem, 5vw, 4rem);

  /* --- Shape --- */
  --r-sm: 2px;   --r-md: 3px;  --r-lg: 4px;
  --r-xl: 6px;   --r-full: 4px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fast: 120ms;  --base: 220ms;  --slow: 440ms;
}

/* 3. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img, svg, video { display: block; max-inline-size: 100%; }
input, button, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* 4. BASE */
body {
  font-family: var(--font);
  font-size: var(--tx-base);
  line-height: var(--lh-normal);
  color: var(--t1);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-block-start: var(--banner-h);
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
}

strong, b {
  line-height: var(--lh-normal);
}


/* 5. LAYOUT UTILITIES */
.container {
  inline-size: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: var(--sp-16); }
.section--sm { padding-block: var(--sp-10); }
.section--lg { padding-block: var(--sp-20); }

/* 6. TYPOGRAPHY HELPERS */
.label {
  font-size: var(--tx-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--tx-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block-end: var(--sp-5);
}
.section-eyebrow::before {
  content: '';
  display: block;
  inline-size: 24px;
  block-size: 1px;
  background: var(--accent);
}
.section-title {
  font-size: var(--tx-3xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--t1);
  margin-block-end: var(--sp-5);
  text-wrap: balance;
}
.section-body {
  font-size: var(--tx-lg);
  color: var(--t2);
  line-height: var(--lh-normal);
  max-inline-size: 52ch;
  text-wrap: pretty;
}
.highlight { color: var(--accent); }

/* 7. NAVIGATION */
.nav {
  position: fixed;
  inset-block-start: var(--banner-h);
  inset-inline: 0;
  z-index: 1000;
  padding-block: var(--sp-4);
  transition: background var(--base) var(--ease),
              border-color var(--base) var(--ease),
              padding var(--base) var(--ease);
  border-block-end: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end-color: var(--br);
  padding-block: var(--sp-3);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--tx-xl);
  font-weight: 700;
  color: var(--t1);
  flex-shrink: 0;
}
.nav__logo-icon {
  inline-size: 32px;
  block-size: 32px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  display: grid;
  place-items: center;
}
.nav__logo-hex {
  inline-size: 16px;
  block-size: 16px;
  background: var(--bg);
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex: 1;
  justify-content: center;
}
.nav__link {
  font-size: var(--tx-sm);
  font-weight: 500;
  color: var(--t2);
  transition: color var(--fast) var(--ease);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  inset-block-end: -4px;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 1px;
  background: var(--accent);
  transition: inline-size var(--base) var(--ease);
}
.nav__link:hover { color: var(--t1); }
.nav__link:hover::after { inline-size: 100%; }
.nav__link.active { color: var(--accent); }
.nav__link.active::after { inline-size: 100%; }

.nav__cta {
  margin-inline-start: auto;
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  margin-inline-start: auto;
}
.nav__hamburger span {
  display: block;
  inline-size: 22px;
  block-size: 1.5px;
  background: var(--t1);
  transition: transform var(--base) var(--ease), opacity var(--base) var(--ease);
}
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  padding: var(--sp-8);
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu .nav__link {
  font-size: var(--tx-2xl);
  font-weight: 600;
}
.nav__mobile-close {
  position: absolute;
  inset-block-start: var(--sp-6);
  inset-inline-end: var(--sp-6);
  font-size: var(--tx-2xl);
  color: var(--t2);
  background: none;
  border: none;
  cursor: pointer;
}

/* 8. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.7em 1.6em;
  border-radius: var(--r-sm);
  font-size: var(--tx-sm);
  font-weight: 600;
  transition: all var(--base) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}
.btn--primary:hover {
  background: transparent;
  color: var(--accent);
}
.btn--ghost {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--br2);
}
.btn--ghost:hover {
  color: var(--t1);
  border-color: var(--t3);
}
.btn--outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--bra);
}
.btn--outline-accent:hover {
  background: var(--accent-dim);
}
.btn--lg {
  padding: 0.85em 2em;
  font-size: var(--tx-base);
}
.btn--sm {
  padding: 0.5em 1.2em;
  font-size: var(--tx-xs);
}

/* 9. BADGES & TAGS */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.3em 0.75em;
  border-radius: var(--r-sm);
  font-size: var(--tx-xs);
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--bra);
}
.badge--dot::before {
  content: '';
  display: block;
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.status-ok   { color: var(--accent); }
.status-warn { color: var(--warn); }
.status-err  { color: var(--danger); }

/* 10. CARDS */
.card {
  background: var(--s2);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--base) var(--ease);
}
.card:hover {
  border-color: var(--bra);
}
.card--accent-border {
  border-inline-start: 2px solid var(--accent);
}
.card--dark { background: var(--s1); }

/* ============================================================
   11. HERO SECTION
   ============================================================ */
.hero {
  min-block-size: 100vh;
  display: grid;
  align-items: center;
  padding-block-start: 100px;
  padding-block-end: var(--sp-16);
  position: relative;
  overflow: hidden;
}
#hero-matrix-canvas {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
  position: relative;
  z-index: 1;
}
.hero__content {
  order: 1;
  padding-block-start: var(--sp-6);
}
.hero__visual {
  order: 2;
  padding-block-start: var(--sp-6);
  perspective: 1200px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35em 0.9em;
  border-radius: var(--r-sm);
  font-size: var(--tx-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--bra);
  margin-block-end: var(--sp-6);
}
.hero__eyebrow span {
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__title {
  font-size: var(--tx-5xl);
  font-weight: 800;
  line-height: var(--lh-tight);
  color: var(--t1);
  margin-block-end: var(--sp-6);
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__subtitle {
  font-size: var(--tx-lg);
  color: var(--t2);
  line-height: var(--lh-normal);
  max-inline-size: 44ch;
  margin-block-end: var(--sp-8);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-block-end: var(--sp-10);
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding-block-start: var(--sp-8);
  border-block-start: 1px solid var(--br);
  flex-wrap: wrap;
}
.hero__stat {
  background: var(--s2);
  border: 1px solid var(--br);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  min-inline-size: 130px;
  transition: all var(--base) var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.hero__stat::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 2px;
  background: transparent;
  transition: background var(--base) var(--ease);
}
.hero__stat:hover {
  transform: translateY(-3px);
  border-color: var(--bra);
  background: var(--s3);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.12);
}
.hero__stat:hover::before {
  background: var(--accent);
}
.hero__stat-value {
  display: block;
  font-size: var(--tx-xl);
  font-weight: 700;
  color: var(--t1);
  margin-block-end: 2px;
}
.hero__stat-label {
  display: block;
  font-size: 11px;
  color: var(--t3);
}

/* ============================================================
   12. HERO DASHBOARD WIDGET
   ============================================================ */
.dashboard {
  background: var(--s2);
  border: 1px solid var(--br2);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.dashboard::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  background: var(--s1);
  border-block-end: 1px solid var(--br);
  font-size: var(--tx-xs);
}
.dash-topbar-left { display: flex; align-items: center; gap: var(--sp-3); }
.dash-topbar-right { display: flex; align-items: center; gap: var(--sp-4); color: var(--t3); }
.dash-dots { display: flex; gap: 5px; }
.dash-dot {
  inline-size: 7px; block-size: 7px;
  border-radius: 50%;
}
.dash-dot:nth-child(1) { background: #FF5252; }
.dash-dot:nth-child(2) { background: #FFD740; }
.dash-dot:nth-child(3) { background: var(--accent); }

.dash-status {
  display: flex; align-items: center; gap: var(--sp-2);
  color: var(--accent); font-weight: 600;
}
.dash-status-dot {
  inline-size: 5px; block-size: 5px; border-radius: 50%;
  background: var(--accent);
}
.dash-time { font-variant-numeric: tabular-nums; direction: ltr; }
.dash-version { color: var(--t3); }

.dash-body {
  display: grid;
  grid-template-columns: 140px 1fr 120px;
  gap: 0;
  min-block-size: 240px;
}
.dash-col {
  padding: var(--sp-4);
  border-inline-end: 1px solid var(--br);
}
.dash-col:last-child { border-inline-end: none; }

/* Left col - metrics list */
.dash-metric {
  margin-block-end: var(--sp-4);
}
.dash-metric:last-child { margin-block-end: 0; }
.dash-metric-label {
  font-size: 9px;
  color: var(--t3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-block-end: 2px;
}
.dash-metric-value {
  font-size: var(--tx-lg);
  font-weight: 700;
  color: var(--t1);
  direction: ltr;
  display: block;
  line-height: 1.2;
}
.dash-metric-bar {
  inline-size: 100%;
  block-size: 2px;
  background: var(--s4);
  margin-block-start: var(--sp-2);
  overflow: hidden;
}
.dash-metric-fill {
  block-size: 100%;
  background: var(--accent);
  transition: inline-size 1s var(--ease);
}
.dash-metric-trend {
  font-size: 9px;
  color: var(--t3);
  margin-block-start: 3px;
}
.dash-metric-trend.up   { color: var(--accent); }
.dash-metric-trend.down { color: var(--danger); }

/* Center col - greenhouse SVG */
.dash-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--sp-3);
}
.dash-greenhouse-svg {
  inline-size: 100%;
  max-inline-size: 240px;
  opacity: 0.85;
}
.dash-label {
  font-size: 8px;
  color: var(--t3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-block-start: var(--sp-2);
}

/* Right col - sparkline */
.dash-chart-label {
  font-size: 9px;
  color: var(--t3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-block-end: var(--sp-2);
}
.dash-sparkline {
  inline-size: 100%;
  block-size: 60px;
}
.dash-sparkline-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-line 2s ease-out 0.8s forwards;
}
.dash-mini-stat {
  margin-block-start: var(--sp-3);
  font-size: var(--tx-xs);
  color: var(--t3);
}
.dash-mini-stat strong { color: var(--accent); font-size: var(--tx-sm); }

.dash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  background: var(--s1);
  border-block-start: 1px solid var(--br);
  font-size: var(--tx-xs);
}
.dash-footer-left { display: flex; align-items: center; gap: var(--sp-2); color: var(--accent); }
.dash-footer-right { display: flex; align-items: center; gap: var(--sp-2); color: var(--t3); }
.sensor-dots { display: flex; gap: 4px; }
.sensor-dot {
  inline-size: 6px; block-size: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
}
.sensor-dot.active { opacity: 1; }

/* SVG Scan beam */
.scan-beam { animation: scan-sweep 3.5s ease-in-out infinite; }
@keyframes scan-sweep {
  0%   { transform: translateX(0); opacity: 0; }
  8%   { opacity: 0.7; }
  92%  { opacity: 0.7; }
  100% { transform: translateX(220px); opacity: 0; }
}
.pulse-node { animation: node-pulse 2.5s ease-in-out infinite; }
.pulse-node:nth-child(2) { animation-delay: 0.6s; }
.pulse-node:nth-child(3) { animation-delay: 1.2s; }
@keyframes node-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ============================================================
   13. SECTION DIVIDER (draw line animation)
   ============================================================ */
.section-divider {
  block-size: 1px;
  background: var(--br2);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.8s var(--ease);
}
.section-divider.visible {
  transform: scaleX(1);
}

/* ============================================================
   14. METRICS BOARD
   ============================================================ */
.metrics-board {
  background: var(--s1);
  border-block: 1px solid var(--br);
}
.metrics-board .container { padding-block: var(--sp-16); }
.metrics-header {
  text-align: center;
  margin-block-end: var(--sp-10);
}
.metrics-header .section-title {
  text-wrap: balance;
}
.metrics-header .section-body {
  margin-inline: auto;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.metric-card {
  background: var(--s2);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  transition: border-color var(--base) var(--ease);
}
.metric-card:hover { border-color: var(--bra); }
.metric-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 2px;
  block-size: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--base) var(--ease);
}
.metric-card:hover::before { opacity: 1; }

.metric-card-icon {
  inline-size: 36px; block-size: 36px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  border: 1px solid var(--bra);
  display: grid; place-items: center;
  margin-block-end: var(--sp-4);
}
.metric-card-icon svg { color: var(--accent); }

.metric-card-label {
  font-size: var(--tx-xs);
  color: var(--t3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-block-end: var(--sp-3);
}
.metric-card-value {
  font-size: var(--tx-3xl);
  font-weight: 700;
  color: var(--t1);
  direction: ltr;
  line-height: 1;
  margin-block-end: var(--sp-2);
}
.metric-card-unit {
  font-size: var(--tx-base);
  color: var(--t2);
  font-weight: 400;
}
.metric-card-trend {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--tx-xs); color: var(--t3);
  margin-block-end: var(--sp-4);
}
.trend-up   { color: var(--accent); }
.trend-down { color: var(--danger); }
.trend-stable { color: var(--t3); }

.metric-sparkline {
  inline-size: 100%; block-size: 40px;
  margin-block-start: var(--sp-4);
}

/* ============================================================
   15. FEATURES GRID
   ============================================================ */
.features-header {
  max-inline-size: 600px;
  margin-block-end: var(--sp-10);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.feature-card {
  background: var(--s2);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  transition: border-color var(--base) var(--ease),
              background var(--base) var(--ease);
}
.feature-card::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 2px;
  block-size: 0;
  background: var(--accent);
  transition: block-size var(--base) var(--ease);
}
.feature-card:hover {
  background: var(--s3);
  border-color: var(--bra);
}
.feature-card:hover::after { block-size: 100%; }

.feature-icon {
  inline-size: 40px; block-size: 40px;
  border-radius: var(--r-sm);
  background: var(--s4);
  display: grid; place-items: center;
  margin-block-end: var(--sp-5);
  transition: background var(--base) var(--ease);
  color: var(--accent);
}
.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.feature-card:hover .feature-icon { background: var(--accent-dim); }

.feature-title {
  font-size: var(--tx-lg);
  font-weight: 600;
  color: var(--t1);
  margin-block-end: var(--sp-3);
  line-height: var(--lh-snug);
}
.feature-body {
  font-size: var(--tx-sm);
  color: var(--t2);
  line-height: var(--lh-normal);
  text-wrap: pretty;
}
.feature-tag {
  display: inline-block;
  margin-block-start: var(--sp-4);
  padding: 0.2em 0.6em;
  border-radius: var(--r-sm);
  font-size: var(--tx-xs);
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--bra);
}

/* ============================================================
   16. HOW IT WORKS (PROCESS SECTION)
   ============================================================ */
.process-section {
  background: var(--s1);
  border-block: 1px solid var(--br);
}
.process-header {
  text-align: center;
  margin-block-end: var(--sp-10);
}
.process-header .section-body {
  margin-inline: auto;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  position: relative;
}
/* Connecting line */
.process-grid::before {
  content: '';
  position: absolute;
  inset-block-start: 36px;
  inset-inline-start: calc(100% / 6);
  inline-size: calc(100% * 2 / 3);
  block-size: 1px;
  background: var(--br2);
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 48px;
  block-size: 48px;
  border-radius: 50%;
  background: var(--s2);
  border: 1px solid var(--bra);
  font-size: var(--tx-lg);
  font-weight: 700;
  color: var(--accent);
  margin-block-end: var(--sp-5);
  position: relative;
  z-index: 1;
  direction: ltr;
}
.process-step-title {
  font-size: var(--tx-lg);
  font-weight: 700;
  color: var(--t1);
  margin-block-end: var(--sp-3);
}
.process-step-body {
  font-size: var(--tx-sm);
  color: var(--t2);
  line-height: var(--lh-normal);
  max-inline-size: 32ch;
  margin-inline: auto;
  text-wrap: pretty;
}

/* ============================================================
   17. TECHNOLOGY SPLIT SECTION
   ============================================================ */
.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.tech-content { order: 1; }
.tech-visual  { order: 2; }

.tech-list { margin-block-start: var(--sp-8); }
.tech-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-block-end: 1px solid var(--br);
  transition: padding-inline-start var(--base) var(--ease);
}
.tech-item:last-child { border-block-end: none; }
.tech-item:hover { padding-inline-start: var(--sp-3); }
.tech-item-dot {
  inline-size: 8px; block-size: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-block-start: 6px;
  flex-shrink: 0;
}
.tech-item-title {
  font-size: var(--tx-base);
  font-weight: 600;
  color: var(--t1);
  margin-block-end: var(--sp-2);
}
.tech-item-body { font-size: var(--tx-sm); color: var(--t2); line-height: var(--lh-normal); text-wrap: pretty; }

.tech-visual-card {
  background: var(--s2);
  border: 1px solid var(--br2);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
}
.tech-diagram { position: relative; z-index: 1; }
.tech-diagram-title {
  font-size: var(--tx-sm);
  color: var(--t3);
  text-align: center;
  margin-block-end: var(--sp-6);
  letter-spacing: 0.04em;
}
.layer-stack { display: flex; flex-direction: column; gap: var(--sp-2); }
.layer {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  border: 1px solid var(--br);
  background: var(--s3);
  font-size: var(--tx-xs);
  transition: border-color var(--base) var(--ease),
              transform var(--base) var(--ease);
}
.layer:hover { border-color: var(--bra); transform: translateX(-4px); }
.layer-color {
  inline-size: 10px; block-size: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.layer-name { font-weight: 600; color: var(--t1); flex: 1; }
.layer-val  { color: var(--accent); font-weight: 700; direction: ltr; }

/* ============================================================
   18. STATS SECTION
   ============================================================ */
.stats-section {
  background: var(--s1);
  border-block: 1px solid var(--br);
  overflow: hidden;
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}
.stat-item {
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  border-inline-end: 1px solid var(--br);
  position: relative;
}
.stat-item:last-child { border-inline-end: none; }
.stat-number {
  font-size: var(--tx-4xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  direction: ltr;
  display: block;
  margin-block-end: var(--sp-3);
}
.stat-label {
  font-size: var(--tx-sm);
  color: var(--t2);
}
.stat-sublabel {
  font-size: var(--tx-xs);
  color: var(--t3);
  margin-block-start: var(--sp-2);
}

/* ============================================================
   19. TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.testimonial-card {
  background: var(--s2);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  transition: border-color var(--base) var(--ease);
}
.testimonial-card:hover {
  border-color: var(--bra);
}
.testimonial-quote {
  font-size: var(--tx-3xl);
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-block-end: var(--sp-4);
  direction: ltr;
}
.testimonial-body {
  font-size: var(--tx-sm);
  color: var(--t2);
  line-height: var(--lh-loose);
  margin-block-end: var(--sp-5);
  text-wrap: pretty;
}
.testimonial-author {
  display: flex; align-items: center; gap: var(--sp-3);
  padding-block-start: var(--sp-4);
  border-block-start: 1px solid var(--br);
}
.testimonial-avatar {
  inline-size: 36px; block-size: 36px;
  border-radius: 50%;
  background: var(--s4);
  display: grid; place-items: center;
  font-size: var(--tx-sm);
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.testimonial-name { font-size: var(--tx-sm); font-weight: 600; color: var(--t1); }
.testimonial-role { font-size: var(--tx-xs); color: var(--t3); }
.testimonial-stars { color: var(--warn); font-size: var(--tx-sm); margin-block-end: var(--sp-3); }

/* ============================================================
   20. PARTNERS / INTEGRATIONS ROW
   ============================================================ */
.partners-section {
  border-block: 1px solid var(--br);
  padding-block: var(--sp-10);
}
.partners-header {
  text-align: center;
  margin-block-end: var(--sp-8);
}
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-10);
  flex-wrap: wrap;
}
.partner-item {
  font-size: var(--tx-sm);
  font-weight: 600;
  color: var(--t3);
  letter-spacing: 0.04em;
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid var(--br);
  border-radius: var(--r-sm);
  transition: color var(--base) var(--ease),
              border-color var(--base) var(--ease),
              background var(--base) var(--ease),
              box-shadow var(--base) var(--ease),
              transform var(--base) var(--ease);
  white-space: nowrap;
}
.partner-item:hover, .partner-item.glowing {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.22);
  transform: translateY(-2px);
}

/* ============================================================
   21. CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--s3);
  border-block: 1px solid var(--br);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-inner {
  position: relative; z-index: 1;
  max-inline-size: 600px;
  margin-inline: auto;
}
.cta-title {
  font-size: var(--tx-3xl);
  font-weight: 700;
  margin-block-end: var(--sp-5);
  text-wrap: balance;
}
.cta-body {
  font-size: var(--tx-lg);
  color: var(--t2);
  margin-block-end: var(--sp-8);
  line-height: var(--lh-normal);
  text-wrap: pretty;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.cta-note {
  font-size: var(--tx-xs);
  color: var(--t3);
  margin-block-start: var(--sp-5);
}

/* ============================================================
   22. FOOTER
   ============================================================ */
/* ============================================================
   22. FOOTER (GROWTH STYLE)
   ============================================================ */
.footer {
  background: linear-gradient(180deg, var(--s1) 0%, #050a06 100%);
  padding-block-start: var(--sp-20);
  padding-block-end: var(--sp-8);
  position: relative;
  overflow: hidden;
}
.footer-curve {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 60px;
  pointer-events: none;
}
.footer-curve svg {
  inline-size: 100%;
  block-size: 100%;
}

/* Impact Banner */
.footer-impact-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  background: rgba(10, 20, 12, 0.4);
  border: 1px solid rgba(0, 230, 118, 0.1);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-8);
  margin-block-end: var(--sp-12);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}
.footer-impact-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  position: relative;
}
.footer-impact-card:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-inline-end: 0;
  inset-block: 10%;
  inline-size: 1px;
  background: var(--br);
}
.footer-impact-icon {
  inline-size: 44px;
  block-size: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  border: 1px solid var(--bra);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.footer-impact-data {
  display: flex;
  flex-direction: column;
}
.impact-value {
  font-size: var(--tx-lg);
  font-weight: 700;
  color: var(--accent);
  direction: ltr;
  text-align: end;
  line-height: 1.2;
}
.impact-label {
  font-size: 11px;
  color: var(--t3);
  margin-block-start: 2px;
}

/* Footer structure */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-block-end: var(--sp-12);
  position: relative;
  z-index: 1;
}
.footer-logo { margin-block-end: var(--sp-4); }
.footer-tagline {
  font-size: var(--tx-sm);
  color: var(--t2);
  line-height: var(--lh-normal);
  max-inline-size: 38ch;
  margin-block-end: var(--sp-6);
  text-wrap: pretty;
}

/* Newsletter styling */
.footer-newsletter {
  margin-block-end: var(--sp-6);
  max-inline-size: 320px;
}
.footer-newsletter-title {
  font-size: var(--tx-xs);
  font-weight: 600;
  color: var(--t1);
  margin-block-end: var(--sp-3);
}
.footer-newsletter-form {
  display: flex;
  gap: var(--sp-2);
}
.footer-newsletter-form input {
  flex: 1;
  background: var(--s2);
  border: 1px solid var(--br2);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--tx-xs);
  color: var(--t1);
  transition: border-color var(--base) var(--ease);
  text-align: right;
}
.footer-newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.footer-newsletter-form button {
  font-size: var(--tx-xs);
  padding: var(--sp-2) var(--sp-4);
  font-weight: 700;
}

.footer-social { display: flex; gap: var(--sp-3); }
.social-btn {
  inline-size: 32px; block-size: 32px;
  border-radius: var(--r-sm);
  background: var(--s2);
  border: 1px solid var(--br);
  display: grid; place-items: center;
  color: var(--t2);
  transition: all var(--fast) var(--ease);
}
.social-btn svg {
  stroke: currentColor;
  fill: none;
}
.social-btn:hover {
  border-color: var(--bra);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 230, 118, 0.1);
}

.footer-col-title {
  font-size: var(--tx-sm);
  font-weight: 700;
  color: var(--t1);
  margin-block-end: var(--sp-5);
  position: relative;
  padding-block-end: var(--sp-2);
}
.footer-col-title::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 20px;
  block-size: 1.5px;
  background: var(--accent);
}

.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-link {
  font-size: var(--tx-sm);
  color: var(--t2);
  transition: all var(--fast) var(--ease);
  display: inline-flex;
  align-items: center;
}
.footer-link:hover {
  color: var(--accent);
  transform: translateX(-4px); /* Shifts left for RTL */
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-start: var(--sp-6);
  border-block-start: 1px solid var(--br);
  font-size: var(--tx-xs);
  color: var(--t3);
  position: relative;
  z-index: 1;
}
.footer-bottom-links { display: flex; gap: var(--sp-5); }

/* ============================================================
   23. INNER PAGE HERO
   ============================================================ */
.page-hero {
  padding-block-start: 120px;
  padding-block-end: var(--sp-12);
  position: relative;
  border-block-end: 1px solid var(--br);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--sp-10);
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-hero__content {
  position: relative;
  z-index: 2;
}
.page-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  z-index: 2;
}
.page-hero__visual svg {
  inline-size: 100%;
  max-inline-size: 340px;
  block-size: auto;
}
@media (max-width: 1024px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .page-hero__visual {
    order: -1;
  }
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--tx-xs);
  color: var(--t3);
  margin-block-end: var(--sp-5);
}
.page-hero__breadcrumb a { color: var(--t3); transition: color var(--fast) var(--ease); }
.page-hero__breadcrumb a:hover { color: var(--accent); }
.page-hero__breadcrumb-sep { color: var(--t4); }
.page-hero__title {
  font-size: var(--tx-4xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin-block-end: var(--sp-4);
  text-wrap: balance;
}
.page-hero__subtitle {
  font-size: var(--tx-lg);
  color: var(--t2);
  max-inline-size: 56ch;
  line-height: var(--lh-normal);
  text-wrap: pretty;
}

/* ============================================================
   24. TECHNOLOGIES PAGE
   ============================================================ */
.wave-slider-section { padding-block: var(--sp-12); }
.wave-slider-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}
.wavelength-viz {
  background: var(--s2);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.wavelength-bar-container {
  block-size: 48px;
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-block: var(--sp-5);
  position: relative;
  background: linear-gradient(90deg,
    #7B2FF7 0%, #4444FF 16%, #0088FF 32%, #00CC88 48%,
    #88CC00 58%, #FFCC00 68%, #FF8800 78%, #FF4400 88%, #CC0000 100%);
}
.wavelength-marker {
  position: absolute;
  inset-block: 0;
  inline-size: 2px;
  background: white;
  cursor: ew-resize;
  transition: inset-inline-start 0.1s;
}
.wavelength-range-highlight {
  position: absolute;
  inset-block: 0;
  background: rgba(0, 230, 118, 0.25);
  border-inline: 1px solid var(--accent);
  pointer-events: none;
  transition: all 0.2s;
}
.wavelength-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--tx-xs);
  color: var(--t3);
  direction: ltr;
}
.wavelength-result {
  text-align: center;
  padding: var(--sp-5);
  background: var(--s3);
  border-radius: var(--r-sm);
  border: 1px solid var(--bra);
  margin-block-start: var(--sp-5);
}
.wavelength-result-value {
  font-size: var(--tx-3xl);
  font-weight: 700;
  color: var(--accent);
  direction: ltr;
}
.wavelength-result-label { font-size: var(--tx-xs); color: var(--t2); margin-block-start: var(--sp-2); }
.wavelength-slider-input {
  inline-size: 100%;
  -webkit-appearance: none;
  appearance: none;
  block-size: 3px;
  background: var(--s4);
  border-radius: 0;
  outline: none;
  cursor: pointer;
  margin-block: var(--sp-4);
  direction: ltr;
}
.wavelength-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  inline-size: 16px; block-size: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.wave-controls-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--tx-xs);
  color: var(--t2);
  margin-block-end: var(--sp-2);
}

.layer-explode { padding-block: var(--sp-12); }
.layer-explode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}
.layer-visual {
  position: relative;
  min-block-size: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-8);
}
.layer-slab {
  block-size: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  padding-inline: var(--sp-4);
  font-size: var(--tx-xs);
  font-weight: 600;
  transition: transform var(--base) var(--ease);
  cursor: default;
}
.layer-slab:hover { transform: translateX(-8px); }
.layer-slab--uv    { background: rgba(123, 47, 247, 0.2); border: 1px solid rgba(123, 47, 247, 0.35); color: #c4a0ff; }
.layer-slab--ir    { background: rgba(255, 68, 0, 0.2);   border: 1px solid rgba(255, 68, 0, 0.35);   color: #ffaa88; }
.layer-slab--vis   { background: rgba(0, 230, 118, 0.12); border: 1px solid var(--bra);                color: var(--accent); }
.layer-slab--nano  { background: rgba(0, 136, 255, 0.15); border: 1px solid rgba(0, 136, 255, 0.3);   color: #88ccff; }
.layer-slab--base  { background: var(--s4);                border: 1px solid var(--br2);                color: var(--t2); }

/* ============================================================
   25. PROJECTS PAGE
   ============================================================ */
#project-map {
  block-size: 480px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--br);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-block-start: var(--sp-10);
}
.case-card {
  background: var(--s2);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--base) var(--ease);
}
.case-card:hover { border-color: var(--bra); }
.case-card-img {
  block-size: 160px;
  background: linear-gradient(135deg, var(--s4) 0%, var(--s5) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.case-card-body { padding: var(--sp-5); }
.case-card-location {
  font-size: var(--tx-xs);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-block-end: var(--sp-2);
}
.case-card-title { font-size: var(--tx-base); font-weight: 600; margin-block-end: var(--sp-3); }
.case-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding-block-start: var(--sp-4);
  border-block-start: 1px solid var(--br);
}
.case-meta-item label {
  display: block;
  font-size: 9px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.case-meta-item span { font-size: var(--tx-sm); font-weight: 600; color: var(--accent); direction: ltr; }

/* ============================================================
   26. CALCULATOR PAGE
   ============================================================ */
.calculator-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.calc-form-card {
  background: var(--s2);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
}
.calc-form-title { font-size: var(--tx-xl); font-weight: 700; margin-block-end: var(--sp-6); }
.form-group { margin-block-end: var(--sp-5); }
.form-label {
  display: block;
  font-size: var(--tx-sm);
  font-weight: 600;
  color: var(--t1);
  margin-block-end: var(--sp-2);
}
.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: var(--sp-2);
}
.form-value-display {
  font-size: var(--tx-sm);
  font-weight: 700;
  color: var(--accent);
  direction: ltr;
}
.form-select, .form-input {
  inline-size: 100%;
  padding: 0.7em 1em;
  background: var(--s1);
  border: 1px solid var(--br2);
  border-radius: var(--r-sm);
  color: var(--t1);
  font-size: var(--tx-sm);
  transition: border-color var(--base) var(--ease);
  appearance: none;
  -webkit-appearance: none;
  text-align: end;
}
.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-range {
  inline-size: 100%;
  -webkit-appearance: none;
  appearance: none;
  block-size: 3px;
  background: var(--s4);
  border-radius: 0;
  outline: none;
  cursor: pointer;
  direction: ltr;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  inline-size: 16px; block-size: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.calc-results-card {
  background: var(--s2);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  position: sticky;
  inset-block-start: 100px;
}
.calc-results-title { font-size: var(--tx-xl); font-weight: 700; margin-block-end: var(--sp-6); }
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-block-end: var(--sp-6);
}
.result-item {
  background: var(--s1);
  border: 1px solid var(--br);
  border-radius: var(--r-sm);
  padding: var(--sp-4);
}
.result-label { font-size: var(--tx-xs); color: var(--t3); text-transform: uppercase; letter-spacing: 0.04em; margin-block-end: var(--sp-2); }
.result-value { font-size: var(--tx-xl); font-weight: 700; color: var(--accent); direction: ltr; line-height: 1.2; }
.result-unit  { font-size: var(--tx-xs); color: var(--t2); font-weight: 400; }

.chart-container { position: relative; block-size: 220px; }
.calc-cta { margin-block-start: var(--sp-6); text-align: center; }

/* ============================================================
   27. CONTACT PAGE
   ============================================================ */
.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-block-end: var(--sp-12);
}
.contact-option-card {
  background: var(--s2);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  cursor: pointer;
  transition: all var(--base) var(--ease);
  position: relative;
  overflow: hidden;
}
.contact-option-card.active,
.contact-option-card:hover {
  border-color: var(--bra);
  background: var(--s3);
}
.contact-option-card.active::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 2px;
  block-size: 100%;
  background: var(--accent);
}
.contact-option-icon { font-size: 28px; margin-block-end: var(--sp-4); }
.contact-option-title { font-size: var(--tx-lg); font-weight: 700; margin-block-end: var(--sp-2); }
.contact-option-desc { font-size: var(--tx-sm); color: var(--t2); line-height: var(--lh-normal); text-wrap: pretty; }

.rfq-form { background: var(--s2); border: 1px solid var(--br); border-radius: var(--r-lg); padding: var(--sp-10); }
.rfq-step { display: none; }
.rfq-step.active { display: block; }
.rfq-step-title { font-size: var(--tx-xl); font-weight: 700; margin-block-end: var(--sp-6); }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.form-textarea {
  inline-size: 100%;
  min-block-size: 120px;
  padding: 0.7em 1em;
  background: var(--s1);
  border: 1px solid var(--br2);
  border-radius: var(--r-sm);
  color: var(--t1);
  font-size: var(--tx-sm);
  resize: vertical;
  transition: border-color var(--base) var(--ease);
  text-align: end;
}
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-file-zone {
  border: 1px dashed var(--br2);
  border-radius: var(--r-sm);
  padding: var(--sp-8);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--base) var(--ease), background var(--base) var(--ease);
}
.form-file-zone:hover {
  border-color: var(--bra);
  background: var(--accent-dim);
}
.form-file-icon { font-size: 28px; margin-block-end: var(--sp-3); opacity: 0.4; }
.form-file-text { font-size: var(--tx-sm); color: var(--t2); }

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-start: var(--sp-8);
  padding-block-start: var(--sp-6);
  border-block-start: 1px solid var(--br);
}
.step-indicators {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  direction: ltr;
}
.step-dot {
  inline-size: 6px; block-size: 6px;
  border-radius: 50%;
  background: var(--s4);
  transition: background var(--base) var(--ease);
}
.step-dot.active { background: var(--accent); }
.step-dot.done { background: var(--accent-2); }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-block-start: var(--sp-12);
}
.contact-info-card {
  background: var(--s2);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.contact-info-icon { font-size: 24px; margin-block-end: var(--sp-3); }
.contact-info-label { font-size: var(--tx-xs); color: var(--t3); text-transform: uppercase; letter-spacing: 0.04em; margin-block-end: var(--sp-2); }
.contact-info-value { font-size: var(--tx-base); font-weight: 600; color: var(--t1); }
.contact-info-value.ltr { direction: ltr; text-align: end; }

/* ============================================================
   28. ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slide-in-start {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal { opacity: 0; transform: translateY(32px); }
.reveal.visible { animation: fade-up 0.6s var(--ease) forwards; }
.hero__content > * { animation: fade-up 0.6s var(--ease) both; }
.hero__content > *:nth-child(1) { animation-delay: 0.1s; }
.hero__content > *:nth-child(2) { animation-delay: 0.18s; }
.hero__content > *:nth-child(3) { animation-delay: 0.26s; }
.hero__content > *:nth-child(4) { animation-delay: 0.34s; }
.hero__content > *:nth-child(5) { animation-delay: 0.42s; }
.hero__visual { animation: fade-in 0.8s var(--ease) 0.3s both; }

/* ============================================================
   29. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__content > * { animation: none; opacity: 1; }
  .hero__visual { animation: none; opacity: 1; }
  .scan-beam { animation: none; }
  .dashboard { transition: none; }
  .section-divider { transform: scaleX(1); transition: none; }
}

/* ============================================================
   30. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: var(--tx-4xl); }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-10); }
  .hero__visual { order: -1; }
  .tech-split   { grid-template-columns: 1fr; }
  .tech-visual  { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-inline-end: none; }
  .stat-item:nth-child(3) { border-block-start: 1px solid var(--br); }
  .stat-item:nth-child(4) { border-inline-end: none; border-block-start: 1px solid var(--br); }
  .calculator-wrap { grid-template-columns: 1fr; }
  .calc-results-card { position: static; }
  .process-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .process-grid::before { display: none; }
}

@media (max-width: 768px) {
  :root { --pad: 1.25rem; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .hero__title { font-size: var(--tx-3xl); }
  .section { padding-block: var(--sp-12); }
  .section--lg { padding-block: var(--sp-12); }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .contact-options { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .wave-slider-wrap { grid-template-columns: 1fr; }
  .layer-explode-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: var(--sp-3); text-align: center; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-col { border-inline-end: none; border-block-end: 1px solid var(--br); }
  .hero__stats { gap: var(--sp-5); flex-wrap: wrap; }
  .partners-row { gap: var(--sp-5); }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-inline-end: none !important; border-block-start: 1px solid var(--br); }
  .stat-item:first-child { border-block-start: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; justify-content: center; }
}

/* ============================================================
   31. DISCLAIMER BANNER
   ============================================================ */
.demo-disclaimer-banner {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: var(--banner-h);
  background: var(--s3);
  border-block-end: 1px solid var(--bra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--tx-xs);
  color: var(--t2);
  z-index: 1100;
  text-align: center;
}
.demo-disclaimer-banner span {
  display: inline-block;
  padding-inline: var(--pad);
}
.demo-disclaimer-banner a {
  color: var(--accent);
  text-decoration: underline;
  margin-inline: var(--sp-1);
  font-weight: 600;
}
.demo-disclaimer-banner a:hover {
  color: var(--t1);
}

@media (max-width: 768px) {
  :root {
    --banner-h: 56px; /* slightly taller for wrapping text on mobile */
  }
}

/* ============================================================
   32. HIGH-FIDELITY TIMELINE (NMOO-GROW STYLE)
   ============================================================ */
.timeline-visual {
  position: relative;
  max-inline-size: 800px;
  margin-inline: auto;
  padding-block: var(--sp-6);
}
.timeline-line {
  position: absolute;
  inset-inline-start: 24px;
  inset-block-start: 0;
  inset-block-end: 0;
  inline-size: 2px;
  background: linear-gradient(to bottom, var(--bra), var(--accent), var(--bra));
}
.timeline-event {
  position: relative;
  display: flex;
  gap: var(--sp-6);
  margin-block-end: var(--sp-8);
  padding-inline-start: 60px;
}
.timeline-event:last-child {
  margin-block-end: 0;
}
.timeline-node {
  position: absolute;
  inset-inline-start: 9px;
  inset-block-start: 6px;
  inline-size: 32px;
  block-size: 32px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 0 10px var(--accent-mid);
}
.timeline-node-hex {
  inline-size: 16px;
  block-size: 16px;
  background: var(--bg);
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}
.timeline-card {
  background: var(--s2);
  border: 1px solid var(--br);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  flex: 1;
  transition: all var(--base) var(--ease);
}
.timeline-card:hover {
  border-color: var(--bra);
  background: var(--s3);
  transform: translateY(-2px);
}
.timeline-year {
  display: inline-block;
  font-size: var(--tx-xs);
  color: var(--accent);
  font-weight: 700;
  margin-block-end: var(--sp-2);
}
.timeline-title {
  font-size: var(--tx-lg);
  font-weight: 700;
  margin-block-end: var(--sp-2);
  color: var(--t1);
}
.timeline-body {
  font-size: var(--tx-sm);
  color: var(--t2);
  line-height: var(--lh-normal);
}

/* ============================================================
   Redesigned Premium Specs Board
   ============================================================ */
.specs-board {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-block-start: var(--sp-6);
}
.specs-row {
  background: var(--s2);
  border: 1px solid var(--br);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-6);
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 3fr;
  gap: var(--sp-4);
  align-items: center;
  transition: all var(--base) var(--ease);
}
.specs-row:hover {
  border-color: var(--bra);
  background: var(--s3);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.03);
}
.specs-header {
  background: var(--s1);
  border: 1px solid var(--br2);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-6);
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 3fr;
  gap: var(--sp-4);
  align-items: center;
  font-weight: 700;
  color: var(--t2);
  font-size: var(--tx-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.spec-name {
  font-size: var(--tx-sm);
  font-weight: 600;
  color: var(--t1);
}
.spec-value-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-sm);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--tx-xs);
  direction: ltr;
  justify-self: start;
}
.spec-traditional-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--br);
  color: var(--t3);
  font-size: var(--tx-xs);
  direction: ltr;
  justify-self: start;
}
.spec-comparison-bar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.spec-bar-track {
  block-size: 6px;
  background: var(--s4);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.spec-bar-traditional {
  position: absolute;
  inset-block: 0;
  background: var(--t4);
  border-radius: 3px;
  opacity: 0.5;
}
.spec-bar-namaa {
  position: absolute;
  inset-block: 0;
  background: var(--accent);
  border-radius: 3px;
  box-shadow: 0 0 8px var(--accent);
}
.spec-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--t3);
}

@media (max-width: 768px) {
  .specs-header {
    display: none;
  }
  .specs-row {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    padding: var(--sp-5);
  }
  .spec-value-badge, .spec-traditional-badge {
    justify-self: stretch;
  }
  .spec-comparison-bar {
    margin-block-start: var(--sp-2);
  }
}

/* ============================================================
   33. INTERACTIVE HERO SHAPES & PARALLAX
   ============================================================ */
/* Utility for GSAP parallax items */
[data-parallax] {
  will-change: transform;
}

/* Base style for interactive SVG shapes */
.hero-svg-container {
  overflow: visible !important;
}

/* Glow effects for nodes */
.glow-node {
  transition: all 0.4s var(--ease);
  transform-origin: center;
  cursor: crosshair;
}
.glow-node:hover {
  transform: scale(1.8);
  filter: drop-shadow(0 0 15px var(--accent)) drop-shadow(0 0 30px var(--accent));
  stroke-width: 1.5px;
}

/* Interactive path (lines/rays) */
.interactive-path {
  transition: all 0.4s var(--ease);
  stroke-dasharray: 6, 4;
  animation: stroke-dash 2s linear infinite;
}
.interactive-path:hover {
  stroke-width: 3px;
  filter: drop-shadow(0 0 8px currentColor);
  opacity: 1 !important;
}

/* Glassmorphic Prism / Shapes */
.glass-shape {
  fill: rgba(0, 230, 118, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  stroke: var(--accent);
  stroke-width: 1.5;
  transition: all 0.5s var(--ease);
  transform-origin: center;
}
.glass-shape:hover {
  fill: rgba(0, 230, 118, 0.15);
  filter: drop-shadow(0 0 20px rgba(0, 230, 118, 0.4));
  transform: scale(1.05) rotate(2deg);
}

/* Floating animation for elements without mouse movement */
.floating-element {
  animation: float-anim 4s ease-in-out infinite alternate;
}
@keyframes float-anim {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(1deg); }
}

/* Stroke animation */
@keyframes stroke-dash {
  to { stroke-dashoffset: -20; }
}

/* Specific styling for SVG text icons */
.svg-icon-text {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 8px;
  fill: var(--t2);
  transition: all 0.3s ease;
  pointer-events: none;
}
.glow-node:hover + .svg-icon-text,
.glow-node:hover ~ .svg-icon-text {
  fill: #fff;
  font-size: 9px;
  font-weight: 700;
  filter: drop-shadow(0 0 4px var(--accent));
}
