:root {
  --bg: #07080a;
  --panel: rgba(18, 20, 18, 0.72);
  --panel-solid: #111311;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0ea;
  --muted: #8d9188;
  --lime: #d6b26a;
  --lime-deep: #c9a45c;
  --teal: #2fa58f;
  --radius: 18px;
  --sans: "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

#ribbons { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .nav, .footer { position: relative; z-index: 2; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.section { padding: 120px 0; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(24px, calc((100% - 1180px) / 2));
  background: linear-gradient(to bottom, rgba(7, 8, 10, 0.85), rgba(7, 8, 10, 0.4));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; }
.brand-dot {
  width: 18px; height: 18px; border-radius: 6px; background: var(--lime);
  box-shadow: 0 0 18px rgba(214, 178, 106, 0.5); position: relative;
}
.brand-dot::after { content: ""; position: absolute; inset: 5px; border-radius: 3px; background: var(--bg); }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.status { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 500 14px var(--sans); cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: #0b0d06; box-shadow: 0 0 0 1px rgba(214, 178, 106, 0.4), 0 8px 30px rgba(214, 178, 106, 0.25); }
.btn-lime:hover { box-shadow: 0 0 0 1px rgba(214, 178, 106, 0.6), 0 10px 40px rgba(214, 178, 106, 0.4); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-dark { background: #0b0d06; color: var(--lime); }
.btn-sm { height: 34px; padding: 0 15px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 12px; font-size: 12px; }
.play { width: 0; height: 0; border-left: 8px solid var(--lime); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* HERO */
.hero {
  min-height: calc(100vh - 63px);
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center;
  padding: 60px 0 80px;
}
.chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--muted);
}
.hero h1 {
  font-size: clamp(48px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.045em;
  font-weight: 600; margin: 26px 0 22px;
}
.hero h1 em { display: block; font-size: 1.08em; color: #ecd9b0; }
.lede { font-size: 18px; color: #b9bdb3; max-width: 440px; }
.cta-row { display: flex; gap: 12px; margin: 34px 0 18px; flex-wrap: wrap; }
.fine { color: var(--muted); }

/* FLOW CARD */
.flow { position: relative; height: 470px; padding: 18px; overflow: hidden; }
.flow-head { display: flex; gap: 18px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.flow-head .live { margin-left: auto; color: var(--lime); display: inline-flex; align-items: center; gap: 7px; }
.flow-head .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: blink 1.4s infinite; }
.flow-lines { position: absolute; left: 18px; right: 18px; top: 58px; height: 240px; width: calc(100% - 36px); }
.flow-lines path { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 5; }
.flow-lines path.hot { stroke: var(--lime); stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
.node {
  position: absolute; padding: 11px 14px; min-width: 140px; border-radius: 12px;
  background: #151815; border: 1px solid var(--line-2); font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.node b { display: block; font-weight: 500; }
.node small { color: var(--muted); font-size: 11px; }
.node .tag { position: absolute; top: -9px; right: 10px; padding: 1px 7px; border-radius: 6px; background: var(--lime); color: #0b0d06; font-size: 10px; }
.node .tag-dim { background: #2a2e28; color: var(--muted); }
.n-trigger { left: 3%; top: 150px; }
.n-cond { left: 36%; top: 92px; }
.n-else { left: 36%; top: 214px; }
.n-ask { right: 3%; top: 140px; border-color: rgba(214, 178, 106, 0.45); box-shadow: 0 0 0 4px rgba(214, 178, 106, 0.06), 0 10px 40px rgba(214, 178, 106, 0.12); }
.pulse { position: absolute; right: 12px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: blink 1s infinite; }
.runlog {
  position: absolute; left: 18px; right: 18px; bottom: 16px; list-style: none;
  border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 11px;
}
.runlog li { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; padding: 5px 0; animation: slideIn 0.5s ease; }
.runlog li b { font-weight: 400; color: var(--text); }
.runlog li .ok { color: var(--lime); }

/* SECTION HEADS */
.split-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.eyebrow { color: var(--lime); display: block; margin-bottom: 16px; }
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; }
h2 em { color: #ecd9b0; }
h3 { font-size: 20px; letter-spacing: -0.02em; font-weight: 600; margin: 22px 0 8px; }

/* FEATURES */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 18px 20px 26px; }
.feat-art { height: 190px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); position: relative; overflow: hidden; }
.canvas-art { background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 16px 16px; }
.mini-node { position: absolute; font-size: 11px; padding: 6px 10px; border-radius: 8px; background: #181b17; border: 1px solid var(--line-2); white-space: nowrap; }
.mini-node.a { left: 8%; top: 16%; }
.mini-node.b { left: 38%; top: 40%; }
.mini-node.c { left: 12%; top: 68%; }
.mini-node.d { right: 7%; top: 70%; }
.mini-node.lime { background: var(--lime); color: #0b0d06; border-color: var(--lime); }
.approval { padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.msg { display: flex; gap: 12px; font-size: 13px; }
.msg p { color: #b9bdb3; margin-top: 3px; }
.avatar { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--teal); color: #031512; font-weight: 600; }
.msg-actions { display: flex; gap: 8px; padding-left: 44px; }
.bars { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding-bottom: 26px; perspective: 600px; }
.bar3d { position: relative; width: 26px; transform: rotateX(8deg) rotateY(-28deg); transform-style: preserve-3d; transition: height 1s cubic-bezier(.2, .8, .2, 1); }
.bar3d::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#e7ebe2, #6f746b); border-radius: 2px; }
.bar3d::after { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; background: #fff; transform: skewX(-40deg); transform-origin: bottom; }
.bar3d.hot::before { background: linear-gradient(var(--lime), #6b5428); }
.bar3d.hot::after { background: #f3e2bd; }
.bar3d span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font: 10px var(--mono); color: var(--muted); }

/* STATEMENT */
.statement { height: 220vh; position: relative; }
.statement-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.lime-card {
  width: 70vw; height: 70vh; border-radius: 48px; background: var(--lime); color: #0b0d06;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  padding: 24px;
  transform: scale(var(--s, 0.32)); will-change: transform;
  box-shadow: 0 0 120px rgba(214, 178, 106, 0.3);
}
.statement-text {
  font-size: clamp(30px, 4.6vw, 64px); letter-spacing: -0.04em; font-weight: 600; line-height: 1.04;
  text-align: center; max-width: 16ch; opacity: var(--t, 0); transform: translateY(calc((1 - var(--t, 0)) * 20px));
}
.lime-icon { width: 64px; height: 64px; border-radius: 18px; background: #0b0d06; color: var(--lime); display: grid; place-items: center; font-size: 34px; line-height: 1; }

/* RUNTIME */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.big { padding: 30px; }
.big h3 { margin-top: 0; }
.hub { position: relative; height: 210px; margin-top: 26px; }
.hub svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spokes path { stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 3 6; animation: dash 1.4s linear infinite reverse; fill: none; }
.sat { position: absolute; padding: 6px 11px; border-radius: 8px; background: #161915; border: 1px solid var(--line-2); color: var(--muted); }
.hub-core {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 16px; background: var(--lime); color: #0b0d06; display: grid; place-items: center;
  font-size: 32px; font-weight: 700; box-shadow: 0 0 50px rgba(214, 178, 106, 0.45);
}
.regions { margin-top: 34px; display: grid; gap: 18px; }
.region { display: grid; grid-template-columns: 110px 1fr 40px; gap: 16px; align-items: center; color: var(--muted); }
.region b { color: var(--text); font-weight: 500; text-align: right; }
.meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--lime)); border-radius: 6px; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.in .meter i { width: var(--w); }

/* TUESDAY */
.tuesday { display: grid; grid-template-columns: 2.2fr 1fr; gap: 18px; }
.heat { padding: 22px; }
.heat-head { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 18px; }
.pill { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(214, 178, 106, 0.35); color: var(--lime); }
.heatmap { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; }
.heatmap i { aspect-ratio: 1; border-radius: 3px; background: rgba(214, 178, 106, var(--a)); opacity: 0; transform: scale(0.6); transition: opacity 0.5s ease, transform 0.5s ease; }
.in .heatmap i { opacity: 1; transform: none; }
.heat-axis { display: flex; justify-content: space-between; color: var(--muted); margin-top: 12px; }
.ring-card { padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 8; }
.ring .arc { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.8s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px rgba(214, 178, 106, 0.6)); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; font-weight: 600; letter-spacing: -0.03em; }

/* NUMBERS */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 0; display: flex; flex-direction: column; gap: 10px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat b { font-size: clamp(48px, 6vw, 84px); letter-spacing: -0.05em; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 90px; }
blockquote { font-size: 17px; line-height: 1.5; color: #d8dbd3; }
cite { display: block; margin-top: 18px; font-style: normal; font-size: 14px; font-weight: 500; }
cite span { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* PRICING */
.estimator { display: grid; gap: 14px; }
.estimator b { color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--lime) var(--p, 10%), rgba(255, 255, 255, 0.12) var(--p, 10%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(214, 178, 106, 0.18); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--lime); cursor: grab; }
.est-row { display: flex; justify-content: space-between; font-size: 15px; }
.est-row b { color: var(--lime); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative; transition: transform 0.3s ease, border-color 0.3s ease; }
.plan:hover { transform: translateY(-4px); }
.plan.picked { border-color: rgba(214, 178, 106, 0.6); }
.plan-hot { border-color: rgba(214, 178, 106, 0.35); background: linear-gradient(180deg, rgba(214, 178, 106, 0.08), var(--panel) 50%); }
.badge { position: absolute; top: 26px; right: 24px; padding: 3px 9px; border-radius: 6px; background: var(--lime); color: #0b0d06; }
.price { font-size: 52px; letter-spacing: -0.04em; font-weight: 600; line-height: 1; }
.price small { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; display: grid; gap: 10px; font-size: 14px; color: #c3c7bd; flex: 1; }
.plan li::before { content: "✓"; color: var(--lime); margin-right: 10px; }

/* FINAL */
.final { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.final-left .brand { font-size: 20px; margin-bottom: 14px; }
.final-card { background: var(--lime); color: #0b0d06; border-radius: 28px; padding: 44px; box-shadow: 0 30px 120px rgba(214, 178, 106, 0.2); }
.final-card h2 { margin: 14px 0 12px; }
.final-card h2 em { color: #0b0d06; }
.final-card p { color: #3a2e14; max-width: 46ch; }
.signup { display: flex; gap: 10px; margin-top: 28px; background: rgba(11, 13, 6, 0.08); padding: 6px; border-radius: 999px; }
.signup input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font: 15px var(--sans); color: #0b0d06; outline: none; }
.signup input::placeholder { color: #6b5428; }
.signup.sent { background: rgba(11, 13, 6, 0.16); }

.footer { display: flex; justify-content: space-between; padding: 30px 0 50px; color: var(--muted); border-top: 1px solid var(--line); }

/* MOTION */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes dash { to { stroke-dashoffset: -22; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav-links, .status { display: none; }
  .hero, .split-head, .two-up, .tuesday, .final { grid-template-columns: 1fr; }
  .hero { gap: 40px; min-height: auto; }
  .split-head { gap: 20px; }
  .feature-grid, .plans, .quotes { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .lime-card { width: 86vw; height: 62vh; border-radius: 32px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav { padding: 12px 16px; }
  .flow { height: 500px; }
  .n-trigger { left: 4%; top: 70px; }
  .n-cond { left: 30%; top: 140px; }
  .n-else { left: 4%; top: 216px; }
  .n-ask { right: 4%; top: 290px; }
  .flow-lines { display: none; }
  .runlog li { grid-template-columns: 62px 1fr auto; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .heatmap { grid-template-columns: repeat(12, 1fr); }
  .final-card { padding: 28px; }
  .signup { flex-direction: column; border-radius: 18px; }
  .signup input { height: 44px; }
}

/* ===== Qayyim 360: fonts, RTL and brand overrides ===== */
@font-face { font-family: "Plex Arabic"; src: url(assets/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(assets/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(assets/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(assets/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Latin"; src: url(assets/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Latin"; src: url(assets/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(assets/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #050a09;
  --panel: rgba(12, 22, 20, 0.72);
  --text: #eef2ef;
  --muted: #8e9a96;
  --brand-teal: #0b5d52;
  --sans: "Plex Latin", "Plex Arabic", system-ui, sans-serif;
  --serif: "Noto Naskh Arabic", serif;
  --mono: "Plex Arabic", "Plex Mono", monospace;
}
body { line-height: 1.75; }
.mono { font-size: 12.5px; letter-spacing: 0; }
em { font-style: normal; font-weight: 600; color: #ecd9b0; }
h1, h2, h3, .stat b, .price { letter-spacing: 0 !important; }
.hero h1 { line-height: 1.2; font-weight: 700; }
.hero h1 em { font-size: 1.05em; line-height: 1.3; }
h2 { line-height: 1.3; }
.lede { max-width: 470px; }
.brand img { display: block; height: 30px; width: auto; }
.btn { font-weight: 600; }

/* play arrow points the reading way */
[dir="rtl"] .play { border-left: 0; border-right: 8px solid var(--lime); }

/* flow diagram reads right to left */
[dir="rtl"] .flow-lines { transform: scaleX(-1); }
[dir="rtl"] .flow-head .live { margin-left: 0; margin-right: auto; }
[dir="rtl"] .n-trigger { left: auto; right: 3%; }
[dir="rtl"] .n-cond, [dir="rtl"] .n-else { left: auto; right: 36%; }
[dir="rtl"] .n-ask { right: auto; left: 3%; }
[dir="rtl"] .node .tag { right: auto; left: 10px; }
[dir="rtl"] .pulse { right: auto; left: 12px; }
.runlog li { grid-template-columns: 74px 1fr auto; }
.runlog li span:first-child { direction: ltr; text-align: right; }

[dir="rtl"] .mini-node.a { left: auto; right: 8%; }
[dir="rtl"] .mini-node.b { left: auto; right: 34%; }
[dir="rtl"] .mini-node.c { left: auto; right: 12%; }
[dir="rtl"] .mini-node.d { right: auto; left: 7%; }
[dir="rtl"] .msg-actions { padding-left: 0; padding-right: 44px; }
.avatar { background: #fff; padding: 3px; }
.avatar img, .lime-icon img, .hub-core img { width: 100%; height: 100%; display: block; }
.hub-core { padding: 10px; background: #fff; box-shadow: 0 0 50px rgba(214, 178, 106, 0.35); }
.sat { color: var(--text); font-size: 13px; }
.lime-icon { background: #fff; padding: 10px; }

/* statement card in brand teal */
.lime-card { background: radial-gradient(120% 90% at 50% 0%, #137467, var(--brand-teal) 60%, #073f38); color: #fff; box-shadow: 0 0 120px rgba(47, 165, 143, 0.35); }
.lime-card em { color: #ecd9b0; }
.statement-text { max-width: 14ch; line-height: 1.35; }

/* compliance meters: the label is longer than a region code */
.region { grid-template-columns: 150px 1fr 70px; }
[dir="rtl"] .region b { text-align: left; }
.region.hot .meter i { background: linear-gradient(90deg, #e07a4f, var(--lime)); }
.region.hot b { color: #f0a27f; }

.stat + .stat { padding-left: 0; border-left: 0; padding-right: 28px; border-right: 1px solid var(--line); }
.voice { border-top: 1px solid var(--line); padding-top: 18px; }
.voice span { color: var(--lime); }
.voice p { font-size: 19px; margin-top: 8px; color: #dfe5e2; }

.plan li::before { margin-left: 10px; margin-right: 0; }
[dir="rtl"] .badge { right: auto; left: 24px; }
.price { font-size: 44px; }

.final-left img { height: 40px; width: auto; margin-bottom: 14px; }
.final-card em { color: var(--brand-teal); }
.btn-dark { background: var(--brand-teal); color: #fff; }
.signup input { text-align: right; }

@media (max-width: 600px) {
  [dir="rtl"] .n-trigger { right: 4%; }
  [dir="rtl"] .n-cond { right: 30%; }
  [dir="rtl"] .n-else { right: 4%; }
  [dir="rtl"] .n-ask { left: 4%; }
  .stat + .stat { padding-right: 0; border-right: 0; }
  .region { grid-template-columns: 1fr 70px; }
  .region .meter { grid-column: 1 / -1; grid-row: 2; }
}

.nb { white-space: nowrap; unicode-bidi: isolate; }

/* Demo request form (posts to /api/demo on qayyim360.com) */
@font-face { font-family: "Noto Naskh Arabic"; src: url(assets/noto-naskh-arabic-arabic-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Naskh Arabic"; src: url(assets/noto-naskh-arabic-arabic-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.lf { display: flex; flex-direction: column; gap: 6px; font: 500 13px var(--sans); color: #3a2e14; }
.lf input, .lf select { height: 46px; border: 1px solid transparent; border-radius: 14px; background: rgba(11, 13, 6, 0.08); padding: 0 14px; font: 15px var(--sans); color: #0b0d06; outline: none; }
.lf input:focus, .lf select:focus { border-color: #0b0d06; background: rgba(255, 255, 255, 0.35); }
.lf.has-err input, .lf.has-err select { border-color: #9b2c1f; }
.lf-wide { grid-column: 1 / -1; }
.lead-form .btn { justify-content: center; height: 50px; }
.lead-form .btn:disabled { opacity: 0.6; cursor: wait; }
.lf-note { margin: 0; font-size: 13px; color: #5a4a26; }
.lf-note.bad { color: #9b2c1f; font-weight: 600; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead-ok { margin-top: 26px; padding: 22px; border-radius: 18px; background: rgba(11, 13, 6, 0.08); outline: none; }
.lead-ok b { font-size: 20px; }
.lead-ok p { margin: 6px 0 0; }
.footer a { color: inherit; }
@media (max-width: 640px) { .lead-form { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }

/* Language switch in the top bar (both pages; stays visible on phones) */
.lang-switch { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(236, 217, 176, 0.35); color: var(--text); font: 600 13px var(--sans); text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.lang-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0.85; }
.lang-switch:hover { background: rgba(236, 217, 176, 0.1); border-color: rgba(236, 217, 176, 0.6); }
.lang-switch:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.lang-switch span[lang="ar"], .lang-switch span:only-of-type { line-height: 1; }
@media (max-width: 600px) { .nav-right { gap: 8px; } .lang-switch { padding: 0 11px; } }

/* ---------- English page (left to right) ---------- */
@font-face { font-family: "Instrument Serif"; src: url(assets/instrument-serif-latin-400-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(assets/instrument-serif-latin-400-normal.woff2) format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
:root[lang="en"] { --serif: "Instrument Serif", Georgia, serif; --mono: "Plex Mono", "Plex Latin", monospace; }
[lang="en"] body { line-height: 1.6; }
[lang="en"] em { font-family: var(--serif); font-style: italic; font-weight: 400; }
[lang="en"] .hero h1 em { font-size: 1.1em; line-height: 1.05; }
[lang="en"] .lang-switch span { font-family: "Plex Arabic", var(--sans); }
[lang="en"] .runlog li span:first-child { text-align: left; }
[lang="en"] .stat + .stat { padding-right: 0; border-right: 0; padding-left: 28px; border-left: 1px solid var(--line); }
[lang="en"] .plan li::before { margin-right: 10px; margin-left: 0; }
[lang="en"] .ph-tag { right: auto; left: 8px; }
[lang="en"] .wo-chip { border-right: 0; border-left: 3px solid var(--lime); }
[lang="en"] .vn-play { border-right: 0; border-left: 10px solid #fff; }
[lang="en"] .j-clock { text-align: right; }
[lang="en"] .j-line i { background: linear-gradient(90deg, var(--teal), var(--lime)); transform-origin: left; }
[lang="en"] .j-card { right: auto; left: 0; }
[lang="en"] .cost-ctl input { direction: ltr; background: linear-gradient(90deg, var(--lime) var(--p, 70%), rgba(255, 255, 255, 0.12) var(--p, 70%)); }
[lang="en"] .cost-ctl b { text-align: right; }
[lang="en"] .tower-hint { left: auto; right: 0; }
[lang="en"] .try-form button span { border-right: 0; border-left: 11px solid #fff; margin-right: 0; margin-left: 3px; }
@media (max-width: 600px) {
  [lang="en"] .stat + .stat { padding-left: 0; border-left: 0; }
  [lang="en"] .j-track { padding-right: 0; padding-left: 160px; }
  [lang="en"] .j-line { right: auto; left: 140px; }
  [lang="en"] .j-stage { text-align: left; }
  [lang="en"] .j-stage::before { right: auto; left: -26px; }
}
