/* ==========================================================================
   061 · MICRO ORGANIZED (مَكتب هادئ) — 1:1 Bespoke Single-Viewport Spatial Workspace
   #0E1114 radial dot-grid shell · #030404 32px inner stage · 3-column ribbed-glass triptych
   ========================================================================== */

:root {
  --mo-shell: #0E1114;
  --mo-stage: #030404;
  --mo-ink: #FFFFFF;
  --mo-muted: rgba(255, 255, 255, 0.70);
  --mo-italic: rgba(255, 255, 255, 0.60);
  --mo-sans: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
  --mo-serif: 'Amiri', Georgia, serif;
  --mo-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--mo-shell);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--mo-ink);
  font-family: var(--mo-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font-family: inherit;
  letter-spacing: 0;
}

.mo-shell {
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ======================== TOP HEADER ======================== */
.mo-header {
  height: 76px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
}

.mo-brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mo-brand {
  font-size: 21px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
}

.mo-brand span {
  font-family: var(--mo-mono);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
  margin-inline-start: 6px;
}

.mo-mini-directory {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}

.mo-mini-directory a:hover {
  color: #FFFFFF;
}

.mo-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.mo-btn-ghost {
  background: transparent;
  border: none;
  color: var(--mo-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.mo-btn-ghost:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.mo-btn-outline {
  background: #000000;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.mo-btn-outline:hover {
  background: #FFFFFF;
  color: #030404;
}

.mo-btn-outline:active,
.mo-btn-solid:active {
  transform: scale(0.96);
}

/* ======================== INNER HERO STAGE CARD ======================== */
.mo-stage-card {
  flex: 1;
  min-height: 0;
  margin: 0 8px 8px;
  background: var(--mo-stage);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 3-Column Triptych */
.mo-triptych {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
}

.mo-panel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background-color: #05070A;
  background-image: url('../assets/art/micro-organized.webp');
  background-repeat: no-repeat;
  background-size: 300% 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mo-panel-1 { background-position: 100% 50%; }
.mo-panel-2 { background-position: 50% 50%; }
.mo-panel-3 { background-position: 0% 50%; }

/* Fine vertical fluted/ribbed glass refraction overlay */
.mo-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.0) 3px,
    rgba(0, 0, 0, 0.36) 6px,
    rgba(255, 255, 255, 0.02) 9px
  );
  pointer-events: none;
  z-index: 2;
}

.mo-panel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Screen-blended radial light orbs per panel */
.mo-orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(22px);
  pointer-events: none;
  z-index: 4;
}

.mo-orb-1 {
  width: 108px;
  height: 108px;
  top: 14%;
  inset-inline-start: 16%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72), transparent 72%);
}

.mo-orb-2 {
  width: 78px;
  height: 78px;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200, 215, 255, 0.62), transparent 72%);
}

.mo-orb-3 {
  width: 114px;
  height: 114px;
  top: 20%;
  inset-inline-end: 12%;
  background: radial-gradient(circle, rgba(185, 210, 235, 0.58), transparent 72%);
}

/* Center Panel Focal Vertical Capsule Portal */
.mo-capsule-portal {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 228px;
  border-radius: 999px;
  background-color: #081B22;
  background-image: radial-gradient(circle, rgba(190, 230, 255, 0.24) 1px, transparent 1px);
  background-size: 10px 10px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 34px rgba(120, 185, 255, 0.22),
    0 24px 60px rgba(0, 0, 0, 0.85);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.mo-capsule-portal:hover {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.34),
    inset 0 0 42px rgba(165, 210, 255, 0.34),
    0 28px 70px rgba(0, 0, 0, 0.9);
}

.mo-capsule-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 16px #FFFFFF, 0 0 32px rgba(165, 205, 255, 0.9);
  animation: moPulse 2.6s ease-in-out infinite;
}

@keyframes moPulse {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.35); opacity: 1; }
}

.mo-capsule-kbd {
  font-family: var(--mo-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(3, 4, 4, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mo-capsule-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
}

/* ======================== BOTTOM SCRIM & OVERLAY BAR ======================== */
.mo-bottom-scrim {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 270px;
  background: linear-gradient(to top, rgba(3, 4, 4, 0.92) 0%, rgba(3, 4, 4, 0.56) 48%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

.mo-bottom-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  padding: 28px 36px 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.mo-summary-col {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.mo-tagline {
  font-size: 14px;
  line-height: 1.72;
  color: var(--mo-muted);
}

.mo-btn-solid {
  background: #FFFFFF;
  color: #030404;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.18s ease;
}

.mo-btn-solid:hover {
  opacity: 0.9;
}

.mo-headline-col {
  text-align: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.mo-h1 {
  font-size: clamp(50px, 7.6vw, 98px);
  font-weight: 600;
  line-height: 1.02;
  color: #FFFFFF;
  letter-spacing: 0;
}

.mo-sub-italic {
  font-family: var(--mo-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--mo-italic);
}

/* ======================== CMD+K / WAITLIST OVERLAY DRAWER ======================== */
.mo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 4, 4, 0.76);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mo-modal.is-open {
  display: flex;
}

.mo-cmd-box {
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  background: #0B0E12;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mo-cmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.mo-cmd-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

.mo-cmd-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  background: #030404;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
}

.mo-cmd-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mo-cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  cursor: pointer;
}

.mo-cmd-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 860px) {
  .mo-mini-directory {
    display: none;
  }
}

@media (max-width: 720px) {
  html, body {
    overflow-y: auto;
  }
  .mo-shell {
    height: auto;
    min-height: 100dvh;
  }
  .mo-stage-card {
    min-height: 86dvh;
  }
  .mo-triptych {
    grid-template-columns: 1fr;
  }
  .mo-panel-1, .mo-panel-3 {
    display: none;
  }
  .mo-bottom-bar {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .mo-headline-col {
    align-items: flex-start;
    text-align: start;
  }
}
