@font-face { font-family: 'IBM Plex Serif'; src: url('fonts/IBMPlexSerif-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Serif'; src: url('fonts/IBMPlexSerif-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Serif'; src: url('fonts/IBMPlexSerif-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('fonts/IBMPlexSans-Variable.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/IBMPlexMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/IBMPlexMono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/IBMPlexMono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('fonts/IBMPlexSansArabic-400-arabic.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('fonts/IBMPlexSansArabic-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('fonts/IBMPlexSansArabic-600-arabic.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('fonts/IBMPlexSansArabic-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('fonts/IBMPlexSansArabic-700-arabic.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('fonts/IBMPlexSansArabic-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* Light (primary) */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAFBFD;
  --text: #0B1220;
  --text-secondary: #475569;
  --text-dim: #64748B;
  --border: rgba(15,23,42,0.08);
  --accent: #2563EB;
  --accent-tint: rgba(37,99,235,0.08);
  --success: #16A34A;
  --success-tint: rgba(22,163,74,0.10);
  --warning: #B45309;
  --warning-tint: rgba(245,158,11,0.14);
  --critical: #DC2626;
  --critical-tint: rgba(220,38,38,0.09);
  --shadow: 0 20px 48px rgba(15,23,42,0.08);
  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-ui: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
/* Committed to light mode only, by explicit request -- no dark-mode
   media query or [data-theme] override, so this renders light
   regardless of the viewer's system/browser preference. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-ui); -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; }

/* ---- Top bar ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; max-width: 1080px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 32px; height: 32px; display: block; }
.brand-names { display: flex; align-items: baseline; gap: 9px; }
.brand-en { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.005em; }
.brand-ar { font-family: var(--font-ar); font-size: 0.95rem; color: var(--text-dim); }
.topbar nav a {
  text-decoration: none; color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
}
.topbar nav a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero { padding: 56px 0 88px; }
.hero-solo { max-width: 680px; margin: 0 auto; text-align: center; }
.eyebrow-ar {
  font-family: var(--font-ar); color: var(--text-dim); font-size: 0.95rem; margin-bottom: 6px; display: block;
}
.eyebrow-en {
  font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
  font-weight: 600; margin-bottom: 18px; display: block; font-family: var(--font-ui);
}
.hero h1 { font-size: 2.9rem; line-height: 1.16; letter-spacing: -0.005em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  margin: 22px auto 0; color: var(--text-secondary); font-size: 1.08rem; line-height: 1.65; max-width: 52ch;
  font-family: var(--font-ui);
}
.hero-cta-row { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff; font-weight: 600; font-size: 0.92rem;
  padding: 13px 24px; border-radius: 8px; text-decoration: none; display: inline-flex;
  align-items: center; gap: 9px; transition: background 0.15s ease; font-family: var(--font-ui);
}
.btn-primary:hover { background: #1D4FC4; }
.hero-meta { font-size: 0.82rem; color: var(--text-dim); font-family: var(--font-mono); }

/* ---- Section shell ---- */
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 1.95rem; }
.section-head p { margin-top: 14px; color: var(--text-secondary); font-size: 1rem; line-height: 1.6; font-family: var(--font-ui); }

/* ---- What it does ---- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 780px) { .value-grid { grid-template-columns: 1fr; } }
.value-card { padding: 4px; }
.value-icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 16px; }
.value-icon svg { width: 100%; height: 100%; }
.value-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.value-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; font-family: var(--font-ui); }

/* ---- Four layers ---- */
.layers { display: flex; flex-direction: column; gap: 2px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.layer-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 26px 28px; background: var(--surface);
  align-items: start;
}
.layer-row:nth-child(even) { background: var(--surface-2); }
@media (max-width: 700px) { .layer-row { grid-template-columns: 56px 1fr; padding: 20px; gap: 16px; } }
.layer-num {
  font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600; color: var(--accent); line-height: 1;
}
.layer-body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.layer-body p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; max-width: 62ch; font-family: var(--font-ui); }
.layer-tag {
  display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-dim); border: 1px solid var(--border); padding: 3px 9px; border-radius: 5px;
}

/* ---- Bounded autonomy ---- */
.autonomy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 780px) { .autonomy-grid { grid-template-columns: 1fr; } }
.tier-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px;
  border-top: 3px solid var(--tier-color, var(--accent)); box-shadow: var(--shadow);
}
.tier-card.medium { --tier-color: var(--success); }
.tier-card.high { --tier-color: var(--warning); }
.tier-card.timeout { --tier-color: var(--critical); }
.tier-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--tier-color, var(--accent)); font-weight: 600; margin-bottom: 10px; display: block;
}
.tier-card h3 { font-size: 1rem; margin-bottom: 8px; }
.tier-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; font-family: var(--font-ui); }
.autonomy-rule {
  margin: 32px auto 0; max-width: 640px; text-align: center; color: var(--text-secondary);
  font-size: 0.92rem; line-height: 1.6; padding: 18px 24px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface); font-family: var(--font-ui);
}
.autonomy-rule strong { color: var(--text); font-family: var(--font-display); }

/* ---- Downloads ---- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 780px) { .platform-grid { grid-template-columns: 1fr; } }
.platform-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 30px 26px; display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: var(--shadow);
}
.platform-icon { width: 38px; height: 38px; margin-bottom: 16px; color: var(--text); }
.platform-icon svg { width: 100%; height: 100%; }
.platform-card.disabled { opacity: 0.6; box-shadow: none; }
.platform-name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; margin-bottom: 4px; }
.platform-sub { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 22px; font-family: var(--font-ui); }
.btn-download {
  width: 100%; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.9rem;
  padding: 12px 20px; border-radius: 8px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-ui);
}
.btn-download:hover { background: #1D4FC4; }
.pill-soon {
  width: 100%; background: transparent; color: var(--text-dim); font-weight: 600; font-size: 0.82rem;
  padding: 12px 20px; border-radius: 8px; border: 1px dashed var(--border); font-family: var(--font-ui);
}
.checksum { margin-top: 14px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); word-break: break-all; }

.footer { padding: 40px 0 56px; text-align: center; color: var(--text-dim); font-size: 0.8rem; font-family: var(--font-ui); }
.footer a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Phone screens ---- */
@media (max-width: 520px) {
  .wrap, .topbar { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 24px 0 56px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-sub { font-size: 0.96rem; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 1.5rem; }
  .layer-row { grid-template-columns: 1fr; gap: 8px; }
  .layer-num { font-size: 1.3rem; }
  .brand-en { font-size: 1rem; }
  .brand-ar { display: none; }
}

/* ---- Desktop-only download (2026-09-05): a phone can't run a .dmg/
   .exe/.AppImage, so rather than offer a button that just fails or
   confuses, JS below (real OS detection, not a viewport-width guess --
   a resized desktop window should still see real download buttons)
   swaps every download control for a plain notice. ---- */
.mobile-notice {
  font-family: var(--font-ui); font-size: 0.92rem; color: var(--text-secondary);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; line-height: 1.55; text-align: left;
}
