/* ============================================================
   MOTRJIM OS — Living Language Interface
   Version: 2.0.0
   Design Philosophy: Living Modules, High Density, Academic Credibility
   ============================================================ */

:root {
  /* Core Color Palette (§09) */
  --navy: #161F30;
  --navy-2: #1C263A;
  --navy-3: #0D1420;
  --navy-card: rgba(28, 38, 58, 0.72);
  --navy-card-hover: rgba(33, 46, 70, 0.85);
  --gold: #D2A054;
  --gold-l: #FFE6A6;
  --gold-d: #B3833B;
  --gold-glow: rgba(210, 160, 84, 0.18);
  --white: #FFFFFF;
  --muted-blue: #546684;
  --text-muted: #8E9FB8;
  --text-dim: #5C6E8A;
  --terminal-green: #6BA96E;

  /* Controlled Visualization Accents (§09) */
  --cyan: #48C6FF;
  --violet: #8B6CFF;
  --coral: #FF6B6B;
  --mint: #69D6A3;

  /* Borders & Lines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(210, 160, 84, 0.28);
  --border-gold-hover: rgba(210, 160, 84, 0.55);

  /* Geometry & Spacing */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Typography (§43) */
  --font-ar: 'IBM Plex Sans Arabic', 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-code: 'Sora', 'Inter', monospace;

  /* Navigation Height */
  --nav-h: 68px;
  --nav-h-compact: 52px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-ar);
  direction: rtl;
  background-color: var(--navy-3);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #1c263c 0%, #0d1420 70%, #080d16 100%);
  background-attachment: fixed;
  color: var(--white);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
}

::selection {
  background: var(--gold);
  color: var(--navy-3);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Subtle Matrix Grid Texture */
.mos-grid-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
}

.mos-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   LAYER 01: SYSTEM NAVIGATION (§13)
   ============================================================ */
#mos-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 99999;
  direction: rtl;
  display: flex;
  align-items: center;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(15, 22, 36, 0.75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

#mos-navbar.is-compact {
  height: var(--nav-h-compact);
  background: rgba(13, 20, 32, 0.92);
  border-bottom-color: rgba(210, 160, 84, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.mos-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.mos-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mos-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold-d) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(210, 160, 84, 0.35);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.mos-brand:hover .mos-brand-mark {
  transform: scale(1.05);
}

.mos-brand-text {
  display: flex;
  flex-direction: column;
}

.mos-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--white);
  line-height: 1.2;
}

.mos-brand-sub {
  font-family: var(--font-code);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--gold);
  line-height: 1.2;
}

/* System Status Pill on Nav */
.mos-nav-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-code);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-right: 14px;
}

.mos-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terminal-green);
  box-shadow: 0 0 8px var(--terminal-green);
  animation: mos-pulse 2s infinite ease-in-out;
}

.mos-nav-section-tag {
  color: var(--gold);
  font-weight: 700;
  transition: opacity .2s;
}

/* Nav Menu Links */
.mos-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.mos-nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .18s ease;
  position: relative;
}

.mos-nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.mos-nav-link.is-active {
  color: var(--white);
}

.mos-nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gold);
}

/* Nav Actions */
.mos-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mos-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%);
  color: #101624;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(210, 160, 84, 0.35);
  transition: all .2s ease;
  white-space: nowrap;
}

.mos-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(210, 160, 84, 0.5);
  filter: brightness(1.05);
}

.mos-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transition: all .2s ease;
  white-space: nowrap;
}

.mos-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.mos-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}

.mos-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease;
}

/* Mobile Drawer Overlay & Panel */
.mos-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility .3s ease;
  direction: rtl;
}

.mos-mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mos-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 22, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .3s ease;
}

.mos-mobile-drawer.is-open .mos-drawer-backdrop {
  opacity: 1;
}

.mos-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 88%;
  max-width: 370px;
  background: #111a28;
  border-left: 1px solid var(--border-gold);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  z-index: 2;
}

.mos-mobile-drawer.is-open .mos-drawer-panel {
  transform: translateX(0);
}

.mos-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.mos-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
}

.mos-drawer-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
}

.mos-drawer-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(107, 169, 110, 0.1);
  border: 1px solid rgba(107, 169, 110, 0.3);
  border-radius: var(--radius-pill);
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--terminal-green);
  margin-bottom: 20px;
  align-self: flex-start;
}

.mos-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.mos-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all .2s ease;
  text-decoration: none;
}

.mos-drawer-item:hover,
.mos-drawer-item:active {
  background: rgba(210, 160, 84, 0.08);
  border-color: var(--gold);
  transform: translateX(-3px);
}

.mos-drawer-tag {
  font-family: var(--font-code);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(210, 160, 84, 0.15);
  padding: 3px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.mos-drawer-item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mos-drawer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.mos-drawer-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.mos-drawer-arrow {
  color: var(--text-dim);
  font-size: 15px;
  transition: transform .2s ease;
  flex-shrink: 0;
}

.mos-drawer-item:hover .mos-drawer-arrow {
  color: var(--gold);
  transform: translateX(-3px);
}

.mos-drawer-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ============================================================
   LAYER 02: HERO / MOTRJIM CORE (§14 - §17)
   ============================================================ */
.mos-hero-section {
  position: relative;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 90px;
  overflow: hidden;
}

.mos-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.mos-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.mos-badge-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(210, 160, 84, 0.12);
  border: 1px solid rgba(210, 160, 84, 0.35);
  color: var(--gold);
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(210, 160, 84, 0.15);
}

.mos-hero-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 18px;
}

.mos-hero-title span.mos-gold-gradient {
  background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mos-hero-sub {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 34px;
  max-width: 490px;
}

.mos-hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mos-hero-ctas .mos-btn-primary {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.mos-hero-ctas .mos-btn-ghost {
  padding: 13px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* Signature WOW: Motrjim Core Interactive Interface (§16, §17, §40) */
.mos-core-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.mos-core-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(28, 38, 58, 0.7) 0%, rgba(13, 20, 32, 0) 70%);
}

.mos-core-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mos-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px dashed rgba(210, 160, 84, 0.2);
  transition: all .5s ease;
}

.mos-ring-1 { width: 92%; height: 92%; animation: mos-spin 48s linear infinite; }
.mos-ring-2 { width: 68%; height: 68%; border-style: solid; border-color: rgba(255, 255, 255, 0.08); animation: mos-spin-rev 36s linear infinite; }
.mos-ring-3 { width: 44%; height: 44%; border-color: rgba(210, 160, 84, 0.3); }

/* Central Core Orb */
.mos-core-nucleus {
  position: relative;
  z-index: 10;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(145deg, #24324d 0%, #111a2c 100%);
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(210, 160, 84, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mos-core-nucleus:hover {
  transform: scale(1.08);
  box-shadow: 0 0 50px rgba(210, 160, 84, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.mos-core-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 2px;
}

.mos-core-label {
  font-family: var(--font-code);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold);
}

/* Five Surrounding Dynamic Nodes */
.mos-node {
  position: absolute;
  z-index: 9;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(20, 28, 44, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.mos-node:hover,
.mos-node.is-active {
  border-color: var(--gold);
  background: rgba(32, 45, 70, 0.95);
  box-shadow: 0 8px 28px rgba(210, 160, 84, 0.35);
  transform: scale(1.06);
}

.mos-node-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mos-node-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
}

.mos-node-sub {
  font-family: var(--font-code);
  font-size: 8px;
  color: var(--gold);
  letter-spacing: 0.8px;
}

/* Positions for 5 Nodes */
.mos-node-trans   { top: 7%; left: 50%; transform: translateX(-50%); }
.mos-node-ai      { top: 32%; right: 4%; }
.mos-node-ling    { bottom: 12%; right: 14%; }
.mos-node-data    { bottom: 12%; left: 14%; }
.mos-node-career  { top: 32%; left: 4%; }

/* Connecting Lines Canvas/SVG */
.mos-core-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.mos-core-flow-line {
  stroke: rgba(210, 160, 84, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  fill: none;
  transition: stroke .3s, stroke-width .3s;
}

.mos-core-stage:hover .mos-core-flow-line,
.mos-core-stage.is-active .mos-core-flow-line {
  stroke: rgba(210, 160, 84, 0.7);
  stroke-width: 2;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 6px rgba(210, 160, 84, 0.6));
}

/* Dynamic Stream Banner beneath core */
.mos-core-stream {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(13, 20, 32, 0.95);
  border: 1px solid var(--border-gold);
  font-family: var(--font-code);
  font-size: 10.5px;
  color: var(--gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  z-index: 12;
  transition: all .3s ease;
}

/* ============================================================
   LAYER 03: LIVING INTELLIGENCE GRID (§18 - §27)
   ============================================================ */
.mos-grid-section {
  position: relative;
  padding: 80px 0 100px;
}

.mos-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.mos-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 14px;
}

.mos-section-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: var(--white);
  margin-bottom: 12px;
}

.mos-section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* The Modular Asymmetric Grid (§12, §54) */
.mos-cards-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

/* Common Card Styling (§44, §45) */
.mos-card {
  position: relative;
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), border-color .25s ease, box-shadow .25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mos-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.mos-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(210, 160, 84, 0.12);
}

.mos-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mos-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mos-card-index {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.mos-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
}

.mos-card-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mos-card:hover .mos-card-status {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.mos-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Card CTA Link */
.mos-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 18px;
  transition: gap .2s ease, color .2s ease;
}

.mos-card-link:hover {
  gap: 10px;
  color: var(--gold-l);
}

.mos-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}

.mos-card-link:hover svg {
  transform: translateX(-3px);
}

/* Specific Card Layout Spans (§12) */
.mos-card-ai-trans  { grid-column: span 7; }
.mos-card-learning  { grid-column: span 5; }
.mos-card-ling      { grid-column: span 5; }
.mos-card-skills    { grid-column: span 7; }
.mos-card-career    { grid-column: span 6; }
.mos-card-courses   { grid-column: span 6; }
.mos-card-live      { grid-column: span 6; }
.mos-card-progress  { grid-column: span 6; }

/* ----------------------------------------------------
   CARD 01 / AI × TRANSLATION (§19)
   ---------------------------------------------------- */
.mos-flow-chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 22, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  margin: 10px 0;
  direction: ltr; /* Technical pipeline read LTR */
}

.mos-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-code);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.mos-flow-node i {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11px;
}

.mos-flow-arrow {
  color: var(--gold);
  opacity: 0.6;
  font-size: 12px;
}

.mos-flow-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(210, 160, 84, 0.08);
  border: 1px solid rgba(210, 160, 84, 0.25);
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

.mos-flow-highlight span {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold);
}

.mos-flow-badge {
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy-3);
}

/* ----------------------------------------------------
   CARD 02 / LEARNING PROGRESSION (§20)
   ---------------------------------------------------- */
.mos-learning-ladder {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0;
}

.mos-ladder-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: rgba(15, 22, 36, 0.5);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 700;
  transition: all .2s;
}

.mos-ladder-step.is-glowing {
  background: rgba(210, 160, 84, 0.12);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(210, 160, 84, 0.2);
}

.mos-ladder-step.is-glowing span {
  color: var(--gold);
}

.mos-ladder-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}

.mos-ladder-step.is-glowing .mos-ladder-dot {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* ----------------------------------------------------
   CARD 03 / LINGUISTICS LAB (§21)
   ---------------------------------------------------- */
.mos-ling-lab {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(15, 22, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 10px 0;
}

.mos-ling-token {
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--cyan);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all .2s;
}

.mos-ling-token:hover {
  background: rgba(72, 198, 255, 0.1);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.mos-ling-token small {
  font-size: 8px;
  color: var(--text-dim);
}

/* ----------------------------------------------------
   CARD 04 / SKILLS MATRIX (§22)
   ---------------------------------------------------- */
.mos-skills-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 12px 0;
}

.mos-skill-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mos-skill-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

.mos-skill-head span {
  color: var(--text-muted);
}

.mos-skill-head b {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--gold);
}

.mos-skill-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mos-skill-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-d), var(--gold-l));
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------
   CARD 05 / CAREER EVOLUTION (§23)
   ---------------------------------------------------- */
.mos-career-path {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.mos-career-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(15, 22, 36, 0.5);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 700;
  transition: all .2s;
}

.mos-career-node.is-target {
  background: rgba(105, 214, 163, 0.08);
  border-color: var(--mint);
  color: var(--mint);
}

.mos-career-num {
  font-family: var(--font-code);
  font-size: 10px;
  color: var(--gold);
  width: 18px;
}

/* ----------------------------------------------------
   CARD 06 / COURSE ENGINE (§24)
   ---------------------------------------------------- */
.mos-courses-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 10px 0;
}

.mos-course-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: rgba(15, 22, 36, 0.6);
  border: 1px solid var(--border-subtle);
  transition: all .2s;
}

.mos-course-card:hover {
  background: rgba(28, 38, 58, 0.85);
  border-color: var(--gold);
  transform: translateX(-3px);
}

.mos-course-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.mos-course-badge {
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(210, 160, 84, 0.15);
  color: var(--gold);
  white-space: nowrap;
}

/* ----------------------------------------------------
   CARD 07 / LIVE ACADEMY (§25)
   ---------------------------------------------------- */
.mos-live-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 22, 36, 0.6);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
}

.mos-live-radar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(107, 169, 110, 0.15);
  border: 1px solid var(--terminal-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.mos-live-radar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--terminal-green);
  opacity: 0.5;
  animation: mos-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.mos-live-text b {
  display: block;
  font-size: 13px;
  color: var(--white);
}

.mos-live-text small {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ----------------------------------------------------
   CARD 08 / MOTRJIM PROGRESS (§26)
   ---------------------------------------------------- */
.mos-xp-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 22, 36, 0.6);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.mos-xp-val {
  font-family: var(--font-code);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
}

.mos-xp-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============================================================
   LAYER 04: CHOOSE YOUR PATH (§28, §29)
   ============================================================ */
.mos-paths-section {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(22, 31, 48, 0.5) 50%, transparent 100%);
}

.mos-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.mos-path-card {
  position: relative;
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mos-path-card:hover,
.mos-path-card.is-selected {
  border-color: var(--gold);
  background: rgba(30, 42, 65, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(210, 160, 84, 0.15);
  transform: translateY(-4px);
}

.mos-path-num {
  font-family: var(--font-code);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1;
}

.mos-path-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.35;
}

.mos-path-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.mos-path-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.mos-path-tag {
  font-family: var(--font-code);
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all .2s;
}

.mos-path-card:hover .mos-path-tag {
  border-color: rgba(210, 160, 84, 0.4);
  color: var(--gold);
  background: rgba(210, 160, 84, 0.08);
}

/* ============================================================
   LAYER 05: ACADEMY SIGNAL / TELEMETRY (§30)
   ============================================================ */
.mos-signal-section {
  position: relative;
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 22, 36, 0.45);
}

.mos-signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.mos-signal-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mos-signal-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.mos-signal-val {
  font-family: var(--font-code);
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.15;
}

.mos-signal-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.mos-signal-sub {
  font-family: var(--font-code);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ============================================================
   LAYER 06: HUMAN LAYER (§31, §32)
   ============================================================ */
.mos-human-section {
  position: relative;
  padding: 100px 0;
}

.mos-human-box {
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.mos-human-box::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 160, 84, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.mos-human-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.mos-human-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(0.95);
  transition: transform .3s ease;
}

.mos-human-photo-wrap:hover .mos-human-photo {
  transform: scale(1.03);
}

.mos-human-quote {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 20px;
}

.mos-human-quote span {
  color: var(--gold);
}

.mos-human-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}

.mos-human-role {
  font-size: 13.5px;
  color: var(--gold);
  margin-bottom: 26px;
}

/* Typographic Transformation (§32) */
.mos-transform-ladder {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 22, 36, 0.6);
  border: 1px solid var(--border-subtle);
  margin-top: 10px;
}

.mos-step-item {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.mos-step-item.is-target {
  color: var(--gold);
  font-weight: 800;
}

.mos-step-arrow {
  color: var(--gold);
  opacity: 0.5;
}

/* ============================================================
   LAYER 07: FINAL CTA (§33, §34)
   ============================================================ */
.mos-cta-section {
  position: relative;
  padding: 100px 0 120px;
  text-align: center;
}

.mos-cta-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 32px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 0%, #202b40 0%, #131b2c 80%);
  border: 1px solid rgba(210, 160, 84, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(210, 160, 84, 0.12);
  position: relative;
  overflow: hidden;
}

.mos-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 14px var(--gold);
}

.mos-cta-title {
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.mos-cta-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.mos-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mos-cta-actions .mos-btn-primary {
  padding: 14px 34px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.mos-cta-actions .mos-btn-ghost {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* System Footer */
.mos-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  background: #0a0e16;
  direction: rtl;
}

.mos-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.mos-footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.mos-footer-telemetry {
  font-family: var(--font-code);
  font-size: 10.5px;
  color: var(--gold);
  letter-spacing: 1.2px;
}

/* Keyframe Animations */
@keyframes mos-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes mos-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes mos-spin-rev {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes mos-ping {
  75%, 100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================================
   RESPONSIVE LAYOUT (§41, §42)
   ============================================================ */
@media (max-width: 1024px) {
  .mos-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .mos-hero-copy {
    align-items: center;
  }
  .mos-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .mos-card-ai-trans,
  .mos-card-learning,
  .mos-card-ling,
  .mos-card-skills,
  .mos-card-career,
  .mos-card-courses,
  .mos-card-live,
  .mos-card-progress {
    grid-column: span 6;
  }
  .mos-paths-grid {
    grid-template-columns: 1fr;
  }
  .mos-human-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px;
  }
  .mos-human-photo-wrap {
    max-width: 220px;
    margin: 0 auto;
  }
  .mos-transform-ladder {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mos-nav-menu,
  .mos-nav-status {
    display: none;
  }
  .mos-nav-toggle {
    display: flex;
  }
  .mos-hero-title {
    font-size: 34px;
  }
  .mos-hero-sub {
    font-size: 16px;
  }
  .mos-cards-grid {
    grid-template-columns: 1fr;
  }
  .mos-card-ai-trans,
  .mos-card-learning,
  .mos-card-ling,
  .mos-card-skills,
  .mos-card-career,
  .mos-card-courses,
  .mos-card-live,
  .mos-card-progress {
    grid-column: span 1;
  }
  .mos-signal-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .mos-signal-item:nth-child(2)::after {
    display: none;
  }
  .mos-skills-matrix {
    grid-template-columns: 1fr;
  }
  .mos-core-wrap {
    max-width: 360px;
  }
  .mos-core-nucleus {
    width: 80px;
    height: 80px;
  }
  .mos-node {
    padding: 6px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .mos-container {
    padding: 0 16px;
  }
  .mos-hero-title {
    font-size: 28px;
  }
  .mos-cta-title {
    font-size: 28px;
  }
  .mos-cta-card {
    padding: 40px 18px;
  }
  .mos-signal-strip {
    grid-template-columns: 1fr;
  }
  .mos-signal-item::after {
    display: none !important;
  }
}

/* Reduced Motion (§51) */
@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;
  }
}
