/* ── GLOBAL ─────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { color: white; margin: 0; overflow-x: hidden; }
::selection { background-color: #E50914; color: white; }

/* ── HERO ───────────────────────────────────────────────── */
#hero {
  background: radial-gradient(circle at center, #0A0A0C 0%, #050505 60%, #1a0202 100%);
}
.ignition-pulse {
  animation: ignitionPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes ignitionPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(229,9,20,0.8), 0 0 24px rgba(229,9,20,0.4); }
  50%       { opacity: .7; box-shadow: 0 0 6px rgba(229,9,20,0.5); }
}
.kinetic-line-preview {
  background: linear-gradient(to bottom, #E50914 0%, transparent 100%);
}
.flow-container {
  width: 100%; max-width: 600px;
  height: 2px;
  background: rgba(229,9,20,0.1);
  position: relative;
  margin: 2rem 0;
}
.flow-line {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 40px;
  background: #E50914;
  box-shadow: 0 0 15px #E50914;
  animation: flow 3s linear infinite;
}
@keyframes flow {
  0%   { left: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ── ENGINE ─────────────────────────────────────────────── */
#engine {
  background: radial-gradient(circle at center, #0A0A0C 0%, #050505 60%, #1a0202 100%);
  background-attachment: fixed;
}
.kinetic-line-container {
  position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 2px;
  background-color: rgba(230,10,17,0.1);
  z-index: 0; display: none;
}
@media (min-width: 1024px) { .kinetic-line-container { display: block; } }
.kinetic-line-progress {
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, #e60a11 5%, #e60a11 95%, transparent 100%);
  box-shadow: 0 0 15px rgba(230,10,17,0.8);
  position: relative;
}
.kinetic-glow-point {
  position: absolute; bottom: 0; left: 50%;
  transform: translate(-50%, 50%);
  width: 8px; height: 8px;
  background-color: #e60a11; border-radius: 50%;
  box-shadow: 0 0 16px 6px rgba(230,10,17,1);
  animation: bounceGlow 2s infinite ease-in-out;
}
@keyframes bounceGlow {
  0%, 100% { transform: translate(-50%, 50%) scale(1);   opacity: 0.8; }
  50%       { transform: translate(-50%, 50%) scale(1.6); opacity: 1; }
}
.feature-card {
  background-color: rgba(20,20,23,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid #2B2B30;
  position: relative; z-index: 10;
  transition: all 0.3s ease;
}
.feature-card.active {
  border-color: #e60a11;
  box-shadow: inset 0 0 20px rgba(230,10,17,0.1);
}
.node-connector {
  position: absolute; top: 50%;
  width: 40px; height: 2px;
  background-color: #e60a11;
  box-shadow: 0 0 10px rgba(230,10,17,0.6);
  z-index: 5; display: none;
}
@media (min-width: 1024px) {
  .node-connector { display: block; }
  .left-card  .node-connector { right: -40px; }
  .right-card .node-connector { left:  -40px; }
}
.radar-sweep {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(230,10,17,0.2) 60deg, transparent 60deg);
  border-radius: 50%;
  border: 1px solid rgba(230,10,17,0.3);
  animation: sweep 4s linear infinite;
}
@keyframes sweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.typing-cursor::after {
  content: '_';
  animation: blinkChar 1s step-end infinite;
}
@keyframes blinkChar {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes traverse {
  0%   { top: 20%; left: 20%; }
  25%  { top: 20%; left: 80%; }
  50%  { top: 80%; left: 80%; }
  75%  { top: 80%; left: 20%; }
  100% { top: 20%; left: 20%; }
}
@keyframes barMorph {
  0%, 100% { height: 30%; }
  50%       { height: 85%; }
}
.node-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem; width: 60%;
}
.node { width: 4px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.node-active {
  background: #e60a11;
  box-shadow: 0 0 8px #e60a11;
  animation: nodePulse 2s infinite ease-in-out;
}
@keyframes nodePulse {
  0%, 100% { opacity: 0.3; transform: scale(1);   }
  50%       { opacity: 1;   transform: scale(1.5); }
}

/* ── TELEMETRY ───────────────────────────────────────────── */
.stat-card {
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.stat-card:hover {
  box-shadow: inset 0 0 12px rgba(230,10,17,0.2);
  border-color: rgba(230,10,17,0.5);
}
@keyframes tickUp84 {
  0%   { content: "0%";  opacity: 0; }
  20%  { content: "12%"; opacity: 1; }
  40%  { content: "36%"; }
  60%  { content: "58%"; }
  80%  { content: "72%"; }
  100% { content: "84%"; }
}
@keyframes tickUp10 {
  0%   { content: "0x"; opacity: 0; }
  25%  { content: "2x"; opacity: 1; }
  50%  { content: "5x"; }
  75%  { content: "8x"; }
  100% { content: "10x"; }
}
@keyframes fadeIn0 {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
.animate-84::after { content: "0%"; }
.animate-10::after { content: "0x"; }
.animate-0::after  { content: "0";  opacity: 0; }
.telemetry-live .animate-84::after { animation: tickUp84 2s ease-out forwards; }
.telemetry-live .animate-10::after { animation: tickUp10 2s ease-out forwards; }
.telemetry-live .animate-0::after  { animation: fadeIn0  2s ease-out forwards; }
@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}
.graph-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.telemetry-live .graph-line {
  animation: drawLine 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── VAULT ───────────────────────────────────────────────── */
.animate-blink { animation: blinkBlock 1s step-end infinite; }
@keyframes blinkBlock {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
.scanline-effect::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 10px;
  background: linear-gradient(to bottom, transparent, rgba(229,9,20,0.05), transparent);
  animation: scanline 8s linear infinite;
  pointer-events: none; z-index: 50;
}
.kinetic-shadow { box-shadow: 0 0 12px rgba(229,9,20,0.6); }
.terminal-glow  { box-shadow: 0 0 50px rgba(0,0,0,0.8), 0 0 20px rgba(229,9,20,0.05); }

/* ── UTILITY CLASSES (replace inline style attributes) ─── */
.bg-section-dark {
  background: radial-gradient(circle at center, #0A0A0C 0%, #050505 60%, #1a0202 100%);
}
.bg-telemetry {
  background: radial-gradient(circle at center, rgba(230,10,17,0.08) 0%, rgba(10,10,12,1) 70%);
}
.icon-filled { font-variation-settings: 'FILL' 1; }
.honeypot { display: none; }
.traverse-dot {
  animation: traverse 8s linear infinite;
  box-shadow: 0 0 15px #e60a11;
}
.node-delay-200 { animation-delay: 0.2s; }
.node-delay-300 { animation-delay: 0.3s; }
.node-delay-500 { animation-delay: 0.5s; }
.node-delay-600 { animation-delay: 0.6s; }
.node-delay-800 { animation-delay: 0.8s; }
.bar-1 { animation: barMorph 2.0s infinite ease-in-out; animation-delay: 0.1s; }
.bar-2 { animation: barMorph 2.5s infinite ease-in-out; animation-delay: 0.3s; }
.bar-3 { animation: barMorph 1.8s infinite ease-in-out; animation-delay: 0.5s; }
.bar-4 { animation: barMorph 3.0s infinite ease-in-out; animation-delay: 0.2s; }
.bar-5 { animation: barMorph 2.2s infinite ease-in-out; animation-delay: 0.7s; }
.bar-6 { animation: barMorph 2.8s infinite ease-in-out; animation-delay: 0.4s; }
