/* ==========================================================================
   067 · VELORIX (فيلوركس للرصد) — 1:1 Pure #000000 Halftone Hands & 3D Voxel Cluster
   #000000 void · #0C0C0C center pill dock · #EF4444 subroute KPIs & steps · 7 hash routes
   ========================================================================== */

:root {
  --vx-bg: #000000;
  --vx-dock: #0C0C0C;
  --vx-card: rgba(255, 255, 255, 0.05);
  --vx-border: rgba(255, 255, 255, 0.10);
  --vx-red: #EF4444;
  --vx-ink: #FFFFFF;
  --vx-muted: rgba(255, 255, 255, 0.62);
  --vx-sans: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
  --vx-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--vx-bg);
  color: var(--vx-ink);
  font-family: var(--vx-sans);
  letter-spacing: 0;
}

body {
  background: var(--vx-bg);
  color: var(--vx-ink);
  font-family: var(--vx-sans);
  line-height: 1.65;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

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

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

/* ======================== TOP OVERLAY NAVBAR ======================== */
.vx-header {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  padding: 20px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.vx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
}

.vx-brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.vx-dock {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--vx-dock);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.vx-dock a {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease, color 0.2s ease;
}

.vx-dock a:hover,
.vx-dock a.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: #FFFFFF;
}

.vx-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  background: #FFFFFF;
  color: #000000;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.vx-btn-white:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* ======================== HOME HERO (100DVH) ======================== */
.vx-hero {
  position: relative;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 60px;
  isolation: isolate;
}

.vx-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.vx-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease-out;
}

#vx-voxel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.vx-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.1) 46%, rgba(0, 0, 0, 0.85) 86%, #000000 100%);
  pointer-events: none;
}

.vx-h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5.4vw, 4.4rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 26px;
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.85);
}

/* ======================== HOME SECTIONS ======================== */
.vx-sec {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 32px;
  border-top: 1px solid var(--vx-border);
}

.vx-eyebrow {
  font-family: var(--vx-mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
  display: block;
}

.vx-eyebrow-red {
  font-family: var(--vx-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--vx-red);
  margin-bottom: 12px;
  display: block;
}

.vx-h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.24;
  margin-bottom: 16px;
}

.vx-grid-3 {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.vx-card {
  border-radius: 16px;
  border: 1px solid var(--vx-border);
  background: var(--vx-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vx-card h3 {
  font-size: 17.5px;
  font-weight: 600;
}

.vx-card p, .vx-card dd {
  font-size: 14px;
  color: var(--vx-muted);
  line-height: 1.72;
}

.vx-faq-stack {
  margin-top: 28px;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vx-faq-item dt {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ======================== SUBROUTE VIEWS (#/platform .. #/contact) ======================== */
.vx-subview {
  display: none;
  max-width: 1040px;
  margin: 0 auto;
  padding: 132px 32px 92px;
}

body.is-sub .vx-home-flow {
  display: none;
}

body.is-sub .vx-subview {
  display: block;
}

.vx-step-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--vx-border);
  background: var(--vx-card);
}

.vx-step-idx {
  font-family: var(--vx-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--vx-red);
  flex-shrink: 0;
}

.vx-kpi-num {
  font-size: 42px;
  font-weight: 700;
  color: var(--vx-red);
  line-height: 1.05;
}

.vx-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--vx-border);
  background: #0C0C0C;
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
}

.vx-showcase-bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 32px 44px;
  border-top: 1px solid var(--vx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--vx-muted);
}

.vx-showcase-bar a:hover {
  color: #FFFFFF;
}

@media (max-width: 880px) {
  .vx-dock .vx-hide-md {
    display: none;
  }
}

@media (max-width: 720px) {
  .vx-dock {
    display: none;
  }
  .vx-grid-3 {
    grid-template-columns: 1fr;
  }
}
