/* ============================================================
   EdgeOS Hero Visual & Arch Flow Effects
   — 12 种工业 AI 特效轮播 + 6 步管线 Canvas 粒子动画
   ============================================================ */

/* ── Hero Section Layout ── */
.hero-section {
  position: relative;
  padding: 60px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-copy { min-width: 0; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 320px;
  height: 320px;
  min-height: 320px;
  margin: 0 auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Hero Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--gold-glass, rgba(200,167,91,0.08));
  border: 1px solid var(--gold-border, rgba(200,167,91,0.2));
  font-size: 13px;
  color: var(--gold, #b8954f);
  margin-bottom: 16px;
}
.hero-badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold, #b8954f);
  display: inline-block;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Hero Typewriter ── */
.hero-typewriter {
  font-size: 18px;
  color: var(--gold, #b8954f);
  margin: 8px 0 16px;
  min-height: 28px;
  font-family: 'Noto Sans SC', monospace;
}
.typewriter-cursor {
  animation: cursor-blink 1s step-end infinite;
  color: var(--gold, #b8954f);
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Hero Description ── */
.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary, #666);
  margin-bottom: 20px;
  max-width: 560px;
}

/* ── Hero Value Tags ── */
.hero-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.value-tag {
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--gold-glass, rgba(200,167,91,0.06));
  border: 1px solid var(--gold-border, rgba(200,167,91,0.15));
  font-size: 13px;
  color: var(--gold, #b8954f);
}

/* ── Hero Actions ── */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================
   Scene container — blur cross-fade with scale normalization
   ========================================= */
.fx-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92);
  filter: blur(8px);
  transition: opacity var(--transition-scene),
            transform var(--transition-scene),
            filter var(--transition-scene);
  pointer-events: none;
  z-index: 1;
}

.fx-scene--active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
  pointer-events: auto;
  z-index: 2;
}

/* Unified viewport — locks the canvas center and boundary */
.fx-viewport {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   Shared center logo — fixed 64x64, exact center
   ========================================= */
.fx-logo {
  position: absolute;
  z-index: 10;
  width: 64px; height: 64px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold-bright);
  animation: fx-logo-breathe 3s ease-in-out infinite;
}

.fx-logo::before,
.fx-logo::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--gold-border-hover);
  opacity: 0;
  pointer-events: none;
  animation: fx-logo-ripple 3s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}
.fx-logo::after { animation-delay: 1.5s; }

.fx-logo svg {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 14px var(--gold-glow-strong));
}

.fx-logo-core {
  filter: drop-shadow(0 0 10px var(--gold-glow-strong));
}

.fx-logo-orbit {
  transform-origin: 32px 32px;
  animation: fx-logo-spin 10s linear infinite;
}

@keyframes fx-logo-breathe {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(200,167,91,0.5)); transform: translate(-50%, -50%) scale(1); }
  50% { filter: drop-shadow(0 0 22px rgba(200,167,91,0.95)); transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes fx-logo-ripple {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}

@keyframes fx-logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================
   Generic node (pulsing dot) &amp; tick mark
   ========================================= */
.fx-node {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--d); height: var(--d);
  margin: calc(-1 * var(--d) / 2) 0 0 calc(-1 * var(--d) / 2);
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 14px var(--gold-glow-strong), 0 0 28px var(--gold-glow);
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
  animation: fx-node-pulse 2.4s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes fx-node-pulse {
  0%, 100% { opacity: 0.4; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))) scale(1); }
  50% { opacity: 1; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))) scale(1.6); }
}

.fx-tick {
  position: absolute;
  top: 50%; left: 50%;
  width: 1px; height: var(--l);
  margin: calc(-1 * var(--l) / 2) 0 0 -0.5px;
  background: var(--gold-border);
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r)));
  opacity: 0.35;
}

/* =========================================
   Scene containers — all anchored to 100% of viewport
   ========================================= */
.fx-core, .fx-lattice, .fx-radar, .fx-field, .fx-beacon,
.fx-nexus, .fx-pulse, .fx-matrix, .fx-orbit, .fx-beam, .fx-flux, .fx-swarm {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Effect 1: Core reactor ── */
.fx-core__ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border-color: var(--gold-border);
  transform: translate(-50%, -50%);
}

.fx-core__ring--solid {
  width: 220px; height: 220px;
  border: 2.5px solid var(--gold-border-hover);
  animation: fx-core-spin 12s linear infinite;
  box-shadow: 0 0 50px var(--gold-glow-strong), inset 0 0 50px var(--gold-glow);
}

.fx-core__ring--dashed {
  width: 260px; height: 260px;
  border: 1.5px dashed var(--gold-border);
  opacity: 0.7;
  animation: fx-core-spin 18s linear infinite reverse;
}

.fx-core__ring--dotted {
  width: 300px; height: 300px;
  border: 1.5px dotted var(--gold-border);
  opacity: 0.55;
  animation: fx-core-spin 26s linear infinite;
}

.fx-core__ring--outer-ticks {
  width: 260px; height: 260px;
  border: none;
  animation: fx-core-spin 40s linear infinite;
}

.fx-core__nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-core__pulse-wave {
  position: absolute;
  top: 50%; left: 50%;
  width: 160px; height: 160px;
  margin: -80px 0 0 -80px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border-hover);
  opacity: 0;
  animation: fx-core-wave 3s ease-out infinite;
}

@keyframes fx-core-wave {
  0% { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes fx-core-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Effect 2: Data lattice network ── */
.fx-lattice__svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: visible;
  z-index: 1;
}

.fx-lattice__guide {
  fill: none;
  stroke: var(--gold-border);
  stroke-width: 0.5;
  opacity: 0.1;
  stroke-dasharray: 2 4;
}

.fx-lattice__link {
  stroke: var(--gold-border);
  stroke-width: 1;
  opacity: 0.28;
  fill: none;
}

.fx-lattice__link--flow {
  stroke: var(--gold-border-hover);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
  opacity: 0.45;
  animation: fx-lattice-dash 3s linear infinite;
}

@keyframes fx-lattice-dash {
  to { stroke-dashoffset: -10; }
}

.fx-lattice__node {
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 6px var(--gold-glow));
  animation: fx-lattice-node-pulse 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

.fx-lattice__node--r2 { animation-duration: 3.5s; }

@keyframes fx-lattice-node-pulse {
  0%, 100% { opacity: 0.55; filter: drop-shadow(0 0 4px var(--gold-glow)); }
  50% { opacity: 1; filter: drop-shadow(0 0 10px var(--gold-glow-strong)); }
}

.fx-lattice__pulses {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.fx-lattice__pulse {
  position: absolute;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px var(--gold-glow-strong), 0 0 24px var(--gold-glow);
  offset-distance: 0%;
  offset-rotate: 0deg;
  animation: fx-lattice-flow 3.5s linear infinite;
  animation-delay: var(--delay);
}

@keyframes fx-lattice-flow {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.fx-lattice__scan {
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 260px;
  margin: -130px 0 0 -130px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--gold-glow) 25deg, transparent 50deg);
  opacity: 0.25;
  animation: fx-lattice-scan 8s linear infinite;
  pointer-events: none;
}

@keyframes fx-lattice-scan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fx-lattice__boundary {
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 260px;
  margin: -130px 0 0 -130px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border);
  opacity: 0.2;
  pointer-events: none;
}

/* ── Effect 3: Radar sweep ── */
.fx-radar__outer-ring {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border-hover);
  box-shadow: 0 0 16px var(--gold-glow), inset 0 0 16px var(--gold-glow);
}

.fx-radar__rings {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  pointer-events: none;
}

.fx-radar__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--gold-border);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.fx-radar__ring.r1 { width: 85px; height: 85px; opacity: 0.5; }
.fx-radar__ring.r2 { width: 170px; height: 170px; opacity: 0.4; }
.fx-radar__ring.r3 { width: 260px; height: 260px; border-style: solid; opacity: 0.2; }

.fx-radar__crosshair {
  position: absolute;
  width: 260px; height: 260px;
  pointer-events: none;
}
.fx-radar__crosshair::before,
.fx-radar__crosshair::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--gold-border);
  opacity: 0.4;
}
.fx-radar__crosshair::before {
  width: 100%; height: 1px;
  transform: translate(-50%, -50%);
}
.fx-radar__crosshair::after {
  width: 1px; height: 100%;
  transform: translate(-50%, -50%);
}

.fx-radar__degrees {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-radar__sweep-arm {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  animation: fx-radar-sweep 4s linear infinite;
}

.fx-radar__sweep-sector {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(200,167,91,0.05) 30deg, rgba(200,167,91,0.35) 60deg, transparent 61deg);
}

@keyframes fx-radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fx-radar__blip-wrapper {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform: rotate(var(--a)) translateX(var(--r));
  opacity: 0;
  animation: fx-radar-blip 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

.fx-radar__blip {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px var(--gold-glow-strong);
}

.fx-radar__target-box {
  position: absolute;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 1px solid var(--gold-bright);
  animation: fx-target-pulse 1s ease-in-out infinite;
}

@keyframes fx-target-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes fx-radar-blip {
  0%, 100% { opacity: 0; }
  20% { opacity: 1; }
  40% { opacity: 0; }
}

/* ── Effect 4: Vector Field ── */
.fx-field__boundary {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border);
  box-shadow: inset 0 0 18px var(--gold-glow);
}

.fx-field__polar-grid {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 35%, var(--gold-ghost) 36%, transparent 37%),
    radial-gradient(circle at center, transparent 65%, var(--gold-ghost) 66%, transparent 67%);
  pointer-events: none;
}

.fx-field__cross-axis {
  position: absolute;
  width: 260px; height: 260px;
  pointer-events: none;
}
.fx-field__cross-axis::before,
.fx-field__cross-axis::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--gold-border);
  opacity: 0.3;
}
.fx-field__cross-axis::before {
  width: 100%; height: 1px;
  transform: translate(-50%, -50%);
}
.fx-field__cross-axis::after {
  width: 1px; height: 100%;
  transform: translate(-50%, -50%);
}

.fx-field__reticle {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--gold-bright);
  opacity: 0.8;
}
.fx-field__reticle--tl { top: 22px; left: 22px; border-right: none; border-bottom: none; }
.fx-field__reticle--tr { top: 22px; right: 22px; border-left: none; border-bottom: none; }
.fx-field__reticle--bl { bottom: 22px; left: 22px; border-right: none; border-top: none; }
.fx-field__reticle--br { bottom: 22px; right: 22px; border-left: none; border-top: none; }

.fx-field__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-field__stream-line {
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 1px;
  margin-top: -0.5px;
  margin-left: -130px;
  transform: rotate(var(--a));
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.fx-field__stream-packet {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  margin-top: -1px;
  margin-left: -6px;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-glow-strong);
  animation: fx-field-packet-flow 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: var(--delay);
  transform: rotate(var(--a)) translateX(0);
}

@keyframes fx-field-packet-flow {
  0% { transform: rotate(var(--a)) translateX(30px) scaleX(0.5); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: rotate(var(--a)) translateX(120px) scaleX(1.5); opacity: 0; }
}

/* ── Effect 5: Beacon ── */
.fx-beacon__boundary {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  opacity: 0.25;
}

.fx-beacon__cone {
  position: absolute;
  bottom: 50%; left: 50%;
  width: 140px; height: 130px;
  margin-left: -70px;
  background: linear-gradient(0deg, rgba(200,167,91,0.35), transparent);
  clip-path: polygon(50% 100%, 10% 0%, 90% 0%);
  animation: fx-beacon-cone 2.5s ease-in-out infinite;
}

@keyframes fx-beacon-cone {
  0%, 100% { opacity: 0.4; transform: scaleX(0.85); }
  50% { opacity: 0.85; transform: scaleX(1.1); }
}

.fx-beacon__ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border-hover);
  opacity: 0;
  animation: fx-beacon-ring 2.8s ease-out infinite;
  animation-delay: var(--delay);
}

@keyframes fx-beacon-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(6.5); opacity: 0; }
}

/* ── Effect 6: Nexus ── */
.fx-nexus__boundary {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border);
  box-shadow: inset 0 0 16px var(--gold-glow);
}

.fx-nexus__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-nexus__svg {
  position: absolute;
  width: 300px; height: 300px;
  top: 0; left: 0;
  pointer-events: none;
}

.fx-nexus__synapse {
  stroke: var(--gold-border);
  stroke-width: 1;
  opacity: 0.22;
  stroke-dasharray: 2 3;
}

.fx-nexus__synapse--active {
  stroke: var(--gold-border-hover);
  stroke-width: 1.2;
  opacity: 0.55;
  stroke-dasharray: 4 6;
  animation: fx-synapse-dash 2.5s linear infinite;
}

@keyframes fx-synapse-dash {
  to { stroke-dashoffset: -20; }
}

.fx-nexus__node-halo {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1;
  opacity: 0;
  animation: fx-node-halo 2.5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  animation-delay: var(--delay);
}

@keyframes fx-node-halo {
  0% { r: 2px; opacity: 0.8; }
  100% { r: 6px; opacity: 0; }
}

.fx-nexus__node-core {
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 4px var(--gold-glow-strong));
  transform-box: fill-box;
  transform-origin: center;
  animation: fx-node-fire 2.2s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

@keyframes fx-node-fire {
  0% { opacity: 0.3; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 6px var(--gold-hover)); }
}

.fx-nexus__svg-impulse {
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 6px var(--gold-glow-strong));
  offset-distance: 0%;
  animation: fx-impulse-travel var(--dur) cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: var(--delay);
}

@keyframes fx-impulse-travel {
  0% { offset-distance: 0%; opacity: 0; transform: scale(0.5); }
  15% { opacity: 1; transform: scale(1); }
  85% { opacity: 1; transform: scale(1); }
  100% { offset-distance: 100%; opacity: 0; transform: scale(0.5); }
}

/* ── Effect 7: Pulse ── */
.fx-pulse__boundary {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border);
  box-shadow: 0 0 12px var(--gold-glow);
}

.fx-pulse__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-pulse__wave {
  position: absolute;
  top: 50%; left: 50%;
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border-hover);
  opacity: 0;
  animation: fx-pulse-expand 2.5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  animation-delay: var(--delay);
}

@keyframes fx-pulse-expand {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(4.3); opacity: 0; }
}

/* ── Effect 8: Matrix ── */
.fx-matrix__frame {
  position: absolute;
  width: 260px; height: 260px;
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fx-matrix__grid {
  width: 180px; height: 180px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 12px;
}

.fx-matrix__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0.2;
  margin: auto;
  transition: opacity 0.3s, transform 0.3s;
  animation: fx-matrix-blink 2.5s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes fx-matrix-blink {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.4); box-shadow: 0 0 8px var(--gold-glow-strong); }
}

.fx-matrix__scanbar {
  position: absolute;
  width: 220px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  box-shadow: 0 0 10px var(--gold-glow-strong);
  animation: fx-matrix-scan 3s ease-in-out infinite alternate;
}

@keyframes fx-matrix-scan {
  0% { transform: translateY(-90px); opacity: 0.2; }
  50% { opacity: 1; }
  100% { transform: translateY(90px); opacity: 0.2; }
}

/* ── Effect 9: Orbit Matrix ── */
.fx-orbit__boundary {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border);
  box-shadow: inset 0 0 20px var(--gold-glow);
}

.fx-orbit__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-orbit__ring-3d {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--w); height: var(--h);
  margin: calc(-1 * var(--h) / 2) 0 0 calc(-1 * var(--w) / 2);
  border-radius: 50%;
  border: 1.2px solid var(--gold-border-hover);
  transform: rotate(var(--rot)) rotateX(65deg);
  animation: fx-orbit-spin var(--dur) linear infinite var(--dir);
}

@keyframes fx-orbit-spin {
  from { transform: rotate(var(--rot)) rotateX(65deg) rotateZ(0deg); }
  to { transform: rotate(var(--rot)) rotateX(65deg) rotateZ(360deg); }
}

.fx-orbit__satellite {
  position: absolute;
  top: 0; left: 50%;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-glow-strong);
}

/* ── Effect 10: Data Beam ── */
.fx-beam__boundary {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1px dashed var(--gold-border);
  opacity: 0.35;
}

.fx-beam__axis {
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 2px;
  margin: -1px 0 0 -130px;
  background: linear-gradient(90deg, transparent, var(--gold-border), var(--gold-bright), var(--gold-border), transparent);
  transform: rotate(var(--a));
  opacity: 0.6;
}

.fx-beam__pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 14px var(--gold-glow-strong);
  animation: fx-beam-shoot 2.2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  animation-delay: var(--delay);
  transform: rotate(var(--a)) translateX(0);
}

@keyframes fx-beam-shoot {
  0% { transform: rotate(var(--a)) translateX(0) scale(0.5); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: rotate(var(--a)) translateX(130px) scale(1.2); opacity: 0; }
}

.fx-beam__receiver {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border: 1.5px solid var(--gold-bright);
  transform: rotate(var(--a)) translateX(130px) rotate(45deg);
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ── Effect 11: Flux Field ── */
.fx-flux__boundary {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border);
  box-shadow: inset 0 0 15px var(--gold-glow);
}

.fx-flux__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-flux__svg {
  position: absolute;
  width: 300px; height: 300px;
  top: 0; left: 0;
  pointer-events: none;
}

.fx-flux__arc-cw {
  fill: none;
  stroke: var(--gold-border-hover);
  stroke-width: 1.5;
  stroke-dasharray: 60 120;
  transform-origin: 150px 150px;
  animation: fx-spin-cw 8s linear infinite;
}

.fx-flux__arc-ccw {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.2;
  stroke-dasharray: 40 100;
  stroke-opacity: 0.7;
  transform-origin: 150px 150px;
  animation: fx-spin-ccw 11s linear infinite;
}

@keyframes fx-spin-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fx-spin-ccw {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.fx-flux__spark {
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 6px var(--gold-glow-strong));
  animation: fx-spark-twinkle 1.8s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

@keyframes fx-spark-twinkle {
  0% { opacity: 0.2; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.4); }
}

/* ── Effect 12: Swarm ── */
.fx-swarm__boundary {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1px dashed var(--gold-border);
  opacity: 0.3;
}

.fx-swarm__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-swarm__svg {
  position: absolute;
  width: 300px; height: 300px;
  top: 0; left: 0;
  pointer-events: none;
}

.fx-swarm__core {
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow-strong) 0%, rgba(200, 167, 91, 0.05) 60%, transparent 80%);
  animation: fx-core-pulse 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes fx-core-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.65; }
  50% { transform: scale(1.15); opacity: 1; }
}

.fx-swarm__orbit-guide {
  fill: none;
  stroke: var(--gold-border);
  stroke-width: 0.6;
  stroke-dasharray: 2 6;
  opacity: 0.2;
}

.fx-swarm__particle--inner {
  fill: #FFFFFF;
  filter: drop-shadow(0 0 6px var(--gold-bright));
  offset-distance: 0%;
  animation: fx-particle-inner var(--dur) linear infinite;
  animation-delay: var(--delay);
}

@keyframes fx-particle-inner {
  0% { offset-distance: 0%; opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2) translate(var(--jx, 1px), var(--jy, -1px)); }
  100% { offset-distance: 100%; opacity: 0.5; transform: scale(0.8); }
}

.fx-swarm__particle--mid {
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 5px var(--gold-glow-strong));
  offset-distance: 0%;
  animation: fx-particle-mid var(--dur) cubic-bezier(0.37, 0, 0.63, 1) infinite;
  animation-delay: var(--delay);
}

@keyframes fx-particle-mid {
  0% { offset-distance: 0%; opacity: 0.3; transform: scale(0.7); }
  25% { opacity: 0.9; transform: scale(1.1) translate(var(--jx, 2px), var(--jy, -2px)); }
  60% { opacity: 0.95; transform: scale(1) translate(calc(-1 * var(--jx, 2px)), var(--jy, 2px)); }
  100% { offset-distance: 100%; opacity: 0.3; transform: scale(0.7); }
}

.fx-swarm__particle--outer {
  fill: var(--gold-light);
  filter: drop-shadow(0 0 7px var(--gold-glow-strong));
  offset-distance: 0%;
  animation: fx-particle-outer var(--dur) cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: var(--delay);
}

@keyframes fx-particle-outer {
  0% { offset-distance: 0%; opacity: 0.1; transform: scale(0.4) translate(0, 0); }
  30% { opacity: 0.9; transform: scale(1.2) translate(var(--jx, 3px), var(--jy, -3px)); }
  50% { opacity: 1; transform: scale(1.1) translate(calc(-1 * var(--jx, 3px)), calc(-1 * var(--jy, 3px))); }
  75% {
    opacity: 1;
    transform: scale(0.5) translate(var(--cx, 0px), var(--cy, 0px));
    filter: drop-shadow(0 0 12px #FFFFFF);
  }
  100% { offset-distance: 100%; opacity: 0.1; transform: scale(0.4) translate(0, 0); }
}

/* =========================================
   Arch Flow — Pipeline architecture
   ========================================= */
.arch-flow {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: stretch;
  gap: 0;
  width: 100%;
  padding: 28px 22px;
  border-radius: var(--radius-md, 14px);
  background: var(--arch-bg, rgba(12, 13, 15, 0.72));
  border: 1px solid var(--gold-border, rgba(200,167,91,0.25));
  box-shadow: var(--arch-flow-shadow, inset 0 0 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(200, 167, 91, 0.06));
  overflow: hidden;
  font-family: "SF Mono", Consolas, monospace;
}

/* Top status bar */
.arch-flow::before {
  content: "PIPELINE STATUS: ONLINE";
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 5px 14px;
  background: var(--arch-status-bar-bg, rgba(200, 167, 91, 0.08));
  border-bottom: 1px solid var(--arch-status-bar-border, rgba(200, 167, 91, 0.12));
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-dark, #8F7341);
  z-index: 3;
}

.arch-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.arch-flow .arch-step,
.arch-flow .arch-arrow {
  position: relative;
  z-index: 2;
}

.arch-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 14px;
  margin-top: 14px;
  background: var(--arch-step-bg, rgba(22, 23, 26, 0.85));
  border: 1px solid var(--gold-border, rgba(200,167,91,0.25));
  border-left: 3px solid var(--gold, #C8A75B);
  border-radius: 0 var(--radius-xs, 6px) var(--radius-xs, 6px) 0;
  box-shadow: var(--arch-step-shadow, 0 2px 10px rgba(0, 0, 0, 0.25));
  transition: border-color var(--transition-base, 250ms cubic-bezier(0.25, 1, 0.5, 1)),
              box-shadow var(--transition-base, 250ms cubic-bezier(0.25, 1, 0.5, 1));
}

.arch-step:hover {
  border-color: var(--gold-border-hover, rgba(221, 187, 115, 0.55));
  box-shadow: 0 4px 18px var(--gold-glow, rgba(200, 167, 91, 0.25)),
              var(--arch-step-shadow, 0 2px 10px rgba(0, 0, 0, 0.25));
}

.arch-step__num {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-dark, #8F7341);
}

.arch-step__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft, #D7D7D7);
  white-space: nowrap;
}

.arch-step__proto {
  font-size: 0.62rem;
  color: var(--text-dim, #777777);
  letter-spacing: 0.02em;
}

.arch-step__status {
  position: absolute;
  top: 8px; right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success, #4ADE80);
  box-shadow: 0 0 5px var(--success-glow, rgba(74, 222, 128, 0.5));
}

.arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 16px;
  height: 28px;
  margin-top: 14px;
  color: var(--gold-dark, #8F7341);
  font-weight: bold;
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.arch-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-dim, #777777);
  line-height: 1.6;
}

/* ── Footer single-line ── */
.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 14px;
  padding: 20px 0;
}

/* ── Responsive ── */
@media (max-width: 1180px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    width: 260px;
    height: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-inner,
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-visual {
    width: 240px;
    height: 240px;
    min-height: 240px;
    margin: 0 auto;
    order: -1;
  }
  .fx-viewport { width: 225px; height: 225px; }
  .fx-logo { width: 48px; height: 48px; }

  .fx-core__ring--solid { width: 165px; height: 165px; }
  .fx-core__ring--dashed { width: 195px; height: 195px; }
  .fx-core__ring--dotted { width: 225px; height: 225px; }
  .fx-core__ring--outer-ticks { width: 195px; height: 195px; }
  .fx-core__nodes .fx-node { --r: 98px !important; --d: 4px !important; }
  .fx-core__pulse-wave { width: 120px; height: 120px; margin: -60px 0 0 -60px; }

  .fx-lattice__scan { width: 195px; height: 195px; margin: -97px 0 0 -97px; }
  .fx-lattice__boundary { width: 195px; height: 195px; margin: -97px 0 0 -97px; }
  .fx-lattice__pulse { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }

  .fx-radar__outer-ring { width: 195px; height: 195px; }
  .fx-radar__rings { width: 195px; height: 195px; }
  .fx-radar__ring.r1 { width: 62px; height: 62px; }
  .fx-radar__ring.r2 { width: 124px; height: 124px; }
  .fx-radar__ring.r3 { width: 185px; height: 185px; }
  .fx-radar__crosshair { width: 195px; height: 195px; }
  .fx-radar__sweep-arm { width: 195px; height: 195px; }

  .fx-field__boundary,
  .fx-field__polar-grid,
  .fx-field__cross-axis { width: 195px; height: 195px; }
  .fx-field__stream-line { width: 195px; margin-left: -97.5px; }
  .fx-field__reticle { width: 10px; height: 10px; }
  .fx-field__reticle--tl { top: 16px; left: 16px; }
  .fx-field__reticle--tr { top: 16px; right: 16px; }
  .fx-field__reticle--bl { bottom: 16px; left: 16px; }
  .fx-field__reticle--br { bottom: 16px; right: 16px; }

  .fx-beacon__boundary { width: 195px; height: 195px; }
  .fx-beacon__cone { width: 105px; height: 98px; margin-left: -52.5px; }
  .fx-beacon__ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

  .fx-nexus__boundary,
  .fx-pulse__boundary,
  .fx-orbit__boundary,
  .fx-beam__boundary,
  .fx-flux__boundary,
  .fx-swarm__boundary { width: 195px; height: 195px; }
  .fx-matrix__frame { width: 195px; height: 195px; }
  .fx-matrix__grid { width: 135px; height: 135px; gap: 8px; }
  .fx-matrix__dot { width: 4px; height: 4px; }
  .fx-matrix__scanbar { width: 165px; }
  .fx-nexus__svg,
  .fx-flux__svg,
  .fx-swarm__svg { width: 225px; height: 225px; }
  .fx-swarm__core { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .fx-beam__axis { width: 195px; margin: -1px 0 0 -97.5px; }

  .arch-flow {
    gap: 6px;
    padding: 14px;
    flex-wrap: wrap;
    justify-content: stretch;
    overflow: hidden;
  }
  .arch-step {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 96px;
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .arch-arrow { width: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-logo,
  .fx-logo svg,
  .fx-logo::before,
  .fx-logo::after,
  .fx-logo-orbit,
  .fx-core__ring,
  .fx-node,
  .fx-lattice__node,
  .fx-lattice__link--flow,
  .fx-lattice__pulse,
  .fx-lattice__scan,
  .fx-radar__sweep-arm,
  .fx-radar__blip,
  .fx-radar__blip-wrapper,
  .fx-radar__target-box,
  .fx-field__stream-packet,
  .fx-beacon__cone,
  .fx-beacon__ring,
  .fx-nexus__synapse--active,
  .fx-nexus__node-halo,
  .fx-nexus__node-core,
  .fx-nexus__svg-impulse,
  .fx-pulse__wave,
  .fx-matrix__dot,
  .fx-matrix__scanbar,
  .fx-orbit__ring-3d,
  .fx-beam__pulse,
  .fx-flux__arc-cw,
  .fx-flux__arc-ccw,
  .fx-flux__spark,
  .fx-swarm__core,
  .fx-swarm__particle--inner,
  .fx-swarm__particle--mid,
  .fx-swarm__particle--outer,
  .fx-core__pulse-wave { animation: none !important; }

  .fx-scene {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.92);
    transition: none;
  }

  .fx-scene--active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}
