/* ===== BLACKFREQUENCY — MAIN CSS ===== */
:root {
  --bg: #080b0f;
  --bg2: #0d1117;
  --bg3: #111820;
  --surface: #141c26;
  --surface2: #1a2535;
  --border: rgba(0,255,100,0.12);
  --border2: rgba(0,255,100,0.25);
  --green: #00ff64;
  --green2: #00cc4f;
  --green-dim: rgba(0,255,100,0.08);
  --green-glow: rgba(0,255,100,0.3);
  --text: #e8f0fe;
  --text2: #8899aa;
  --text3: #4a5f70;
  --font: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,255,100,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,100,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.bg-waves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wave {
  position: absolute;
  width: 200%;
  height: 200%;
  border-radius: 40%;
  opacity: 0.025;
}
.w1 {
  background: radial-gradient(ellipse at 30% 40%, var(--green) 0%, transparent 60%);
  animation: waveFloat 18s ease-in-out infinite;
  top: -50%; left: -50%;
}
.w2 {
  background: radial-gradient(ellipse at 70% 60%, #005aff 0%, transparent 60%);
  animation: waveFloat 24s ease-in-out infinite reverse;
  top: -30%; left: -20%;
}
.w3 {
  background: radial-gradient(ellipse at 50% 80%, var(--green) 0%, transparent 50%);
  animation: waveFloat 32s ease-in-out infinite;
  top: 0%; left: -30%;
}

@keyframes waveFloat {
  0%, 100% { transform: translate(0,0) rotate(0deg) scale(1); }
  33% { transform: translate(30px, -20px) rotate(5deg) scale(1.05); }
  66% { transform: translate(-20px, 30px) rotate(-3deg) scale(0.98); }
}

.scanline {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  z-index: 9999;
  opacity: 0.4;
  pointer-events: none;
  animation: scan 8s linear infinite;
}
@keyframes scan {
  0% { top: 0; }
  100% { top: 100vh; }
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(8,11,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.logo-icon {
  color: var(--green);
  font-size: 1.4rem;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--green); }

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #000;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  font-family: var(--font);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--green-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid var(--border2);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  font-family: var(--font);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dim);
  border: 1px solid var(--border2);
  color: var(--green);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}

.pulse-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-accent { color: var(--green); }

/* Glitch effect */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.glitch::before {
  color: var(--green);
  animation: glitch1 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  color: #005aff;
  animation: glitch2 4s 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.6; }
  96% { transform: translate(0); opacity: 0; }
}
@keyframes glitch2 {
  0%, 91%, 100% { transform: translate(0); opacity: 0; }
  93% { transform: translate(3px, 1px); opacity: 0.8; }
  95% { transform: translate(-3px, -1px); opacity: 0.6; }
  97% { transform: translate(0); opacity: 0; }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text2);
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: fadeUp 0.6s 0.4s ease both;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--mono);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-div {
  width: 1px; height: 50px;
  background: var(--border);
}

/* ===== SECTIONS ===== */
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.section-title .accent { color: var(--green); }

.section-sub {
  color: var(--text2);
  font-size: 1rem;
  margin-bottom: 60px;
  max-width: 500px;
}

/* ===== FEATURES ===== */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--green-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.feat-card:hover::before { opacity: 1; }
.feat-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.feat-large { grid-column: span 2; }
.feat-right { grid-column: 2 / span 2; }

.feat-icon {
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
  animation: iconPulse 3s ease infinite;
}
@keyframes iconPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.feat-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.feat-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feat-card p {
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feat-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.feat-tools span {
  background: var(--green-dim);
  border: 1px solid var(--border);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-family: var(--mono);
}

/* ===== PRICING ===== */
.pricing {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 280px;
  text-align: left;
  transition: all 0.3s;
}
.price-featured {
  border-color: var(--green);
  box-shadow: 0 0 40px var(--green-glow);
}
.price-card:hover { transform: translateY(-4px); }

.price-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 12px;
}
.price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.price-card ul {
  list-style: none;
  margin-bottom: 28px;
}
.price-card li {
  color: var(--text2);
  font-size: 0.875rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: gap;
}
.footer-logo { font-weight: 700; color: var(--green); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: 0.875rem; }
.footer-links a:hover { color: var(--green); }
.footer-copy { color: var(--text3); font-size: 0.8rem; }

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

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