
  :root {
    --ink: #0A1628;
    --ink-soft: #1A2942;
    --gold: #B8935A;
    --gold-soft: #D4B681;
    --gold-pale: #E8DDC4;
    --cream: #F5F1E8;
    --paper: #FAF7F0;
    --muted: #6B7280;
    --hairline: #D4CDB8;
    --hairline-soft: #E8E1CE;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html {
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
  }

  body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    position: relative;
  }

  /* Grain texture overlay (very subtle) */
  body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    mix-blend-mode: multiply;
  }

  /* Thin top progress rule */
  .progress {
    position: fixed;
    top: 0; right: 0;
    height: 2px;
    background: var(--gold);
    width: 0%;
    z-index: 100;
  }

  /* Fixed side index */
  .index {
    position: fixed;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 2px;
    display: flex;
    gap: 18px;
    align-items: center;
  }
  .index-num {
    color: var(--ink);
    font-weight: 600;
    transition: color 0.3s;
  }
  .index-num.active { color: var(--gold); }
  .index-line {
    width: 1px;
    height: 30px;
    background: var(--hairline);
  }

  /* Top bar - magazine style */
  .topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 80;
    background: linear-gradient(180deg, var(--cream) 0%, rgba(245,241,232,0.92) 80%, transparent 100%);
    backdrop-filter: blur(4px);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--ink);
    text-transform: uppercase;
  }
  .topbar-mark {
    font-family: 'Reem Kufi', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
  }
  .topbar-mark::before {
    content: "—";
    color: var(--gold);
    margin-left: 8px;
  }

  /* ============ HERO ============ */
  .hero {
    min-height: 100vh;
    padding: 140px 8vw 80px 8vw;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
  }

  .hero-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ink);
    margin-bottom: 60px;
  }
  .hero-meta strong { color: var(--ink); font-weight: 600; }

  .hero-title {
    font-family: 'Reem Kufi', sans-serif;
    font-size: clamp(56px, 10vw, 144px);
    font-weight: 600;
    line-height: 0.95;
    color: var(--ink);
    letter-spacing: -2px;
    margin-bottom: 40px;
  }
  .hero-title em {
    font-family: 'Amiri', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
    display: block;
    font-size: 0.78em;
    margin-top: 0.05em;
  }

  .hero-lede {
    max-width: 580px;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 80px;
    font-weight: 400;
  }
  .lede-brand {
    font-family: 'Reem Kufi', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.5px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink);
    padding-top: 28px;
  }
  .hero-stat {
    padding: 0 24px;
    border-left: 1px solid var(--hairline);
  }
  .hero-stat:first-child { padding-right: 0; }
  .hero-stat:last-child { border-left: none; padding-left: 0; }
  .hero-stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .hero-stat-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
  }
  .hero-stat-unit {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 12px;
    color: var(--muted);
  }

  /* ============ CHAPTERS ============ */
  .chapter {
    padding: 100px 8vw 80px 8vw;
    position: relative;
    z-index: 2;
  }

  .chapter-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--ink);
    align-items: end;
  }

  .chapter-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 120px;
    font-weight: 300;
    line-height: 0.85;
    color: var(--gold);
    letter-spacing: -4px;
  }

  .chapter-title-block {
    padding-bottom: 8px;
  }
  .chapter-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .chapter-title {
    font-family: 'Reem Kufi', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.5px;
  }

  /* Body content */
  .body-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    max-width: 1200px;
  }
  .body-aside {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.6;
    padding-top: 6px;
  }
  .body-main {
    font-size: 17px;
    line-height: 1.85;
    color: var(--ink-soft);
    max-width: 680px;
  }
  .body-main p {
    margin-bottom: 20px;
  }
  .body-main p::first-letter {
    /* no drop cap here */
  }
  .body-main strong {
    color: var(--ink);
    font-weight: 700;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 1px;
  }

  /* ============ INLINE KPI STATS (editorial, not boxes) ============ */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 60px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    padding: 32px 0;
  }
  .stat-cell {
    padding: 0 24px;
    border-left: 1px solid var(--hairline);
  }
  .stat-cell:first-child { padding-right: 0; }
  .stat-cell:last-child { border-left: none; padding-left: 0; }
  .stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .stat-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
  }
  .stat-value.gold { color: var(--gold); }
  .stat-sub {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 12px;
    color: var(--muted);
  }

  /* ============ STEPS ============ */
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 50px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }
  .step {
    padding: 36px 28px;
    border-left: 1px solid var(--hairline);
    position: relative;
  }
  .step:last-child { border-left: none; }
  .step-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 18px;
    font-weight: 600;
  }
  .step-title {
    font-family: 'Reem Kufi', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
    line-height: 1.2;
  }
  .step-desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink-soft);
  }

  /* ============ PULL QUOTE ============ */
  .pull-quote {
    margin: 60px 0;
    padding: 36px 40px;
    border-right: 3px solid var(--gold);
    background: var(--paper);
    position: relative;
  }
  .pull-quote-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
  }
  .pull-quote-text {
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink);
  }
  .pull-quote-text strong {
    color: var(--gold);
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
  }

  /* ============ CHART BLOCK ============ */
  .chart {
    margin: 50px 0;
    padding: 32px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }
  .chart-figure {
    margin-bottom: 16px;
    overflow: hidden;
  }
  .chart-figure svg {
    display: block;
    width: 100%;
    height: auto;
  }
  .chart-caption {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    padding-top: 16px;
    border-top: 1px solid var(--hairline);
    max-width: 700px;
  }
  .chart-caption strong {
    color: var(--ink);
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
    margin-left: 4px;
  }

  /* ============ TABLES - financial document style ============ */
  .fin-table-wrap {
    margin: 40px 0;
    overflow-x: auto;
  }
  .fin-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    background: transparent;
  }
  .fin-table thead th {
    background: var(--ink);
    color: var(--cream);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 14px 12px;
    text-align: center;
    border: none;
    text-transform: uppercase;
  }
  .fin-table thead th:first-child { text-align: right; }
  .fin-table tbody td {
    padding: 11px 12px;
    text-align: center;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink-soft);
    background: transparent;
  }
  .fin-table tbody tr:hover td {
    background: var(--paper);
    color: var(--ink);
  }
  .fin-table .c-mo-num {
    font-weight: 600;
    color: var(--gold);
    text-align: right;
  }
  .fin-table .c-num { font-variant-numeric: tabular-nums; }
  .fin-table .c-emph { color: var(--ink); font-weight: 600; }
  .fin-table .c-sar { color: var(--muted); font-size: 12px; }
  .fin-table .c-ratio { color: var(--gold); font-weight: 600; }
  .fin-table .totals-row td {
    background: var(--ink);
    color: var(--cream);
    font-weight: 600;
    border-bottom: none;
  }
  .fin-table .totals-row .c-sar { color: var(--gold-soft); }

  /* Daily table - tighter */
  .daily-table {
    font-size: 11.5px;
  }
  .daily-table thead th {
    padding: 10px 8px;
    font-size: 10px;
    background: var(--ink);
  }
  .daily-table tbody td {
    padding: 6px 8px;
  }
  .daily-table .c-day { color: var(--muted); font-size: 10.5px; }
  .daily-table .c-mo, .daily-table .c-d { color: var(--muted); }
  .daily-table .c-lv { color: var(--gold); font-weight: 600; }
  .daily-table .c-wd { color: var(--gold); font-weight: 600; }
  .daily-table tr.month-end td {
    background: var(--gold-pale);
    color: var(--ink);
    font-weight: 600;
    border-top: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
  }
  .daily-table tr.month-end .c-sar { color: var(--ink-soft); }

  /* ============ DISCLAIMER (editorial, not dark box) ============ */
  .disclaimer {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    position: relative;
  }
  .disclaimer-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 600;
  }
  .disclaimer-text {
    font-family: 'Amiri', serif;
    font-size: 17px;
    line-height: 1.9;
    color: var(--ink);
    max-width: 760px;
  }
  .disclaimer-text em {
    color: var(--gold);
    font-style: italic;
  }

  /* ============ ENDING ============ */
  .ending {
    padding: 140px 8vw 100px 8vw;
    background: var(--ink);
    color: var(--cream);
    position: relative;
    z-index: 2;
  }
  .ending-mark {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ink-soft);
  }
  .ending-title {
    font-family: 'Reem Kufi', sans-serif;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--cream);
    letter-spacing: -1px;
    margin-bottom: 30px;
  }
  .ending-title em {
    font-family: 'Amiri', serif;
    font-style: italic;
    color: var(--gold);
    display: block;
    font-size: 0.7em;
    margin-top: 0.1em;
  }
  .ending-lede {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(245, 241, 232, 0.75);
    max-width: 600px;
    margin-bottom: 60px;
  }
  .ending-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink-soft);
    padding-top: 32px;
  }
  .ending-stat {
    padding: 0 24px;
    border-left: 1px solid var(--ink-soft);
  }
  .ending-stat:first-child { padding-right: 0; }
  .ending-stat:last-child { border-left: none; padding-left: 0; }
  .ending-stat-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
  }
  .ending-stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: rgba(245, 241, 232, 0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }
  .ending-sign {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--ink-soft);
    display: flex;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: rgba(245, 241, 232, 0.4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  /* ============ REVEAL ANIMATION (subtle) ============ */
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 900px) {
    .index { display: none; }
    .topbar { padding: 14px 20px; font-size: 10px; }
    .topbar-mark { font-size: 15px; }
    .hero { padding: 100px 6vw 60px 6vw; }
    .hero-meta { font-size: 9px; flex-direction: column; gap: 6px; }
    .hero-stats {
      grid-template-columns: 1fr;
      gap: 24px;
      padding-top: 24px;
    }
    .hero-stat {
      border-left: none;
      border-bottom: 1px solid var(--hairline);
      padding: 0 0 18px 0;
    }
    .hero-stat:last-child { border-bottom: none; }
    .chapter { padding: 60px 6vw 50px 6vw; }
    .chapter-header {
      grid-template-columns: 1fr;
      gap: 16px;
      margin-bottom: 40px;
      padding-bottom: 20px;
    }
    .chapter-num { font-size: 80px; }
    .body-grid { grid-template-columns: 1fr; gap: 20px; }
    .body-aside { font-size: 9px; }
    .body-main { font-size: 15.5px; }
    .stats-row {
      grid-template-columns: 1fr 1fr;
      gap: 0;
      padding: 24px 0;
    }
    .stat-cell {
      padding: 16px 14px;
      border-left: 1px solid var(--hairline);
      border-bottom: 1px solid var(--hairline);
    }
    .stat-cell:nth-child(2n) { border-left: none; }
    .stat-cell:nth-last-child(-n+2) { border-bottom: none; }
    .steps { grid-template-columns: 1fr; }
    .step {
      border-left: none;
      border-bottom: 1px solid var(--hairline);
    }
    .step:last-child { border-bottom: none; }
    .fin-table { font-size: 12px; }
    .fin-table thead th { padding: 10px 6px; font-size: 10px; }
    .fin-table tbody td { padding: 8px 6px; }
    .daily-table { font-size: 10.5px; }
    .daily-table thead th { padding: 8px 5px; font-size: 9px; }
    .daily-table tbody td { padding: 5px 5px; }
    .ending { padding: 80px 6vw 60px 6vw; }
    .ending-stats { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
    .ending-stat {
      border-left: none;
      border-bottom: 1px solid var(--ink-soft);
      padding: 0 0 16px 0;
    }
    .ending-stat:last-child { border-bottom: none; }
    .ending-sign { flex-direction: column; gap: 8px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }
  :root { --bg:#070B14; --bg-2:#0A0E1A; --accent:#2DD4BF;
    --accent-soft:rgba(45,212,191,0.14); --ink-dark:#E8EEF5;
    --muted-dark:rgba(232,238,245,0.58); --hairline-dark:rgba(232,238,245,0.14); }
  .hero-brand { font-family:'Reem Kufi',sans-serif; font-size:14px; letter-spacing:4px;
    color:var(--gold); text-transform:uppercase; margin-bottom:28px; font-weight:600; }
  .ecosystem { display:grid; grid-template-columns:repeat(5,1fr); gap:0; margin:44px 0 0;
    border-top:1px solid var(--ink); }
  .eco-item { padding:18px 20px; border-left:1px solid var(--hairline);
    font-family:'IBM Plex Sans Arabic',sans-serif; font-size:13px; color:var(--ink-soft); line-height:1.6; }
  .eco-item:last-child { border-left:none; }
  .eco-item b { display:block; font-family:'IBM Plex Mono',monospace; font-size:10px;
    letter-spacing:1.5px; color:var(--gold); text-transform:uppercase; margin-bottom:6px; }
  .chapter.dark { background:radial-gradient(120% 80% at 82% -10%,rgba(45,212,191,0.12),transparent 58%),
    radial-gradient(110% 70% at 0% 112%,rgba(184,147,90,0.12),transparent 60%),var(--bg); color:var(--ink-dark); }
  .chapter.dark .chapter-title,.chapter.dark .body-main,.chapter.dark .body-main p { color:var(--ink-dark); }
  .chapter.dark .body-main strong { color:#FFF; border-color:var(--accent); }
  .chapter.dark .chapter-num { color:var(--accent); }
  .chapter.dark .chapter-header { border-color:var(--ink-dark); }
  .chapter.dark .body-aside { color:var(--muted-dark); }
  .chapter.dark .stat-label,.chapter.dark .step-num { color:var(--accent); }
  .chapter.dark .stats-row,.chapter.dark .steps { border-color:var(--hairline-dark); }
  .chapter.dark .stat-cell,.chapter.dark .step { border-color:var(--hairline-dark); }
  .chapter.dark .stat-value { color:var(--ink-dark); }
  .chapter.dark .stat-value.gold { color:var(--gold); }
  .chapter.dark .stat-sub,.chapter.dark .step-desc { color:var(--muted-dark); }
  .engine-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin:52px 0;
    border-top:1px solid var(--hairline-dark); border-bottom:1px solid var(--hairline-dark); }
  .engine { padding:34px 30px; border-left:1px solid var(--hairline-dark); position:relative; overflow:hidden; transition:background .4s; }
  .engine:nth-child(3n) { border-left:none; }
  .engine::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(45,212,191,0.10),transparent 45%); opacity:0; transition:opacity .4s; }
  .engine:hover::before { opacity:1; }
  .engine-num { font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:2px; color:var(--accent); margin-bottom:16px; font-weight:600; }
  .engine-title { font-family:'Reem Kufi',sans-serif; font-size:21px; font-weight:600; color:var(--ink-dark); margin-bottom:12px; line-height:1.2; }
  .engine-desc { font-size:14px; line-height:1.7; color:var(--muted-dark); position:relative; }
  .engine-tag { font-family:'IBM Plex Mono',monospace; font-size:10px; color:var(--gold); letter-spacing:1px; margin-top:14px; text-transform:uppercase; position:relative; }
  .ticker { display:flex; flex-wrap:wrap; align-items:center; gap:8px 26px; margin:8px 0 48px;
    font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--muted-dark); letter-spacing:1px; }
  .ticker b { color:var(--accent); font-weight:600; }
  .defense-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:0; margin:46px 0;
    border-top:1px solid var(--hairline-dark); border-bottom:1px solid var(--hairline-dark); }
  .defense { padding:20px 22px; border-left:1px solid var(--hairline-dark); }
  .defense:nth-child(4n) { border-left:none; }
  .defense-num { font-family:'IBM Plex Mono',monospace; font-size:10px; color:var(--accent); letter-spacing:2px; margin-bottom:10px; }
  .defense-name { font-family:'IBM Plex Sans Arabic',sans-serif; font-size:13.5px; color:var(--ink-dark); line-height:1.5; }
  .badge-row { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0; }
  .badge { font-family:'IBM Plex Mono',monospace; font-size:10.5px; letter-spacing:1.5px; color:var(--ink-dark);
    border:1px solid var(--hairline-dark); padding:8px 14px; text-transform:uppercase; }
  .badge.gold { color:var(--gold); border-color:rgba(184,147,90,0.5); }
  .badge.accent { color:var(--accent); border-color:rgba(45,212,191,0.5); }
  .uae-callout { margin:40px 0; padding:28px 32px; border-right:3px solid var(--accent); background:rgba(45,212,191,0.06); }
  .uae-callout .label { font-family:'IBM Plex Mono',monospace; font-size:10px; letter-spacing:2px; color:var(--accent); text-transform:uppercase; margin-bottom:12px; font-weight:600; }
  .uae-callout p { font-size:15px; line-height:1.85; color:var(--ink-dark); }
  .chapter.dark .disclaimer { border-color:var(--hairline-dark); }
  .chapter.dark .disclaimer-eyebrow { color:var(--accent); }
  .chapter.dark .disclaimer-text { color:var(--ink-dark); }
  .chapter.dark .disclaimer-text em { color:var(--gold); }
  @media (max-width:900px){ .ecosystem{grid-template-columns:1fr 1fr;}
    .eco-item{border-left:1px solid var(--hairline);border-bottom:1px solid var(--hairline);}
    .eco-item:nth-child(2n){border-left:none;} .eco-item:nth-last-child(-n+2){border-bottom:none;}
    .engine-grid{grid-template-columns:1fr;} .engine{border-left:none;border-bottom:1px solid var(--hairline-dark);}
    .engine:last-child{border-bottom:none;} .defense-grid{grid-template-columns:1fr 1fr;}
    .defense{border-left:1px solid var(--hairline-dark);border-bottom:1px solid var(--hairline-dark);}
    .defense:nth-child(4n){border-left:1px solid var(--hairline-dark);} .defense:nth-child(2n){border-left:none;}
    .defense:nth-last-child(-n+2){border-bottom:none;} }

/* ============ LOGO ============ */
.topbar-logo { height: 28px; width: auto; display: block; }
.hero-logo { height: 78px; width: auto; margin-bottom: 30px; display: block; }

@media (max-width: 900px) {
  .topbar-logo { height: 20px; }
  .hero-logo { height: 56px; margin-bottom: 22px; }
}

/* ============ HERO ADD-ONS ============ */
.hero-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  font-weight: 600;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 60px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s ease;
}
.btn-accent { background: var(--gold); color: var(--ink); }
.btn-accent:hover { background: #caa46a; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero-trust {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .hero-cta { margin-bottom: 44px; }
  .btn { padding: 12px 22px; font-size: 13px; }
}

.brand-word {
  display: block;
  color: var(--ink);
  letter-spacing: -2px;
}

/* ============ MOBILE NAV ============ */
.menu-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  z-index: 90;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10,22,40,0.25);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.mobile-nav li { margin: 16px 0; }
.mobile-nav a {
  font-family: 'Reem Kufi', sans-serif;
  font-size: 23px;
  font-weight: 600;
  color: var(--ink-dark);
  text-decoration: none;
  transition: color .2s ease;
}
.mobile-nav a:active { color: var(--accent); }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: none;
  border: none;
  color: var(--ink-dark);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.ending-contact {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(245,241,232,0.82);
  margin-top: 28px;
}
.ending-contact a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,147,90,0.5);
}
.ending-contact a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
}

/* ============ SEO / NO-JS FALLBACK ============ */
.no-js .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ============ FAQ ============ */
.faq { display: grid; gap: 0; margin: 36px 0 0; border-top: 1px solid var(--ink); }
.faq-item { padding: 26px 0; border-bottom: 1px solid var(--hairline); }
.faq-q {
  font-family: 'Reem Kufi', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 12px;
  padding-right: 26px;
  position: relative;
}
.faq-q::before {
  content: "?";
  position: absolute;
  right: 0;
  top: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.faq-a { font-size: 15.5px; line-height: 1.85; color: var(--ink-soft); max-width: 680px; }
.faq-a strong { color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }

/* ============ TOPBAR NAV (shared) ============ */
.topbar-nav { display: flex; gap: 26px; align-items: center; }
.topbar-nav a {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0;
  position: relative;
  transition: color .2s ease;
}
.topbar-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.topbar-nav a:hover { color: var(--gold); }
.topbar-nav a:hover::after { width: 100%; }
@media (max-width: 900px) {
  .topbar-nav { display: none; }
}

/* ============ PRELOADER (modern) ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; /* only shown when JS is active (.js) */
  background: #000;
  transition: opacity .6s ease, visibility .6s ease;
}
.js .preloader { display: block; }
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-logo {
  width: clamp(220px, 48vw, 340px);
  height: auto;
  filter: drop-shadow(0 0 26px rgba(184,147,90,.35));
  animation: preloader-pulse 2.2s ease-in-out infinite;
}
@keyframes preloader-pulse {
  0%, 100% { opacity: .82; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.045); }
}

.preloader-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: clamp(30px, 6vh, 56px);
}
.preloader-counter {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-shadow: 0 0 16px rgba(184,147,90,.45);
  line-height: 1;
}
.preloader-pct-sign {
  font-size: .55em;
  opacity: .65;
  margin-inline-start: 3px;
}
.preloader-track {
  width: min(680px, 90vw);
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 3px;
  overflow: hidden;
}
.preloader-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 12px rgba(184,147,90,.6);
}
body.preloading { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .preloader-logo { animation: none; }
}

/* ============ PLANS PAGE ============ */
.plans-hero { min-height: auto; padding: 160px 8vw 50px; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 50px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.plan-card {
  padding: 38px 26px;
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card:last-child { border-left: none; }
.plan-card.featured { background: var(--ink); }
.plan-head { margin-bottom: 24px; }
.plan-name { font-family: 'Reem Kufi', sans-serif; font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.plan-name-en { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.plan-price { font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1; margin-bottom: 14px; }
.plan-card.featured .plan-name,
.plan-card.featured .plan-name-en,
.plan-card.featured .plan-tagline { color: var(--ink-dark); }
.plan-card.featured .plan-price { color: var(--gold); }
.plan-card.featured .plan-period { color: var(--muted-dark); }
.plan-period { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.plan-tagline { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 24px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 30px; flex: 1; }
.plan-features li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.plan-features li::before { content: "—"; position: absolute; right: 0; color: var(--gold); }
.plan-card.featured .plan-features li { color: var(--ink-dark); border-color: var(--hairline-dark); }
.plan-cta { margin-top: auto; width: 100%; }

.contact-band { padding: 90px 8vw; background: var(--ink); color: var(--cream); position: relative; z-index: 2; }
.contact-band .chapter-header { border-color: var(--ink-soft); }
.contact-band .chapter-title { color: var(--cream); }
.contact-band .chapter-num { color: var(--gold); }
.contact-band .chapter-eyebrow { color: var(--muted-dark); }
.contact-channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 40px 0; border-top: 1px solid var(--ink-soft); border-bottom: 1px solid var(--ink-soft); }
.contact-card { padding: 34px 30px; border-left: 1px solid var(--ink-soft); }
.contact-card:last-child { border-left: none; }
.contact-card-label { font-family: 'Reem Kufi', sans-serif; font-size: 20px; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
.contact-card p { font-size: 14px; line-height: 1.7; color: rgba(245,241,232,0.75); margin-bottom: 18px; max-width: 420px; }
.contact-card a { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: var(--cream); text-decoration: none; padding: 6px 0; border-bottom: 1px solid rgba(232,238,245,0.14); }
.contact-card a:hover { color: var(--gold); }
.contact-band .btn-accent { background: var(--gold); color: var(--ink); }

/* ============ CONTACT MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,11,20,0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: modal-fade .25s ease; }
.modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 92vw);
  max-height: 88vh;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(7,11,20,0.5);
  animation: modal-pop .3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.modal-close { position: absolute; top: 14px; left: 18px; background: none; border: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.modal-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 600; }
.modal-title { font-family: 'Reem Kufi', sans-serif; font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.15; margin-bottom: 12px; }
.modal-lede { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 26px; }
.modal-body { display: grid; gap: 0; }
.contact-channel { padding: 22px 0; border-top: 1px solid var(--hairline); }
.contact-channel:first-child { border-top: none; padding-top: 0; }
.contact-channel-label { font-family: 'Reem Kufi', sans-serif; font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.contact-channel-desc { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 16px; }
.contact-rows { display: grid; gap: 10px; }
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.contact-row:hover { border-color: var(--gold); transform: translateY(-1px); }
.contact-row-k { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.contact-row-v { font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: var(--ink); font-weight: 500; }
body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-dialog { animation: none; }
}

@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { border-left: none; border-bottom: 1px solid var(--hairline); }
  .plan-card:last-child { border-bottom: none; }
  .contact-channels { grid-template-columns: 1fr; }
  .contact-card { border-left: none; border-bottom: 1px solid var(--ink-soft); }
  .contact-card:last-child { border-bottom: none; }
  .modal-dialog { padding: 28px 22px; }
}

/* ============ BRAND ALIASES (SEO, subtle) ============ */
.brand-aliases {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  text-align: center;
  padding: 16px 20px 0;
  opacity: 0.65;
}
