/* Vazirmatn (SIL OFL 1.1, see ../downtime/OFL.txt), self-hosted with the downtime showcase so the page loads nothing from third parties. */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../downtime/vazirmatn-arabic-wght-normal.woff2) format("woff2-variations"), url(../downtime/vazirmatn-arabic-wght-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../downtime/vazirmatn-latin-wght-normal.woff2) format("woff2-variations"), url(../downtime/vazirmatn-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
img { max-width: 100%; }
[hidden] { display: none !important; }

/* A 1280×720 stage scaled to fit, inside a dark "screening room". The live dashboard is rendered off-screen and filmed by a virtual camera. Brand colors come from the Araz BI logo. */
:root {
  --ink: #0a1128;
  --ink-2: #111a36;
  --ink-line: #24304f;
  --navy: #13204a;
  --gold: #f2c811;
  --gold-2: #e8a21c;
  --cyan: #1cb5e0;
  --teal: #19c2a0;
  --on-ink: #eef2fa;
  --on-ink-muted: #8e9bba;
  --accent: #4f46e5;
  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); }
body { color: var(--on-ink); font-family: var(--font); padding-inline: 16px; padding-block: 20px 28px; }
.shell { max-width: 1280px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.top h1 { margin: 0; font-size: clamp(16px, 2.2vw, 20px); font-weight: 800; }
.top span { color: var(--on-ink-muted); font-size: 13px; }

.wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--ink-2); box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px var(--ink-line); }
.stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; direction: rtl; background: var(--ink); font-variant-numeric: tabular-nums; }
.layer { position: absolute; inset: 0; }
#bg { position: absolute; inset: 0; width: 1280px; height: 720px; }

/* dashboard + camera */
#dash3d { position: absolute; inset: 0; transform-origin: 50% 60%; }
#cam { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
#cam img { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: block; }
#frameB { opacity: 0; }
.screen-glow { position: absolute; inset: 0; border-radius: 4px; box-shadow: 0 0 0 2px rgba(242,200,17,.0); pointer-events: none; }
.spot { position: absolute; border-radius: 22px; box-shadow: 0 0 0 4000px rgba(7,11,26,.66); outline: 4px solid var(--gold); outline-offset: 2px; pointer-events: none; }
.spot-tag { position: absolute; transform: translate(50%, -100%); background: var(--gold); color: #1a1405; font-weight: 900; font-size: 30px; padding: 10px 26px; border-radius: 999px; white-space: nowrap; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.spot-tag small { font-weight: 700; font-size: 22px; opacity: .8; margin-inline-start: 10px; }
#ring { position: absolute; border: 4px solid var(--gold); border-radius: 16px; pointer-events: none; }

/* scenes on ink */
.scene { position: absolute; inset: 0; visibility: hidden; }
#logoS { display: grid; place-items: center; }
.logo-box { position: relative; width: 700px; }
.logo-box img { display: block; width: 100%; height: auto; }
.sheen { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%); background-size: 260% 100%; background-repeat: no-repeat; mix-blend-mode: screen; }
.rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.rings i { position: absolute; left: 0; top: 0; border-radius: 50%; border: 2px solid; transform: translate(-50%, -50%); }

#titleS { padding: 0 110px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.eyebrow { font-size: 22px; font-weight: 700; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.eyebrow b { font-family: var(--font); direction: ltr; unicode-bidi: isolate; }
.big { margin: 0; font-size: 78px; font-weight: 900; line-height: 1.22; }
.big .w { display: inline-block; margin-inline-end: .26em; }
.big .hl { background: linear-gradient(90deg, var(--gold), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uline { height: 6px; width: 520px; border-radius: 3px; background: linear-gradient(270deg, var(--teal), var(--cyan)); transform-origin: right center; }
.pills { display: flex; gap: 14px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #2b3a63; background: rgba(255,255,255,.05); border-radius: 999px; padding: 10px 20px; font-size: 20px; color: var(--on-ink); }
.pill i { display: inline-flex; gap: 3px; align-items: flex-end; height: 20px; }
.pill i b { width: 5px; border-radius: 2px; background: var(--gold); }
.pill.warn { border-color: rgba(242,200,17,.55); color: #ffe48a; background: rgba(242,200,17,.08); }
.pill.warn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

#qS { padding: 0 110px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
#qS h2 { margin: 0 0 8px; font-size: 26px; color: var(--on-ink-muted); font-weight: 700; }
.q { display: grid; grid-template-columns: 64px 1fr 300px; align-items: center; gap: 26px; background: rgba(255,255,255,.035); border: 1px solid #22305a; border-radius: 22px; padding: 18px 26px; }
.q .n { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #1a1405; background: var(--gold); }
.q .t { font-size: 36px; font-weight: 900; }
.q .t span { display: block; font-size: 18px; font-weight: 500; color: var(--on-ink-muted); margin-top: 4px; }
.q .viz { height: 70px; position: relative; direction: ltr; }
.vz-bars { display: flex; align-items: flex-end; gap: 7px; height: 100%; }
.vz-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(0deg, var(--accent), #8b84ff); transform-origin: bottom; }
.vz-time { position: absolute; left: 0; right: 0; top: 22px; height: 26px; border-radius: 8px; background: #1d2a4d; overflow: hidden; }
.vz-time i { position: absolute; top: 0; bottom: 0; }
.vz-ppl { display: flex; align-items: flex-end; gap: 10px; height: 100%; }
.vz-ppl span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.vz-ppl b { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); }
.vz-ppl i { width: 100%; border-radius: 5px; background: linear-gradient(0deg, var(--teal), var(--cyan)); transform-origin: bottom; }
.answer { font-size: 30px; font-weight: 900; color: var(--gold); margin-top: 6px; }

#recapS { padding: 0 110px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
#recapS h2 { margin: 0 0 10px; font-size: 54px; font-weight: 900; }
.chk { display: flex; align-items: center; gap: 18px; font-size: 30px; font-weight: 700; }
.chk i { flex: none; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--teal), var(--cyan)); display: grid; place-items: center; }
.chk i svg { width: 26px; height: 26px; }
.chk em { font-style: normal; color: var(--on-ink-muted); font-size: 22px; font-weight: 500; margin-inline-start: 6px; }

#endS { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
#endS .logo-box { width: 560px; }
.endline { width: 420px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.url { direction: ltr; font-size: 58px; font-weight: 900; letter-spacing: .5px; color: #fff; min-height: 80px; display: flex; align-items: center; }
.url .caret { display: inline-block; width: 4px; height: 56px; background: var(--gold); margin-left: 6px; border-radius: 2px; }
.url .dom { color: var(--gold); }
.end-sub { font-size: 24px; color: var(--on-ink); font-weight: 700; }
.end-note { font-size: 17px; color: var(--on-ink-muted); }

/* captions + chrome on stage */
.cap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(10,17,40,.93); color: #fff; border: 1px solid #2a3a66; border-radius: 999px; padding: 10px 24px 10px 12px; display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; white-space: nowrap; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.cap .num { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #1a1405; display: grid; place-items: center; font-weight: 900; font-size: 17px; }
.demo { position: absolute; left: 16px; top: 14px; direction: rtl; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #ffe48a; background: rgba(10,17,40,.88); border: 1px solid rgba(242,200,17,.5); padding: 6px 12px; border-radius: 999px; }
.demo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.brand { position: absolute; right: 14px; bottom: 16px; height: 40px; padding: 7px 12px; border-radius: 12px; background: rgba(10,17,40,.88); border: 1px solid #2a3a66; }
.cursor { position: absolute; left: 0; top: 0; width: 28px; height: 34px; pointer-events: none; z-index: 50; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.ripple { position: absolute; left: 0; top: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; border: 3px solid var(--gold); pointer-events: none; z-index: 49; opacity: 0; }
.flash { position: absolute; inset: 0; background: #fff; pointer-events: none; opacity: 0; mix-blend-mode: overlay; }

/* gate */
#gate { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: radial-gradient(800px 460px at 50% 45%, #18275a 0%, var(--ink) 70%); }
#gate img { width: 430px; }
#gate button { font-family: var(--font); font-size: 26px; font-weight: 900; color: #1a1405; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border: 0; border-radius: 999px; padding: 16px 44px; cursor: pointer; box-shadow: 0 18px 40px rgba(242,200,17,.25); }
#gate button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
#gate p { margin: 0; color: var(--on-ink-muted); font-size: 18px; }
.prog { width: 360px; height: 6px; border-radius: 3px; background: #1d2a4d; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--teal)); transition: width .3s; }
#buf { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 70; background: rgba(10,17,40,.9); border: 1px solid #2a3a66; border-radius: 16px; padding: 14px 22px; font-size: 18px; display: none; }

/* controls */
.ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; direction: ltr; }
.ctl button { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--on-ink); background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.ctl button:hover { background: #1b2650; }
.ctl button:focus-visible, .ctl input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ctl input { flex: 1; min-width: 120px; accent-color: var(--gold); }
.ctl output { font-size: 13px; color: var(--on-ink-muted); min-width: 70px; text-align: right; }
#vhost { position: fixed; left: 0; top: 0; width: 1920px; height: 1080px; opacity: 0; pointer-events: none; z-index: -1; overflow: hidden; }

/* English (?lang=en): left-to-right stage and chrome; the filmed dashboard keeps its own layout. */
html[lang="en"] .stage { direction: ltr; }
html[lang="en"] .uline { transform-origin: left center; }
html[lang="en"] .brand { right: auto; left: 14px; }
