/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  text-align: center;
  padding: 80px 20px 60px;
  animation: fadeIn 1s ease-in-out;
}

.hero-title {
  font-size: 64px;
  margin-bottom: 10px;
  letter-spacing: 5px;
  position: relative;
  display: inline-block;
  color: #fff;
}

.hero-sub {
  color: var(--text-label);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* =========================================
   FEATURE GRID (Minimal)
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 40px 0;
  padding: 0 10px;
}

.feature-card {
  position: relative;
  background: rgba(12, 14, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: background 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  cursor: default;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(29, 205, 159, 0.2);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.deck-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  opacity: 0.9;
}

.deck-status {
  font-size: 9px;
  color: var(--neon-teal);
  border: 1px solid rgba(29, 205, 159, 0.3);
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 1px;
}

.deck-body {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.feature-icon {
  margin-bottom: 5px;
  color: var(--neon-teal);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.feature-card:hover .feature-icon {
  opacity: 1;
  transform: scale(1.05);
}

.deck-body p {
  font-size: 14px;
  line-height: 1.6;
  color: #8899a6;
  margin: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: auto;
  font-size: 12px;
  color: #64748b;
}

.feature-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-list li::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  background: var(--neon-blue);
  border-radius: 50%;
}

/* =========================================
   GLITCH & UTILS
   ========================================= */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-dark);
}
.glitch::before {
  left: 2px; text-shadow: -1px 0 #ff0055;
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
  left: -2px; text-shadow: -1px 0 #00f3ff;
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
  0% { clip: rect(10px, 9999px, 30px, 0); }
  20% { clip: rect(80px, 9999px, 100px, 0); }
  100% { clip: rect(5px, 9999px, 60px, 0); }
}
@keyframes glitch-anim-2 {
  0% { clip: rect(60px, 9999px, 80px, 0); }
  20% { clip: rect(10px, 9999px, 40px, 0); }
  100% { clip: rect(90px, 9999px, 110px, 0); }
}
@media (max-width: 768px) {
  .hero-title { font-size: 36px !important; letter-spacing: 2px !important; }
  .features-grid { grid-template-columns: 1fr; }
}

/* =========================================
   NEW SYSTEM ARCHITECTURE: CYBER REACTOR
   ========================================= */
.reactor-wrapper {
  position: relative;
  background: radial-gradient(circle at center, #13161c 0%, #0a0c0f 70%);
  border: 1px solid rgba(255,255,255,0.05);
  margin-top: 60px;
  padding: 60px 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* Reduced slightly since we have fewer nodes */
}

/* --- The Central Core --- */
.core-system {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.core-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed var(--neon-teal);
  width: 100%;
  height: 100%;
  animation: spin 10s linear infinite;
  box-shadow: 0 0 30px rgba(29, 205, 159, 0.2);
}

.core-inner {
  position: absolute;
  width: 60%;
  height: 60%;
  background: rgba(29, 205, 159, 0.1);
  border: 1px solid var(--neon-teal);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulse 2s ease-in-out infinite;
}

.core-label {
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
}

/* --- The Orbiting Nodes (Aligned Horizontally) --- */
.node-satellite {
  position: absolute;
  width: 110px;
  padding: 12px;
  background: rgba(10, 12, 15, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  text-align: center;
  z-index: 10;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  
  /* UPDATED: Center Vertically */
  top: 50%;
  transform: translateY(-50%);
  animation: float 4s ease-in-out infinite;
}

/* Positioning - Straight Line */
.node-user   { left: 10%; border-top: 2px solid #fff; }
.node-market { right: 10%; border-top: 2px solid #00f3ff; }

/* Text in nodes */
.node-title { color: #fff; font-size: 11px; font-weight: bold; display: block; margin-bottom: 4px; }
.node-sub   { color: #666; font-size: 9px; font-family: 'JetBrains Mono', monospace; }

/* --- Animated Connection Lines (SVG) --- */
.connection-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.beam-line {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 1;
}

.beam-flow {
  fill: none;
  stroke: var(--neon-teal);
  stroke-width: 2;
  stroke-dasharray: 10, 200; /* Creates the "packet" effect */
  animation: beamFlow 1.5s linear infinite; /* Faster flow */
  filter: drop-shadow(0 0 5px var(--neon-teal));
}

/* --- Animations --- */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 
  0%, 100% { box-shadow: 0 0 20px rgba(29, 205, 159, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 40px rgba(29, 205, 159, 0.5); transform: scale(1.05); }
}
@keyframes float {
  0%, 100% { transform: translateY(-50%); } /* Stay centered */
  50% { transform: translateY(calc(-50% - 10px)); } /* Float up slightly */
}

@keyframes beamFlow {
  to { stroke-dashoffset: -210; }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .reactor-wrapper { min-height: 300px; }
  .node-user { left: 5%; width: 90px; }
  .node-market { right: 5%; width: 90px; }
  .core-system { transform: scale(0.8); }
}
