/* ===== FIXED HERO WRAPPER ===== */
.ztx9p_traderHero {
  min-height: 100vh;
  background: #010101;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

/* ===== MATRIX BG ===== */
.ztx9p_bgMatrix {
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,255,136,0.05),
    rgba(0,255,136,0.05) 1px,
    transparent 1px,
    transparent 40px
  );
}

/* ===== LAYOUT ===== */
.ztx9p_wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  gap: 40px;
  z-index: 2;
}

/* ===== LEFT ===== */
.ztx9p_left {
  flex: 1;
}

.ztx9p_left h1 {
  font-size: clamp(32px, 6vw, 55px);
  line-height: 1.2;
}

.ztx9p_left span {
  color: #00ff88;
}

.ztx9p_left p {
  margin-top: 15px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.ztx9p_btns {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ztx9p_btnMain,
.ztx9p_btnGhost {
  padding: 10px 20px;
  font-size: 14px;
}

/* ===== TERMINAL ===== */
.ztx9p_terminal {
  flex: 1;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16/10;
  border: 1px solid rgba(0,255,136,0.2);
  position: relative;
  background: #000;
}

.ztx9p_particleLayer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0; /* BELOW EVERYTHING */
  pointer-events: none;
}

.ztx9p_wrapper {
  position: relative;
  z-index: 2;
}

.ztx9p_left,
.ztx9p_terminal {
  position: relative;
  z-index: 3;
}

/* ===== CANVAS FIX ===== */
#ztx9p_chart {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ===== SCANNER ===== */
.ztx9p_scanX, .ztx9p_scanY {
  position: absolute;
  background: #00ff88;
  opacity: 0.02; /* subtle, premium */
}

.ztx9p_left h1 span {
  display: inline-block;
  animation: smoothGlow 3s ease-in-out infinite;
}

@keyframes smoothGlow {
  0%,100% { text-shadow: 0 0 5px #00ff88; }
  50% { text-shadow: 0 0 20px #00ff88; }
}

.ztx9p_terminal:hover {
  box-shadow: 0 0 25px rgba(0,255,136,0.15);
  transform: translateY(-5px);
  transition: 0.3s;
}

.ztx9p_bgMatrix {
  animation: slowMove 20s linear infinite;
}

@keyframes slowMove {
  from { transform: translateY(0); }
  to { transform: translateY(40px); }
}

.ztx9p_scanX {
  height: 2px;
  width: 100%;
  animation: scanX 3s linear infinite;
}

.ztx9p_scanY {
  width: 2px;
  height: 100%;
  animation: scanY 3s linear infinite;
}

@keyframes scanX {
  0% { top: 0; }
  100% { top: 100%; }
}

@keyframes scanY {
  0% { left: 0; }
  100% { left: 100%; }
}

/* ===== STATS ===== */
.ztx9p_stats {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  border-top: 1px solid rgba(0,255,136,0.2);
  background: rgba(0,0,0,0.6);
}

.ztx9p_left {
  max-width: 650px;
}

.ztx9p_left h1 {
  margin: 0;
}

.ztx9p_left p {
  max-width: 500px;
}

/* ===== MOBILE ===== */
@media(max-width:768px){
  .ztx9p_wrapper {
    flex-direction: column;
    text-align: center;
  }

  .ztx9p_left {
    max-width: 100%;
  }

  .ztx9p_terminal {
    width: 100%;
    margin-top: 30px;
  }

  .ztx9p_stats {
    font-size: 10px;
    left: 8px;
  }
}

/* ===== BACKGROUND MOTION ===== */
.ztx9p_bgMatrix {
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,255,136,0.05),
    rgba(0,255,136,0.05) 1px,
    transparent 1px,
    transparent 40px
  );
  animation: gridMove 10s linear infinite;
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to { transform: translateY(40px); }
}

/* ===== AI WAVE LINES ===== */
.ztx9p_traderHero::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0,255,136,0.08), transparent 70%);
  animation: pulseWave 6s infinite linear;
}

@keyframes pulseWave {
  0% { transform: scale(1); opacity: 0.02; /* subtle, premium */ }
  50% { transform: scale(1.2); opacity: 0.1; }
  100% { transform: scale(1); opacity: 0.02; /* subtle, premium */ }
}

/* ===== TEXT ENTRY ===== */
.ztx9p_left h1 {
  opacity: 0;
  transform: translateY(40px);
  animation: textReveal 1s ease forwards;
}

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SUBTEXT DELAY ===== */
.ztx9p_left p {
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== AI FLICKER EFFECT ===== */
.ztx9p_left span {
  animation: flicker 2s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== BUTTON PULSE ===== */
/* ===== BUTTON WRAPPER ===== */
.ztx9p_btns {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== PRIMARY BUTTON ===== */
.ztx9p_btnMain {
  position: relative;
  padding: 12px 28px;
  border-radius: 30px;
  color: #000;
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,255,136,0.2);
}

/* SHINE EFFECT */
.ztx9p_btnMain::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  transform: skewX(-25deg);
}

/* HOVER */
.ztx9p_btnMain:hover::before {
  left: 130%;
  transition: 0.7s;
}

.ztx9p_btnMain:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,255,136,0.4);
}

/* ACTIVE CLICK */
.ztx9p_btnMain:active {
  transform: scale(0.96);
}


/* ===== SECONDARY BUTTON ===== */
.ztx9p_btnGhost {
  position: relative;
  padding: 12px 28px;
  border-radius: 30px;
  color: #00ff88;
  text-decoration: none;
  border: 1px solid rgba(0,255,136,0.4);
  background: rgba(0,255,136,0.05);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

/* BORDER GLOW */
.ztx9p_btnGhost::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  box-shadow: 0 0 0px rgba(0,255,136,0);
  transition: 0.3s;
}

/* HOVER */
.ztx9p_btnGhost:hover {
  background: rgba(0,255,136,0.1);
  transform: translateY(-3px);
}

.ztx9p_btnGhost:hover::after {
  box-shadow: 0 0 15px rgba(0,255,136,0.4);
}

/* ACTIVE */
.ztx9p_btnGhost:active {
  transform: scale(0.96);
}

/* ===== TERMINAL FLOAT ===== */
.ztx9p_terminal {
  animation: floatBox 4s ease-in-out infinite;
}

@keyframes floatBox {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}