/* ==========================================================================
   Orqentra Public Website Theme v3
   Central CSS file for the Cloudflare Pages marketing site.

   Design direction:
   - Single premium dark-blue visual system across the whole page.
   - White text on dark sections.
   - Lighter, calmer large headings.
   - No duplicate top-left badge/logo.
   - Brand logo used as a central hero asset.
   ========================================================================== */

:root {
  --bg-0: #020814;
  --bg-1: #04101f;
  --bg-2: #07182e;
  --bg-3: #0b2450;
  --ink: #f8fbff;
  --muted: rgba(214, 226, 245, 0.72);
  --muted-2: rgba(214, 226, 245, 0.58);
  --panel: rgba(8, 18, 39, 0.72);
  --panel-strong: rgba(9, 18, 42, 0.88);
  --panel-border: rgba(105, 162, 255, 0.23);
  --blue: #44b9ff;
  --blue-2: #6f8cff;
  --green: #3fe7ba;
  --red: #ff545f;
  --white: #ffffff;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 20px 54px rgba(0, 0, 0, 0.22);
  --radius-xl: 34px;
  --radius-card: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 84, 95, 0.09), transparent 25%),
    radial-gradient(circle at 84% 12%, rgba(68, 185, 255, 0.14), transparent 28%),
    radial-gradient(circle at 52% 42%, rgba(37, 99, 235, 0.09), transparent 28%),
    linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 34%, var(--bg-2) 72%, var(--bg-3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 18%, black 0%, rgba(0, 0, 0, 0.72) 34%, transparent 84%);
  z-index: -1;
}

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

.site-shell {
  width: min(1540px, calc(100% - 56px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.site-hero {
  position: relative;
  min-height: 650px;
  padding: 28px 34px 48px;
  border-radius: var(--radius-xl);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 84, 95, 0.07), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(68, 185, 255, 0.10), transparent 34%),
    linear-gradient(145deg, rgba(13, 28, 64, 0.82), rgba(5, 14, 31, 0.74));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.82), transparent 78%);
  pointer-events: none;
}

.site-hero > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
}

.nav-spacer {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(248, 251, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 0.78fr);
  align-items: center;
  gap: 58px;
  min-height: 520px;
  padding-top: 18px;
}

.hero-copy {
  max-width: 850px;
}

.hero-wordmark-main {
  width: min(560px, 82%);
  max-height: 170px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 34px;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.38));
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 5.4vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 700;
  color: #fff;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 3.8vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 650;
  color: #fff;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: #fff;
}

.hero-sub {
  max-width: 710px;
  margin: 0;
  color: rgba(214, 226, 245, 0.80);
  font-size: 1.08rem;
  line-height: 1.64;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(146, 183, 255, 0.22);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.light {
  background: rgba(255, 255, 255, 0.92);
  color: #102b73;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-panel {
  display: grid;
  align-content: center;
  justify-items: stretch;
}

.command-card {
  width: min(520px, 100%);
  margin-left: auto;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 8%, rgba(68, 185, 255, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(13, 28, 64, 0.74), rgba(5, 14, 31, 0.68));
  border: 1px solid rgba(146, 183, 255, 0.20);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.command-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(248, 251, 255, 0.78);
  font-weight: 500;
}

.status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 22px rgba(63, 231, 186, 0.72);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(214, 226, 245, 0.76);
  font-size: 14px;
}

.metric-row strong {
  color: #fff;
  font-weight: 650;
}

.section {
  padding: 84px 0 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.section-heading p,
.control-copy p,
.visual-band p,
.cta p {
  max-width: 800px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
  font-weight: 400;
}

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

.feature-card,
.principle,
.cta,
.visual-band {
  background:
    radial-gradient(circle at 12% 10%, rgba(68, 185, 255, 0.06), transparent 34%),
    linear-gradient(145deg, rgba(13, 28, 64, 0.62), rgba(5, 14, 31, 0.54));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.feature-card {
  min-height: 214px;
  padding: 22px;
}

.feature-card p,
.principle p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-number {
  display: inline-flex;
  margin-bottom: 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.control-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.principles {
  display: grid;
  gap: 14px;
}

.principle {
  padding: 20px;
}

.principle span {
  display: inline-flex;
  margin-right: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.principle strong {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}

.principle p {
  margin-top: 8px;
  margin-left: 36px;
}

.visual-band {
  margin-top: 84px;
  padding: 58px;
}

.cta {
  margin-top: 84px;
  padding: 58px 34px;
  text-align: center;
}

.cta-q {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.34));
}

.cta p {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 26px;
}

@media (max-width: 1060px) {
  .site-shell {
    width: min(100% - 36px, 1540px);
  }

  .site-hero {
    min-height: auto;
  }

  .hero-grid,
  .control-section {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .command-card {
    margin-left: 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-wordmark-main {
    max-width: 500px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 28px, 1540px);
    padding-top: 16px;
  }

  .site-hero {
    padding: 22px;
    border-radius: 28px;
  }

  .nav-links {
    gap: 18px;
    font-size: 13px;
  }

  .hero-wordmark-main {
    width: 100%;
    max-width: 330px;
    margin-bottom: 28px;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .visual-band,
  .cta {
    padding: 34px 22px;
    border-radius: 28px;
  }
}


/* === v4: subtle full-width operational motion behind main hero === */

.hero-motion-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
  overflow: hidden;
}

.hero-motion-svg {
  position: absolute;
  inset: -4% -3%;
  width: 106%;
  height: 108%;
  display: block;
}

.motion-grid-lines path {
  stroke: rgba(255, 255, 255, 0.018);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.motion-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 18;
  vector-effect: non-scaling-stroke;
  animation: heroLineFlow 22s linear infinite;
}

.motion-red-lines .motion-line {
  stroke: rgba(255, 84, 95, 0.24);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 8px rgba(255, 84, 95, 0.20));
}

.motion-green-lines .motion-line {
  stroke: rgba(63, 231, 186, 0.30);
  stroke-width: 1.9;
  filter: drop-shadow(0 0 8px rgba(63, 231, 186, 0.20));
}

.motion-blue-lines .motion-line {
  stroke: rgba(68, 185, 255, 0.22);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 8px rgba(68, 185, 255, 0.16));
}

.motion-line-b {
  animation-duration: 28s;
  animation-direction: reverse;
  opacity: 0.55;
}

.motion-line-c {
  animation-duration: 18s;
}

.motion-line-d {
  animation-duration: 26s;
  animation-direction: reverse;
  opacity: 0.50;
}

.motion-line-e {
  animation-duration: 34s;
  opacity: 0.42;
}

.motion-scanner {
  stroke: rgba(68, 185, 255, 0.16);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  animation: heroScanner 8s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(68, 185, 255, 0.18));
}

.site-hero > .topbar,
.site-hero > .hero-grid {
  position: relative;
  z-index: 2;
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 8, 20, 0.14), transparent 38%, rgba(2, 8, 20, 0.12)),
    radial-gradient(circle at 44% 50%, rgba(4, 16, 31, 0.08), transparent 44%);
}

@keyframes heroLineFlow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -320;
  }
}

@keyframes heroScanner {
  0%, 100% {
    transform: translateX(-260px);
    opacity: 0;
  }
  18% {
    opacity: 0.18;
  }
  48% {
    transform: translateX(1120px);
    opacity: 0.22;
  }
  78% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-line,
  .motion-scanner {
    animation: none;
  }
}


/* === v5: login-inspired hero motion, stronger but still background-only === */

.hero-motion-bg-v5 {
  inset: 0;
  opacity: 0.92;
  mix-blend-mode: screen;
}

.hero-motion-svg-v5 {
  inset: -9% -5% auto -5%;
  width: 110%;
  height: 96%;
}

/* Lift the visual language higher into the hero so it feels connected to the brand/header. */
.hero-motion-bg-v5 .motion-grid-lines path {
  stroke: rgba(255, 255, 255, 0.022);
}

.hero-motion-bg-v5 .motion-line {
  stroke-dasharray: 10 16;
  animation: heroLineFlowV5 20s linear infinite;
  opacity: 0.82;
}

.hero-motion-bg-v5 .motion-red-lines .motion-line {
  stroke: rgba(255, 84, 95, 0.36);
  stroke-width: 2.05;
  filter: url(#heroGlow);
}

.hero-motion-bg-v5 .motion-green-lines .motion-line {
  stroke: rgba(63, 231, 186, 0.44);
  stroke-width: 2.15;
  filter: url(#heroGlow);
}

.hero-motion-bg-v5 .motion-blue-lines .motion-line {
  stroke: rgba(68, 185, 255, 0.30);
  stroke-width: 1.85;
  filter: url(#heroGlow);
}

.hero-motion-bg-v5 .motion-line-b {
  animation-duration: 26s;
  animation-direction: reverse;
  opacity: 0.66;
}

.hero-motion-bg-v5 .motion-line-c {
  animation-duration: 17s;
  opacity: 0.88;
}

.hero-motion-bg-v5 .motion-line-d {
  animation-duration: 23s;
  animation-direction: reverse;
  opacity: 0.64;
}

.hero-motion-bg-v5 .motion-line-e {
  animation-duration: 31s;
  opacity: 0.54;
}

.hero-motion-bg-v5 .motion-line-f {
  animation-duration: 29s;
  animation-direction: reverse;
  opacity: 0.44;
}

.hero-motion-bg-v5 .motion-scanner {
  stroke: rgba(68, 185, 255, 0.20);
  stroke-width: 2.1;
  animation: heroScannerV5 7.4s ease-in-out infinite;
  filter: url(#heroGlow);
}

.motion-particles .drift-dot,
.motion-particles .data-dot {
  filter: url(#heroGlow);
  transform-origin: center;
}

.dot-blue {
  fill: rgba(68, 185, 255, 0.86);
}

.dot-green {
  fill: rgba(63, 231, 186, 0.86);
}

.dot-red {
  fill: rgba(255, 84, 95, 0.76);
}

.drift-dot {
  animation: floatDotV5 6.8s ease-in-out infinite;
  opacity: 0.72;
}

.data-dot {
  animation: dataPulseV5 3.4s ease-in-out infinite;
  opacity: 0.88;
}

.dot-2,
.data-2 {
  animation-delay: -1.1s;
}

.dot-3,
.data-3 {
  animation-delay: -2.2s;
}

.dot-4 {
  animation-delay: -3.3s;
}

.dot-5 {
  animation-delay: -4.1s;
}

.dot-6 {
  animation-delay: -5.2s;
}

.dot-7 {
  animation-delay: -6s;
}

/* Keep content calm/readable above the animation. */
.site-hero::after {
  background:
    linear-gradient(90deg, rgba(2, 8, 20, 0.20), transparent 42%, rgba(2, 8, 20, 0.16)),
    radial-gradient(circle at 42% 46%, rgba(4, 16, 31, 0.10), transparent 44%),
    linear-gradient(180deg, rgba(2, 8, 20, 0.04), rgba(2, 8, 20, 0.16));
}

@keyframes heroLineFlowV5 {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -360; }
}

@keyframes heroScannerV5 {
  0%, 100% {
    transform: translateX(-320px);
    opacity: 0;
  }
  16% {
    opacity: 0.22;
  }
  48% {
    transform: translateX(1180px);
    opacity: 0.28;
  }
  76% {
    opacity: 0;
  }
}

@keyframes floatDotV5 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.42;
  }
  45% {
    transform: translate(18px, -18px) scale(1.22);
    opacity: 0.92;
  }
  70% {
    transform: translate(-10px, 10px) scale(0.92);
    opacity: 0.62;
  }
}

@keyframes dataPulseV5 {
  0%, 100% {
    transform: scale(0.72);
    opacity: 0.32;
  }
  50% {
    transform: scale(1.55);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-motion-bg-v5 .motion-line,
  .hero-motion-bg-v5 .motion-scanner,
  .drift-dot,
  .data-dot {
    animation: none;
  }
}

@media (max-width: 720px) {
  .hero-motion-bg-v5 {
    opacity: 0.62;
  }

  .hero-motion-svg-v5 {
    inset: -5% -18% auto -18%;
    width: 136%;
    height: 92%;
  }
}


/* === v6: premium login-derived flow around central Orqentra logo === */
/* Red flow enters from the left; green flow exits to the right. The Orqentra logo acts as the calm control point. */

.site-hero {
  min-height: 740px;
}

.hero-flow-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.96;
}

.hero-flow-svg {
  position: absolute;
  left: -2%;
  top: -6%;
  width: 104%;
  height: 92%;
  display: block;
}

.flow-grid path {
  stroke: rgba(255, 255, 255, 0.018);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.flow-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 10 14;
  animation: flowDashV6 20s linear infinite;
}

.flow-red-group .flow-path {
  stroke: rgba(255, 84, 95, 0.48);
  stroke-width: 2.1;
  filter: url(#flowRedGlow);
}

.flow-red-group .flow-path.main {
  stroke: rgba(255, 84, 95, 0.66);
  stroke-width: 2.35;
}

.flow-green-group .flow-path {
  stroke: rgba(63, 231, 186, 0.52);
  stroke-width: 2.1;
  filter: url(#flowGreenGlow);
}

.flow-green-group .flow-path.main {
  stroke: rgba(63, 231, 186, 0.72);
  stroke-width: 2.35;
}

.flow-path.dashed {
  opacity: 0.72;
  animation-duration: 25s;
  animation-direction: reverse;
}

.flow-path.soft {
  opacity: 0.44;
  stroke-width: 1.55;
  animation-duration: 31s;
}

.flow-node {
  filter: url(#flowRedGlow);
  animation: nodePulseV6 3.6s ease-in-out infinite;
}

.flow-node.green {
  filter: url(#flowGreenGlow);
}

.flow-node.halo {
  opacity: 0.24;
}

.flow-node.red {
  fill: #ff545f;
}

.flow-node.green {
  fill: #3fe7ba;
}

.flow-data {
  opacity: 0.95;
}

.flow-data.red {
  fill: #ff545f;
  filter: url(#flowRedGlow);
}

.flow-data.green {
  fill: #3fe7ba;
  filter: url(#flowGreenGlow);
}

.flow-core-orbit {
  opacity: 0.34;
}

.flow-core-orbit ellipse {
  fill: none;
  stroke: rgba(68, 185, 255, 0.24);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  animation: orbitBreathV6 5.8s ease-in-out infinite;
}

.flow-core-orbit ellipse:nth-child(2) {
  stroke: rgba(63, 231, 186, 0.13);
  animation-delay: -1.8s;
}

.flow-core-orbit circle {
  fill: rgba(68, 185, 255, 0.66);
  filter: drop-shadow(0 0 14px rgba(68,185,255,0.35));
  animation: dataPulseV6 3.2s ease-in-out infinite;
}

/* Centre logo: not a block, just a control point floating within the data flow */
.hero-centre-brand {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 126px;
  transform: translateX(-50%);
  width: min(590px, 46vw);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero-centre-brand::before {
  content: "";
  position: absolute;
  inset: 12% 12% 6%;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(68,185,255,0.16) 0%, rgba(68,185,255,0.06) 42%, transparent 72%);
  filter: blur(18px);
  opacity: 0.88;
  z-index: -1;
}

.hero-centre-wordmark {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 16px 38px rgba(0,0,0,0.40))
    drop-shadow(0 0 18px rgba(68,185,255,0.10));
  opacity: 0.96;
}

/* Give the centred logo room and pull hero copy/card lower, without making the animation the main attraction. */
.hero-grid {
  min-height: 620px;
  padding-top: 212px;
  align-items: start;
}

.hero-copy {
  align-self: start;
}

.hero-panel {
  align-self: start;
  padding-top: 42px;
}

/* Keep nav above everything */
.site-hero > .topbar {
  position: relative;
  z-index: 5;
}

/* Keep hero content readable over the flow */
.site-hero > .hero-grid {
  position: relative;
  z-index: 3;
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,8,20,0.08) 0%, rgba(2,8,20,0.02) 24%, rgba(2,8,20,0.14) 76%, rgba(2,8,20,0.22) 100%),
    radial-gradient(circle at 50% 32%, rgba(4,16,31,0.04), transparent 30%),
    linear-gradient(90deg, rgba(2,8,20,0.18), transparent 42%, rgba(2,8,20,0.15));
}

/* Disable previous v4/v5 motion if present in cached CSS/package */
.hero-motion-bg,
.hero-motion-bg-v5 {
  display: none !important;
}

@keyframes flowDashV6 {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -320; }
}

@keyframes nodePulseV6 {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes dataPulseV6 {
  0%, 100% { transform: scale(0.86); opacity: 0.44; }
  50% { transform: scale(1.36); opacity: 1; }
}

@keyframes orbitBreathV6 {
  0%, 100% { opacity: 0.22; transform: scale(0.98); }
  50% { opacity: 0.42; transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-path,
  .flow-node,
  .flow-core-orbit ellipse,
  .flow-core-orbit circle {
    animation: none !important;
  }

  .flow-data animateMotion {
    animation: none !important;
  }
}

@media (max-width: 1060px) {
  .site-hero {
    min-height: auto;
  }

  .hero-centre-brand {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(540px, 86%);
    margin: 28px auto 0;
  }

  .hero-grid {
    padding-top: 52px;
    min-height: auto;
  }

  .hero-panel {
    padding-top: 0;
  }

  .hero-flow-svg {
    top: -3%;
    height: 70%;
  }
}

@media (max-width: 720px) {
  .hero-centre-brand {
    width: min(340px, 94%);
    margin-top: 28px;
  }

  .hero-grid {
    padding-top: 44px;
  }

  .hero-flow-stage {
    opacity: 0.68;
  }

  .hero-flow-svg {
    left: -32%;
    width: 164%;
    height: 68%;
  }
}


/* === v7: connected red-to-green flow through central Orqentra logo === */
/* This pass reduces dominant dots, moves the flow behind the logo, and makes the main travelling dot transform from red to green. */

.site-hero {
  min-height: 740px;
}

.hero-flow-stage-v7 {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.98;
}

.hero-flow-svg-v7 {
  position: absolute;
  left: -2%;
  top: -4%;
  width: 104%;
  height: 78%;
  display: block;
}

/* Suppress older motion layers if they exist in the CSS history. */
.hero-motion-bg,
.hero-motion-bg-v5,
.hero-flow-stage:not(.hero-flow-stage-v7) {
  display: none !important;
}

.flow-grid-v7 path {
  stroke: rgba(255, 255, 255, 0.017);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 11 16;
  animation: routeFlowV7 22s linear infinite;
}

.route-main {
  stroke-width: 2.2;
  opacity: 0.82;
}

.route-soft {
  stroke-width: 1.75;
  opacity: 0.46;
  animation-duration: 28s;
}

.route-faint {
  stroke-width: 1.35;
  opacity: 0.28;
  animation-duration: 34s;
}

.route-alt {
  animation-direction: reverse;
}

.route-red {
  stroke: rgba(255, 84, 95, 0.48);
  filter: url(#flowSoftRed);
}

.route-red.route-main {
  stroke: rgba(255, 84, 95, 0.62);
}

.route-green {
  stroke: rgba(63, 231, 186, 0.50);
  filter: url(#flowSoftGreen);
}

.route-green.route-main {
  stroke: rgba(63, 231, 186, 0.66);
}

/* Dots: same size, controlled glow, no large halo blobs. */
.journey-dot {
  filter: url(#flowDotSoft);
  opacity: 0.86;
}

.journey-dot.red {
  fill: #ff545f;
}

.journey-dot.green {
  fill: #3fe7ba;
}

.journey-main {
  opacity: 0.94;
}

/* Very subtle control field around logo, not a glowing blob. */
.flow-control-v7 {
  opacity: 0.22;
}

.flow-control-v7 ellipse {
  fill: none;
  stroke: rgba(68, 185, 255, 0.20);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  animation: controlBreathV7 6.4s ease-in-out infinite;
}

.flow-control-v7 ellipse:nth-child(2) {
  stroke: rgba(63, 231, 186, 0.11);
  animation-delay: -2.2s;
}

.flow-control-v7 circle {
  fill: rgba(68, 185, 255, 0.46);
  animation: controlPulseV7 3.8s ease-in-out infinite;
}

/* Logo sits over the transformation point. */
.hero-centre-brand {
  top: 102px;
  width: min(610px, 48vw);
  z-index: 2;
}

.hero-centre-brand::before {
  inset: 18% 16% 10%;
  background:
    radial-gradient(circle, rgba(68,185,255,0.10) 0%, rgba(68,185,255,0.035) 44%, transparent 76%);
  filter: blur(20px);
  opacity: 0.72;
}

.hero-centre-wordmark {
  filter:
    drop-shadow(0 16px 38px rgba(0,0,0,0.40))
    drop-shadow(0 0 12px rgba(68,185,255,0.08));
  opacity: 0.96;
}

/* Place main content under the central flow/logo, retaining readability. */
.hero-grid {
  padding-top: 206px;
}

.hero-panel {
  padding-top: 32px;
}

/* Readability veil: content remains premium and legible. */
.site-hero::after {
  background:
    linear-gradient(180deg, rgba(2,8,20,0.05) 0%, rgba(2,8,20,0.02) 28%, rgba(2,8,20,0.15) 76%, rgba(2,8,20,0.24) 100%),
    radial-gradient(circle at 50% 27%, rgba(4,16,31,0.035), transparent 32%),
    linear-gradient(90deg, rgba(2,8,20,0.20), transparent 44%, rgba(2,8,20,0.16));
}

@keyframes routeFlowV7 {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -330; }
}

@keyframes controlBreathV7 {
  0%, 100% { opacity: 0.16; transform: scale(0.99); }
  50% { opacity: 0.30; transform: scale(1.018); }
}

@keyframes controlPulseV7 {
  0%, 100% { opacity: 0.24; transform: scale(0.86); }
  50% { opacity: 0.56; transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .route,
  .flow-control-v7 ellipse,
  .flow-control-v7 circle {
    animation: none !important;
  }
}

@media (max-width: 1060px) {
  .site-hero {
    min-height: auto;
  }

  .hero-centre-brand {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(540px, 86%);
    margin: 28px auto 0;
  }

  .hero-flow-svg-v7 {
    top: -2%;
    height: 56%;
  }

  .hero-grid {
    padding-top: 52px;
    min-height: auto;
  }

  .hero-panel {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .hero-centre-brand {
    width: min(340px, 94%);
    margin-top: 28px;
  }

  .hero-flow-stage-v7 {
    opacity: 0.70;
  }

  .hero-flow-svg-v7 {
    left: -36%;
    width: 172%;
    height: 54%;
  }

  .hero-grid {
    padding-top: 44px;
  }
}


/* === v8: hero spacing + Apple-style fluid scroll polish === */
/* Approved v7 visual model retained: red -> Orqentra -> green. This pass tightens hero top space and adds premium scroll behaviour. */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.site-shell {
  padding-top: 14px;
}

/* Move the hero visual system up and reduce the empty top feeling. */
.site-hero {
  min-height: 700px;
  padding-top: 20px;
}

.hero-centre-brand {
  top: 64px;
  width: min(590px, 47vw);
}

.hero-flow-svg-v7 {
  top: -12%;
  height: 72%;
}

.hero-grid {
  padding-top: 176px;
}

.hero-panel {
  padding-top: 16px;
}

/* Give the nav a slightly lighter premium feel, still understated. */
.nav-links {
  font-weight: 520;
  letter-spacing: -0.01em;
}

/* More Apple-like rhythm: sections feel like dark product panels emerging from one continuous world. */
.section {
  padding-top: 96px;
  transform-style: preserve-3d;
}

.card-grid {
  perspective: 1200px;
}

.feature-card,
.principle,
.visual-band,
.cta,
.command-card {
  transition:
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 720ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover,
.principle:hover {
  transform: translateY(-6px);
  border-color: rgba(146, 183, 255, 0.32);
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Scroll reveal base states. */
.reveal-section,
.reveal-item {
  opacity: 0;
  transform: translate3d(0, 38px, 0) scale(0.985);
  filter: blur(10px);
}

.reveal-section.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.reveal-section {
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item {
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger cards so they flow in like a premium product page. */
.card-grid .reveal-item:nth-child(1) { transition-delay: 60ms; }
.card-grid .reveal-item:nth-child(2) { transition-delay: 120ms; }
.card-grid .reveal-item:nth-child(3) { transition-delay: 180ms; }
.card-grid .reveal-item:nth-child(4) { transition-delay: 240ms; }
.card-grid .reveal-item:nth-child(5) { transition-delay: 300ms; }
.card-grid .reveal-item:nth-child(6) { transition-delay: 360ms; }

.principles .reveal-item:nth-child(1) { transition-delay: 120ms; }
.principles .reveal-item:nth-child(2) { transition-delay: 220ms; }
.principles .reveal-item:nth-child(3) { transition-delay: 320ms; }

/* Hero starts present but has a subtle first-load composition. */
.hero-reveal {
  animation: heroSettleV8 950ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-centre-brand,
.hero-flow-stage-v7,
.hero-copy,
.hero-panel {
  will-change: transform;
}

/* The flowing graphic is clearer near the logo, but still not dominant. */
.hero-flow-stage-v7 {
  opacity: 0.94;
}

.route-main {
  opacity: 0.88;
}

.route-soft {
  opacity: 0.42;
}

.route-faint {
  opacity: 0.22;
}

.journey-dot {
  opacity: 0.82;
}

/* Slightly cleaner product text weight. */
h1 {
  font-weight: 680;
}

h2 {
  font-weight: 620;
}

/* Smooth anchor offset so nav clicks feel intentional. */
#platform,
#control,
#contact {
  scroll-margin-top: 38px;
}

@keyframes heroSettleV8 {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.992);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

/* Mobile: keep the motion calmer and avoid heavy vertical space. */
@media (max-width: 1060px) {
  .site-hero {
    min-height: auto;
  }

  .hero-centre-brand {
    top: auto;
    width: min(520px, 84%);
    margin-top: 18px;
  }

  .hero-flow-svg-v7 {
    top: -4%;
    height: 54%;
  }

  .hero-grid {
    padding-top: 44px;
  }

  .section {
    padding-top: 72px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding-top: 10px;
  }

  .site-hero {
    padding-top: 18px;
  }

  .hero-centre-brand {
    width: min(330px, 92%);
    margin-top: 16px;
  }

  .hero-flow-svg-v7 {
    top: -2%;
    height: 48%;
  }

  .reveal-section,
  .reveal-item {
    transform: translate3d(0, 24px, 0) scale(0.992);
    filter: blur(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-reveal,
  .reveal-section,
  .reveal-item,
  .feature-card,
  .principle,
  .visual-band,
  .cta,
  .command-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}


/* === v9: Cinematic bi-directional scroll + product showcase === */
/* This pass fixes one-time reveal behaviour and adds premium app imagery without cheesy stock visuals. */

.reveal-section,
.reveal-item,
.cinematic-item {
  opacity: var(--reveal-opacity, 0);
  transform:
    translate3d(
      var(--scroll-x, 0px),
      var(--scroll-y, 34px),
      0
    )
    scale(var(--scroll-scale, 0.985));
  filter: blur(var(--scroll-blur, 10px));
  transition:
    opacity 260ms linear,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 260ms linear;
}

.reveal-section.is-visible,
.reveal-item.is-visible,
.cinematic-item.is-visible {
  --reveal-opacity: 1;
  --scroll-y: 0px;
  --scroll-scale: 1;
  --scroll-blur: 0px;
}

/* The v8 one-time reveal is overridden: now scroll can move both directions. */
.reveal-section:not(.is-visible),
.reveal-item:not(.is-visible),
.cinematic-item:not(.is-visible) {
  pointer-events: none;
}

/* Showcase section */
.showcase-section {
  position: relative;
  padding-top: 110px;
}

.showcase-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54px;
  width: min(920px, 80vw);
  height: 420px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 40%, rgba(255,84,95,0.075), transparent 34%),
    radial-gradient(circle at 72% 42%, rgba(63,231,186,0.08), transparent 34%),
    radial-gradient(circle at 50% 62%, rgba(68,185,255,0.08), transparent 36%);
  filter: blur(10px);
  opacity: 0.9;
}

.showcase-intro {
  position: relative;
  z-index: 1;
  max-width: 930px;
  margin-bottom: 42px;
}

.showcase-intro p {
  max-width: 800px;
  color: var(--muted);
  line-height: 1.68;
}

.showcase-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
}

.showcase-card {
  min-height: 430px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 44px;
  padding: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 10%, rgba(68,185,255,0.07), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(63,231,186,0.045), transparent 32%),
    linear-gradient(145deg, rgba(13,28,64,0.62), rgba(5,14,31,0.56));
  border: 1px solid rgba(105,162,255,0.23);
  box-shadow: 0 34px 90px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.showcase-card:nth-child(even) {
  grid-template-columns: 1.22fr 0.78fr;
}

.showcase-card:nth-child(even) .showcase-copy {
  order: 2;
}

.showcase-card:nth-child(even) .app-frame {
  order: 1;
}

.showcase-copy {
  max-width: 440px;
}

.showcase-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.showcase-copy h3 {
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 620;
}

.showcase-copy p {
  color: var(--muted);
  line-height: 1.68;
}

/* App screen concepts */
.app-frame {
  position: relative;
  min-height: 320px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(8,18,39,0.96), rgba(5,14,31,0.90));
  border: 1px solid rgba(146,183,255,0.22);
  box-shadow: 0 32px 76px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.07);
  overflow: hidden;
}

.app-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(135deg, black, transparent 82%);
  pointer-events: none;
}

.app-frame-top {
  position: relative;
  z-index: 1;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(248,251,255,0.76);
  font-size: 13px;
  font-weight: 600;
}

.app-frame-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.app-frame-top span:nth-child(1) { background: rgba(255,84,95,0.7); }
.app-frame-top span:nth-child(2) { background: rgba(245,184,91,0.72); }
.app-frame-top span:nth-child(3) { background: rgba(63,231,186,0.72); }

.app-frame-top strong {
  margin-left: 8px;
}

/* Operations frame */
.ops-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  padding: 22px;
}

.ops-list {
  display: grid;
  gap: 12px;
}

.mini-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
}

.mini-row strong {
  color: #fff;
  font-size: 13px;
}

.mini-row em {
  grid-column: 2;
  color: rgba(214,226,245,0.62);
  font-size: 12px;
  font-style: normal;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.dot.green { background: var(--green); box-shadow: 0 0 16px rgba(63,231,186,0.40); }
.dot.amber { background: #f5b85b; box-shadow: 0 0 16px rgba(245,184,91,0.32); }
.dot.red { background: var(--red); box-shadow: 0 0 16px rgba(255,84,95,0.34); }

.ops-map {
  position: relative;
  min-height: 234px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 40% 42%, rgba(68,185,255,0.13), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.ops-map svg {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
}

.ops-map path {
  fill: none;
  stroke: rgba(63,231,186,0.66);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 10 10;
  animation: appRouteFlow 8s linear infinite;
}

.map-pin {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(63,231,186,0.11), 0 0 22px rgba(63,231,186,0.38);
}

.pin-a { left: 16%; top: 68%; }
.pin-b { left: 52%; top: 34%; }
.pin-c { right: 14%; top: 50%; }

/* Route frame */
.route-map {
  position: relative;
  min-height: 272px;
  margin: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 70%, rgba(255,84,95,0.10), transparent 26%),
    radial-gradient(circle at 82% 28%, rgba(63,231,186,0.13), transparent 28%),
    rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.route-map svg {
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
}

.route-shadow,
.route-main {
  fill: none;
  stroke-linecap: round;
}

.route-shadow {
  stroke: rgba(68,185,255,0.12);
  stroke-width: 16;
}

.route-main {
  stroke: rgba(63,231,186,0.78);
  stroke-width: 5;
  stroke-dasharray: 14 12;
  animation: appRouteFlow 7.6s linear infinite;
}

.route-node {
  position: absolute;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(248,251,255,0.86);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(14px);
}

.n1 { left: 9%; bottom: 18%; }
.n2 { left: 48%; top: 38%; }
.n3 { right: 9%; top: 34%; }

/* Scheduler frame */
.timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 26px 22px;
}

.time-label {
  color: rgba(214,226,245,0.52);
  font-size: 11px;
  font-weight: 700;
}

.lane {
  grid-column: 1 / -1;
  position: relative;
  min-height: 46px;
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}

.lane.muted {
  opacity: 0.68;
}

.lane span {
  position: absolute;
  top: 10px;
  bottom: 10px;
  border-radius: 999px;
}

.lane .travel {
  left: 5%;
  width: 18%;
  background: rgba(68,185,255,0.34);
  border: 1px solid rgba(68,185,255,0.36);
}

.lane .work {
  left: 26%;
  width: 34%;
  background: rgba(63,231,186,0.36);
  border: 1px solid rgba(63,231,186,0.42);
}

.lane .work.small { width: 24%; left: 40%; }
.lane .work.wide { left: 10%; width: 50%; }

.lane .follow {
  left: 64%;
  width: 24%;
  background: rgba(245,184,91,0.30);
  border: 1px solid rgba(245,184,91,0.36);
}

.lane .travel.end {
  left: 66%;
  width: 20%;
}

/* Fluid scroll classes controlled by JS */
.scroll-active {
  will-change: transform, opacity, filter;
}

@keyframes appRouteFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -220; }
}

@media (max-width: 1060px) {
  .showcase-card,
  .showcase-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .showcase-card:nth-child(even) .showcase-copy,
  .showcase-card:nth-child(even) .app-frame {
    order: initial;
  }

  .showcase-copy {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .showcase-section {
    padding-top: 78px;
  }

  .showcase-card {
    min-height: auto;
    padding: 20px;
    border-radius: 28px;
  }

  .app-frame {
    min-height: 300px;
    border-radius: 24px;
  }

  .ops-layout {
    grid-template-columns: 1fr;
  }

  .ops-map {
    min-height: 210px;
  }

  .showcase-copy h3 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ops-map path,
  .route-main {
    animation: none !important;
  }

  .reveal-section,
  .reveal-item,
  .cinematic-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}


/* === v10: thinner connected hero flow + blueprint route map === */
/* Retains v9 cinematic flow, but restores elegant line weight and adds real map imagery. */

/* Hero flow: finer lines, joined at logo, less aggressive than v9. */
.hero-flow-stage-v7 {
  opacity: 0.86;
}

.hero-flow-svg-v7 {
  top: -13%;
  height: 70%;
}

.route {
  stroke-dasharray: 8 14;
  animation-duration: 24s;
}

.route-main {
  stroke-width: 1.45 !important;
  opacity: 0.72 !important;
}

.route-soft {
  stroke-width: 1.05 !important;
  opacity: 0.32 !important;
}

.route-faint {
  stroke-width: 0.85 !important;
  opacity: 0.20 !important;
}

.route-red.route-main {
  stroke: rgba(255, 84, 95, 0.50) !important;
}

.route-green.route-main {
  stroke: rgba(63, 231, 186, 0.55) !important;
}

.route-red {
  stroke: rgba(255, 84, 95, 0.36) !important;
}

.route-green {
  stroke: rgba(63, 231, 186, 0.38) !important;
}

/* Smaller, consistent travelling dots. No dominant glow blobs. */
.journey-dot {
  opacity: 0.74 !important;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.10)) !important;
}

.journey-main {
  opacity: 0.82 !important;
}

.flow-control-v7 {
  opacity: 0.14 !important;
}

.flow-control-v7 ellipse {
  stroke-width: 0.8 !important;
}

/* Logo/flow alignment: keep flow behind the logo and reduce perceived gap. */
.hero-centre-brand {
  top: 54px;
  width: min(580px, 46vw);
}

.hero-grid {
  padding-top: 162px;
}

.site-hero {
  min-height: 682px;
}

/* The map section now uses a real map asset converted into Orqentra blueprint style. */
.route-map-blueprint {
  position: relative;
  min-height: 294px;
  margin: 18px;
  border-radius: 24px;
  overflow: hidden;
  background: #06111f;
  border: 1px solid rgba(146,183,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

.blueprint-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.08);
}

.blueprint-map-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 76%, rgba(255,84,95,0.08), transparent 28%),
    radial-gradient(circle at 78% 35%, rgba(63,231,186,0.12), transparent 34%),
    linear-gradient(180deg, rgba(2,8,20,0.06), rgba(2,8,20,0.36));
  pointer-events: none;
}

.blueprint-route-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
  mix-blend-mode: screen;
}

.blueprint-route-glow .route-shadow {
  stroke: rgba(68,185,255,0.10);
  stroke-width: 11;
}

.blueprint-route-glow .route-main {
  stroke: rgba(63,231,186,0.62);
  stroke-width: 2.7;
  stroke-dasharray: 10 11;
  animation: appRouteFlow 8.4s linear infinite;
}

.route-map-blueprint .route-node {
  background: rgba(5,14,31,0.68);
  border-color: rgba(146,183,255,0.20);
  box-shadow: 0 12px 26px rgba(0,0,0,0.20), 0 0 18px rgba(68,185,255,0.10);
}

.route-map-blueprint .n1 {
  left: 8%;
  bottom: 21%;
}

.route-map-blueprint .n2 {
  left: 48%;
  top: 37%;
}

.route-map-blueprint .n3 {
  right: 9%;
  top: 35%;
}

/* Route card gets slightly more cinematic scale because it now contains a real map visual. */
.showcase-route .app-frame {
  min-height: 362px;
}

.showcase-route .route-map-blueprint {
  min-height: 286px;
}

/* Keep Apple-style scroll, but avoid moving app frames too aggressively. */
.cinematic-item {
  transition:
    opacity 300ms linear,
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 300ms linear;
}

@media (max-width: 1060px) {
  .site-hero {
    min-height: auto;
  }

  .hero-centre-brand {
    top: auto;
    width: min(520px, 84%);
  }

  .hero-flow-svg-v7 {
    top: -4%;
    height: 54%;
  }

  .hero-grid {
    padding-top: 44px;
  }
}

@media (max-width: 720px) {
  .hero-flow-stage-v7 {
    opacity: 0.62;
  }

  .hero-flow-svg-v7 {
    top: -2%;
    height: 48%;
  }

  .route-map-blueprint {
    min-height: 230px;
  }

  .showcase-route .app-frame {
    min-height: 300px;
  }

  .showcase-route .route-map-blueprint {
    min-height: 230px;
  }
}


/* === v11: clean route map, less detail === */
/* Replaces the busy real-map screenshot with a designed, simpler Orqentra blueprint route visual. */

.route-map-blueprint,
.route-map-clean {
  position: relative;
  min-height: 294px;
  margin: 18px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 76%, rgba(255,84,95,0.06), transparent 28%),
    radial-gradient(circle at 78% 34%, rgba(63,231,186,0.11), transparent 34%),
    linear-gradient(145deg, rgba(6,17,35,0.96), rgba(4,12,26,0.92));
  border: 1px solid rgba(146,183,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

/* Hide any old busy map image/overlay if cached in the package. */
.blueprint-map,
.blueprint-map-overlay,
.blueprint-route-glow {
  display: none !important;
}

.clean-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.clean-map-grid path {
  stroke: rgba(255,255,255,0.024);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.clean-map-roads path {
  fill: none;
  stroke: rgba(146,183,255,0.10);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-dasharray: 8 13;
  vector-effect: non-scaling-stroke;
}

.clean-route-alt {
  fill: none;
  stroke: rgba(68,185,255,0.14);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 14;
  vector-effect: non-scaling-stroke;
  animation: appRouteFlow 11s linear infinite reverse;
}

.clean-route-shadow {
  fill: none;
  stroke: rgba(63,231,186,0.10);
  stroke-width: 11;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.clean-route-main {
  fill: none;
  stroke: rgba(63,231,186,0.68);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 11 10;
  vector-effect: non-scaling-stroke;
  filter: url(#cleanRouteGlow);
  animation: appRouteFlow 8.5s linear infinite;
}

.route-travel-dot {
  fill: #3fe7ba;
  filter: url(#cleanRouteGlow);
  opacity: 0.86;
}

.route-travel-dot.muted {
  fill: #44b9ff;
  opacity: 0.44;
}

.clean-map-pins circle {
  fill: rgba(63,231,186,0.96);
  stroke: rgba(5,14,31,0.78);
  stroke-width: 3;
  filter: drop-shadow(0 0 14px rgba(63,231,186,0.32));
}

.clean-map-label {
  position: absolute;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(5,14,31,0.72);
  border: 1px solid rgba(146,183,255,0.18);
  color: rgba(248,251,255,0.84);
  box-shadow: 0 12px 26px rgba(0,0,0,0.20);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(14px);
}

.clean-map-label.start {
  left: 8%;
  bottom: 22%;
}

.clean-map-label.job {
  left: 41%;
  top: 42%;
}

.clean-map-label.next {
  right: 8%;
  top: 38%;
}

.clean-map-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(248,251,255,0.76);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  font-size: 12px;
  font-weight: 550;
  backdrop-filter: blur(14px);
}

.showcase-route .app-frame {
  min-height: 362px;
}

.showcase-route .route-map-clean {
  min-height: 286px;
}

/* Keep hero route lines thin from v10. */
.route-main {
  stroke-width: 1.45 !important;
  opacity: 0.72 !important;
}

.route-soft {
  stroke-width: 1.05 !important;
  opacity: 0.32 !important;
}

.route-faint {
  stroke-width: 0.85 !important;
  opacity: 0.20 !important;
}

@media (max-width: 720px) {
  .route-map-clean {
    min-height: 230px;
  }

  .showcase-route .app-frame {
    min-height: 300px;
  }

  .showcase-route .route-map-clean {
    min-height: 230px;
  }

  .clean-map-caption {
    position: absolute;
    left: 14px;
    bottom: 12px;
    min-height: 34px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clean-route-main,
  .clean-route-alt {
    animation: none !important;
  }
}


/* === v13: proper styled map for Live Operations === */
/* Replaces the rejected loose/abstract map with a more map-like operational panel. */

.ops-proper-map {
  position: relative;
  min-height: 252px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 72%, rgba(255,84,95,0.055), transparent 27%),
    radial-gradient(circle at 78% 34%, rgba(63,231,186,0.10), transparent 32%),
    linear-gradient(145deg, rgba(7,18,38,0.92), rgba(5,14,31,0.78));
  border: 1px solid rgba(146,183,255,0.13);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

.ops-proper-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.proper-map-base {
  fill: rgba(5,14,31,0.52);
}

.proper-map-areas path {
  fill: rgba(68,185,255,0.035);
  stroke: rgba(146,183,255,0.045);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.proper-map-grid path {
  stroke: rgba(255,255,255,0.019);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.proper-map-roads path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.proper-map-roads.minor path {
  stroke: rgba(146,183,255,0.105);
  stroke-width: 0.85;
  stroke-dasharray: 7 12;
}

.proper-map-roads.major path {
  stroke: rgba(146,183,255,0.155);
  stroke-width: 1.2;
  stroke-dasharray: 10 14;
}

.proper-route-alt {
  fill: none;
  stroke: rgba(68,185,255,0.18);
  stroke-width: 1.2;
  stroke-dasharray: 8 13;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  animation: appRouteFlow 12s linear infinite reverse;
}

.proper-route-shadow {
  fill: none;
  stroke: rgba(63,231,186,0.075);
  stroke-width: 9;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.proper-route-main {
  fill: none;
  stroke: rgba(63,231,186,0.70);
  stroke-width: 2.25;
  stroke-dasharray: 10 10;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: url(#properRouteGlow);
  animation: appRouteFlow 8.2s linear infinite;
}

.proper-moving-dot {
  fill: #3fe7ba;
  filter: url(#properRouteGlow);
  opacity: 0.84;
}

.proper-moving-dot.muted {
  fill: #44b9ff;
  opacity: 0.42;
}

.proper-pin circle:first-child {
  fill: rgba(63,231,186,0.18);
  stroke: rgba(63,231,186,0.70);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px rgba(63,231,186,0.28));
}

.proper-pin circle:last-child {
  fill: rgba(63,231,186,0.98);
}

.proper-map-label {
  position: absolute;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(248,251,255,0.86);
  background: rgba(5,14,31,0.72);
  border: 1px solid rgba(146,183,255,0.16);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 620;
}

.proper-label-home {
  left: 7%;
  bottom: 20%;
}

.proper-label-job {
  left: 54%;
  top: 46%;
}

.proper-label-next {
  right: 4%;
  top: 34%;
}

.proper-map-control {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  width: fit-content;
  max-width: calc(100% - 32px);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(248,251,255,0.76);
  background: rgba(255,255,255,0.052);
  border: 1px solid rgba(255,255,255,0.085);
  font-size: 12px;
  font-weight: 550;
  backdrop-filter: blur(14px);
}

/* Disable rejected prior Live Ops map layers if they remain cached in CSS. */
.ops-live-map .ops-live-svg,
.ops-live-map .ops-map-label,
.ops-live-map .ops-map-pulse {
  display: none !important;
}

/* Old map pins from earlier versions are not used. */
.map-pin {
  display: none !important;
}

.showcase-ops .app-frame {
  min-height: 342px;
}

.showcase-ops .ops-layout {
  align-items: stretch;
}

.showcase-ops .ops-proper-map {
  min-height: 252px;
}

@media (max-width: 720px) {
  .ops-proper-map {
    min-height: 230px;
  }

  .proper-map-label {
    min-height: 26px;
    font-size: 10px;
  }

  .proper-map-control {
    min-height: 34px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proper-route-main,
  .proper-route-alt {
    animation: none !important;
  }
}


/* === v14: mobile hero/header alignment fix === */
/* Fixes mobile logo being pulled left by desktop centering transform. */

@media (max-width: 1060px) {
  .hero-centre-brand {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none;
    width: min(500px, 88%) !important;
    margin: 18px auto 0 !important;
    display: flex;
    justify-content: center;
  }

  .hero-centre-wordmark {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 24px, 1540px);
  }

  .site-hero {
    overflow: hidden;
  }

  .topbar {
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: clamp(14px, 4vw, 24px);
    font-size: clamp(12px, 3.4vw, 14px);
  }

  .hero-centre-brand {
    width: min(310px, 86vw) !important;
    margin-top: 20px !important;
  }

  .hero-centre-wordmark {
    transform: none !important;
  }

  .hero-grid {
    padding-top: 36px !important;
  }
}

@media (max-width: 420px) {
  .nav-links {
    gap: 12px;
    font-size: 12px;
  }

  .hero-centre-brand {
    width: min(290px, 84vw) !important;
  }
}
