:root {
  --bg: #000;
  --bg-2: #07090c;
  --card: #0b0e12;
  --card-2: #10141a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f5f8;
  --muted: #8b95a3;
  --dim: #4c5562;
  --accent: #00a4dc;
  --accent-2: #7b5cff;
  --ok: #2ed39a;
  --danger: #e5244c;
  --r: 18px;
  --wrap: 1180px;
  --font: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
:root[lang='ar'] { --font: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
:root[lang='ar'] h1, :root[lang='ar'] h2, :root[lang='ar'] h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.8rem; }
.ok-t { color: var(--ok); }
.link-t { color: #35c5f4; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* background */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.55;
}
.bg-glow {
  position: absolute; z-index: -1; inset: -200px 0 auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(600px 380px at 75% 20%, rgba(0, 164, 220, 0.22), transparent 70%),
    radial-gradient(520px 340px at 20% 35%, rgba(123, 92, 255, 0.16), transparent 70%);
}

/* nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; font-family: 'Inter', sans-serif; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px var(--line-2); }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 0.92rem; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent;
  font-weight: 700; font-size: 0.9rem; font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif; transition: border-color 0.2s, background 0.2s;
}
.lang:hover { border-color: var(--accent); background: rgba(0, 164, 220, 0.08); }
.burger { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: progress; transform: none; }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 0.88rem; }
.btn-primary { background: #fff; color: #000; box-shadow: 0 8px 30px -8px rgba(0, 164, 220, 0.6); }
.btn-primary:hover { box-shadow: 0 12px 40px -8px rgba(0, 164, 220, 0.85); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.btn-link { color: var(--accent); padding: 0 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 72px 0 56px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 0.85rem; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(46, 211, 154, 0.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46, 211, 154, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(46, 211, 154, 0); } }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; margin: 22px 0 20px; }
.grad { background: linear-gradient(100deg, #fff 0%, #35c5f4 40%, #00a4dc 60%, #7b5cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.pills { list-style: none; padding: 0; margin: 26px 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: rgba(46, 211, 154, 0.08); color: #9ff0cf; font-size: 0.86rem; border: 1px solid rgba(46, 211, 154, 0.18); }
.hero-meta { margin-top: 22px; color: var(--dim); font-size: 0.8rem; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.orbit { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orbit::before, .orbit::after { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px dashed var(--line-2); }
.orbit::after { width: 380px; height: 380px; border-style: solid; border-color: var(--line); }
.orbit span {
  position: absolute; font: 800 0.95rem 'Inter', sans-serif; letter-spacing: -0.06em; color: var(--c);
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 0 30px -6px var(--c);
  --a: calc(var(--i) * 72deg - 90deg);
  transform: rotate(var(--a)) translateX(260px) rotate(calc(-1 * var(--a)));
  animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s);
}
@keyframes float { 50% { translate: 0 -8px; } }

.phone {
  position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #2a2f36, #0d0f12 40%, #1b1f25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 100px -20px rgba(0, 164, 220, 0.35), 0 30px 60px -30px #000;
}
.phone-notch { position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 90px; height: 24px; border-radius: 20px; background: #000; z-index: 2; }
.screen {
  height: 100%; border-radius: 36px; background: #000; overflow: hidden; padding: 56px 16px 12px;
  display: flex; flex-direction: column; font-size: 12px; direction: ltr; text-align: left;
}
.app-top { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.app-top img { border-radius: 6px; }
.app-top b { letter-spacing: 0.16em; font-size: 12px; }
.app-top .mono { margin-left: auto; font-size: 9px; }
.app-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 8px; }
.live { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
.app-row { display: grid; grid-template-columns: 10px 70px 1fr; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.app-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.app-row i.ok { background: var(--ok); }
.app-svc-head { display: flex; justify-content: space-between; padding: 18px 0 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.app-glyphs { display: flex; justify-content: space-between; }
.glyph { font: 800 16px 'Inter', sans-serif; letter-spacing: -0.07em; color: var(--dim); transition: color 0.4s, text-shadow 0.4s, transform 0.4s; direction: ltr; }
.glyph.on { color: var(--c); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); }
.app-glyphs .glyph.on { transform: scale(1.12); }
.app-spacer { flex: 1; }
.app-btn { height: 40px; border-radius: 12px; display: grid; place-items: center; background: #1d2026; font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.app-btn.primary { background: #fff; color: #000; margin-bottom: 8px; }
.app-btn.danger { background: var(--danger); }
.app-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-tabbar { display: flex; justify-content: space-around; padding: 14px 0 4px; margin-top: 10px; border-top: 1px solid var(--line); }
.app-tabbar i { width: 18px; height: 18px; border-radius: 6px; background: #2a2e35; }
.app-tabbar i.on { background: #fff; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: rgba(11, 14, 18, 0.6); overflow: hidden; }
.stat { padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { font-size: 2rem; font-weight: 800; font-family: 'Inter', sans-serif; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* sections */
.section { padding: 120px 0 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; margin-bottom: 16px; }
.card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); }

/* stack */
.stack-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 20px; align-items: start; }
.svc-tabs { display: flex; flex-direction: column; gap: 10px; }
.svc-tab {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; text-align: start;
  border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.svc-tab:hover { border-color: var(--line-2); transform: translateX(calc(var(--flip, 1) * 3px)); }
:root[dir='rtl'] .svc-tab { --flip: -1; }
.svc-tab.active { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, var(--card)), var(--card)); }
:root[dir='rtl'] .svc-tab.active { background: linear-gradient(270deg, color-mix(in srgb, var(--c) 12%, var(--card)), var(--card)); }
.svc-tab .glyph { font-size: 20px; text-align: center; }
.svc-tab-txt { display: flex; flex-direction: column; min-width: 0; }
.svc-tab-txt small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.port { color: var(--muted); font-size: 0.85rem; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); direction: ltr; }
.svc-tab.active .port { color: var(--c); }
.svc-panel { padding: 30px; position: sticky; top: 90px; border-color: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: 0 30px 80px -40px var(--c); }
.svc-panel.swap { animation: swap 0.45s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.panel-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.glyph.big { font-size: 30px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; background: color-mix(in srgb, var(--c) 10%, #000); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.panel-top h3 { font-size: 1.6rem; }
.panel-about { font-size: 1.02rem; margin-bottom: 20px; }
.addr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #000; border: 1px solid var(--line); font-size: 0.85rem; margin-bottom: 24px; }
.addr b { color: var(--c); }
.svc-panel h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; font-family: var(--mono); }
.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 0.88rem; }

/* sync */
.sync-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.diagram { position: relative; min-height: 440px; margin: 30px; direction: ltr; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ln { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 6; transition: stroke 0.5s; }
.ln.lit { stroke: var(--accent); stroke-dasharray: 6 6; animation: flow 1s linear infinite; filter: drop-shadow(0 0 4px rgba(0, 164, 220, 0.8)); }
@keyframes flow { to { stroke-dashoffset: -24; } }
.node {
  position: absolute; translate: -50% -50%; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 14px; border-radius: 16px; background: #000; border: 1px solid var(--line-2); transition: border-color 0.5s, box-shadow 0.5s;
}
.node .glyph { font-size: 20px; }
.node .mono { color: var(--muted); font-size: 0.72rem; }
.node.live { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 0 30px -8px var(--c); }
.hub {
  position: absolute; left: 50%; top: 35%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px; border-radius: 22px; background: radial-gradient(circle, rgba(0, 164, 220, 0.18), transparent 70%); color: var(--muted);
}
.hub img { border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2), 0 0 40px rgba(0, 164, 220, 0.4); }
.sync-side { padding: 34px; border-inline-start: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 6px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--muted); transition: color 0.3s, background 0.3s; }
.steps li.run { color: var(--text); background: rgba(0, 164, 220, 0.08); }
.steps li.done { color: var(--text); }
.tick { flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--dim); position: relative; }
.run .tick { border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.done .tick { border-color: var(--ok); background: var(--ok); }
.done .tick::after { content: ''; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: auto; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--ok)); border-radius: 6px; transition: width 0.6s ease; }
.sync-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.sync-status { color: var(--ok); }

/* features */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { padding: 26px; position: relative; overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.feat::before { content: ''; position: absolute; inset: -1px; background: radial-gradient(400px 160px at 0% 0%, rgba(0, 164, 220, 0.12), transparent 70%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.feat:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feat:hover::before { opacity: 1; }
.feat.wide { grid-column: span 2; }
.feat-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 164, 220, 0.1); color: var(--accent); border: 1px solid rgba(0, 164, 220, 0.25); margin-bottom: 18px; }
.feat-n { position: absolute; top: 22px; inset-inline-end: 24px; color: var(--dim); font-size: 0.8rem; }
.feat h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 0.93rem; }
.feat.wide h3 { font-size: 1.35rem; }
.feat.wide p { font-size: 1rem; max-width: 52ch; }

.widget-band { margin-top: 16px; padding: 34px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 34px; align-items: center; background: radial-gradient(500px 200px at 100% 100%, rgba(46, 211, 154, 0.08), transparent 70%), linear-gradient(180deg, var(--card-2), var(--card)); }
.widget-band h3 { font-size: 1.6rem; margin-bottom: 10px; }
.widgets { display: flex; flex-direction: column; gap: 14px; direction: ltr; text-align: left; }
.w-big { background: #000; border: 1px solid var(--line-2); border-radius: 26px; padding: 20px 22px; }
.w-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.w-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.04em; }
.w-brand img { border-radius: 5px; }
.w-count { margin: 6px 0 4px; }
.w-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; margin-bottom: 16px; }
.w-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.w-btns span { height: 38px; display: grid; place-items: center; border-radius: 12px; background: #15181d; border: 1px solid var(--line-2); font-weight: 700; font-size: 0.78rem; }
.w-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; background: #000; border: 1px solid var(--line-2); border-radius: 22px; padding: 12px; }
.w-tile { position: relative; aspect-ratio: 1.15; display: grid; place-items: center; border-radius: 14px; background: #0d2a22; border: 1.5px solid rgba(46, 211, 154, 0.7); color: var(--c); font: 800 1.15rem 'Inter', sans-serif; letter-spacing: -0.07em; }
.w-tile i { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* storage */
.storage-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 16px; }
.tree { padding: 28px; font-size: 0.95rem; }
.tree-path { padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); word-break: break-all; }
.tree-path b { color: var(--accent); }
.tree ul { list-style: none; padding: 0; margin: 0; }
.tree li { display: grid; grid-template-columns: auto 150px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.tree li:last-child { border-bottom: 0; }
.branch { color: var(--dim); }
.folder { font-weight: 700; }
.tree-desc { font-size: 0.9rem; }
.drives { display: flex; flex-direction: column; gap: 12px; }
.drive { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; flex: 1; }
.drive-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.05); color: var(--text); }
.drive b { display: block; }
.drive small { font-size: 0.84rem; }
.drive-arrow { color: var(--accent); font-size: 1.1rem; }
.note { margin-top: 16px; color: var(--muted); font-size: 0.92rem; padding: 14px 18px; border-radius: 14px; border: 1px dashed var(--line-2); }

/* install */
.install-grid { display: grid; grid-template-columns: 1.5fr 0.5fr; gap: 16px; align-items: start; }
.install-grid > .card:first-child { padding: 10px 10px 28px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #000; border: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tab { flex: 1; padding: 10px 14px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 0.9rem; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.tab.active { background: var(--card-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.tab-body { padding: 0 18px; animation: swap 0.4s ease; }
.timeline { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.timeline li { counter-increment: s; position: relative; padding-inline-start: 56px; padding-bottom: 24px; }
.timeline li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; font: 700 0.9rem var(--mono); background: rgba(0, 164, 220, 0.1); color: var(--accent); border: 1px solid rgba(0, 164, 220, 0.3);
}
.timeline li::after { content: ''; position: absolute; inset-inline-start: 17.5px; top: 42px; bottom: 6px; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline li:last-child { padding-bottom: 0; }
.timeline b { display: block; margin: 5px 0 4px; font-size: 1.02rem; }
.timeline p { font-size: 0.95rem; }
.timeline li > p:only-child { padding-top: 6px; color: var(--text); }
.callout { padding: 14px 16px; border-radius: 12px; background: rgba(245, 184, 65, 0.08); border: 1px solid rgba(245, 184, 65, 0.25); color: #f7d58e; margin-bottom: 24px; font-size: 0.95rem; }
.code { position: relative; border-radius: 14px; background: #000; border: 1px solid var(--line); margin-bottom: 14px; text-align: left; }
.code pre { margin: 0; padding: 18px 20px; padding-right: 84px; overflow-x: auto; font: 0.86rem/1.7 var(--mono); color: #cfe7f5; }
.copy { position: absolute; top: 10px; right: 10px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card-2); font-size: 0.78rem; font-family: var(--font); transition: border-color 0.2s, color 0.2s; }
.copy:hover { border-color: var(--accent); }
.copy.ok { color: var(--ok); border-color: var(--ok); }
.req { padding: 26px; }
.req h3 { font-size: 1.1rem; margin-bottom: 18px; }
.req dl { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.req dd { margin: 2px 0 0; font-weight: 600; font-size: 0.95rem; }

/* release */
.release { padding: 34px; background: radial-gradient(600px 240px at 100% 0%, rgba(0, 164, 220, 0.12), transparent 70%), linear-gradient(180deg, var(--card-2), var(--card)); }
.rel-head { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; }
.rel-head img { border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2); }
.rel-head h3 { font-size: 1.5rem; margin-top: 8px; direction: ltr; text-align: start; }
.rel-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 3px 10px; border-radius: 8px; font-size: 0.78rem; background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--line); }
.tag-live { color: var(--ok); border-color: rgba(46, 211, 154, 0.3); }
.tag-pre { color: #f5b841; border-color: rgba(245, 184, 65, 0.3); }
.tag-stable { color: #35c5f4; border-color: rgba(53, 197, 244, 0.3); }
.rel-meta { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1px; margin: 0 0 26px; border-radius: 14px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.rel-meta > div { padding: 14px 18px; background: #000; min-width: 0; }
.rel-meta dd { margin: 4px 0 0; font-size: 0.88rem; overflow-wrap: anywhere; text-align: start; }
.release .cta-row { margin-bottom: 22px; }

/* cta */
.cta { text-align: center; padding: 140px 0 120px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta img { border-radius: 18px; box-shadow: 0 0 0 1px var(--line-2), 0 0 80px rgba(0, 164, 220, 0.45); }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.cta .btn { margin-top: 10px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-2); }
.foot-in { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 32px; align-items: start; }
.foot-brand p { margin-top: 10px; }
.legal { line-height: 1.7; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .pills, .cta-row { justify-content: center; }
  .hero-visual { min-height: 560px; }
  .stack-grid, .sync-grid, .widget-band, .storage-grid, .install-grid { grid-template-columns: 1fr; }
  .svc-panel { position: static; }
  .sync-side { border-inline-start: 0; border-top: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
  .release .cta-row { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; padding: 12px 16px 20px; gap: 2px;
    background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  }
  .menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .burger { display: flex; }
  .nav-actions .btn { display: none; }
  .nav-actions { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  .section { padding-top: 88px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat { padding: 20px 18px; }
  .stat b { font-size: 1.6rem; }
  .bento { grid-template-columns: 1fr; }
  .feat.wide { grid-column: auto; }
  .hero-visual { min-height: 520px; }
  .orbit::before, .orbit::after, .orbit span { display: none; }
  .phone { width: 270px; height: 550px; }
  .diagram { margin: 16px; min-height: 380px; }
  .node { padding: 8px 10px; }
  .node .glyph { font-size: 16px; }
  .sync-side, .release, .widget-band, .tree, .svc-panel { padding: 22px; }
  .tree li { grid-template-columns: auto 1fr; }
  .tree-desc { grid-column: 2; }
  .w-list { grid-template-columns: 1fr; }
  .w-tile { font-size: 0.9rem; }
  .rel-meta { grid-template-columns: 1fr; }
  .btn { height: 48px; padding: 0 18px; }
  .release .cta-row .btn { flex: 1 1 100%; }
  .svc-tab { grid-template-columns: 40px 1fr auto; padding: 14px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Arabic: letter-spacing breaks cursive joining, and the mono font has no Arabic glyphs */
:root { --mono: 'JetBrains Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace; }
:root[lang='ar'] .eyebrow,
:root[lang='ar'] .svc-panel h4,
:root[lang='ar'] .app-svc-head,
:root[lang='ar'] .live,
:root[lang='ar'] .app-btn,
:root[lang='ar'] .hub,
:root[lang='ar'] .sync-status,
:root[lang='ar'] .addr .muted { letter-spacing: 0; text-transform: none; }
:root[lang='ar'] .eyebrow { font-size: 0.9rem; }
