/* Jarvis download site. Cyan / blue HUD on deep navy, matching the Jarvis app UI.
   Dark only on purpose. Every colour is set explicitly. */
:root {
  --bg: #050D18;
  --panel: #0B1A2B;
  --line: rgba(34, 211, 238, .22);
  --fg: #EAF6FF;
  --muted: #8FB3C8;
  --blue: #3B82F6;
  --blue-d: #1D4ED8;
  --accent: #22D3EE;
  --ice: #BDF4FF;
  --bar-h: 58px;
  --display: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --tech: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html[lang="ar"] { --display: "IBM Plex Sans Arabic", "Segoe UI", sans-serif; --tech: "IBM Plex Sans Arabic", "Segoe UI", sans-serif; --body: "IBM Plex Sans Arabic", "Segoe UI", sans-serif; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 15% -10%, rgba(59, 130, 246, .16), transparent 60%),
    radial-gradient(800px 500px at 100% 20%, rgba(34, 211, 238, .07), transparent 60%);
  background-attachment: fixed;
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .bar, .foot { position: relative; z-index: 1; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 18px; padding-inline: max(20px, calc((100% - 1120px) / 2));
  background: rgba(5, 13, 24, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .22em; line-height: 1; margin-inline-end: auto; }
html[lang="ar"] .brand { letter-spacing: .06em; font-weight: 700; font-size: 22px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-family: var(--tech); font-weight: 600; font-size: 15px; letter-spacing: .04em; transition: color .2s; }
.nav a:hover { color: var(--fg); }
.nav .nav-dl { color: #fff; background: var(--blue); padding: 6px 16px; border-radius: 4px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.nav .nav-dl:hover { background: #5B9BFF; }
.lang { font: 600 13px var(--body); color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.lang:hover { border-color: var(--accent); }
@media (max-width: 700px) { .nav a:not(.nav-dl) { display: none; } .nav { gap: 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-family: var(--tech); font-weight: 700; font-size: 17px; letter-spacing: .05em; text-transform: uppercase;
  padding: 13px 28px; border: 1px solid transparent; transition: transform .2s, box-shadow .25s, background .2s, border-color .2s;
}
html[lang="ar"] .btn { text-transform: none; letter-spacing: 0; font-size: 16px; }
.btn-dl {
  color: #fff; background: linear-gradient(180deg, #4F95FF, var(--blue-d)); border-color: #8DBBFF;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
  filter: drop-shadow(0 6px 22px rgba(59, 130, 246, .45));
}
.btn-dl:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 30px rgba(79, 149, 255, .75)); }
.btn-dl:active { transform: translateY(0); }
.btn-ghost { color: var(--accent); border-color: var(--line); background: rgba(34, 211, 238, .05); border-radius: 4px; }
.btn-ghost:hover { border-color: var(--accent); background: rgba(34, 211, 238, .1); }
.btn-xl { font-size: 21px; padding: 18px 40px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .cta-row { justify-content: center; }

/* ---------- intro scene ---------- */
.sr + .sec { margin-top: 0; }
.journey { position: relative; }
.journey.live { height: 520vh; height: 520svh; }
.jstage { position: relative; height: calc(100vh - var(--bar-h)); height: calc(100svh - var(--bar-h)); overflow: hidden; }
.journey.live .jstage { position: sticky; top: var(--bar-h); }
.jwrap { position: absolute; left: 50%; top: 50%; width: min(100vw, calc(100svh - var(--bar-h))); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.jsvg { width: 100%; height: 100%; display: block; overflow: visible; }
.jt1 { font-family: var(--display); font-weight: 700; font-size: 84px; letter-spacing: .3em; fill: #fff; paint-order: stroke; stroke: var(--bg); stroke-width: 8px; }
.jt2 { font-family: var(--tech); font-weight: 700; font-size: 22px; letter-spacing: .34em; fill: var(--accent); }
html[lang="ar"] .jt1 { letter-spacing: .08em; font-weight: 700; }
html[lang="ar"] .jt2 { letter-spacing: 0; }
.skip { position: absolute; z-index: 6; top: 12px; inset-inline-end: 14px; font: 600 13px var(--body); text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: rgba(5, 13, 24, .6); }
.skip:hover { color: var(--fg); border-color: var(--accent); }
.journey:not(.live) .skip { display: none; }
.jcue { position: absolute; z-index: 4; left: 50%; bottom: 17%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 12px var(--tech); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.jcue i { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .jcue i { animation: none; } }
.journey:not(.live) .jcue, .journey:not(.live) .jcap { display: none; }

.jcap { position: absolute; z-index: 4; left: 0; right: 0; bottom: 9%; text-align: center; pointer-events: none; }
.jcap span { position: absolute; left: 0; right: 0; opacity: 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.8vw, 42px); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 2px 18px var(--bg), 0 0 30px var(--bg); }
html[lang="ar"] .jcap span { letter-spacing: 0; font-weight: 700; text-transform: none; font-size: clamp(22px, 3.6vw, 38px); }

/* dashboard screenshot */
.shotwrap {
  --w: min(92vw, calc((100svh - var(--bar-h) - 200px) * 1.72));
  position: absolute; z-index: 3; left: 50%; top: 3%; width: var(--w);
  transform: translateX(-50%) perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out; opacity: 0; pointer-events: none;
}
.journey:not(.live) .shotwrap { opacity: 1; pointer-events: auto; position: relative; top: auto; left: auto; transform: none; transition: none; margin: 26px auto 0; }
.shot {
  position: relative; border-radius: 10px; overflow: hidden; transform-style: preserve-3d; will-change: transform;
  border: 1px solid rgba(34, 211, 238, .45);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .35), 0 30px 80px rgba(0, 0, 0, .65), 0 0 90px rgba(189, 244, 255, .14), 0 0 140px rgba(59, 130, 246, .16);
}
.shot img { display: block; width: 100%; height: auto; }
.shot .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .09) 50%, transparent 62%); transform: translateX(var(--sx, -100%)); pointer-events: none; }
/* corner brackets */
.shot::before, .shot::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--accent); z-index: 2; pointer-events: none; }
.shot::before { top: 8px; inset-inline-start: 8px; border-width: 2px 0 0 2px; }
.shot::after { bottom: 8px; inset-inline-end: 8px; border-width: 0 2px 2px 0; }
html[dir="rtl"] .shot::before { border-width: 2px 2px 0 0; }
html[dir="rtl"] .shot::after { border-width: 0 0 2px 2px; }

.chip { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; font: 600 14px var(--tech); letter-spacing: .06em; color: #fff; background: rgba(5, 13, 24, .86); border: 1px solid var(--accent); border-radius: 3px; opacity: 0; backdrop-filter: blur(6px); white-space: nowrap; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.chip b { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.chip em { font-style: normal; }
.chip.c1 { top: -14px; inset-inline-start: -2%; }
.chip.c2 { top: 14%; inset-inline-end: -3%; }
.chip.c3 { bottom: 18%; inset-inline-start: -3%; }
.chip.c4 { bottom: -14px; inset-inline-end: 3%; }
.journey:not(.live) .chip { opacity: 1; }
@media (max-width: 820px) { .chip { display: none; } .shotwrap { top: 20%; } }

.jfinal { position: absolute; z-index: 5; left: 0; right: 0; bottom: 3.5%; text-align: center; opacity: 0; pointer-events: none; padding-inline: 16px; }
.jfinal .cta-row { justify-content: center; }
.jfinal .tag { margin: 0 0 14px; font-family: var(--tech); font-weight: 600; font-size: clamp(16px, 2vw, 21px); letter-spacing: .06em; color: var(--muted); }
.jfinal .meta { margin: 12px 0 0; font: 600 13px var(--tech); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
html[lang="ar"] .jfinal .meta { letter-spacing: 0; }
.journey:not(.live) .jfinal { position: relative; opacity: 1; pointer-events: auto; bottom: auto; padding: 34px 16px 40px; }
.journey.live .jfinal.on { pointer-events: auto; }
@media (max-width: 560px) { .btn { padding: 12px 22px; font-size: 15px; } .jfinal .btn-ghost { display: none; } }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.eyebrow { margin: 0 0 8px; font: 700 13px var(--tech); letter-spacing: .3em; text-transform: uppercase; color: var(--blue); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.sec h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; letter-spacing: .05em; text-transform: uppercase; }
html[lang="ar"] .sec h2 { font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.25; font-size: clamp(30px, 5vw, 50px); }
.lead { margin: 0 0 22px; color: var(--muted); font-size: 18px; max-width: 56ch; }
.center .lead { margin-inline: auto; }

.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* download card */
.dl-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: clamp(26px, 4vw, 48px); background: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(14, 17, 24, .9) 45%); border: 1px solid var(--line); border-radius: 6px; position: relative; overflow: hidden; }
.dl-card::before { content: ""; position: absolute; inset-inline-end: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 2px dashed rgba(59, 130, 246, .35); animation: spin 40s linear infinite; }
.dl-card::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 6px solid rgba(34, 211, 238, .2); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dl-card::before { animation: none; } }
.dl-card h2 { font-size: clamp(36px, 5vw, 56px); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 22px 0 0; padding: 0; }
.facts li { display: flex; flex-direction: column; }
.facts b { font: 700 20px var(--tech); color: var(--accent); letter-spacing: .04em; }
.facts span { font-size: 13px; color: var(--muted); }
.dl-r { position: relative; z-index: 1; text-align: center; }
.file { margin: 16px 0 0; }
.file code { font: 500 14px ui-monospace, Menlo, Consolas, monospace; color: var(--ice); background: rgba(189, 244, 255, .08); padding: 4px 10px; border-radius: 4px; }
.note { margin: 14px auto 0; max-width: 34ch; font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { .dl-card { grid-template-columns: 1fr; gap: 28px; } .dl-r { text-align: start; } .btn-xl { width: 100%; justify-content: center; } .note { margin-inline: 0; } }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { --c: var(--accent); position: relative; padding: 26px 24px 28px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .07); border-radius: 6px; transition: border-color .25s, transform .25s, box-shadow .25s; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 46px; height: 3px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.card:hover { border-color: var(--c); transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 30px -12px var(--c); }
.card.rv.in:hover { transform: translateY(-4px); }
.ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; margin-bottom: 16px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font: 700 21px var(--tech); letter-spacing: .04em; text-transform: uppercase; }
html[lang="ar"] .card h3 { text-transform: none; letter-spacing: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* steps */
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: rgba(14, 17, 24, .7); }
.n { flex: none; display: grid; place-items: center; width: 52px; height: 52px; font: 700 28px var(--display); color: #fff; background: var(--blue); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
html[lang="ar"] .n { font-family: var(--tech); font-weight: 700; }
.steps h3 { margin: 2px 0 4px; font: 700 20px var(--tech); text-transform: uppercase; letter-spacing: .04em; }
html[lang="ar"] .steps h3 { text-transform: none; letter-spacing: 0; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; padding: 16px 34px 16px 0; font: 600 18px var(--body); position: relative; }
html[dir="rtl"] summary { padding: 16px 0 16px 34px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 12px; font: 400 26px var(--tech); color: var(--blue); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); max-width: 64ch; }

/* contact + footer */
.contact-a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 10px 20px; border: 1px solid var(--line); border-radius: 4px; color: var(--fg); font-weight: 500; transition: border-color .2s, background .2s; }
.contact-a:hover { border-color: var(--accent); background: rgba(34, 211, 238, .07); }
.foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot-social { display: flex; gap: 16px; flex-wrap: wrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- small phones & landscape ---------- */
@media (max-width: 460px) {
  .bar { gap: 10px; padding-inline: 14px; }
  .brand { font-size: 21px; letter-spacing: .14em; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .nav .nav-dl { padding: 5px 12px; font-size: 14px; }
  .lang { padding: 5px 11px; font-size: 12px; }
}
@media (max-height: 520px) {
  .shotwrap { --w: min(92vw, calc((100svh - var(--bar-h) - 96px) * 1.72)); top: 2%; }
  .chip, .jfinal .tag, .jfinal .meta { display: none; }
  .jfinal { bottom: 2%; }
  .jfinal .btn { padding: 8px 20px; font-size: 14px; }
  .jcap { bottom: 4%; }
  .jcap span { font-size: 22px; }
}

.brand img{display:block;flex:none}

/* ---- intro: plays once, then the scene stays as the hero ---- */
.journey.live { height: auto; }
.journey.live .jstage { position: relative; top: 0; }
.jcue { display: none !important; }
.jprog { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(34,211,238,.12); display: none; }
.jprog i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #22D3EE, #60A5FA); box-shadow: 0 0 12px rgba(34,211,238,.7); }
html[dir="rtl"] .jprog i { transform-origin: right; }
.bar { transition: opacity .7s ease; }
html.intro-on, html.intro-on body { overflow: hidden; height: 100%; }
html.intro-on .bar { opacity: 0; pointer-events: none; }
html.intro-on main > :not(.journey), html.intro-on .foot { visibility: hidden; }
html.intro-on .journey.live .jstage { position: fixed; left: 0; right: 0; top: var(--bar-h); z-index: 60; }
html.intro-on:not(.intro-run) .jstage { opacity: 0; }
html.intro-on .jprog { display: block; }
html:not(.intro-on) .skip { display: none; }
