@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Cairo:wght@400;500;600;700;800;900&display=swap');

@font-face {
  font-family: 'Azonix';
  src: url('Azonix.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BoutrosDinkum';
  src: url('BoutrosMBCDinkum-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0B0F10;
  --ink-2: #111719;
  --paper: #EDEFEA;
  --muted: #8B9794;
  --line: rgba(237, 239, 234, 0.10);
  --line-strong: rgba(237, 239, 234, 0.20);
  --accent: #2FB6A6;
  --accent-deep: #157A6E;
  --brass: #D9B36A;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.07);
  --radius: 16px;
  --radius-lg: 26px;
  --rail-w: 92px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Raleway', 'Azonix', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

/* Light theme overrides */
html.theme-light {
  --ink: #F5F7F6;
  --ink-2: #ECEFEE;
  --paper: #10201F;
  --muted: #5A6764;
  --line: rgba(16, 32, 30, 0.10);
  --line-strong: rgba(16, 32, 30, 0.20);
  --surface: rgba(16, 32, 30, 0.03);
  --surface-2: rgba(16, 32, 30, 0.06);
  --accent: #157A6E;
  --brass: #B8862F;
}
html.theme-light body { background: var(--ink); color: var(--paper); }
html.theme-light ::selection { background: var(--accent); color: #fff; }
html.theme-light .rail,
html.theme-light .topbar { background: rgba(245, 247, 246, 0.85); border-color: var(--line); box-shadow: 0 1px 0 rgba(16,32,30,0.04); }
html.theme-light .rail-lang,
html.theme-light .rail-theme,
html.theme-light .topbar-lang,
html.theme-light .topbar-theme { color: var(--paper); border-color: var(--line-strong); }
html.theme-light .rail-lang:hover,
html.theme-light .rail-theme:hover,
html.theme-light .topbar-lang:hover,
html.theme-light .topbar-theme:hover { background: rgba(21,122,110,0.10); color: var(--accent); border-color: var(--accent); }
html.theme-light .sec--about { background: linear-gradient(180deg, #EaEEED, #F5F7F6); }
html.theme-light .sec--products { background: #F5F7F6; }
html.theme-light .sec--why { background: linear-gradient(180deg, #F5F7F6, #EaEEED); }
html.theme-light .sec--contact { background: #EaEEED; }
html.theme-light .hero {
  background:
    radial-gradient(80% 120% at 85% 10%, rgba(21,122,110,0.10), transparent 60%),
    radial-gradient(70% 100% at 5% 95%, rgba(184,134,47,0.08), transparent 55%),
    linear-gradient(180deg, #F5F7F6, #EaEEED);
}
html.theme-light .app-preview-inner { background: #FFFFFF; border-color: rgba(16,32,30,0.08); box-shadow: 0 24px 60px rgba(16,32,30,0.10); }
html.theme-light .why-card,
html.theme-light .app-list-item { background: #FFFFFF; border-color: rgba(16,32,30,0.09); box-shadow: 0 10px 30px rgba(16,32,30,0.06); }
html.theme-light .why-card:hover { box-shadow: 0 22px 50px rgba(16,32,30,0.12); }
html.theme-light .app-list-item:hover,
html.theme-light .app-list-item.active { background: #FFFFFF; }
html.theme-light .form-input { background: #FFFFFF; color: var(--paper); border-color: var(--line-strong); }
html.theme-light .footer-bar { border-color: var(--line); }
html.theme-light .sec-quote { color: var(--accent); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Smooth theme cross-fade */
body, .rail, .topbar, .sec, .hero,
.why-card, .app-list-item, .app-preview-inner,
.form-input, .footer-bar, .rail-lang, .rail-theme,
.topbar-lang, .topbar-theme, .pv-cta, .cta-btn, .sec-quote {
  transition: background-color 0.55s var(--ease),
              color 0.55s var(--ease),
              border-color 0.55s var(--ease),
              box-shadow 0.55s var(--ease);
}
.brand-logo { transition: filter 0.55s var(--ease), opacity 0.4s var(--ease); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===================== SIDE RAIL ===================== */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 0;
  background: rgba(11, 15, 16, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-right: 1px solid var(--line);
}
.rail-brand img {
  width: 44px; height: 44px;
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(47,182,166,0.25);
  transition: transform 0.4s var(--ease);
}
.rail-brand:hover img { transform: rotate(-6deg) scale(1.06); }
.rail-links {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
}
.rail-links a {
  position: relative;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 4px;
  transition: color 0.3s var(--ease);
}
.rail-links a::before {
  content: attr(data-num);
  display: block;
  font-size: 9px;
  color: rgba(139,151,148,0.5);
  margin-bottom: 8px;
  letter-spacing: 0;
}
.rail-links a:hover, .rail-links a.active { color: var(--paper); }
.rail-links a.active::after {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--brass));
}
.rail-lang {
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.rail-lang:hover { border-color: var(--accent); background: rgba(47,182,166,0.15); color: var(--accent); }
html.rtl .rail-lang { font-family: 'BoutrosDinkum', 'Cairo', sans-serif; }

/* Rail flips to the right side in RTL/Arabic */
html.rtl .rail { left: auto; right: 0; border-right: none; border-left: 1px solid var(--line); }
html.rtl .rail-links a.active::after { left: auto; right: -10px; }

/* Theme + lang action group */
.rail-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rail-theme {
  width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--paper); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.rail-theme:hover { border-color: var(--accent); background: rgba(47,182,166,0.15); color: var(--accent); }
.rail-theme .i-moon { display: none; }
html.theme-light .rail-theme .i-sun { display: none; }
html.theme-light .rail-theme .i-moon { display: block; }
html.rtl .rail-theme { font-family: 'BoutrosDinkum', 'Cairo', sans-serif; }

/* ===================== TOPBAR (mobile) ===================== */
.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(11,15,16,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.topbar-brand img { width: 32px; height: 32px; border-radius: 9px; }
.topbar-lang {
  width: 44px; height: 40px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--paper);
  font-family: var(--font-display); font-weight: 800; font-size: 13px; cursor: pointer;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-theme {
  width: 44px; height: 40px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--paper);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.topbar-theme .i-moon { display: none; }
html.theme-light .topbar-theme .i-sun { display: none; }
html.theme-light .topbar-theme .i-moon { display: block; }
html.rtl .topbar-lang { font-family: 'BoutrosDinkum', 'Cairo', sans-serif; }

/* ===================== STAGE ===================== */
.stage { margin-left: var(--rail-w); }
html.rtl .stage { margin-left: 0; margin-right: var(--rail-w); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(32px, 8vw, 140px);
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 85% 10%, rgba(21,122,110,0.22), transparent 60%),
    radial-gradient(70% 100% at 5% 95%, rgba(217,179,106,0.10), transparent 55%),
    linear-gradient(180deg, #0B0F10, #0E1314);
}
.hero-glow {
  position: absolute;
  width: 540px; height: 540px;
  right: -120px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(47,182,166,0.20), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(237,239,234,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,239,234,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 10%, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
  opacity: 0; animation: rise 0.8s var(--ease) 0.1s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 8.5vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -1px;
}
.hero-title .line { display: block; opacity: 0; transform: translateY(28px); animation: rise 0.9s var(--ease) forwards; }
.hero-title .line:nth-child(1) { animation-delay: 0.18s; }
.hero-title .line:nth-child(2) { animation-delay: 0.30s; }
.hero-title .line:nth-child(3) { animation-delay: 0.42s; }
.hero-title .accent {
  background: linear-gradient(100deg, var(--accent), var(--brass));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  margin-top: 28px;
  font-size: 17px; color: var(--paper); opacity: 0.62;
  max-width: 460px;
  opacity: 0; animation: rise 0.8s var(--ease) 0.55s forwards;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 40px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px; letter-spacing: 0.5px;
  color: var(--ink);
  background: linear-gradient(100deg, var(--accent), var(--brass));
  box-shadow: 0 16px 40px rgba(47,182,166,0.30);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  opacity: 0; animation: rise 0.8s var(--ease) 0.7s forwards;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 22px 54px rgba(47,182,166,0.42); }
.hero-cta svg { transition: transform 0.3s var(--ease); }
.hero-cta:hover svg { transform: translateX(4px); }
.hero-foot {
  position: absolute;
  bottom: 36px; left: clamp(32px, 8vw, 140px);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  opacity: 0; animation: rise 0.8s var(--ease) 0.9s forwards;
}
.hero-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(47,182,166,0.2); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ===================== SECTIONS ===================== */
.sec {
  position: relative;
  padding: clamp(80px, 12vh, 150px) clamp(32px, 8vw, 140px);
  border-top: 1px solid var(--line);
}
.sec--about { background: linear-gradient(180deg, #0E1314, #0B0F10); }
.sec--products { background: #0B0F10; }
.sec--why { background: linear-gradient(180deg, #0B0F10, #0E1314); }
.sec--contact { background: #0E1314; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.sec-inner { max-width: 980px; margin: 0 auto; width: 100%; }
.sec-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid rgba(47,182,166,0.4);
  border-radius: 999px;
  margin-bottom: 22px;
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; letter-spacing: -0.5px;
  line-height: 1.1; margin-bottom: 26px;
}
.sec-title::after {
  content: ""; display: block;
  width: 60px; height: 3px; border-radius: 3px; margin-top: 18px;
  background: linear-gradient(90deg, var(--accent), var(--brass));
}
.sec-text { font-size: 16px; color: var(--paper); opacity: 0.78; max-width: 680px; margin: 0 0 18px; line-height: 1.85; }
.sec-quote {
  font-size: 20px; color: var(--accent);
  max-width: 700px; margin: 0 0 30px; line-height: 1.6; font-weight: 500;
  border-left: 3px solid var(--accent); padding-left: 20px;
}
html.rtl .sec-quote { border-left: none; border-right: 3px solid var(--accent); padding-left: 0; padding-right: 20px; }

/* ===================== APP EXPLORER ===================== */
.app-explorer {
  position: relative;
  max-width: 1100px; margin: 40px auto 0;
  display: flex; gap: 32px; align-items: flex-start;
}
.app-list {
  display: flex; flex-direction: column; gap: 8px;
  width: 290px; flex-shrink: 0;
  position: sticky; top: 40px; z-index: 3;
}
.app-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer; outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-list-item:hover, .app-list-item:focus-visible { border-color: var(--accent); background: rgba(47,182,166,0.10); transform: translateX(4px); }
.app-list-item.active { border-color: var(--accent); background: rgba(47,182,166,0.14); box-shadow: 0 8px 28px rgba(47,182,166,0.16); }
html.rtl .app-list-item:hover, html.rtl .app-list-item:focus-visible { transform: translateX(-4px); }
.app-list-icon { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; flex-shrink: 0; }
.app-list-info { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.app-list-name { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--paper); }
.app-list-cat { font-size: 11px; color: var(--muted); font-weight: 500; }
.app-list-arrow { color: var(--muted); flex-shrink: 0; transition: transform 0.3s var(--ease); }
.app-list-item.active .app-list-arrow { color: var(--accent); transform: rotate(90deg); }
html.rtl .app-list-arrow { transform: rotate(180deg); }
html.rtl .app-list-item.active .app-list-arrow { transform: rotate(-90deg); }

.app-preview {
  flex: 1; min-width: 0;
  position: sticky; top: 40px;
  opacity: 0; transform: translateX(-40px) scale(0.94);
  pointer-events: none; visibility: hidden;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16,1,0.3,1), visibility 0s linear 0.55s;
}
.app-preview.open {
  opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; visibility: visible;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16,1,0.3,1), visibility 0s;
}
html.rtl .app-preview { transform: translateX(40px) scale(0.94); }
html.rtl .app-preview.open { transform: translateX(0) scale(1); }
.app-preview-inner {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.55s ease 0.08s, transform 0.55s cubic-bezier(0.16,1,0.3,1) 0.08s;
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  min-height: 300px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.app-preview.open .app-preview-inner { opacity: 1; transform: translateY(0); }
.app-preview-left, .app-preview-img { display: none; }
.app-preview-right { display: flex; flex-direction: column; gap: 12px; text-align: left; min-width: 0; }
html.rtl .app-preview-right { text-align: right; }
.app-preview-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-preview-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--paper); line-height: 1.15; }
.app-preview-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(47,182,166,0.18); color: var(--accent);
}
.app-preview-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 16px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.app-preview-meta strong { color: var(--paper); opacity:0.82; font-weight: 600; }
html.rtl .app-preview-meta { text-align: right; }
.app-preview-desc { font-size: 14px; color: var(--paper); opacity: 0.74; line-height: 1.75; margin: 0; }
.app-preview-features { display: flex; flex-wrap: wrap; gap: 6px; }
.pf { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--paper); opacity:0.82; background: var(--surface-2); padding: 3px 10px; border-radius: 6px; }
.pf-c { color: var(--accent); font-weight: 700; }
.app-preview-rating { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pr-stars { color: var(--brass); letter-spacing: 1.5px; font-size: 15px; }
.pr-num { font-weight: 700; color: var(--paper); }
.pr-count { font-size: 12px; color: var(--muted); }
.app-preview-footer { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.pv-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 12px;
  font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.16,1,0.3,1); white-space: nowrap;
}
.pv-cta.primary { background: linear-gradient(100deg, var(--accent), var(--accent-deep)); color: var(--ink); box-shadow: 0 8px 24px rgba(47,182,166,0.25); }
.pv-cta.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(47,182,166,0.4); }
.pv-cta.primary.disabled { background: var(--surface-2); color: var(--muted); cursor: default; pointer-events: none; box-shadow: none; }
.pv-cta.secondary { background: transparent; color: var(--paper); opacity:0.82; border: 1.5px solid var(--line-strong); }
.pv-cta.secondary:hover { border-color: var(--paper); color: var(--paper); }
html.rtl .app-preview-footer, html.rtl .app-preview-header { flex-direction: row-reverse; }
html.rtl .app-preview-features { justify-content: flex-end; }

/* ===================== WHY GRID ===================== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 40px auto 0; }
.why-card {
  position: relative; overflow: hidden;
  padding: 30px 26px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all 0.35s var(--ease);
}
.why-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--brass)); opacity: 0; transition: opacity 0.3s var(--ease);
}
.why-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 22px 50px rgba(0,0,0,0.35); }
.why-card:hover::before { opacity: 1; }
.why-num { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; }
.why-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--paper); }
.why-card p { font-size: 14px; color: var(--paper); opacity: 0.72; line-height: 1.7; margin: 0; }
html.rtl .why-card { text-align: right; }

/* ===================== CONTACT ===================== */
.contact-form { max-width: 500px; margin: 34px auto 0; text-align: left; }
html.rtl .contact-form { text-align: right; }
.form-input {
  width: 100%; padding: 14px 18px; margin-bottom: 14px;
  border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); font-family: var(--font-body); font-size: 15px; color: var(--paper); outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,182,166,0.18); }
.form-input::placeholder { color: var(--muted); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; margin-top: 4px; justify-content: center; }
.form-status { font-size: 14px; margin-top: 12px; text-align: center; min-height: 22px; }
.form-status.success { color: var(--accent); }
.form-status.error { color: #e06c5a; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px;
  font-family: var(--font-display); font-size: 14px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  border: none; cursor: pointer;
  background: linear-gradient(100deg, var(--accent), var(--brass)); color: var(--ink);
  transition: all 0.3s var(--ease);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(47,182,166,0.35); }

.footer-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px clamp(32px, 8vw, 140px);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer-bar a { transition: color 0.25s var(--ease); }
.footer-bar a:hover { color: var(--accent); }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===================== RTL ===================== */
html.rtl { direction: rtl; }
html.rtl body { font-family: 'BoutrosDinkum', 'Cairo', 'Inter', sans-serif; font-weight: 400; }
html.rtl h1, html.rtl h2, html.rtl h3 { font-family: 'BoutrosDinkum', 'Cairo', 'Raleway', sans-serif !important; font-weight: 700; letter-spacing: 0; }
html.rtl .hero-title .line { letter-spacing: 0; }
html.rtl .sec-label { letter-spacing: 1px; }
html.rtl .sec-quote { font-family: 'BoutrosDinkum', 'Cairo', 'Inter', sans-serif; }
html.rtl .cta-btn, html.rtl .pv-cta { font-family: 'BoutrosDinkum', 'Cairo', 'Raleway', sans-serif !important; }
html.rtl .form-input { font-family: 'BoutrosDinkum', 'Cairo', 'Inter', sans-serif; }

/* ===================== LANGUAGE MORPH ===================== */
[data-i18n] {
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), filter 0.32s var(--ease);
}
html.lang-morph [data-i18n] {
  opacity: 0;
  transform: translateX(-14px);
  filter: blur(3px);
}
html.rtl.lang-morph [data-i18n] {
  transform: translateX(14px);
}
/* staggered re-entry */
html:not(.lang-morph) [data-i18n] {
  transition-delay: 0.04s;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .app-explorer { flex-direction: column; gap: 20px; }
  .app-list { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
  .app-list-item { flex: 1 1 200px; }
  .app-preview { width: 100%; position: static; transform: translateY(-24px) scale(0.94); }
  .app-preview.open { transform: translateY(0) scale(1); }
  .app-preview-inner { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .app-preview-left { display: none !important; }
  .app-preview-meta { grid-template-columns: 1fr; }
  .pv-cta { padding: 10px 20px; font-size: 12px; }
}
@media (max-width: 760px) {
  .rail { display: none; }
  .topbar { display: flex; padding: 10px 16px; }
  .stage { margin-left: 0; }
  html.rtl .stage { margin-right: 0; }
  .why-grid { grid-template-columns: 1fr; gap: 14px; }
  .sec { padding: 70px 20px; }
  .hero { padding: 96px 20px 60px; min-height: 92vh; justify-content: center; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3.2rem); letter-spacing: -0.5px; }
  .hero-cta { margin-top: 30px; padding: 13px 26px; font-size: 13px; }
  .hero-foot { left: 20px; bottom: 26px; font-size: 10px; letter-spacing: 1.5px; }
  .sec-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .footer-bar { flex-direction: column; gap: 8px; text-align: center; padding: 18px 20px; }
  .app-list { width: 100%; position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .app-list::-webkit-scrollbar { display: none; }
  .app-list-item { flex: 0 0 auto; min-width: 200px; }
  .app-preview { width: 100%; position: static; transform: translateY(-20px) scale(0.96); }
  .app-preview.open { transform: translateY(0) scale(1); }
  .app-preview-inner { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .app-preview-left { display: none !important; }
  .app-preview-meta { grid-template-columns: 1fr; }
  .app-preview-title { font-size: 22px; }
  .pv-cta { padding: 11px 20px; font-size: 12px; }
}
