/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:       #050508;
  --bg2:      #0a0a14;
  --cyan:     #00f0ff;
  --magenta:  #ff00ff;
  --purple:   #7b2fff;
  --green:    #00ff9f;
  --text:     #d0e8ff;
  --text-dim: #5a7090;
  --glass:    rgba(10,10,25,0.6);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== ANIMATED GRADIENT BG ===== */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 30%, rgba(123,47,255,0.18) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 70%, rgba(0,240,255,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255,0,255,0.08) 0%, transparent 70%);
  animation: bgShift 10s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0%   { background-position: 0% 0%; filter: hue-rotate(0deg); }
  100% { background-position: 100% 100%; filter: hue-rotate(30deg); }
}

/* ===== GRID ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes gridPulse {
  0%   { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ===== SCANLINES ===== */
.bg-scan {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  animation: scanMove 6s linear infinite;
}

@keyframes scanMove {
  0%   { background-position: 0 0; }
  100% { background-position: 0 80px; }
}

/* ===== CANVAS ===== */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== WRAPPER ===== */
.wrapper { position: relative; z-index: 2; }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,240,255,0.15);
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 4px;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan), 0 0 30px rgba(0,240,255,0.5);
  text-decoration: none;
}

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

.nav-cta {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
  background: rgba(0,240,255,0.1);
  box-shadow: 0 0 20px rgba(0,240,255,0.4);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid rgba(255,0,255,0.4);
  padding: 6px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(255,0,255,0.07);
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 7rem);
  letter-spacing: 6px;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--cyan) 0%, #a78bfa 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: neonGlow 3s ease-in-out infinite alternate, fadeInUp 1s ease 0.2s both;
}

@keyframes neonGlow {
  0%   { filter: drop-shadow(0 0 20px rgba(0,240,255,0.5)) drop-shadow(0 0 60px rgba(123,47,255,0.3)); }
  100% { filter: drop-shadow(0 0 40px rgba(0,240,255,0.9)) drop-shadow(0 0 100px rgba(255,0,255,0.5)); }
}

/* ===== GLITCH ===== */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--cyan) 0%, #a78bfa 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glitch::before {
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
  animation: glitch2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
  0%,90%,100% { transform: translate(0); opacity: 0; }
  92% { transform: translate(-3px, 1px); opacity: 0.8; }
  94% { transform: translate(3px, -1px); opacity: 0.8; }
  96% { transform: translate(0); opacity: 0; }
}

@keyframes glitch2 {
  0%,90%,100% { transform: translate(0); opacity: 0; }
  93% { transform: translate(3px, 2px); opacity: 0.8; }
  95% { transform: translate(-3px, -2px); opacity: 0.8; }
  97% { transform: translate(0); opacity: 0; }
}

.hero-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 20px;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--cyan);
  width: 0;
  animation: typewriter 2.5s steps(30) 0.8s forwards, blink 0.75s step-end infinite 3.3s;
}

@keyframes typewriter { to { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }

.hero-desc {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
  animation: fadeInUp 1s ease 1.2s both;
  opacity: 0;
}

/* ===== BUTTON ===== */
.btn-launch {
  display: inline-block;
  margin-top: 48px;
  padding: 16px 52px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #050508;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease 1.5s both, btnPulse 2.5s ease-in-out 2.5s infinite;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 0 20px rgba(0,240,255,0.5), 0 0 60px rgba(123,47,255,0.3);
}

.btn-launch:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 0 40px rgba(0,240,255,0.8), 0 0 100px rgba(123,47,255,0.6), 0 0 160px rgba(255,0,255,0.3);
}

@keyframes btnPulse {
  0%,100% { box-shadow: 0 0 20px rgba(0,240,255,0.5), 0 0 60px rgba(123,47,255,0.3); }
  50%      { box-shadow: 0 0 40px rgba(0,240,255,0.8), 0 0 100px rgba(123,47,255,0.6); }
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 80px;
  padding: 28px 40px;
  background: var(--glass);
  border: 1px solid rgba(0,240,255,0.12);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  animation: fadeInUp 1s ease 1.8s both;
  opacity: 0;
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan);
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ===== SECTION ===== */
section { padding: 100px 24px; }

.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--magenta);
  text-align: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(135deg, var(--text) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--glass);
  border: 1px solid rgba(0,240,255,0.1);
  border-radius: 12px;
  padding: 36px 28px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover { transform: translateY(-6px); border-color: rgba(0,240,255,0.35); box-shadow: 0 0 40px rgba(0,240,255,0.1); }
.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: block;
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 12px;
}

.card-text { font-size: 0.95rem; color: var(--text-dim); line-height: 1.7; }

/* ===== TERMINAL ===== */
.terminal-wrap { max-width: 700px; margin: 0 auto; }

.terminal {
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,240,255,0.1);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,240,255,0.05);
  border-bottom: 1px solid rgba(0,240,255,0.1);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.terminal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-left: 8px;
}

.terminal-body { padding: 24px; font-family: 'Courier New', monospace; font-size: 0.88rem; }

.t-line { margin-bottom: 8px; }
.t-prompt { color: var(--green); }
.t-cmd { color: var(--text); }
.t-out { color: var(--text-dim); }
.t-success { color: var(--green); }
.t-cyan { color: var(--cyan); }
.t-cursor { display: inline-block; width: 8px; height: 14px; background: var(--cyan); animation: cursorBlink 1s step-end infinite; vertical-align: middle; }

@keyframes cursorBlink { 50% { opacity: 0; } }

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 100px 24px;
  position: relative;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(123,47,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 4px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-sub { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 40px; }

.btn-outline {
  display: inline-block;
  margin-left: 16px;
  padding: 16px 40px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s;
}

.btn-outline:hover { background: rgba(0,240,255,0.1); box-shadow: 0 0 20px rgba(0,240,255,0.3); }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(0,240,255,0.08);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-dim);
}

footer span { color: var(--cyan); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .stats-bar { flex-direction: column; gap: 24px; }
}
