/* ---------- fonts & tokens ---------- */
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff; --bg-soft: #f4f5f7; --ink: #0b1220; --ink-2: #131c30;
  --text: #111827; --muted: #5b6472; --line: #e5e7eb; --line-2: #d1d5db;
  --on-ink: #f5f7fa; --on-ink-muted: #a7b0c0; --on-ink-line: rgba(255, 255, 255, 0.12);
  --gold: #d9b84a; --gold-light: #f6e39a; --gold-icon: #b8932c; --gold-deep: #8c6d1f; --gold-ink: #1a1408;
  --silver: #c5cad3; --silver-light: #eef0f3; --silver-deep: #7d8593;
  --gold-grad: linear-gradient(135deg, #f7e7a1 0%, #e6c860 30%, #c9a53a 55%, #e8cd6a 80%, #f7e7a1 100%);
  --silver-grad: linear-gradient(135deg, #f7f8fa 0%, #d9dde3 30%, #bcc2cb 55%, #e3e6eb 80%, #f7f8fa 100%);
  --gold-text: linear-gradient(135deg, #b8932c, #e6c860 45%, #8c6d1f);
  --blue: #2563eb; --blue-soft: #e8efff; --red: #dc2626; --red-soft: #fdecec; --green: #15803d; --green-soft: #e6f4ea; --amber: #b45309; --amber-soft: #fff4e0;
  --font: "Vazirmatn", system-ui, "Segoe UI", Tahoma, sans-serif;
  --wrap: 1144px; --wrap-wide: 1320px; --nav-h: 64px; --footer-h: 89px; --gutter: 20px;
  --r: 8px; --r-lg: 13px; --r-xl: 21px;
  --s1: 8px; --s2: 13px; --s3: 21px; --s4: 34px; --s5: 55px; --s6: 89px; --s7: 144px; --phi: 1.618;
  --shadow-1: 0 1px 2px rgba(11, 18, 32, 0.05), 0 8px 24px rgba(11, 18, 32, 0.05);
  --shadow-2: 0 2px 6px rgba(11, 18, 32, 0.06), 0 21px 55px rgba(11, 18, 32, 0.1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
html[lang="en"] { --font: "Manrope", system-ui, "Segoe UI", sans-serif; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.75; padding-inline: var(--gutter); overflow-x: hidden; }
html[lang="en"] body { line-height: 1.6; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
em { font-style: normal; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
svg.ico { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }
svg.ico-sm { width: 16px; height: 16px; }
svg.ico-lg { width: 28px; height: 28px; }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }
section { padding-block: var(--s6); scroll-margin-top: var(--nav-h); }
@media (max-width: 720px) { section { padding-block: var(--s5); } }

/* full-page scenes: each one fills the viewport under the bar; no scroll snapping, because the module grid is taller than any window */
.fullpage > .scene { position: relative; min-height: calc(100svh - var(--nav-h)); display: grid; align-items: center; padding-block: clamp(34px, 5vh, 64px); scroll-margin-top: 0; }
.fullpage > .scene > .wrap { position: relative; z-index: 1; width: 100%; max-width: var(--wrap-wide); }
.scene-soft { background: var(--bg-soft); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.scene-dark { background: var(--ink); color: var(--on-ink); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow: hidden; }
.scene-dark .sub { color: var(--on-ink-muted); }
.band-soft { background: var(--bg-soft); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.band-ink { background: var(--ink); color: var(--on-ink); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1 { font-size: 36px; line-height: 1.25; font-weight: 800; text-wrap: balance; }
@media (min-width: 900px) { h1 { font-size: 55px; line-height: 1.18; } }
h2 { font-size: 30px; line-height: 1.25; font-weight: 800; text-wrap: balance; max-width: 22ch; }
@media (min-width: 900px) { h2 { font-size: 42px; line-height: 1.2; } }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.02em; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 700; text-wrap: balance; }
h4 { font-size: 16px; font-weight: 600; }
p { text-wrap: pretty; }
.sub { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 60ch; }
.on-ink { color: var(--on-ink); }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* scene header: title, φ rule (55 : 34), subtitle */
.scene-head { display: grid; gap: var(--s2); justify-items: start; margin-block-end: var(--s4); }
@media (min-width: 900px) { .scene-head { margin-block-end: var(--s5); } }
.phi-rule { display: inline-flex; align-items: center; gap: 5px; height: 3px; }
.phi-rule i { display: block; height: 2px; border-radius: 2px; }
.phi-rule i:first-child { width: 55px; background: var(--gold-grad); }
.phi-rule i:last-child { width: 34px; background: var(--silver); }
.scene-head.on-ink h2 { color: #fff; }
.scene-head.on-ink .sub { color: var(--on-ink-muted); }
.scene-head.on-ink .phi-rule i:last-child { background: var(--silver-deep); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 44px; border-radius: var(--r); font-size: 15px; font-weight: 600; line-height: 1.4; border: 1px solid transparent; cursor: pointer; transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease); white-space: nowrap; }
.btn:active { transform: scale(0.985); }
.btn-gold { position: relative; overflow: hidden; background: var(--gold-grad); background-size: 200% 200%; background-position: 0% 0%; color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.18); transition: background-position 500ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.btn-gold:hover { background-position: 100% 100%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 4px 14px rgba(0, 0, 0, 0.22); }
.btn-gold::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%); transform: translateX(-120%); transition: transform 700ms var(--ease); pointer-events: none; }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-outline { border-color: var(--silver-deep); color: var(--silver-light); background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)); }
.btn-outline:hover { border-color: var(--silver-light); }
.btn-outline-dark { border-color: var(--line-2); color: var(--text); background: #fff; }
.btn-outline-dark:hover { border-color: var(--ink); }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn-gold.btn-sm { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.12); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- top bar: white glass, dark glass while a dark scene is under it ---------- */
.bar { position: sticky; top: 0; z-index: 50; margin-inline: calc(-1 * var(--gutter)); background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease); }
.bar-in { display: flex; align-items: center; gap: 32px; min-height: var(--nav-h); padding-inline: var(--gutter); max-width: calc(var(--wrap-wide) + 2 * var(--gutter)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-ico { color: var(--gold-icon); width: 28px; height: 28px; }
.bar-links { display: flex; gap: 4px; font-size: 15px; font-weight: 500; margin-inline-start: auto; }
.bar-links a { position: relative; padding: 6px 12px; border-radius: 8px; color: var(--muted); transition: color 200ms var(--ease), background-color 200ms var(--ease); }
.bar-links a:hover, .bar-links a[aria-current] { color: var(--text); background: var(--bg-soft); }
.bar-end { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; font-size: 14px; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { background: var(--bg-soft); color: var(--text); }
.lang-menu { display: grid; }
.lang .lang-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 140px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-2); padding: 6px; z-index: 60; }
.lang-menu a { padding: 8px 12px; border-radius: 6px; }
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a[aria-current] { font-weight: 600; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 250ms var(--ease), opacity 250ms var(--ease), top 250ms var(--ease); }
.burger span:nth-child(1) { top: 12px; } .burger span:nth-child(2) { top: 19px; } .burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
.menu { border-top: 1px solid var(--line); background: #fff; color: var(--text); padding: 16px 20px 24px; }
.menu nav { display: grid; gap: 4px; }
.menu nav > a { padding: 12px 8px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.menu nav > .btn { margin-top: 12px; border-bottom: 0; }
.menu .lang-menu { grid-auto-flow: column; justify-content: start; gap: 12px; margin-top: 12px; }
.bar.on-dark { background: rgba(11, 18, 32, 0.82); border-bottom-color: rgba(255, 255, 255, 0.08); color: var(--on-ink); }
.bar.on-dark .brand-ico { color: var(--gold); }
.bar.on-dark .bar-links a, .bar.on-dark .lang summary { color: var(--on-ink-muted); }
.bar.on-dark .bar-links a:hover, .bar.on-dark .bar-links a[aria-current], .bar.on-dark .lang[open] summary { color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (max-width: 900px) {
  .bar-links, .bar-end .btn, .bar-end .lang { display: none; }
  .bar-in { gap: 12px; }
  .bar-end { margin-inline-start: auto; }
  .burger { display: block; }
}

/* ---------- scene rail (desktop): one dot per scene, gold on the current one ---------- */
.scene-rail { position: fixed; z-index: 45; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 13px; }
.scene-rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; min-width: 20px; min-height: 20px; }
.scene-rail a > span { width: 7px; height: 7px; border: 1px solid var(--silver-deep); border-radius: 50%; background: rgba(255, 255, 255, 0.8); transition: transform 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease); }
.scene-rail a > em { position: absolute; right: 22px; width: max-content; max-width: 180px; padding: 4px 10px; border-radius: 6px; background: var(--ink); color: var(--on-ink); font-size: 12px; line-height: 1.5; opacity: 0; transform: translateX(5px); pointer-events: none; transition: opacity 180ms var(--ease), transform 180ms var(--ease); box-shadow: var(--shadow-1); }
.scene-rail a:hover > em, .scene-rail a:focus-visible > em { opacity: 1; transform: none; }
.scene-rail a[aria-current="true"] > span { transform: scale(1.65); background: var(--gold); border-color: var(--gold-deep); }
/* the rail sits in the side margin; below 1440px that margin is the 20px gutter, so it would cover text */
@media (max-width: 1439px) { .scene-rail { display: none; } }

/* ---------- hero: golden split, text 1 : product stage 1.618, phyllotaxis lattice behind ---------- */
.hero { min-height: calc(100svh - var(--nav-h)); background: var(--ink); color: var(--on-ink); margin-inline: calc(-1 * var(--gutter)); padding: var(--s5) var(--gutter) var(--s6); position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at var(--glow-x, 70%) 45%, rgba(217, 184, 74, 0.1), transparent 70%); pointer-events: none; z-index: 0; }
[dir="rtl"] .hero::before { --glow-x: 30%; }
.hero-gpu { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-lattice { position: absolute; z-index: 0; pointer-events: none; width: 130vh; aspect-ratio: 1; inset-inline-end: calc(11vw - 65vh); top: calc(14vh - 65vh); opacity: 0.9; transition: opacity 1.2s var(--ease); -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 68%); mask-image: radial-gradient(circle at center, #000 30%, transparent 68%); }
.hero-lattice .lattice { width: 100%; height: 100%; display: block; }
.lat-silver { fill: var(--silver); opacity: 0.22; }
.lat-gold { fill: var(--gold); opacity: 0.5; }
.hero-gpu.gpu-on ~ .hero-lattice { opacity: 0; }
@media (max-width: 999px) { .hero-lattice { width: 120vw; inset-inline-end: -45vw; top: calc(52vh - 60vw); } }
.hero-grid { position: relative; z-index: 1; display: grid; gap: var(--s5); align-items: center; max-width: var(--wrap-wide); }
@media (min-width: 1000px) { .hero { padding-block: var(--s6) calc(var(--s6) + var(--s4)); } .hero-grid { grid-template-columns: 1fr 1.618fr; gap: var(--s5); } }
.hero-text { display: grid; gap: var(--s3); justify-items: start; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid rgba(197, 202, 211, 0.25); background: rgba(11, 18, 32, 0.55); color: var(--silver); font-size: 14px; }
.badge .ico { color: var(--gold); width: 18px; height: 18px; }
.hero h1 { color: #fff; font-size: 34px; line-height: 1.3; }
@media (min-width: 720px) { .hero h1 { font-size: 42px; } }
@media (min-width: 1200px) { .hero h1 { font-size: 50px; line-height: 1.22; } }
.hero-sub { color: var(--on-ink-muted); font-size: 16px; line-height: 1.85; max-width: 52ch; }
@media (min-width: 1000px) { .hero-sub { font-size: 17px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-proof { display: inline-flex; align-items: center; gap: 8px; color: var(--on-ink-muted); font-size: 14px; }
.hero-proof .ico { color: var(--gold); }

/* product stage: the dashboard on a golden-rectangle frame, two floating cards */
.hero-stage { position: relative; padding-block: var(--s4); }
@media (min-width: 1560px) { .hero-stage { margin-inline-end: calc(-1 * var(--s5)); } }
.hero-stage::before { content: ""; position: absolute; inset: calc(var(--s4) + 13px) -13px calc(var(--s4) - 13px) 13px; border: 1px solid rgba(217, 184, 74, 0.28); border-radius: var(--r-lg); pointer-events: none; }
[dir="rtl"] .hero-stage::before { inset: calc(var(--s4) + 13px) 13px calc(var(--s4) - 13px) -13px; }
@media (max-width: 719px) { .hero-stage::before { display: none; } }
.hero-stage .scr { box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 80px rgba(217, 184, 74, 0.08); }
.hero-shot-note { color: var(--on-ink-muted); font-size: 12px; margin-top: 10px; text-align: center; }
.float { position: absolute; background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.5) inset; font-size: 13px; display: grid; gap: 6px; z-index: 2; }
.float-weigh { inset-inline-start: -8px; bottom: 0; min-width: 210px; }
.float-order { inset-inline-end: -8px; bottom: 89px; min-width: 220px; }
@media (min-width: 720px) { .float-weigh { bottom: 8px; } .float-order { bottom: 110px; } }
@media (min-width: 1000px) { .float-weigh { inset-inline-start: -34px; } .float-order { inset-inline-end: -24px; } }
@media (max-width: 480px) { .float-order { display: none; } }
.float-h { display: flex; align-items: center; gap: 8px; font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.float-h .ico { color: var(--gold-icon); }
.float-h small { margin-inline-start: auto; color: var(--muted); font-weight: 400; }
.weigh-row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.weigh-row b { font-variant-numeric: tabular-nums; color: var(--text); }
.weigh-row.loss { color: var(--amber); }
.weigh-row.loss b { color: var(--amber); }
.float-order b { font-size: 14px; font-variant-numeric: tabular-nums; }
.float-order > span { color: var(--muted); }
.order-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.order-meta em { display: inline-flex; align-items: center; gap: 4px; background: var(--amber-soft); color: var(--amber); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.order-meta small { color: var(--muted); }

/* ---------- product screens (dark) ---------- */
.scr { --sf: #0e1628; --sf2: #131d33; --sl: rgba(255, 255, 255, 0.08); --st: #e6e9ef; --sm: #8b93a4; background: var(--sf); color: var(--st); border-radius: var(--r-lg); overflow: hidden; font-size: 13px; line-height: 1.5; text-align: start; box-shadow: 0 24px 64px rgba(11, 18, 32, 0.2), 0 0 0 1px rgba(11, 18, 32, 0.06); }
.scr-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0a1120; border-bottom: 1px solid var(--sl); color: var(--sm); font-size: 12px; }
.scr-dots { display: inline-flex; gap: 6px; }
.scr-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3550; }
.scr-body { display: grid; grid-template-columns: 144px 1fr; min-height: 380px; }
.scr-side { background: #0a1120; padding: 14px 10px; display: flex; flex-direction: column; gap: 14px; border-inline-end: 1px solid var(--sl); }
.scr-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; padding: 4px 6px; }
.scr-logo .ico { color: var(--gold); }
.scr-side ul { display: grid; gap: 2px; }
.scr-side li { padding: 7px 10px; border-radius: 6px; color: var(--sm); }
.scr-side li.on { background: var(--sf2); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
[dir="rtl"] .scr-side li.on { box-shadow: inset -3px 0 0 var(--gold); }
.scr-user { margin-top: auto; font-size: 12px; color: var(--sm); padding: 6px; border-top: 1px solid var(--sl); }
.scr-main { display: flex; flex-direction: column; min-width: 0; }
.scr-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--sl); color: var(--sm); }
.scr-search { display: inline-flex; align-items: center; gap: 8px; background: var(--sf2); border-radius: 6px; padding: 5px 10px; font-size: 12px; min-width: 200px; }
.scr-content { padding: 16px; display: grid; gap: 12px; align-content: start; }
.scr-h h4 { font-size: 15px; color: #fff; }
.scr-h p { color: var(--sm); font-size: 12px; }
.scr-card { background: var(--sf2); border: 1px solid var(--sl); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.scr-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12px; color: var(--sm); }
.scr-card-h em b { color: var(--gold); font-variant-numeric: tabular-nums; }
.scr-card-h .live { color: var(--gold); }
.scr-card-h .live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-inline-end: 6px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.scr-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sm); }
.scr-note.warn { color: #e2b15f; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--sf2); border: 1px solid var(--sl); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.kpi span { font-size: 11px; color: var(--sm); }
.kpi b { font-size: 20px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi small { font-size: 11px; color: var(--sm); }
.kpi.warn b { color: #e2b15f; }
.chart { width: 100%; height: auto; display: block; direction: ltr; }
.chart .cg { stroke: var(--sl); stroke-width: 1; }
.chart .cl { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ca { fill: url(#goldFade), rgba(217, 184, 74, 0.12); }
.chart .cd { fill: var(--gold); stroke: var(--sf2); stroke-width: 2; }
.chart .cn { stroke: var(--silver); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .cx { fill: var(--sm); font-size: 11px; font-family: var(--font); }
.chart .cv { fill: var(--st); font-size: 12px; font-weight: 600; font-family: var(--font); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 128px) 1fr auto; align-items: center; gap: 10px; font-size: 12px; }
.bar-name { color: var(--sm); line-height: 1.35; overflow-wrap: anywhere; } /* long labels (en, ar) wrap instead of being cut */
.bar-track { height: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--gold); border-radius: 0 4px 4px 0; }
[dir="rtl"] .bar-fill { border-radius: 4px 0 0 4px; }
.bar-fill.neg { background: var(--silver); }
.bar-val { font-variant-numeric: tabular-nums; color: var(--st); white-space: nowrap; }
.mt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mt th { text-align: start; font-weight: 500; color: var(--sm); padding: 8px 10px; border-bottom: 1px solid var(--sl); font-size: 12px; white-space: nowrap; }
.mt td { padding: 8px 10px; border-bottom: 1px solid var(--sl); font-variant-numeric: tabular-nums; }
.mt td:first-child { white-space: nowrap; }
.mt td.num { direction: ltr; text-align: end; }
[dir="rtl"] .mt td.num { text-align: left; }
.mt tfoot td { font-weight: 600; border-bottom: 0; background: var(--sf2); }
.mt .gold { color: var(--gold); }
.kb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.kb-col { background: var(--sf2); border-radius: 8px; padding: 8px; display: grid; gap: 8px; align-content: start; }
.kb-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 12px; padding: 2px 4px; color: var(--sm); }
.kb-head span { background: var(--sf); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.kb-card { background: var(--sf); border: 1px solid var(--sl); border-radius: 6px; padding: 8px; display: grid; gap: 2px; }
.kb-card b { font-size: 12px; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; unicode-bidi: isolate; display: block; color: #fff; }
[dir="rtl"] .kb-card b { text-align: right; }
.kb-card span { color: var(--sm); font-size: 12px; }
.kb-meta { display: flex; justify-content: space-between; font-size: 11px; margin-top: 4px; }
.kb-meta em { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gold); }
.kb-meta small { color: var(--sm); }
.kb-alert { display: inline-flex; align-items: center; gap: 6px; background: rgba(226, 177, 95, 0.12); color: #e2b15f; border-radius: 6px; padding: 5px 10px; font-size: 12px; width: max-content; max-width: 100%; }
.chat { display: grid; gap: 10px; max-width: 520px; }
.msg { background: var(--sf2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.msg b { font-size: 12px; color: var(--gold); }
.msg p { font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--sf); border: 1px solid var(--sl); border-radius: 6px; padding: 3px 8px; font-size: 12px; width: max-content; font-variant-numeric: tabular-nums; }
.chat-in { border: 1px solid var(--sl); border-radius: 8px; padding: 8px 12px; color: var(--sm); font-size: 12px; }
@media (max-width: 720px) { .scr-body { grid-template-columns: 1fr; min-height: 0; } .scr-side { display: none; } .scr-search { min-width: 0; } .kpis { grid-template-columns: 1fr 1fr; } .bar-row { grid-template-columns: minmax(72px, 104px) 1fr auto; } }
/* narrow phones: the stock mock's table and bar values must fit inside the screen frame */
@media (max-width: 480px) {
  .mt { font-size: 11.5px; }
  .mt th, .mt td:first-child { white-space: normal; }
  .mt th, .mt td { padding: 6px; }
  .bar-row { grid-template-columns: minmax(60px, 88px) minmax(20px, 1fr) auto; gap: 6px; font-size: 11px; }
}


/* ---------- ERP topology: eight flows on φ-spaced rings around the core ---------- */
.topology-section { overflow: hidden; }
.topology-layout { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 1000px) { .topology-layout { grid-template-columns: 1fr 1.618fr; gap: var(--s5); } .topology-layout .scene-head { margin-block-end: 0; } }
.erp-map { position: relative; width: min(62vh, 690px, 100%); aspect-ratio: 1; margin: var(--s4) auto; }
.erp-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.erp-links .ring { fill: none; stroke: var(--silver); stroke-width: 1.5; }
.erp-links .ring-1 { stroke-dasharray: 2 9; stroke-linecap: round; stroke-width: 2; }
.erp-links .ring-2 { stroke: var(--line); }
.erp-links .ring-3 { stroke: var(--gold); stroke-width: 1.5; opacity: 0.7; }
.erp-links line { stroke: var(--silver); stroke-width: 1.5; }
.erp-core { position: absolute; z-index: 2; left: 50%; top: 50%; width: 176px; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; box-shadow: 0 0 0 1px var(--gold-icon), 0 0 0 9px #fff, 0 0 0 10px var(--line-2), 0 24px 60px rgba(11, 18, 32, 0.22); }
.erp-core .ico { color: var(--gold); width: 40px; height: 40px; }
.erp-core strong { font-size: 21px; line-height: 1.3; }
.erp-core span { color: var(--on-ink-muted); font-size: 13px; }
.erp-nodes { position: absolute; inset: 0; }
.erp-nodes li { position: absolute; z-index: 2; left: var(--node-x); top: var(--node-y); width: min(138px, 27%); aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid var(--line-2); border-radius: 50%; background: #fff; display: grid; place-content: center; justify-items: center; gap: 3px; padding: 14px 12px; text-align: center; box-shadow: var(--shadow-1); transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.erp-nodes li:hover { border-color: var(--gold-icon); box-shadow: var(--shadow-2); }
.erp-nodes .ico { color: var(--gold-icon); width: 26px; height: 26px; }
.erp-nodes strong { font-size: 14px; line-height: 1.35; }
.erp-nodes span { color: var(--muted); font-size: 10.5px; line-height: 1.4; max-width: 17ch; }
@media (max-width: 849px) {
  .erp-map { aspect-ratio: auto; display: grid; gap: var(--s4); }
  .erp-links { display: none; }
  .erp-core { position: relative; inset: auto; width: 176px; transform: none; margin-inline: auto; }
  .erp-nodes { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .erp-nodes li { position: static; width: auto; aspect-ratio: auto; min-height: 150px; transform: none; border-radius: var(--r-lg); }
  .erp-nodes span { font-size: 12px; max-width: 24ch; }
}
@media (max-width: 460px) {
  .erp-nodes { grid-template-columns: 1fr; }
  .erp-nodes li { min-height: 0; grid-template-columns: auto 1fr; grid-template-areas: "icon title" "icon body"; justify-items: start; align-items: center; text-align: start; padding: 16px; column-gap: 12px; }
  .erp-nodes .ico { grid-area: icon; }
  .erp-nodes strong { grid-area: title; }
  .erp-nodes span { grid-area: body; max-width: none; }
}

/* ---------- modules: three screens, tabs as a stepper beside the stage ---------- */
.tabs-wrap { display: grid; gap: var(--s3); }
@media (min-width: 1000px) { .tabs-wrap { grid-template-columns: 233px 1fr; column-gap: var(--s4); align-items: start; } .tabs-wrap .hint { grid-column: 1; } .tabs-wrap .tabs { grid-column: 1; } .tabs-wrap .panels { grid-column: 2; grid-row: 1 / 3; } }
.hint { color: var(--muted); font-size: 14px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
@media (min-width: 1000px) { .tabs { flex-direction: column; overflow: visible; gap: 4px; border-inline-start: 1px solid var(--line-2); } }
.tab { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; text-align: start; transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease); }
.tab .ico { color: var(--silver-deep); transition: color 200ms var(--ease); }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.7); }
.tab[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow-1); }
.tab[aria-selected="true"] .ico { color: var(--gold-icon); }
@media (min-width: 1000px) { .tab { border-radius: 0 10px 10px 0; margin-inline-start: -1px; border-inline-start: 2px solid transparent; } [dir="rtl"] .tab { border-radius: 10px 0 0 10px; } .tab[aria-selected="true"] { border-inline-start-color: var(--gold-icon); } }
.panel { display: grid; gap: var(--s3); }
/* all panels share one grid cell, so the box keeps the tallest panel's height and switching tabs does not move the page */
.panels { display: grid; }
.panels > .panel { grid-area: 1 / 1; }
.panels > .panel[hidden] { display: grid !important; visibility: hidden; } /* overrides the global [hidden] rule on purpose */
.panel-shot { align-self: stretch; display: flex; flex-direction: column; }
.panel-shot .scr { flex: 1; display: flex; flex-direction: column; }
.panel-shot .scr-body { flex: 1; }
@media (min-width: 1200px) { .panel { grid-template-columns: 1.618fr 1fr; gap: var(--s4); align-items: start; } }
.panel-shot { position: relative; padding: var(--s2); background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-1); }
.panel-shot .scr { font-size: 12.5px; box-shadow: 0 0 0 1px rgba(11, 18, 32, 0.08); }
.panel-shot .scr-body { min-height: 340px; }
.shot-note { font-size: 12px; color: var(--muted); padding: 8px var(--s1) 0; }
.panel-text { display: grid; gap: 12px; padding-block-start: var(--s2); }
.panel-text h3 { font-size: 24px; }
.req { font-size: 13px; color: var(--muted); }
.lead { font-size: 16px; }
.bullets { display: grid; gap: 10px; }
.bullets li { position: relative; padding-inline-start: 20px; font-size: 15px; }
.bullets li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 10px; height: 2px; background: var(--gold-icon); }
details.more summary, details.qa summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
.caret { transition: transform 250ms var(--ease); }
details[open] > summary .caret { transform: rotate(180deg); }
details.more ul { margin-top: 8px; display: grid; gap: 6px; color: var(--muted); font-size: 14px; padding-inline-start: 18px; }
details.more li { list-style: disc; }
.core-title { margin-top: var(--s5); margin-bottom: var(--s2); font-size: 21px; }
.core { display: grid; gap: var(--s2); }
@media (min-width: 720px) { .core { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .core { grid-template-columns: repeat(4, 1fr); } }
.core li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3); display: flex; gap: var(--s2); }
.core .ico { color: var(--gold-icon); margin-top: 3px; }
.core p { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* ---------- workflow (dark): six stations on a thread, golden spiral behind ---------- */
.workflow { position: relative; }
.workflow .wrap { position: relative; z-index: 1; }
.flow { display: grid; gap: var(--s3); counter-reset: f; }
@media (min-width: 720px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(3, 1fr); gap: var(--s4) var(--s3); } }
.flow li { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "n title" "n body"; column-gap: 14px; row-gap: 4px; align-content: start; padding: var(--s3); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.1); }
.flow li::after { content: ""; position: absolute; top: calc(var(--s3) + 15px); inset-inline-end: 100%; width: var(--s3); height: 1px; background: rgba(197, 202, 211, 0.35); }
.flow li:first-child::after { display: none; }
@media (min-width: 1000px) { .flow li:nth-child(3n + 1)::after { display: none; } }
@media (min-width: 720px) and (max-width: 999px) { .flow li:nth-child(odd)::after { display: none; } }
@media (max-width: 719px) { .flow li::after { display: none; } }
.n { grid-area: n; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--silver-grad); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(11, 18, 32, 0.18); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.flow h3 { grid-area: title; color: #fff; font-size: 18px; line-height: 30px; }
.flow p { grid-area: body; font-size: 14px; color: var(--on-ink-muted); }

/* ---------- deployment: two panels beside the intro ---------- */
.deployment-layout { display: grid; gap: clamp(34px, 6vw, 89px); align-items: center; }
@media (min-width: 1000px) { .deployment-layout { grid-template-columns: 1fr 1.618fr; } .deployment-intro { margin-block-end: 0; } }
.deployment-content { display: grid; gap: var(--s3); }
.deployment-grid { display: grid; gap: var(--s3); }
@media (min-width: 720px) { .deployment-grid { grid-template-columns: 1fr 1fr; } }
.deployment-card { position: relative; display: grid; align-content: start; gap: 10px; border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: var(--s4) var(--s4) var(--s4); background: #fff; box-shadow: var(--shadow-1); overflow: hidden; }
.deployment-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--silver-grad); }
.deployment-card > .ico { color: var(--gold-icon); width: 32px; height: 32px; }
.deployment-kicker { color: var(--gold-deep); font-size: 13px; font-weight: 700; }
.deployment-card h3 { font-size: 23px; }
.deployment-card > p:not(.deployment-kicker) { color: var(--muted); }
.deployment-card ul { display: grid; gap: 10px; margin-top: var(--s1); padding-top: var(--s2); border-top: 1px solid var(--line); }
.deployment-card li { position: relative; padding-inline-start: 22px; font-size: 14px; color: var(--muted); }
.deployment-card li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 0 1px rgba(140, 109, 31, 0.3); }
.deployment-note { padding: 14px 18px; border-radius: var(--r); border-inline-start: 3px solid var(--gold-icon); background: var(--bg-soft); color: var(--muted); font-size: 14px; }

/* ---------- demo form (dark, torch photo dimmed behind) ---------- */
.demo { position: relative; }
.demo-photo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.demo-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0.32; filter: saturate(0.85); }
.demo-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.6) 55%, rgba(11, 18, 32, 0.9) 100%), linear-gradient(180deg, var(--ink) 0%, transparent 25%, transparent 75%, var(--ink) 100%); }
.demo-grid { display: grid; gap: var(--s4); }
@media (min-width: 1000px) { .demo-grid { grid-template-columns: 1fr 1.618fr; gap: var(--s5); align-items: center; } }
.lead-form { display: grid; gap: 16px; background: #fff; color: var(--text); border-radius: var(--r-xl); padding: 24px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); }
@media (min-width: 720px) { .lead-form { grid-template-columns: 1fr 1fr; padding: var(--s4); } .lead-form > .btn, .lead-form > .form-msg, .lead-form > .hp { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select { min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--text); width: 100%; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.field input:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 18, 32, 0.08); outline: none; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.err { color: var(--red); font-size: 12px; }
.err:empty { display: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14px; color: var(--red); }
.form-msg:empty { display: none; }
.form-done { background: #fff; color: var(--text); border: 1px solid var(--gold-icon); border-radius: var(--r-xl); padding: var(--s4); display: grid; gap: 8px; }
.done-title { font-size: 20px; font-weight: 600; }
.form-done a { color: var(--gold-deep); font-weight: 600; }
.contacts { color: var(--on-ink-muted); font-size: 14px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.contact-links a { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 8px 16px; color: var(--on-ink); transition: border-color 200ms var(--ease); }
.contact-links a:hover { border-color: var(--gold); }
.contact-links b { direction: ltr; unicode-bidi: isolate; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: var(--s5) calc(var(--s5) + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; gap: 24px; max-width: var(--wrap-wide); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr auto; align-items: start; } .rights { grid-column: 1 / -1; padding-top: var(--s2); border-top: 1px solid var(--line); } }
.footer b { color: var(--text); font-size: 18px; }
.footer-links, .footer-langs { display: flex; gap: 16px; }
.footer-langs a[aria-current] { color: var(--text); font-weight: 600; }
.footer a:hover { color: var(--text); }

/* desktop: the footer is one 89px row that shares the last view with the demo scene, so the page never rests between two scenes */
@media (min-width: 900px) {
  .demo.scene { min-height: calc(100svh - var(--nav-h) - var(--footer-h)); }
  .footer { height: var(--footer-h); padding-block: 0; display: grid; align-items: center; font-size: 13px; }
  .footer-grid { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--s3); max-width: var(--wrap-wide); }
  .footer-grid > div:first-child { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
  .footer-grid > div:first-child p { overflow: hidden; text-overflow: ellipsis; max-width: 42ch; }
  .footer b { font-size: 15px; }
  .footer .footer-links { margin-inline-start: auto; }
  .footer .rights { border: 0; padding: 0; white-space: nowrap; }
}

/* short desktop viewports: tighten every scene so each one still fits one view */
@media (min-width: 900px) and (max-height: 840px) {
  .fullpage > .scene { padding-block: var(--s3); }
  .scene-head { margin-block-end: var(--s3); gap: var(--s1); }
  h2 { font-size: 34px; }
  .sub { font-size: 16px; line-height: 1.6; }
  .hint { margin-block-end: 0; }
  .price-card { padding: var(--s3); gap: 8px; }
  .price-card h3 { font-size: 21px; }
  .price-who { min-height: 0; }
  .price-includes { padding-block: 2px; }
  .price-lines { padding-block: var(--s1); gap: 4px; }
  .price-lines b { font-size: 17px; }
  .panel-shot .scr { font-size: 11.5px; }
  .panel-shot .scr-body { min-height: 0; }
  .panel-shot .scr-content { padding: 12px; gap: 8px; }
  .panel-shot .scr-card { padding: 8px 10px; gap: 6px; }
  .panel-shot .mt td, .panel-shot .mt th { padding: 6px 8px; }
  .panel-text { gap: 8px; }
  .panel-text h3 { font-size: 20px; }
  .deployment-card { padding: var(--s3); gap: 8px; }
  .deployment-card ul { gap: 6px; }
  .flow { gap: var(--s3); }
  .flow li { padding: var(--s2) var(--s3); }
  .erp-map { width: min(60vh, 690px, 100%); margin-block: var(--s3); }
}

/* ---------- simple pages ---------- */
body.simple main { padding-block: 96px 80px; display: grid; gap: 16px; min-height: 60vh; }
.prose h1 { font-size: 36px; margin-bottom: 8px; }
.prose p { max-width: 640px; color: var(--muted); }

/* ---------- GPU scenes (canvas added by assets/js/gpu.js; nothing shows without it) ---------- */
.band-gpu { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gpu-canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.gpu-on .gpu-canvas { opacity: 1; }
.statement { position: relative; overflow: hidden; }
.statement .wrap { position: relative; z-index: 1; }

/* ---------- motion (classes are added by ui.js, so no-JS pages stay fully visible) ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.rv.in { opacity: 1; transform: none; }
.hero-text > * { opacity: 0; transform: translateY(14px); animation: rise 800ms var(--ease) forwards; }
.hero-text > :nth-child(1) { animation-delay: 60ms; }
.hero-text > :nth-child(2) { animation-delay: 160ms; }
.hero-text > :nth-child(3) { animation-delay: 300ms; }
.hero-text > :nth-child(4) { animation-delay: 420ms; }
.hero-text > :nth-child(5) { animation-delay: 520ms; }
.hero-stage { animation: rise 900ms 400ms var(--ease) backwards; perspective: 1600px; }
.hero-stage .scr { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 600ms var(--ease); will-change: transform; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .fullpage > .scene { min-height: auto; } }
/* below the side-by-side layout the three tabs share the row instead of scrolling it */
@media (max-width: 999px) { .tabs { overflow-x: visible; } .tab { flex: 1 1 0; min-width: 0; justify-content: center; gap: 6px; padding: 10px 6px; white-space: normal; text-align: center; line-height: 1.3; } }
@media (max-width: 420px) { .tab { font-size: 14px; } }
@media (max-width: 380px) { .tab .ico { display: none; } }
/* finger-sized targets for the small text links on phones and tablets */
@media (max-width: 899px) {
  details.more summary { min-height: 44px; }
  .footer-links a, .footer-langs a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media print { .rv { opacity: 1; transform: none; } .gpu-canvas, .scene-rail { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .hero-text > *, .hero-stage { animation: none; opacity: 1; transform: none; }
  .btn-gold::after { display: none; }
}

/* ---------- blocks the current skeleton does not render (stats, pains, statement, compare, trust, start, faq) ---------- */
/* ---------- stats: golden rectangle, 3·2·1·1 ---------- */
.stats { padding-block: var(--s6) 0; }
.proof-grid { display: grid; gap: 0; border-block: 1px solid var(--line); }
@media (min-width: 720px) { .proof-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .proof-grid { grid-template-columns: repeat(4, 1fr); } }
.proof-grid .stat { padding: var(--s3); border-bottom: 1px solid var(--line); }
.proof-grid .stat b { font-size: 19px; color: var(--text); }
.proof-grid .stat span { font-size: 14px; }
@media (min-width: 720px) { .proof-grid .stat { border-inline-start: 1px solid var(--line); } .proof-grid .stat:nth-child(odd) { border-inline-start: 0; } }
@media (min-width: 1050px) { .proof-grid .stat { border-bottom: 0; } .proof-grid .stat:nth-child(odd) { border-inline-start: 1px solid var(--line); } .proof-grid .stat:first-child { border-inline-start: 0; } }
.fib { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr); aspect-ratio: 5 / 3; gap: 2px; max-width: 880px; margin-inline: auto; background: var(--line); border: 2px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fib-cell { background: #fff; padding: var(--s3); display: grid; align-content: end; position: relative; z-index: 1; }
.fib-a { grid-column: 1 / 4; grid-row: 1 / 4; padding: var(--s4); text-align: end; justify-items: end; }
.fib-b { grid-column: 4 / 6; grid-row: 1 / 3; }
.fib-c { grid-column: 5 / 6; grid-row: 3 / 4; }
.fib-d { grid-column: 4 / 5; grid-row: 3 / 4; }
.fib-spiral { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.fib-spiral path { fill: none; stroke: var(--gold); vector-effect: non-scaling-stroke; stroke-width: 2px; opacity: 0.75; }
.stat { display: grid; gap: 6px; }
.stat b { font-weight: 700; line-height: 1.2; font-size: 20px; }
.fib-a .stat b { font-size: 34px; }
@media (min-width: 900px) { .fib-a .stat b { font-size: 55px; } .fib-b .stat b { font-size: 28px; } }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.55; }
.fib-c .stat span, .fib-d .stat span { font-size: 12px; }
.fib-a .stat span { font-size: 15px; max-width: 34ch; }
@media (max-width: 600px) { .fib { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; } .fib-a { grid-column: 1 / 3; grid-row: auto; } .fib-b, .fib-c, .fib-d { grid-column: auto; grid-row: auto; } .fib-spiral { display: none; } .fib-a .stat b { font-size: 34px; } }


/* ---------- trust: ledger list ---------- */
.trust-grid { display: grid; gap: 0; counter-reset: tr; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; column-gap: var(--s5); } }
.trust-grid li { display: flex; gap: var(--s3); padding-block: var(--s3); border-top: 1px solid var(--line-2); }
.trust-grid .ico { color: var(--gold-icon); margin-top: 2px; }
.trust-grid h3 { font-size: 18px; }
.trust-grid p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- pains ---------- */
.pain-grid { display: grid; gap: var(--s4) var(--s5); counter-reset: p; }
@media (min-width: 720px) { .pain-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain-grid li { display: grid; gap: 6px; }
.pain-grid li::before { counter-increment: p; content: counter(p, decimal-leading-zero); font-size: 13px; font-weight: 600; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
[lang="fa"] .pain-grid li::before { content: counter(p, persian); }
.pain-grid p { color: var(--muted); font-size: 15px; }

/* ---------- statement band ---------- */
.statement-text { font-size: 28px; line-height: 1.4; font-weight: 600; color: #fff; max-width: 820px; margin-bottom: var(--s6); text-wrap: balance; }
@media (min-width: 900px) { .statement-text { font-size: 40px; line-height: 1.3; } }
.fit { display: grid; gap: var(--s3); }
@media (min-width: 720px) { .fit { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .fit { grid-template-columns: repeat(4, 1fr); } }
.fit-item { border: 1px solid rgba(197, 202, 211, 0.22); border-radius: var(--r-lg); padding: var(--s3); display: grid; gap: var(--s1); align-content: start; background: rgba(11, 18, 32, 0.35); backdrop-filter: blur(6px); }
.fit-item .ico { color: var(--gold); }
.fit-item h3 { color: #fff; }
.fit-item p { color: var(--on-ink-muted); font-size: 14px; }

/* ---------- compare ---------- */
.table-wrap { overflow-x: auto; }
.ba { width: 100%; border-collapse: collapse; min-width: 560px; }
.ba th { text-align: start; font-size: 14px; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 2px solid var(--line-2); }
.ba th:last-child { color: var(--gold-deep); }
.ba td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; width: 50%; font-size: 15px; }
.ba td:first-child { color: var(--muted); }
.ba td:last-child { font-weight: 500; }

/* ---------- trust ---------- */

/* ---------- start ---------- */
.start-grid { display: grid; gap: var(--s3); }
@media (min-width: 720px) { .start-grid { grid-template-columns: repeat(3, 1fr); } }
.start-grid li { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3); display: grid; gap: var(--s1); align-content: start; }

/* ---------- faq ---------- */
details.qa { border-bottom: 1px solid var(--line); padding-block: 18px; }
details.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text); font-size: 17px; font-weight: 600; }
details.qa p { color: var(--muted); margin-top: 10px; max-width: 680px; font-size: 15px; }


/* ---------- all modules grid ---------- */
.mod-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); grid-auto-rows: 1fr; } /* every row as tall as the tallest, so all cards are one size */
@media (min-width: 620px) { .mod-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .mod-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }
@media (min-width: 1200px) { .mod-grid { grid-template-columns: repeat(4, 1fr); } }
.mod-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: var(--s3); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-1); border: 1px solid rgba(11, 18, 32, 0.04); }
.mod-card > a { flex: 1; display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; margin: calc(-1 * var(--s3)); padding: var(--s3); border-radius: inherit; transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.mod-card > a:hover { box-shadow: 0 0 0 2px var(--gold-icon) inset; }
.mod-card .ico { color: var(--gold-icon); }
.mod-card h3 { font-size: 18px; }
.mod-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.mod-card .req { font-size: 12.5px; }
/* the description takes the spare height, so the prerequisites line and the sample-screen link sit on the same line in every card of a row */
.mod-card h3 + p { flex: 1; }
.mod-card .ico { flex: none; }
.mod-tag { position: absolute; top: var(--s2); inset-inline-end: var(--s2); font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 3px 9px; }
.mod-card:nth-child(-n + 4) .mod-tag { color: var(--gold-deep); background: rgba(212, 175, 55, 0.12); }
.mod-go { font-size: 13px; font-weight: 600; color: var(--gold-deep); }
.mod-foot { display: grid; gap: 6px; }
