:root {
    --bg: #000000;
    --bg-soft: #050607;
    --ink: #f4f7f6;
    --ink-dim: rgba(244, 247, 246, 0.62);
    --ink-faint: rgba(244, 247, 246, 0.38);
    --line: rgba(255, 255, 255, 0.09);
    --teal: #19f0c8;
    --cyan: #38b6ff;
    --violet: #8a5cff;
    --grad: linear-gradient(100deg, #19f0c8 0%, #38b6ff 48%, #8a5cff 100%);
    --radius: 22px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --accent-font: 'IBM Plex Sans Arabic', sans-serif;
  }
  [dir="rtl"] { --accent-font: 'Sora', 'Inter', sans-serif; }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body { overscroll-behavior-y: none; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
  }
  [dir="rtl"] body { font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }

  ::selection { background: rgba(25, 240, 200, 0.25); color: #fff; }

  h1, h2, h3, .display { font-family: 'Sora', 'Inter', sans-serif; }
  [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
    font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
    letter-spacing: 0;
  }
  .ar { font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }
  .accent-line { font-family: var(--accent-font); }

  /* ---------- Scroll progress ---------- */
  #progress {
    position: fixed; top: 0; inset-inline-start: 0; height: 2px; width: 0%;
    background: var(--grad); z-index: 1000;
    box-shadow: 0 0 12px rgba(56, 182, 255, 0.8);
  }

  /* ---------- Ambient canvas ---------- */
  #aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.9; }

  /* ---------- Grain ---------- */
  body::after {
    content: ""; position: fixed; inset: -50%; z-index: 2; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    animation: grain 9s steps(10) infinite;
  }
  @keyframes grain {
    0%,100% { transform: translate(0,0); } 10% { transform: translate(-3%,-5%); }
    30% { transform: translate(4%,2%); } 50% { transform: translate(-4%,6%); }
    70% { transform: translate(6%,-2%); } 90% { transform: translate(-2%,4%); }
  }

  /* ---------- Nav ---------- */
  header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
    border-bottom: 1px solid transparent;
  }
  header.scrolled {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--line);
  }
  .nav {
    max-width: 1320px; margin: 0 auto; padding: 0 32px;
    height: 76px; display: flex; align-items: center; justify-content: space-between;
  }
  .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
  .logo-mark {
    width: 34px; height: 34px; border-radius: 10px; position: relative;
    background: var(--grad); display: grid; place-items: center;
    box-shadow: 0 0 24px rgba(56, 182, 255, 0.45);
  }
  .logo-mark::before {
    content: ""; width: 12px; height: 12px; border-radius: 50%;
    background: #000; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.9);
  }
  .logo span { font-family: 'Sora'; font-weight: 700; letter-spacing: 0.16em; font-size: 15px; }
  .logo small { font-size: 10px; letter-spacing: 0.3em; color: var(--ink-faint); display: block; margin-top: -3px; }

  nav ul { display: flex; gap: 38px; list-style: none; }
  nav a {
    color: var(--ink-dim); text-decoration: none; font-size: 13.5px; font-weight: 500;
    letter-spacing: 0.04em; position: relative; transition: color 0.3s;
  }
  nav a::after {
    content: ""; position: absolute; inset-inline-start: 0; bottom: -6px; width: 100%; height: 1px;
    background: var(--grad); transform: scaleX(0); transform-origin: right;
    transition: transform 0.45s var(--ease);
  }
  nav a:hover { color: var(--ink); }
  nav a:hover::after { transform: scaleX(1); transform-origin: left; }

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

  /* ---------- Language switch ---------- */
  .lang-switch {
    display: flex; gap: 2px; padding: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line); border-radius: 100px;
  }
  .lang-switch button {
    border: 0; background: transparent; color: var(--ink-dim);
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
    padding: 7px 14px; border-radius: 100px; cursor: pointer;
    transition: background 0.35s, color 0.35s;
  }
  .lang-switch button[data-lang="ar"] { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 13px; letter-spacing: 0; }
  .lang-switch button.active { background: var(--ink); color: #000; }
  .lang-switch button:hover:not(.active) { color: var(--ink); }
  .menu-lang { margin-top: 28px; opacity: 0; transform: translateY(24px); transition: 0.6s var(--ease) 0.3s; }
  #mobileMenu.open .menu-lang { opacity: 1; transform: translateY(0); }

  .nav-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 22px; border-radius: 100px; font-size: 13px; font-weight: 600;
    color: #000; background: var(--ink); text-decoration: none; letter-spacing: 0.03em;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  }
  .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(25, 240, 200, 0.35); background: #fff; }

  #burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; z-index: 210; }
  #burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); transition: 0.4s var(--ease); }
  #burger span:nth-child(1) { top: 14px; }
  #burger span:nth-child(2) { top: 20px; }
  #burger span:nth-child(3) { top: 26px; }
  #burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
  #burger.open span:nth-child(2) { opacity: 0; }
  #burger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

  #mobileMenu {
    position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.92);
    backdrop-filter: blur(24px); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
  }
  #mobileMenu.open { opacity: 1; pointer-events: auto; }
  #mobileMenu a {
    color: var(--ink); text-decoration: none; font-family: 'Sora';
    font-size: clamp(28px, 7vw, 40px); font-weight: 700; padding: 10px;
    opacity: 0; transform: translateY(24px); transition: 0.6s var(--ease);
  }
  [dir="rtl"] #mobileMenu a { font-family: 'IBM Plex Sans Arabic'; }
  #mobileMenu.open a { opacity: 1; transform: translateY(0); }
  #mobileMenu a:nth-child(2) { transition-delay: 0.06s; }
  #mobileMenu a:nth-child(3) { transition-delay: 0.12s; }
  #mobileMenu a:nth-child(4) { transition-delay: 0.18s; }
  #mobileMenu a:nth-child(5) { transition-delay: 0.24s; }

  /* ---------- Language toast ---------- */
  #langToast {
    position: fixed; bottom: 26px; left: 50%; z-index: 400;
    width: min(540px, calc(100% - 32px));
    background: rgba(9, 11, 13, 0.86);
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px; padding: 24px 26px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.65);
    transform: translate(-50%, 160%);
    transition: transform 0.8s var(--ease);
  }
  #langToast::before {
    content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
    background: var(--grad);
  }
  #langToast.show { transform: translate(-50%, 0); }
  #langToast .toast-label {
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 10px;
  }
  #langToast p { font-size: 14.5px; color: var(--ink); font-weight: 400; line-height: 1.7; }
  .toast-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
  .toast-actions button {
    flex: 1; min-width: 140px; border: 0; cursor: pointer;
    padding: 13px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 600;
    transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s, border-color 0.35s;
  }
  #toastPrimary { background: var(--grad); color: #000; font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }
  #toastPrimary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(56,182,255,0.4); }
  #toastSecondary {
    background: transparent; color: var(--ink);
    border: 1px solid rgba(255,255,255,0.2); font-family: 'Inter', sans-serif;
  }
  #toastSecondary:hover { border-color: rgba(25,240,200,0.6); background: rgba(25,240,200,0.06); transform: translateY(-2px); }

  /* ---------- Layout ---------- */
  main { position: relative; z-index: 3; }
  .wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--ink-dim);
  }
  .eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--grad); }
  [dir="rtl"] .eyebrow { letter-spacing: 0.04em; }

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

  /* ---------- Reveal ---------- */
  .reveal { opacity: 0; transform: translateY(46px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal[data-delay="1"] { transition-delay: 0.12s; }
  .reveal[data-delay="2"] { transition-delay: 0.24s; }
  .reveal[data-delay="3"] { transition-delay: 0.36s; }

  /* ---------- Hero ---------- */
  #hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 160px 0 90px; }
  .hero-halo {
    position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
    width: 1100px; height: 1100px; border-radius: 50%; pointer-events: none;
    background:
      radial-gradient(circle at 50% 40%, rgba(56, 182, 255, 0.16), transparent 55%),
      radial-gradient(circle at 30% 60%, rgba(25, 240, 200, 0.10), transparent 50%),
      radial-gradient(circle at 70% 65%, rgba(138, 92, 255, 0.12), transparent 50%);
    filter: blur(20px);
    animation: breathe 9s ease-in-out infinite;
  }
  @keyframes breathe {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
    50% { transform: translateX(-50%) scale(1.08); opacity: 1; }
  }

  .hero-inner { position: relative; text-align: center; }
  .hero-eyebrow { justify-content: center; margin-bottom: 30px; }
  .hero-eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--grad); }

  #hero h1 {
    font-size: clamp(52px, 9.4vw, 148px);
    font-weight: 800; line-height: 0.98; letter-spacing: -0.035em;
    margin-bottom: 14px;
  }
  [dir="rtl"] #hero h1 { letter-spacing: 0; line-height: 1.12; }
  #hero h1 .line { display: block; overflow: hidden; }
  #hero h1 .line > span {
    display: inline-block; transform: translateY(110%);
    animation: riseUp 1.2s var(--ease) forwards;
  }
  #hero h1 .line:nth-child(2) > span { animation-delay: 0.15s; }
  @keyframes riseUp { to { transform: translateY(0); } }

  .hero-accent {
    font-size: clamp(20px, 3vw, 30px); color: var(--ink-dim); font-weight: 300;
    margin: 26px 0 20px; opacity: 0; animation: fadeIn 1.4s var(--ease) 0.7s forwards;
  }
  .hero-sub {
    max-width: 640px; margin: 0 auto; color: var(--ink-dim);
    font-size: clamp(15px, 1.6vw, 18px); font-weight: 300;
    opacity: 0; animation: fadeIn 1.4s var(--ease) 0.9s forwards;
  }
  @keyframes fadeIn { to { opacity: 1; } }

  .hero-actions {
    margin-top: 46px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
    opacity: 0; animation: fadeIn 1.4s var(--ease) 1.1s forwards;
  }
  .btn-primary {
    position: relative; display: inline-flex; align-items: center; gap: 12px;
    padding: 17px 36px; border-radius: 100px; text-decoration: none;
    font-weight: 600; font-size: 14.5px; color: #000; background: var(--ink);
    overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  }
  .btn-primary::before {
    content: ""; position: absolute; inset: 0; background: var(--grad);
    opacity: 0; transition: opacity 0.4s;
  }
  .btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(56, 182, 255, 0.4); }
  .btn-primary:hover::before { opacity: 1; }

  .btn-ghost {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 17px 36px; border-radius: 100px; text-decoration: none;
    font-weight: 500; font-size: 14.5px; color: var(--ink);
    border: 1px solid rgba(255,255,255,0.18);
    transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease);
  }
  .btn-ghost:hover { border-color: rgba(25,240,200,0.6); background: rgba(25,240,200,0.06); transform: translateY(-3px); }

  [dir="rtl"] .flip { transform: scaleX(-1); }

  .scroll-hint {
    position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--ink-faint); font-size: 10.5px; letter-spacing: 0.34em; text-transform: uppercase;
    opacity: 0; animation: fadeIn 1.4s var(--ease) 1.6s forwards;
  }
  [dir="rtl"] .scroll-hint { letter-spacing: 0.08em; }
  .scroll-hint::after {
    content: ""; width: 1px; height: 52px;
    background: linear-gradient(to bottom, var(--ink-faint), transparent);
    animation: drop 2.2s var(--ease) infinite;
  }
  @keyframes drop {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  /* ---------- Marquee ---------- */
  #marquee { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(255,255,255,0.012); }
  .marquee-track { display: flex; width: max-content; animation: scrollX 34s linear infinite; }
  .marquee-track:hover { animation-play-state: paused; }
  .marquee-track span {
    font-family: 'Sora'; font-size: 15px; font-weight: 600; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--ink-faint); padding: 0 44px;
    display: flex; align-items: center; gap: 44px; white-space: nowrap;
  }
  .marquee-track span.ar { font-family: 'IBM Plex Sans Arabic'; letter-spacing: 0.1em; }
  .marquee-track span::after { content: "◆"; font-size: 8px; color: var(--teal); }
  @keyframes scrollX { to { transform: translateX(-50%); } }

  /* ---------- Mission ---------- */
  #mission { padding: 170px 0 150px; }
  .mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
  #mission h2, .section-head h2, .stack-left h2 {
    font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; line-height: 1.06;
    letter-spacing: -0.025em; margin-top: 26px;
  }
  [dir="rtl"] #mission h2, [dir="rtl"] .section-head h2, [dir="rtl"] .stack-left h2 { letter-spacing: 0; line-height: 1.25; }
  .mission-copy p { color: var(--ink-dim); font-size: 17px; font-weight: 300; margin-bottom: 24px; }
  .quote-accent {
    font-size: 22px; color: var(--ink); font-weight: 400;
    padding-inline-start: 22px;
    border-inline-start: 2px solid;
    border-image: linear-gradient(to bottom, #19f0c8, #8a5cff) 1;
    margin: 36px 0 0; line-height: 1.9;
  }
  .mission-panel {
    position: relative; aspect-ratio: 1; border-radius: var(--radius);
    border: 1px solid var(--line); overflow: hidden;
    background: radial-gradient(120% 120% at 20% 10%, rgba(56,182,255,0.10), transparent 50%),
                radial-gradient(120% 120% at 85% 90%, rgba(138,92,255,0.12), transparent 55%),
                var(--bg-soft);
  }
  .mission-panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .mission-panel .tag {
    position: absolute; bottom: 22px; inset-inline-start: 22px; inset-inline-end: 22px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint);
  }
  [dir="rtl"] .mission-panel .tag { letter-spacing: 0.06em; }
  .mission-panel .tag i { font-style: normal; color: var(--teal); font-family: var(--accent-font); }

  /* ---------- Products ---------- */
  #products { padding: 60px 0 130px; }
  .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 70px; flex-wrap: wrap; }
  .section-head p { max-width: 400px; color: var(--ink-dim); font-size: 15.5px; font-weight: 300; }

  .pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .pillar {
    position: relative; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 28px 30px; min-height: 420px; display: flex; flex-direction: column;
    background: var(--bg-soft); overflow: hidden; cursor: default;
    transition: transform 0.55s var(--ease), border-color 0.55s var(--ease), background 0.3s;
  }
  .pillar::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s;
    background: radial-gradient(90% 60% at 50% 0%, var(--glow, rgba(25,240,200,0.14)), transparent 70%);
  }
  .pillar:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.2); }
  .pillar:hover::before { opacity: 1; }
  .pillar .num { font-family: 'Sora'; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.2em; margin-bottom: auto; }
  .pillar .icon {
    width: 52px; height: 52px; border-radius: 14px; margin: 34px 0 22px;
    display: grid; place-items: center; border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
  }
  .pillar .icon svg { width: 24px; height: 24px; stroke: var(--accent, #19f0c8); }
  .pillar h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
  .pillar .alt-name { font-size: 15px; color: var(--accent, #19f0c8); margin-bottom: 16px; font-weight: 400; font-family: var(--accent-font); }
  .pillar p { font-size: 14px; color: var(--ink-dim); font-weight: 300; }
  .pillar .link {
    margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink); text-decoration: none;
    transition: transform 0.4s var(--ease);
  }
  [dir="rtl"] .pillar .link { letter-spacing: 0.02em; }
  .pillar .link svg { transition: transform 0.4s var(--ease); }
  .pillar:hover .link svg { transform: translateX(6px); }
  [dir="rtl"] .pillar:hover .link svg { transform: scaleX(-1) translateX(6px); }
  [dir="rtl"] .pillar .link svg { transform: scaleX(-1); }

  /* ---------- Stack ---------- */
  #stack { padding: 150px 0; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.015) 20%, rgba(255,255,255,0.015) 80%, transparent); }
  .stack-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; align-items: start; }
  .stack-left { position: sticky; top: 140px; }
  .stack-left p { color: var(--ink-dim); margin-top: 26px; font-weight: 300; max-width: 420px; }

  .layers { display: flex; flex-direction: column; }
  .layer {
    border-top: 1px solid var(--line); padding: 34px 6px; display: grid;
    grid-template-columns: 70px 1fr auto; gap: 26px; align-items: baseline;
    transition: background 0.4s, padding 0.4s var(--ease);
  }
  .layer:last-child { border-bottom: 1px solid var(--line); }
  .layer:hover { background: rgba(255,255,255,0.02); padding-inline-start: 24px; }
  .layer .idx { font-family: 'Sora'; font-size: 13px; color: var(--ink-faint); letter-spacing: 0.14em; }
  .layer h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.015em; transition: color 0.3s; }
  .layer:hover h3 { color: var(--teal); }
  .layer p { grid-column: 2; color: var(--ink-dim); font-size: 14.5px; font-weight: 300; margin-top: 10px; max-width: 460px; }
  .layer .chip {
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
    border: 1px solid var(--line); border-radius: 100px; padding: 7px 15px; white-space: nowrap;
  }
  [dir="rtl"] .layer .chip { letter-spacing: 0.04em; }

  /* ---------- Stats ---------- */
  #stats { padding: 130px 0; }
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .stat {
    text-align: center; padding: 54px 20px; border: 1px solid var(--line);
    border-radius: var(--radius); background: var(--bg-soft);
    transition: transform 0.5s var(--ease), border-color 0.5s;
  }
  .stat:hover { transform: translateY(-6px); border-color: rgba(56,182,255,0.35); }
  .stat .value {
    font-family: 'Sora'; font-size: clamp(40px, 4.4vw, 60px); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1;
  }
  .stat .value em { font-style: normal; font-size: 0.55em; vertical-align: super; }
  .stat .label { margin-top: 16px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
  [dir="rtl"] .stat .label { letter-spacing: 0.03em; }

  /* ---------- CTA ---------- */
  #cta { padding: 170px 0; text-align: center; overflow: hidden; }
  #cta .halo {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 900px; height: 900px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(56,182,255,0.13), rgba(138,92,255,0.08) 40%, transparent 65%);
    filter: blur(30px);
  }
  #cta h2 { font-size: clamp(44px, 7.4vw, 110px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; position: relative; }
  [dir="rtl"] #cta h2 { letter-spacing: 0; line-height: 1.2; }
  #cta .cta-accent { display: block; font-size: clamp(18px, 2.6vw, 26px); color: var(--ink-dim); font-weight: 300; margin-top: 30px; }
  #cta .hero-actions { position: relative; }

  /* ---------- Footer ---------- */
  footer { border-top: 1px solid var(--line); padding: 80px 0 40px; position: relative; z-index: 3; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); }
  .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 70px; }
  .footer-brand p { color: var(--ink-dim); font-size: 14px; font-weight: 300; max-width: 300px; margin-top: 20px; }
  .footer-col h4 { font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 22px; font-weight: 600; }
  [dir="rtl"] .footer-col h4 { letter-spacing: 0.04em; }
  .footer-col a { display: block; color: var(--ink-dim); text-decoration: none; font-size: 14px; margin-bottom: 13px; transition: color 0.3s, transform 0.3s var(--ease); }
  .footer-col a:hover { color: var(--teal); transform: translateX(5px); }
  [dir="rtl"] .footer-col a:hover { transform: translateX(-5px); }
  .footer-bottom {
    border-top: 1px solid var(--line); padding-top: 34px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--ink-faint);
  }
  .footer-bottom .accent-line { font-size: 14px; }

  /* ---------- Responsive ---------- */
  @media (max-width: 1080px) {
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .mission-grid, .stack-grid { grid-template-columns: 1fr; gap: 60px; }
    .stack-left { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 760px) {
    nav ul, .nav-cta { display: none; }
    #burger { display: block; }
    .wrap { padding: 0 22px; }
    .pillars { grid-template-columns: 1fr; }
    .pillar { min-height: 0; }
    #mission, #stack { padding: 100px 0; }
    #cta { padding: 120px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .layer { grid-template-columns: 44px 1fr; }
    .layer .chip { display: none; }
    .layer p { grid-column: 2; }
    .lang-switch button { padding: 7px 11px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
    html { scroll-behavior: auto; }
  }

/* ---------- CSP-safe helpers ----------
   These eight rules were inline style attributes in the single-file original.
   style-src is 'self' with no 'unsafe-inline', so a style attribute is dropped
   by the browser: the four pillar accents would fall back to teal and the CTA
   buttons would stay at opacity 0. Same values, same result, now in a file. */
.pillar--teal   { --accent: #19f0c8; --glow: rgba(25, 240, 200, 0.14); }
.pillar--cyan   { --accent: #38b6ff; --glow: rgba(56, 182, 255, 0.14); }
.pillar--violet { --accent: #8a5cff; --glow: rgba(138, 92, 255, 0.15); }
.pillar--amber  { --accent: #ffb14d; --glow: rgba(255, 177, 77, 0.13); }

.is-centered      { justify-content: center; }
.is-centered-text { justify-content: center; text-align: center; }
.mt-30            { margin-top: 30px; }

/* The CTA block reveals on scroll everywhere else; here it is already in view. */
.hero-actions--static { opacity: 1; animation: none; }
