/* 041 · Velocity (اندفاع الإصدار) — 1:1 Reference-Faithful Blueprint CI/CD Stylesheet */
:root {
  --vl-bg: #edebe4;
  --vl-paper2: #e3e0d7;
  --vl-ink: #111111;
  --vl-muted: #55524b;
  --vl-signal: #ff4d00;
  --vl-line: rgba(17, 17, 17, 0.18);
  --vl-guide: rgba(17, 17, 17, 0.055);
}

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

html {
  scroll-behavior: smooth;
  background: var(--vl-bg);
  color: var(--vl-ink);
}

body {
  margin: 0;
  background: var(--vl-bg);
  color: var(--vl-ink);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
  /* 12-Column Editorial Blueprint Vertical Guide Lines */
  background-image: repeating-linear-gradient(
    to right,
    var(--vl-guide) 0,
    var(--vl-guide) 1px,
    transparent 1px,
    transparent calc(100% / 12)
  );
}

h1, h2, h3, p, a, button, span {
  letter-spacing: 0;
}

[dir="ltr"] {
  font-family: 'JetBrains Mono', monospace;
}

/* Fixed Full-Viewport Warp-Field Canvas Behind Page */
.vc-warp-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Sticky Blueprint Top Bar */
.vc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 235, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vl-ink);
  padding: 14px clamp(18px, 3.5vw, 48px);
}

.vc-nav {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vc-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vc-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--vl-ink);
  text-decoration: none;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  white-space: nowrap;
}

.vc-rev-meta {
  font-size: 0.75rem;
  color: var(--vl-muted);
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--vl-line);
}

.vc-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.vc-links a {
  color: var(--vl-ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.vc-links a:hover {
  color: var(--vl-signal);
}

.vc-btn-ink {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--vl-ink);
  background: var(--vl-ink);
  color: var(--vl-bg);
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.vc-btn-ink:hover {
  background: var(--vl-signal);
  border-color: var(--vl-signal);
  color: #ffffff;
}

.vc-btn-ghost {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--vl-ink);
  background: rgba(237, 235, 228, 0.8);
  color: var(--vl-ink);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
}

main, footer {
  position: relative;
  z-index: 5;
}

/* Section 1: Hero with Sheet Metadata + Crop Marks + TTY/01 + Spec Sheet */
.vc-hero {
  min-height: calc(100dvh - 69px);
  padding: 24px clamp(18px, 3.5vw, 48px) 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vc-hero-frame {
  position: relative;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--vl-line);
  background: radial-gradient(circle at 50% 42%, rgba(237, 235, 228, 0.35) 0%, rgba(237, 235, 228, 0.86) 80%);
}

.vc-top-sheet-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--vl-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vl-line);
}

.vc-sq-sig {
  color: var(--vl-signal);
  margin-inline-end: 6px;
}

.vc-hero-bot {
  margin-top: auto;
  padding-top: 84px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4.5vw, 56px);
  align-items: end;
}

.vc-h1 {
  margin: 0 0 18px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
}

.vc-sig-underline {
  border-bottom: 6px solid var(--vl-signal);
  padding-bottom: 2px;
}

.vc-tty-card {
  background: var(--vl-ink);
  color: #f4f3ef;
  border: 1px solid var(--vl-ink);
  margin-bottom: 12px;
}

.vc-tty-head {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #a8a29e;
}

.vc-tty-body {
  padding: 16px 14px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.vc-spec-card {
  background: var(--vl-bg);
  border: 1px solid var(--vl-ink);
}

.vc-spec-head {
  padding: 8px 14px;
  background: var(--vl-paper2);
  border-bottom: 1px solid var(--vl-line);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
}

.vc-spec-row {
  padding: 9px 14px;
  border-bottom: 1px solid var(--vl-line);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.vc-spec-row:last-child {
  border-bottom: 0;
}

/* Persistent Floating Telemetry Gauge (R-17) — Docked Inline-Start with Footer Clearance */
.vc-readout {
  position: fixed;
  bottom: 16px;
  inset-inline-start: 18px;
  z-index: 45;
  width: 224px;
  border: 1px solid var(--vl-ink);
  background: var(--vl-bg);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.12);
}

html.is-preview .vc-readout {
  display: none;
}

.vc-readout-head {
  padding: 6px 10px;
  background: var(--vl-ink);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
}

.vc-readout-body {
  padding: 10px;
  font-size: 0.75rem;
}

.vc-meter-track {
  margin-top: 6px;
  height: 6px;
  background: var(--vl-paper2);
  border: 1px solid var(--vl-line);
  overflow: hidden;
}

.vc-meter-fill {
  height: 100%;
  width: 85%;
  background: var(--vl-signal);
  transition: width 0.2s ease;
}

/* Shared Blueprint Section */
.vc-sec {
  scroll-margin-top: 70px;
  border-top: 1px solid var(--vl-ink);
  background: rgba(237, 235, 228, 0.94);
  padding: 28px clamp(18px, 3.5vw, 48px) clamp(72px, 8vw, 108px);
}

.vc-wrap {
  max-width: 1360px;
  margin: 0 auto;
}

.vc-running-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--vl-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--vl-line);
  margin-bottom: 36px;
}

.vc-split-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 40px;
}

.vc-h2 {
  margin: 0;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(1.9rem, 3.3vw, 2.85rem);
  font-weight: 800;
  line-height: 1.14;
}

/* Fig. 2 — Graph-Paper Pipeline Schematic */
.vc-schematic {
  background-color: var(--vl-paper2);
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--vl-ink);
  padding: 28px;
}

.vc-stages-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.vc-stage-box {
  background: var(--vl-bg);
  border: 1px solid var(--vl-ink);
  padding: 16px;
  position: relative;
}

.vc-stage-box::after {
  content: "■";
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  color: var(--vl-signal);
  font-size: 0.7rem;
  animation: vcPulse 1.6s infinite;
}

@keyframes vcPulse {
  50% { opacity: 0.25; }
}

.vc-gantt {
  margin-top: 20px;
  height: 28px;
  border: 1px solid var(--vl-ink);
  background: var(--vl-bg);
  display: flex;
  overflow: hidden;
  font-size: 0.72rem;
}

.vc-gantt > span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-inline-end: 1px solid var(--vl-ink);
  font-weight: 700;
}

.vc-sub-3 {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.vc-sub-col {
  padding-top: 16px;
  border-top: 1px solid var(--vl-ink);
}

/* 02 · 6x2 Joined Runtime Stack Grid */
.vc-stack-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--vl-ink);
  background: var(--vl-bg);
}

.vc-stack-cell {
  padding: 20px 16px;
  border-inline-end: 1px solid var(--vl-line);
  border-bottom: 1px solid var(--vl-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 03 · Architectural Joined Pricing Table */
.vc-price-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--vl-ink);
  border-bottom: 0;
  background: var(--vl-paper2);
}

.vc-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--vl-ink);
  background: var(--vl-bg);
}

.vc-plan {
  border-inline-end: 1px solid var(--vl-ink);
  display: flex;
  flex-direction: column;
}

.vc-plan:last-child {
  border-inline-end: 0;
}

.vc-plan-head {
  padding: 10px 20px;
  border-bottom: 1px solid var(--vl-line);
  font-size: 0.75rem;
  font-weight: 700;
}

.vc-plan.is-team .vc-plan-head {
  background: var(--vl-ink);
  color: #ffffff;
}

.vc-plan-body {
  padding: 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 04 · Docs Split + Crop-Marked Transparent Viewport Cutout */
.vc-cli-bar {
  display: flex;
  border: 1px solid var(--vl-ink);
  background: var(--vl-ink);
  color: #ffffff;
  margin: 20px 0;
}

.vc-cli-bar code {
  flex: 1;
  padding: 12px 14px;
  font-size: 0.82rem;
  overflow-x: auto;
  white-space: nowrap;
}

.vc-copy-btn {
  padding: 0 18px;
  border: 0;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.2);
  background: #262626;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.vc-copy-btn.is-copied {
  background: var(--vl-signal);
}

/* Transparent Window Revealing Live Warp Canvas Underneath */
.vc-cutout-sec {
  background: rgba(237, 235, 228, 0.72);
}

.vc-viewport-window {
  height: 260px;
  border: 1px solid var(--vl-ink);
  background: rgba(237, 235, 228, 0.18);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.74rem;
  color: var(--vl-muted);
}

.vc-footer {
  border-top: 1px solid var(--vl-ink);
  background: var(--vl-bg);
  padding: 44px clamp(18px, 3.5vw, 48px) 136px;
}

@media (max-width: 960px) {
  .vc-stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .vc-links,
  .vc-rev-meta,
  .vc-readout {
    display: none;
  }
  .vc-hero-bot,
  .vc-split-head,
  .vc-stages-4,
  .vc-sub-3,
  .vc-price-grid {
    grid-template-columns: 1fr;
  }
  .vc-stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
