:root {
  --blue: #2ea3f2;
  --blue-bright: #6cc4ff;
  --blue-dim: rgba(46,163,242,0.16);
  --violet: #8b6bff;
  --amber: #ffb648;
  --bg: #090c13;
  --bg-alt: #0d111b;
  --bg-elevated: #131828;
  --bg-elevated-hi: #1a2136;
  --border: rgba(255,255,255,0.09);
  --border-hi: rgba(255,255,255,0.18);
  --text: #eef1f8;
  --text-dim: #9aa2b8;
  --text-faint: #6b7286;
  --radius: 18px;
  --radius-sm: 12px;

  /* Dashboard chart palette — see docs/releases/ dataviz notes: brand blue
     for single-hue meters/lines (contrast-validated alone), a deeper
     validated blue paired with violet for the one 2-series chart (network),
     and fixed status colors used only for real threshold meaning. */
  --chart-blue: #2ea3f2;
  --chart-blue-2: #256abf;
  --chart-violet: #8b6bff;
  --chart-track: rgba(46,163,242,0.16);
  --status-good: #0ca30c;
  --status-warning: #fab219;
  --status-critical: #d03b3b;
  --chart-grid: rgba(255,255,255,0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body, [dir="rtl"] body {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
}
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}
a { color: var(--blue-bright); text-decoration: none; }
a:hover { color: var(--blue); }
p { color: var(--text-dim); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
::selection { background: rgba(46,163,242,0.35); color: #fff; }

/* RTL — logical flips for the handful of physically-directional rules.
   Everything else (flexbox, grid, text-align via inherited defaults) is
   already direction-aware by default in modern browsers. */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .segment-panel li,
[dir="rtl"] .explorer-panel li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .segment-panel li::before { left: auto; right: 0; }
[dir="rtl"] .explorer-panel li::before { left: auto; right: 0; content: "←"; }
[dir="rtl"] .option-card { text-align: right; }
[dir="rtl"] .field-website { left: auto; right: -9999px; }
[dir="rtl"] .float-cta { right: auto; left: 24px; }
[dir="rtl"] .core-bar-fill { border-radius: 0 4px 4px 0; }
[dir="rtl"] .drilldown-table th, [dir="rtl"] .drilldown-table td { text-align: right; }
[dir="rtl"] .core-bar-row .core-value { text-align: left; }
[dir="rtl"] .meter-label { align-self: flex-end; }
[dir="rtl"] .footer-lang [lang="en"] { display: block; direction: ltr; text-align: left; margin-top: 4px; }

.kicker {
  display: block; font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-bright); margin-bottom: 12px;
}
[dir="rtl"] .kicker { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 32px; margin-bottom: 12px; text-wrap: balance; }
.section-head p { font-size: 15.5px; margin: 0; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Header */
header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9,12,19,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; display: block; filter: brightness(0) invert(1); }
.brand .badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--blue-bright); background: var(--blue-dim);
  border: 1px solid rgba(46,163,242,0.3);
  padding: 3px 9px; border-radius: 100px;
}
nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: 14px; color: var(--text-dim); font-weight: 500; }
nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--text-dim); background: transparent;
  border: 1px solid var(--border-hi); border-radius: 100px;
  padding: 7px 13px; min-height: 36px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.lang-switch:hover { color: var(--text); border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }
.lang-switch svg { width: 16px; height: 16px; flex: none; }
[dir="rtl"] .lang-switch { font-family: 'IBM Plex Sans Arabic', sans-serif; }

/* Below this, logo + nav (5 links) + language switcher + CTA no longer fit
   one row without wrapping/overflowing — confirmed at 768px (iPad portrait).
   Nav drops first; the language switcher and CTA live outside <nav> (see
   .header-actions) so they stay visible regardless. */
@media (max-width: 900px) { nav { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  padding: 12px 24px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
[dir="rtl"] .btn { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 6px 20px rgba(46,163,242,0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(46,163,242,0.42); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text-dim); border-color: var(--border-hi); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.4); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 15px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 120px 0 96px; text-align: center; }
.hero-spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(680px circle at var(--mx, 50%) var(--my, 10%), rgba(46,163,242,0.22), transparent 62%);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 85% -10%, rgba(139,107,255,0.16), transparent 60%);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(700px 500px at 50% 20%, black, transparent 75%);
}
.hero-inner { position: relative; }
.hero .eyebrow {
  display: inline-block; font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--blue-bright); background: var(--blue-dim);
  border: 1px solid rgba(46,163,242,0.3);
  padding: 7px 16px; border-radius: 100px; margin-bottom: 28px;
}
[dir="rtl"] .hero .eyebrow { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; }
.hero-title { font-size: 48px; line-height: 1.18; margin: 0 auto 22px; max-width: 780px; text-wrap: balance; }
.hero-title .line { display: block; }
.rotator { display: grid; justify-content: center; min-height: 1.25em; }
.rotator-item {
  grid-area: 1 / 1; opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
  background: linear-gradient(90deg, var(--blue-bright), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rotator-item.is-active { opacity: 1; transform: none; }
.hero p.lede { font-size: 17.5px; color: var(--text-dim); max-width: 560px; margin: 0 auto 36px; }
.hero .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Floating CTA */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  opacity: 0; transform: translateY(16px) scale(.95); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 12px 30px rgba(46,163,242,0.4);
}
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* Segments */
section.segments { padding: 100px 0 40px; }
.segments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.segment-panel {
  position: relative;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color .25s ease, transform .25s ease;
}
.segment-panel:hover { border-color: rgba(46,163,242,0.35); transform: translateY(-3px); }
.segment-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 13px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--blue-dim), rgba(139,107,255,0.16));
  color: var(--blue-bright);
}
.segment-icon svg { width: 24px; height: 24px; }
.segment-panel h3 { font-size: 20px; margin-bottom: 10px; }
.segment-panel p { font-size: 14.5px; margin: 0 0 18px; line-height: 1.7; }
.segment-panel ul { margin: 0; padding: 0; list-style: none; }
.segment-panel li {
  font-size: 13.5px; color: var(--text); margin-bottom: 10px; padding-left: 22px; position: relative;
}
.segment-panel li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 2px;
  background: var(--blue-bright);
}

/* Capability explorer (tabs) */
section.explorer { padding: 96px 0; }
.explorer-shell {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 10px;
}
.explorer-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; }
.explorer-tab {
  flex: 1 1 auto;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13.5px;
  color: var(--text-dim); background: transparent; border: none;
  padding: 12px 16px; border-radius: var(--radius-sm); cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
[dir="rtl"] .explorer-tab { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.explorer-tab:hover { color: var(--text); }
.explorer-tab.is-active { color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.explorer-panels { position: relative; padding: 8px; }
.explorer-panel {
  display: none;
  padding: 30px 26px 26px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}
.explorer-panel.is-active { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: start; }
.explorer-panel h3 { font-size: 21px; margin-bottom: 12px; }
.explorer-panel p { font-size: 14.5px; margin: 0; line-height: 1.75; }
.explorer-panel ul { margin: 0; padding: 0; list-style: none; }
.explorer-panel li {
  font-size: 13.5px; color: var(--text); margin-bottom: 12px; padding-left: 24px; position: relative;
}
.explorer-panel li::before { content: "→"; position: absolute; left: 0; top: -1px; color: var(--blue-bright); }
@media (max-width: 700px) { .explorer-panel.is-active { grid-template-columns: 1fr; } }

/* Process timeline */
section.process { padding: 96px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-grid::before {
  content: ""; position: absolute; top: 21px; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi) 15%, var(--border-hi) 85%, transparent);
}
.process-step { position: relative; }
.process-step .num {
  position: relative; z-index: 1;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px;
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet));
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--bg-alt);
}
.process-step h3 { font-size: 16px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; margin: 0; line-height: 1.65; }
@media (max-width: 760px) { .process-grid { grid-template-columns: 1fr; } .process-grid::before { display: none; } }

/* Wizard */
section.wizard-section { padding: 100px 0; }
.wizard {
  max-width: 640px; margin: 0 auto;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 40px 34px;
}
.wizard-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 36px; }
.wizard-progress-step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wizard-progress-step .num {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  background: var(--bg-elevated-hi); color: var(--text-faint); border: 1px solid var(--border-hi);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.wizard-progress-step .label { font-size: 11px; color: var(--text-faint); font-weight: 600; letter-spacing: 0.04em; }
.wizard-progress-step.is-active .num { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; border-color: transparent; }
.wizard-progress-step.is-active .label { color: var(--text); }
.wizard-progress-step.is-done .num { background: rgba(46,163,242,0.18); color: var(--blue-bright); border-color: rgba(46,163,242,0.4); }
.wizard-progress-step.is-done .label { color: var(--text-dim); }
.wizard-progress-line { width: 44px; height: 1px; background: var(--border-hi); margin: 0 6px 20px; }
@media (max-width: 520px) { .wizard-progress-step .label { display: none; } .wizard-progress-line { width: 22px; } .wizard { padding: 30px 22px 26px; } }

.wizard-step { display: none; }
.wizard-step.is-active { display: block; animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
[dir="rtl"] .wizard-step.is-active { animation: stepInRtl .35s ease; }
@keyframes stepInRtl { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.wizard-step h3 { font-size: 20px; margin-bottom: 6px; text-align: center; }
.wizard-hint { font-size: 13px; text-align: center; margin: 0 0 22px; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.option-card {
  text-align: left; cursor: pointer;
  background: var(--bg-elevated-hi); border: 1px solid var(--border-hi); border-radius: var(--radius-sm);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
  font-family: 'Inter', sans-serif;
}
[dir="rtl"] .option-card { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.option-card:hover { border-color: rgba(46,163,242,0.4); transform: translateY(-2px); }
.option-card.is-selected { border-color: var(--blue); background: linear-gradient(135deg, rgba(46,163,242,0.16), rgba(139,107,255,0.12)); }
.option-title { font-weight: 700; font-size: 15px; color: var(--text); }
.option-desc { font-size: 12.5px; color: var(--text-dim); }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; justify-content: center; }
.chip {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 13px;
  color: var(--text-dim); background: var(--bg-elevated-hi); border: 1px solid var(--border-hi);
  padding: 10px 16px; border-radius: 100px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
[dir="rtl"] .chip { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.chip:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.chip.is-selected { color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); border-color: transparent; }

.field { margin-bottom: 16px; margin-top: 22px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field label .optional { font-weight: 400; color: var(--text-faint); }
.field input, .field textarea {
  width: 100%; font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--text); background: var(--bg-alt);
  border: 1px solid var(--border-hi); border-radius: 10px; padding: 11px 14px;
  resize: vertical;
}
[dir="rtl"] .field input, [dir="rtl"] .field textarea { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field-website { position: absolute; left: -9999px; top: -9999px; }

.review-card {
  background: var(--bg-alt); border: 1px solid var(--border-hi); border-radius: var(--radius-sm);
  padding: 20px 22px; margin: 22px 0; font-size: 13.5px;
}
.review-card dt { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin: 14px 0 4px; }
.review-card dt:first-child { margin-top: 0; }
.review-card dd { margin: 0; color: var(--text); }

.wizard-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }
.form-msg { font-size: 13px; margin: 0 0 6px; display: none; text-align: center; }
.form-msg.is-error { color: #ff8a80; display: block; }
.form-msg.is-success { color: #6ee7b7; display: block; }

.wizard-success { display: none; text-align: center; padding: 20px 0 8px; }
.wizard-success.is-visible { display: block; animation: stepIn .4s ease; }
.success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; font-size: 26px; color: #fff;
  background: linear-gradient(135deg, #34d399, #22c55e); margin-bottom: 18px;
}
.wizard-success h3 { font-size: 20px; margin-bottom: 8px; }
.wizard-success p { font-size: 14px; margin: 0; }

/* Status Dashboard */
section.dashboard { padding: 96px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dash-shell { max-width: 980px; margin: 0 auto; }
.dash-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 22px; font-size: 12.5px; color: var(--text-faint); font-family: 'IBM Plex Mono', monospace;
}
.dash-status { display: inline-flex; align-items: center; gap: 8px; }
.dash-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #555; }
.dash-status .dot.is-online { background: var(--status-good); box-shadow: 0 0 0 3px rgba(12,163,12,0.22); }
.dash-status .dot.is-offline { background: var(--status-critical); box-shadow: 0 0 0 3px rgba(208,59,59,0.22); }

.meter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 16px; }
.meter-card {
  text-align: center; font-family: 'Inter', sans-serif; cursor: pointer;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px 14px; transition: border-color .18s ease, transform .18s ease;
  display: flex; flex-direction: column; align-items: center;
}
[dir="rtl"] .meter-card { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.meter-card:hover { border-color: rgba(46,163,242,0.4); transform: translateY(-2px); }
.meter-card.is-active { border-color: var(--chart-blue); background: var(--bg-elevated-hi); }
.meter-label { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.meter-hint { display: block; margin-top: 4px; font-size: 11.5px; color: var(--text-faint); }

/* Radial gauge — same "fill carries severity, track is a dim same-ramp
   step" meter contract as a linear meter, just drawn as an arc. */
.gauge-wrap { width: 100%; max-width: 168px; margin: 2px 0 0; }
.gauge-svg { display: block; width: 100%; height: auto; }
.gauge-value { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px; fill: var(--text); }
.gauge-fill { transition: d .5s ease, stroke .3s ease; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 4px; }
.stat-tile {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; cursor: default;
}
.stat-tile.is-clickable {
  cursor: pointer; transition: border-color .18s ease, transform .18s ease;
  text-align: left; font-family: 'Inter', sans-serif; width: 100%; display: block; color: inherit;
}
[dir="rtl"] .stat-tile.is-clickable { text-align: right; font-family: 'IBM Plex Sans Arabic', sans-serif; }
.stat-tile.is-clickable:hover { border-color: rgba(46,163,242,0.4); transform: translateY(-2px); }
.stat-tile.is-active { border-color: var(--chart-blue); background: var(--bg-elevated-hi); }
.stat-label { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 6px; }
.stat-value { font-size: 19px; font-weight: 700; color: var(--text); font-family: 'Space Grotesk', sans-serif; }

.drilldown { margin-top: 22px; background: var(--bg-elevated); border: 1px solid var(--border-hi); border-radius: var(--radius-sm); padding: 22px 24px; animation: stepIn .3s ease; }
.drilldown-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.drilldown-head h3 { font-size: 16px; }
.drilldown-actions { display: flex; align-items: center; gap: 14px; }
.table-toggle {
  background: none; border: 1px solid var(--border-hi); color: var(--text-dim);
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 6px 12px; border-radius: 100px; transition: color .15s ease, border-color .15s ease;
}
[dir="rtl"] .table-toggle { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.table-toggle:hover, .table-toggle.is-active { color: var(--text); border-color: var(--chart-blue); }
.drilldown-close { background: none; border: none; color: var(--text-faint); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px; }
.drilldown-close:hover { color: var(--text); }

.chart-legend { display: flex; gap: 18px; margin-bottom: 10px; font-size: 12px; color: var(--text-dim); }
.chart-legend .key { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend .key::before { content: ""; display: inline-block; width: 14px; height: 2px; background: var(--key-color, var(--chart-blue)); }

.chart-svg-wrap { position: relative; }
.chart-svg-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-crosshair { stroke: var(--border-hi); stroke-width: 1; pointer-events: none; opacity: 0; }
.chart-dot { fill: var(--chart-blue); stroke: var(--bg-elevated); stroke-width: 2; opacity: 0; }
.chart-tooltip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity .1s ease;
  background: var(--bg-elevated-hi); border: 1px solid var(--border-hi); border-radius: 8px;
  padding: 8px 11px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35); z-index: 5;
}
.chart-tooltip .tt-row { display: flex; align-items: center; gap: 7px; }
.chart-tooltip .tt-row + .tt-row { margin-top: 3px; }
.chart-tooltip .tt-key { display: inline-block; width: 10px; height: 2px; background: var(--key-color, var(--chart-blue)); }
.chart-tooltip .tt-value { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-tooltip .tt-label { color: var(--text-faint); }
.chart-tooltip .tt-time { color: var(--text-faint); font-size: 11px; margin-bottom: 4px; }

.drilldown-extra { margin-top: 16px; }
.extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.extra-tile { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.extra-tile .stat-label { margin-bottom: 4px; }
.extra-tile .stat-value { font-size: 15px; }

.core-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.core-bar-row { display: grid; grid-template-columns: 50px 1fr 40px; align-items: center; gap: 10px; font-size: 12px; }
[dir="rtl"] .core-bar-row { grid-template-columns: 40px 1fr 50px; }
.core-bar-row .core-name { color: var(--text-faint); font-family: 'IBM Plex Mono', monospace; }
.core-bar-track { height: 10px; border-radius: 4px; background: var(--chart-track); overflow: hidden; }
.core-bar-fill { height: 100%; border-radius: 4px 0 0 4px; background: var(--chart-blue); }
.core-bar-row .core-value { text-align: right; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.drilldown-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.drilldown-table th, .drilldown-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.drilldown-table th { color: var(--text-faint); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.drilldown-table td { color: var(--text-dim); }
.drilldown-table-scroll { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }

.dash-offline {
  text-align: center; padding: 40px 20px; color: var(--text-faint); font-size: 13.5px;
  border: 1px dashed var(--border-hi); border-radius: var(--radius-sm);
}

/* Live infrastructure */
section.projects { padding: 90px 0 110px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.project-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 20px; transition: transform .15s ease, border-color .15s ease;
}
.project-card:hover { transform: translateY(-3px); border-color: rgba(46,163,242,0.4); }
.project-card__name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15.5px; color: var(--text); }
.project-card__domain { font-size: 12.5px; color: var(--blue-bright); }
.project-card--empty {
  align-items: center; justify-content: center; text-align: center;
  border-style: dashed; color: var(--text-faint); font-size: 13px;
}
.project-card--empty .project-card__icon { font-family: 'Space Grotesk', sans-serif; font-size: 22px; color: var(--amber); margin-bottom: 6px; }

/* Footer */
footer { padding: 60px 0 26px; background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand img { height: 22px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13.5px; margin: 0; max-width: 300px; line-height: 1.65; }
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); margin: 0 0 16px;
}
[dir="rtl"] .footer-col h4 { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 10px; }
.footer-col a:hover { color: var(--blue-bright); }
.footer-col p.muted { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin: 0 0 10px; }
.footer-lang { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.footer-lang [lang="ar"] { display: block; direction: rtl; text-align: right; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--text-faint);
}
.status-line { display: inline-flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', monospace; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #555; display: inline-block; }
.dot.is-online { background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,0.2); }
.dot.is-offline { background: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,0.2); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
/* Tablet (portrait) / small laptop */
@media (max-width: 1024px) {
  .hero-title { font-size: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Tablet (small) / large phone landscape */
@media (max-width: 900px) {
  .hero-title { font-size: 38px; }
}

@media (max-width: 760px) {
  .hero { padding: 96px 0 72px; }
  .hero-title { font-size: 32px; }
  header nav a { margin-left: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .process-grid { grid-template-columns: 1fr; }
  .explorer-panel.is-active { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 88px 0 64px; }
  .hero-title { font-size: 27px; }
  .hero p.lede { font-size: 15.5px; }
  .eyebrow { font-size: 10.5px; padding: 6px 12px; }
  .section-head h2 { font-size: 24px; }
  .btn-lg { padding: 13px 22px; font-size: 14px; }
  .wizard { padding: 24px 16px 20px; }
  .drilldown { padding: 16px 14px; }
  .meter-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .extra-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { padding: 12px 0; gap: 10px; }
  .brand img { height: 20px; }
  .lang-switch span.lang-switch-label { display: none; }
  .lang-switch { padding: 8px; min-width: 36px; justify-content: center; }
  .float-cta { padding: 12px 18px; font-size: 13px; }
}

/* Very small phones (SE, etc.) */
@media (max-width: 360px) {
  .meter-grid, .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-title { font-size: 24px; }
}
