/**
 * Fortress Solutions - Cinematic GSAP Experience Stylesheet
 * Approved Prototype Adaptation | FORTRESS COMPUTER SYSTEMS AND SOFTWARE DESIGNING L.L.C.
 * Abu Dhabi, UAE | venusfortress.com
 */

/* ==========================================================================
   1. Design System Tokens & Base Variables (Creative Source of Truth)
   ========================================================================== */
:root {
  --bg: #06080c;
  --bg-soft: #0b0e14;
  --panel: #0f131b;
  --panel-2: #131925;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f7f9fc;
  --muted: #9da7b5;
  --yellow: #f2ff00;
  --blue: #335eaa;
  --electric: #4f7dff;
  --radius: 26px;
  --header-h: 80px;

  --fx-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --fx-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fx-font-arabic: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

html {
  scroll-behavior: auto;
  background-color: var(--bg);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--fx-font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: var(--fx-font-arabic);
}

::selection {
  background: var(--yellow);
  color: #080a0d;
}

/* ==========================================================================
   2. Atmosphere & Ambient Overlays
   ========================================================================== */
.noise {
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 90;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 94, 170, 0.12), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  filter: blur(14px);
  will-change: transform;
}

@media (pointer: coarse), (max-width: 900px), (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none !important;
  }
}

.scroll-progress {
  position: fixed;
  z-index: 121;
  top: calc(var(--header-h) - 1px);
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--yellow), var(--electric));
}

html[dir="rtl"] .scroll-progress span {
  transform-origin: right;
}

/* ==========================================================================
   3. Restrained Production Preloader (Fast 0.5–1.2s max, Accessible)
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-content: center;
  gap: 18px;
  background: #05070a;
  text-align: center;
  pointer-events: all;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-mark {
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: -0.06em;
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.preloader-line {
  width: min(280px, 72vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  border-radius: 2px;
  margin: 0 auto;
}

.preloader-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  transform-origin: left;
  transform: scaleX(0);
}

html[dir="rtl"] .preloader-line span {
  transform-origin: right;
}

.preloader-text {
  font: 700 10px/1.2 var(--fx-font-mono);
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ==========================================================================
   4. Production Header Theming (Dark Glass Integration)
   ========================================================================== */
.site-header {
  background: linear-gradient(to bottom, rgba(6, 8, 12, 0.94), rgba(6, 8, 12, 0.78)) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  z-index: 120 !important;
}

.site-header.scrolled {
  background: rgba(6, 8, 12, 0.98) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.site-header .brand-name {
  color: #ffffff !important;
}

.site-header .brand-tagline {
  color: var(--yellow) !important;
}

.site-header .nav-link {
  color: #c7cfda !important;
  background: transparent !important;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  outline: none;
}

.site-header .nav-link.active,
.site-header .nav-menu li.active > a,
.site-header [aria-current="page"] {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-radius: 8px;
}

.site-header .lang-toggle-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  transition: border-color 0.25s ease;
}

.site-header .lang-toggle-btn:hover {
  border-color: var(--yellow) !important;
}

/* Mobile drawer on dark background */
.mobile-drawer {
  background: #090d14 !important;
  border-left: 1px solid var(--line) !important;
}

html[dir="rtl"] .mobile-drawer {
  border-left: none !important;
  border-right: 1px solid var(--line) !important;
}

.mobile-nav-link {
  color: #c7cfda !important;
}

.mobile-nav-link:hover {
  color: var(--yellow) !important;
}

/* ==========================================================================
   5. Hero Section & Choreographed Storytelling
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 36px) clamp(22px, 5vw, 72px) 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: 6vw;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 48%, rgba(42, 82, 180, 0.22), transparent 36%),
              radial-gradient(circle at 30% 10%, rgba(242, 255, 0, 0.04), transparent 26%);
  z-index: -3;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 82%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 82%);
}

/* Floating Code Cloud (Pure Technological Concepts) */
.code-cloud {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.code-fragment {
  position: absolute;
  color: rgba(220, 231, 255, 0.34);
  font: 600 10px/1 var(--fx-font-mono);
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.code-fragment:nth-child(3n) {
  color: rgba(242, 255, 0, 0.42);
}

/* Hero Content Block */
.hero-copy {
  align-self: center;
  max-width: 780px;
  z-index: 2;
}

.eyebrow {
  color: #b5bfcd;
  font: 700 10px/1.2 var(--fx-font-mono);
  letter-spacing: 0.18em;
  margin: 0 0 22px;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.8rem, 7.6vw, 9.2rem);
  line-height: 0.84;
  letter-spacing: -0.07em;
  font-weight: 760;
  color: var(--text);
}

.hero-title span {
  color: var(--yellow);
}

html[dir="rtl"] .hero-title {
  letter-spacing: 0;
  line-height: 1.15;
  font-weight: 800;
  font-size: clamp(3.2rem, 5.8vw, 6.8rem);
}

.hero-lede {
  max-width: 610px;
  margin: 32px 0 0;
  color: #b9c3d1;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--yellow);
  color: #080a0d;
}

.button-primary:hover {
  background: #e4f000;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: #ffffff;
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.hero-meta {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  max-width: 610px;
  color: #6f7a89;
  font: 700 9px/1.2 var(--fx-font-mono);
  letter-spacing: 0.16em;
}

.hero-meta i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow);
  margin-right: 8px;
  vertical-align: middle;
}

html[dir="rtl"] .hero-meta i {
  margin-right: 0;
  margin-left: 8px;
}

.hero-meta b {
  color: var(--yellow);
  font-size: 14px;
}

/* ==========================================================================
   6. Morph Stage (The Signature Geometric Transformation)
   ========================================================================== */
.hero-stage {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 0 100px rgba(51, 94, 170, 0.1), 0 40px 120px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

html[dir="rtl"] .hero-stage {
  justify-self: start;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-stage::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--yellow);
  filter: blur(90px);
  opacity: 0.1;
  pointer-events: none;
}

.stage-hud {
  position: absolute;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  z-index: 3;
  color: #788394;
  font: 700 9px/1 var(--fx-font-mono);
  letter-spacing: 0.13em;
}

.stage-hud-top {
  top: 22px;
}

.stage-hud-bottom {
  bottom: 22px;
}

.stage-status {
  color: var(--yellow);
}

.morph-stage {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  stroke-dasharray: 6 10;
}

.orbit-b {
  stroke: rgba(242, 255, 0, 0.08);
}

.circuit {
  fill: none;
  stroke: rgba(122, 151, 255, 0.35);
  stroke-width: 2;
  stroke-linecap: round;
}

.core-shape {
  fill: rgba(242, 255, 0, 0.055);
  stroke: url(#coreGradient);
  stroke-width: 3;
  filter: url(#glow);
}

.shape-target {
  visibility: hidden;
}

.data-packet {
  fill: var(--yellow);
  filter: url(#glow);
}

.stage-detail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 2;
}

.stage-detail rect,
.stage-detail circle {
  fill: rgba(255, 255, 255, 0.025);
}

.desktop-detail,
.ai-detail {
  opacity: 0;
}

.stage-label-wrap {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 11px;
  width: max-content;
  max-width: 85%;
  align-items: baseline;
  z-index: 4;
}

.stage-index {
  color: var(--yellow);
  font: 700 10px/1 var(--fx-font-mono);
}

.stage-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #ffffff;
  font-family: var(--fx-font-mono);
  font-weight: 700;
}

html[dir="rtl"] .stage-label {
  font-family: var(--fx-font-arabic);
  letter-spacing: 0;
}

.stage-sub {
  grid-column: 2;
  margin-top: 6px;
  color: #738095;
  font: 600 8px/1.2 var(--fx-font-mono);
  letter-spacing: 0.08em;
}

html[dir="rtl"] .stage-sub {
  font-family: var(--fx-font-arabic);
  letter-spacing: 0;
}

/* ==========================================================================
   7. Smooth Transition Bridge (Enables Full Hero Pinned Scroll Scrub)
   ========================================================================== */
.hero-scroll-bridge {
  position: relative;
  padding: 80px 24px;
  background: linear-gradient(to bottom, var(--bg), #040609);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  z-index: 10;
}

.bridge-inner {
  max-width: 640px;
  margin: 0 auto;
}

.bridge-tag {
  color: var(--yellow);
  font: 700 10px/1 var(--fx-font-mono);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}

.bridge-title {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 16px;
}

.bridge-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 auto;
}

/* ==========================================================================
   8. Production Footer Theming (Dark Void Harmonization)
   ========================================================================== */
.site-footer {
  background: #040608 !important;
  color: #8b96a5 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.site-footer .footer-title,
.site-footer h4 {
  color: #ffffff !important;
}

.site-footer a {
  color: #8b96a5 !important;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--yellow) !important;
}

.site-footer .social-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.site-footer .social-btn:hover {
  border-color: var(--yellow) !important;
  color: var(--yellow) !important;
}

/* ==========================================================================
   9. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--header-h) + 60px);
    gap: 40px;
  }
  .hero-stage {
    justify-self: center;
    width: min(92vw, 620px);
    margin-top: 20px;
  }
  .hero-title {
    font-size: clamp(3.4rem, 11vw, 6.8rem);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 70px;
  }
  .hero {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: calc(var(--header-h) + 24px);
    gap: 28px;
  }
  .hero-title {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
  }
  .hero-meta {
    gap: 14px;
    flex-direction: column;
  }
  .hero-stage {
    border-radius: 22px;
    width: min(100%, 420px);
  }
  .stage-hud-bottom {
    display: none;
  }
  .stage-label-wrap {
    bottom: 42px;
  }
  .stage-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: smooth;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .cursor-glow {
    display: none !important;
  }
}

/* ==========================================================================
   10. Transition Conduit (Hero Shield to Architecture Expansion)
   ========================================================================== */
.conduit-bridge {
  position: relative;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #07090d 100%);
  pointer-events: none;
}

.conduit-core {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--electric) 50%, rgba(79, 125, 255, 0.2) 100%);
  box-shadow: 0 0 16px var(--yellow);
}

.conduit-pulse {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 20px var(--yellow);
  animation: conduitPulse 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes conduitPulse {
  0% { transform: translateY(-45px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(45px); opacity: 0; }
}

/* Common Section Layout Rules */
.section-pad {
  padding: 110px 0;
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
}

.section-kicker {
  font-family: var(--fx-font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #ffffff;
}

.section-title em {
  font-style: normal;
  color: #7b889b;
}

.section-lede {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.6;
}

/* ==========================================================================
   11. Live System Architecture Section
   ========================================================================== */
.architecture {
  background: #07090d;
}

.architecture-board {
  position: relative;
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 50%, rgba(51, 94, 170, 0.16), transparent 45%),
              linear-gradient(180deg, #0b0f16, #07090d);
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(51, 94, 170, 0.08);
}

.architecture-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.25;
  pointer-events: none;
}

.architecture-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.architecture-lines path {
  fill: none;
  stroke: rgba(111, 143, 255, 0.35);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.packet {
  fill: var(--yellow);
  filter: drop-shadow(0 0 8px var(--yellow));
}

.arch-node {
  position: absolute;
  width: 154px;
  min-height: 114px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(13, 18, 27, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  z-index: 2;
}

.arch-node:hover,
.arch-node:focus-visible {
  border-color: var(--yellow);
  box-shadow: 0 12px 32px rgba(242, 255, 0, 0.18);
  outline: none;
}

.arch-node strong {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.arch-node small {
  color: #7b889b;
  font-size: 10px;
  font-family: var(--fx-font-mono);
  letter-spacing: 0.04em;
}

.node-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  margin-bottom: 6px;
  background: rgba(242, 255, 0, 0.08);
  color: var(--yellow);
  font-family: var(--fx-font-mono);
  font-size: 11px;
  font-weight: 800;
}

/* Node layout on Desktop */
.node-client { left: 4%; top: 50%; transform: translateY(-50%); }
.node-app    { left: 22%; top: 18%; }
.node-api    { left: 44%; top: 18%; }
.node-ai     { left: 50%; top: 62%; transform: translate(-50%, -50%); }
.node-data   { right: 22%; top: 18%; }
.node-sec    { right: 4%; top: 50%; transform: translateY(-50%); }

.architecture-console {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(600px, 86%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 8, 12, 0.9);
  border-radius: 14px;
  padding: 12px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3;
}

.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: #768294;
  font-family: var(--fx-font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.console-head i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
}

.console-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #dfe6f1;
  font-family: var(--fx-font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.spark-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
  pointer-events: none;
}

/* ==========================================================================
   12. Verified Architecture Standards
   ========================================================================== */
.standards {
  background: #090c12;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.standard-card {
  position: relative;
  background: rgba(13, 18, 27, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.standard-card:hover {
  border-color: rgba(242, 255, 0, 0.4);
  transform: translateY(-4px);
}

.std-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.std-index {
  font-family: var(--fx-font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--yellow);
}

.std-badge {
  font-family: var(--fx-font-mono);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.15em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #8fa0b5;
}

.standard-card h3 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.standard-card p {
  color: #9aa7b8;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.std-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.std-bar span {
  display: block;
  width: 32px;
  height: 100%;
  background: var(--yellow);
  transition: width 0.4s ease;
}

.standard-card:hover .std-bar span {
  width: 100%;
}

/* ==========================================================================
   13. Engineering Journey (6-Stage Horizontal Process Track)
   ========================================================================== */
.process {
  position: relative;
  background: #0a0d12;
  direction: ltr !important;
}

.process-pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
  direction: ltr !important;
}

/* Force LTR layout for the horizontal coordinate space */
.process-track {
  height: 100%;
  display: flex !important;
  flex-direction: row !important;
  direction: ltr !important;
  width: 700vw;
  will-change: transform;
}

.process-panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex: none;
  padding: calc(var(--header-h) + 4vh) clamp(28px, 6vw, 90px) 5vh;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: center;
  gap: 6vw;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-sizing: border-box;
}

.process-panel::before {
  content: "";
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  right: -20vw;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

/* RTL layout overrides inside each panel */
html[dir="rtl"] .process-panel {
  direction: rtl !important;
  text-align: right;
  grid-template-columns: 1fr 0.85fr;
}

html[dir="rtl"] .process-panel::before {
  right: auto;
  left: -20vw;
}

.panel-number {
  position: absolute;
  top: calc(var(--header-h) + 18px);
  right: 6vw;
  font-family: var(--fx-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #657083;
}

html[dir="rtl"] .panel-number {
  right: auto;
  left: 6vw;
}

/* Panel Intro Styling */
.panel-intro {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: center;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

html[dir="rtl"] .intro-copy {
  align-items: flex-start;
  text-align: right;
}

.panel-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(2.8rem, 5.5vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: #ffffff;
}

.panel-intro > .process-copy > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.intro-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--fx-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #a4b3c7;
}

.intro-chip i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}

/* Panel 0: Core Blueprint Visual */
.blueprint-visual {
  justify-self: center;
  width: min(44vw, 520px);
  position: relative;
}

.blueprint-frame {
  position: relative;
  border: 1px solid rgba(79, 125, 255, 0.28);
  border-radius: 24px;
  background: radial-gradient(circle at center, rgba(66, 92, 181, 0.14), transparent 65%),
              linear-gradient(145deg, #0e1420, #07090f);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(79, 125, 255, 0.06);
  overflow: hidden;
}

.blueprint-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.bp-hud-top,
.bp-hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--fx-font-mono);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: #6d7d93;
}

.bp-hud-top {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-hud-bottom {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-status {
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(242, 255, 0, 0.4);
}

.bp-chassis {
  position: relative;
  width: 100%;
  aspect-ratio: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.bp-ring-1 {
  width: 78%;
  height: 78%;
  animation: bpRotate 22s linear infinite;
}

.bp-ring-2 {
  width: 54%;
  height: 54%;
  border-style: solid;
  border-color: rgba(79, 125, 255, 0.22);
  animation: bpRotate 14s linear infinite reverse;
}

.bp-laser {
  position: absolute;
  width: 44%;
  height: 1px;
  background: linear-gradient(90deg, var(--yellow), transparent);
  left: 50%;
  top: 50%;
  transform-origin: left;
  animation: bpLaser 5s linear infinite;
}

@keyframes bpRotate {
  to { transform: rotate(360deg); }
}

@keyframes bpLaser {
  to { transform: rotate(360deg); }
}

.bp-core {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b2538, #0a0f18);
  border: 2px solid var(--yellow);
  box-shadow: 0 0 28px rgba(242, 255, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bp-core strong {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.05em;
  line-height: 1;
}

.bp-core small {
  font-family: var(--fx-font-mono);
  font-size: 7px;
  font-weight: 750;
  color: var(--yellow);
  letter-spacing: 0.1em;
  margin-top: 3px;
}

.bp-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(14, 20, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  font-family: var(--fx-font-mono);
  font-size: 9px;
  font-weight: 750;
  color: #e2e8f0;
}

.bp-node span {
  color: var(--yellow);
}

.bp-node label {
  cursor: default;
  letter-spacing: 0.05em;
}

.bp-node-1 { top: 6%; left: 8%; }
.bp-node-2 { top: 6%; right: 8%; }
.bp-node-3 { top: 48%; right: -2%; transform: translateY(-50%); }
.bp-node-4 { bottom: 6%; right: 8%; }
.bp-node-5 { bottom: 6%; left: 8%; }
.bp-node-6 { top: 48%; left: -2%; transform: translateY(-50%); }

/* Process Copy Typography: Guaranteed Visible */
.process-copy {
  opacity: 1 !important;
  visibility: visible !important;
}

.process-copy span {
  color: var(--yellow);
  font-family: var(--fx-font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  display: block;
}

.process-copy h3 {
  margin: 14px 0 12px;
  font-size: clamp(2.4rem, 4.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: #ffffff;
}

.process-copy p {
  max-width: 520px;
  color: #9aa7b8;
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  margin: 0;
}

.process-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.process-tags span {
  font-family: var(--fx-font-mono);
  font-size: 10px;
  font-weight: 650;
  color: #72849b;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-badge {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--fx-font-mono);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: var(--yellow);
  white-space: nowrap;
}

.process-progress {
  position: absolute;
  z-index: 10;
  left: 0;
  bottom: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.process-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--yellow);
}

/* Process Stage Visuals */
.radar-visual {
  justify-self: center;
  width: min(34vw, 360px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, rgba(242, 255, 0, 0.08), transparent 56%);
}

.radar-visual i {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.radar-visual i:nth-child(2) { inset: 32%; }
.radar-visual i:nth-child(3) { inset: 48%; }

.radar-visual b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 45%;
  height: 1px;
  transform-origin: left;
  background: linear-gradient(90deg, var(--yellow), transparent);
  animation: radarSpin 4s linear infinite;
}

@keyframes radarSpin {
  to { transform: rotate(360deg); }
}

.wireframe-visual {
  justify-self: center;
  width: min(38vw, 420px);
  aspect-ratio: 1.25;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  grid-template-rows: 0.45fr 1fr;
  gap: 12px;
  perspective: 900px;
}

.wireframe-visual div {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.wireframe-visual div:nth-child(1) { grid-column: 1 / 3; }
.wireframe-visual div:nth-child(4) { background: linear-gradient(145deg, rgba(242, 255, 0, 0.14), rgba(255, 255, 255, 0.02)); }

.code-visual {
  justify-self: center;
  min-width: min(38vw, 440px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: #06080c;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  font: 600 clamp(0.85rem, 1.15vw, 1.05rem)/1.75 var(--fx-font-mono);
}

.code-visual span,
.code-visual strong,
.code-visual em {
  display: block;
}

.code-visual span { color: #7e8da3; }
.code-visual strong { color: #edf2fa; }
.code-visual em {
  color: var(--yellow);
  font-style: normal;
  padding-left: 20px;
}

.neural-visual {
  justify-self: center;
  position: relative;
  width: min(36vw, 380px);
  aspect-ratio: 1;
}

.neural-visual::before,
.neural-visual::after {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: neuralSpin 16s linear infinite;
}

.neural-visual::after {
  inset: 30%;
  animation-direction: reverse;
  animation-duration: 10s;
}

.neural-visual i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 24px rgba(242, 255, 0, 0.5);
  left: 50%;
  top: 50%;
}

.neural-visual i:nth-child(2) { transform: translate(-120px, -80px); }
.neural-visual i:nth-child(3) { transform: translate(100px, -95px); }
.neural-visual i:nth-child(4) { transform: translate(120px, 70px); }
.neural-visual i:nth-child(5) { transform: translate(-105px, 95px); }
.neural-visual i:nth-child(6) { transform: translate(10px, -135px); }
.neural-visual i:nth-child(7) { transform: translate(-15px, 130px); }

@keyframes neuralSpin {
  to { transform: rotate(360deg); }
}

.shield-visual {
  justify-self: center;
  position: relative;
  width: min(30vw, 320px);
  aspect-ratio: 0.9;
  clip-path: polygon(50% 0, 95% 16%, 91% 64%, 74% 84%, 50% 100%, 26% 84%, 9% 64%, 5% 16%);
  background: linear-gradient(145deg, var(--yellow), #a8be00);
  color: #080a0d;
  display: grid;
  place-items: center;
  box-shadow: 0 0 80px rgba(242, 255, 0, 0.2);
}

.shield-visual span {
  font-size: clamp(3.6rem, 7.5vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

/* Deploy Visual */
.deploy-visual {
  justify-self: center;
  position: relative;
  width: min(34vw, 360px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deploy-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(79, 125, 255, 0.28);
}

.deploy-pulse-ring.ring-1 {
  width: 88%;
  height: 88%;
  animation: deployPulse 3s ease-out infinite;
}

.deploy-pulse-ring.ring-2 {
  width: 65%;
  height: 65%;
  border-color: rgba(242, 255, 0, 0.25);
  animation: deployPulse 3s ease-out 1.2s infinite;
}

@keyframes deployPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0; }
}

.deploy-chassis {
  position: relative;
  z-index: 2;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(145deg, #101726, #07090f);
  border: 2px solid var(--electric);
  box-shadow: 0 0 45px rgba(79, 125, 255, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
}

.deploy-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.deploy-chassis strong {
  font-size: 13px;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.deploy-chassis small {
  font-family: var(--fx-font-mono);
  font-size: 8px;
  font-weight: 750;
  color: var(--yellow);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ==========================================================================
   14. Capability Matrix (GSAP Flip System)
   ========================================================================== */
.capabilities {
  background: #080b10;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #a0aec0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: var(--fx-font-mono);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.filter:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.filter.active {
  background: var(--yellow);
  color: #080a0d;
  border-color: var(--yellow);
  box-shadow: 0 0 16px rgba(242, 255, 0, 0.25);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cap-card {
  position: relative;
  min-height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(14, 19, 28, 0.85);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cap-card:hover {
  border-color: rgba(242, 255, 0, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cap-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -80px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(51, 94, 170, 0.18), transparent 68%);
  pointer-events: none;
}

.cap-card.cap-feature {
  grid-column: span 2;
  background: linear-gradient(145deg, #101622, #0b0f16);
  border-color: rgba(255, 255, 255, 0.16);
}

.cap-card.cap-feature::after {
  background: radial-gradient(circle, rgba(242, 255, 0, 0.14), transparent 68%);
}

.cap-card.is-focus {
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

.cap-index {
  font-family: var(--fx-font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #657285;
}

.cap-card small {
  display: block;
  font-family: var(--fx-font-mono);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.15em;
  color: #7b889b;
  margin-bottom: 8px;
}

.cap-feature small {
  color: var(--yellow);
}

.cap-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: #ffffff;
}

.cap-card p {
  max-width: 440px;
  margin: 0;
  color: #92a0b2;
  line-height: 1.55;
  font-size: 13.5px;
}

.cap-link {
  align-self: flex-end;
  font-size: 22px;
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cap-card:hover .cap-link {
  color: var(--yellow);
  transform: translate(3px, -3px);
}

/* ==========================================================================
   15. Selected Work / Production Software Fleet
   ========================================================================== */
.products {
  background: #06080c;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.prod-card {
  position: relative;
  background: rgba(13, 18, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.prod-card:hover {
  border-color: rgba(79, 125, 255, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.prod-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prod-card:hover::before {
  opacity: 1;
}

.prod-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.prod-tag {
  font-family: var(--fx-font-mono);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: var(--yellow);
}

.prod-badge {
  font-family: var(--fx-font-mono);
  font-size: 8px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #8fa0b5;
}

.prod-title {
  font-size: 1.6rem;
  margin: 0 0 10px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.prod-desc {
  color: #92a0b2;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.prod-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.prod-spec {
  color: #6d7b8f;
  font-family: var(--fx-font-mono);
  font-size: 10px;
  font-weight: 600;
}

.prod-action {
  color: var(--yellow);
  text-decoration: none;
  font-family: var(--fx-font-mono);
  font-size: 11px;
  font-weight: 750;
  transition: transform 0.2s ease;
}

.prod-card:hover .prod-action {
  transform: translateX(4px);
}

/* ==========================================================================
   16. Compact Interaction Lab
   ========================================================================== */
.interaction-lab {
  background: #080b10;
}

.drag-arena {
  position: relative;
  min-height: 580px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(66, 92, 181, 0.16), transparent 32%),
              linear-gradient(145deg, #0c1119, #07090d);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.drag-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
}

.drag-orbit {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px dashed rgba(242, 255, 0, 0.14);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.drag-card {
  position: absolute;
  width: 195px;
  height: 135px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(17, 23, 34, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  z-index: 2;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.drag-card:active {
  cursor: grabbing;
  border-color: var(--yellow);
  box-shadow: 0 25px 60px rgba(242, 255, 0, 0.2);
}

.drag-card span {
  color: var(--yellow);
  font-family: var(--fx-font-mono);
  font-size: 9px;
  font-weight: 750;
}

.drag-card strong {
  font-size: 16px;
  color: #ffffff;
}

.drag-card small {
  color: #728094;
  font-family: var(--fx-font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.drag-a { left: 10%; top: 18%; transform: rotate(-5deg); }
.drag-b { right: 12%; top: 16%; transform: rotate(6deg); }
.drag-c { left: 22%; bottom: 16%; transform: rotate(4deg); }
.drag-d { right: 20%; bottom: 14%; transform: rotate(-5deg); }
.drag-e { left: 45%; top: 40%; transform: rotate(-2deg); }

.drag-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #566174;
  font-family: var(--fx-font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  pointer-events: none;
}

/* ==========================================================================
   17. Final Assembly & Conversion CTA
   ========================================================================== */
.assembly {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #07090c;
  padding: 120px 24px 80px;
}

.assembly::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(51, 94, 170, 0.22), transparent 45%);
  pointer-events: none;
}

.assembly-bg-word {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  font-size: 20vw;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

.assembly-logo {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.5);
  background: #0c1119;
  display: grid;
  place-items: center;
  z-index: 2;
}

.assembly-logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.assembly .section-kicker {
  position: relative;
  z-index: 2;
}

.assembly-title {
  position: relative;
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 7.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 900;
  color: #ffffff;
  z-index: 2;
}

.assembly-copy {
  position: relative;
  max-width: 620px;
  color: #9ca8b8;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  margin: 28px auto 36px;
  z-index: 2;
}

.assembly-actions {
  position: relative;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.button-whatsapp {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #ffffff;
  transition: all 0.25s ease;
}

.button-whatsapp:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: #25D366;
  transform: translateY(-2px);
}

.assembly-footer {
  margin-top: 60px;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 32px;
  color: #5d6878;
  font-family: var(--fx-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   18. Full RTL Layout Overrides (Arabic Mode)
   ========================================================================== */
html[dir="rtl"] .arch-node {
  text-align: right;
  align-items: flex-end;
}

html[dir="rtl"] .section-head {
  text-align: right;
}

html[dir="rtl"] .node-client { right: 4%; left: auto; }
html[dir="rtl"] .node-app    { right: 22%; left: auto; }
html[dir="rtl"] .node-api    { right: 44%; left: auto; }
html[dir="rtl"] .node-data   { left: 22%; right: auto; }
html[dir="rtl"] .node-sec    { left: 4%; right: auto; }

html[dir="rtl"] .panel-intro {
  align-items: flex-end;
  text-align: right;
}

html[dir="rtl"] .process-copy {
  text-align: right;
}

html[dir="rtl"] .panel-number {
  left: 6vw;
  right: auto;
}

html[dir="rtl"] .process-progress span {
  transform-origin: right;
}

html[dir="rtl"] .code-visual em {
  padding-left: 0;
  padding-right: 24px;
}

html[dir="rtl"] .code-visual {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .cap-link {
  align-self: flex-start;
  transform: scaleX(-1);
}

html[dir="rtl"] .cap-card:hover .cap-link {
  transform: scaleX(-1) translate(-3px, -3px);
}

html[dir="rtl"] .prod-card {
  text-align: right;
}

html[dir="rtl"] .prod-card:hover .prod-action {
  transform: translateX(-4px);
}

/* ==========================================================================
   19. Responsive Breakpoints for Added Sections
   ========================================================================== */
@media (max-width: 1050px) {
  .standards-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card.cap-feature { grid-column: span 2; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  
  .architecture-board { min-height: 720px; }
  .node-client { left: 4%; top: 38%; transform: none; }
  .node-app    { left: 25%; top: 15%; }
  .node-api    { right: 25%; left: auto; top: 15%; }
  .node-ai     { left: 50%; top: 48%; transform: translate(-50%, -50%); }
  .node-data   { left: 15%; top: auto; bottom: 20%; }
  .node-sec    { right: 15%; top: auto; bottom: 20%; transform: none; }
}

@media (max-width: 1024px) {
  /* Process Track: Graceful Vertical Stack for Tablets & Mobile without Pin Trap */
  .process-pin {
    height: auto;
    overflow: visible;
  }
  .process-track {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    transform: none !important;
  }
  .process-panel {
    width: 100% !important;
    height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    padding: 60px 24px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  html[dir="rtl"] .process-panel {
    grid-template-columns: 1fr !important;
  }
  .process-panel::before {
    display: none;
  }
  .process-progress {
    display: none;
  }
  .blueprint-visual,
  .radar-visual,
  .wireframe-visual,
  .code-visual,
  .neural-visual,
  .shield-visual,
  .deploy-visual {
    width: min(84vw, 380px) !important;
    min-width: 0 !important;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .section-pad { padding: 75px 0; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 36px;
  }
  .section-title { font-size: clamp(2.2rem, 9vw, 3.4rem); }

  .standards-grid { grid-template-columns: 1fr; }
  
  .architecture-board { min-height: 760px; }
  .architecture-lines { display: none; }
  .arch-node { width: 138px; min-height: 104px; padding: 12px 14px; }
  .node-client { left: 6%; top: 12%; transform: none; }
  .node-app    { right: 6%; left: auto; top: 12%; }
  .node-api    { left: 6%; top: 38%; }
  .node-ai     { right: 6%; left: auto; top: 38%; transform: none; }
  .node-data   { left: 6%; top: auto; bottom: 22%; }
  .node-sec    { right: 6%; top: auto; bottom: 22%; transform: none; }
  .architecture-console { bottom: 18px; width: 92%; }

  .capability-grid { grid-template-columns: 1fr; }
  .cap-card.cap-feature { grid-column: span 1; }
  .cap-card { min-height: 260px; }

  .products-grid { grid-template-columns: 1fr; }

  .drag-arena { min-height: 640px; }
  .drag-card { width: 160px; height: 120px; padding: 14px; }
  .drag-a { left: 6%; top: 10%; }
  .drag-b { right: 6%; top: 26%; }
  .drag-c { left: 8%; bottom: 20%; }
  .drag-d { right: 6%; bottom: 8%; }
  .drag-e { left: 35%; top: 46%; }
  .drag-orbit { width: 260px; height: 260px; }

  .assembly { padding: 90px 18px 60px; min-height: 70vh; }
  .assembly-title { font-size: clamp(2.8rem, 11vw, 4.4rem); }
  .assembly-footer { gap: 14px; flex-direction: column; align-items: center; }
  .assembly-actions { flex-direction: column; width: 100%; }
  .assembly-actions .button { width: 100%; justify-content: center; }
}
