/* ===========================
   ASMHunter — Continuous attack surface monitoring
   ========================= */

/* Anti-FOUC */
body {
  background-color: #06090f;
  color: #c9d1d9;
}

html {
  scroll-behavior: smooth;
}

/* ---- Background Layers ---- */
.dot-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #1b243310 1px, transparent 1px);
  background-size: 24px 24px;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 157, 0.008) 2px,
    rgba(0, 255, 157, 0.008) 4px
  );
}

body > *:not(.dot-grid):not(.scanlines) {
  position: relative;
  z-index: 1;
}

/* ---- Nav ---- */
.nav-blur {
  background: rgba(6, 9, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-cta {
  color: #00ff9d;
  border: 1px solid rgba(0, 255, 157, 0.25);
  background: rgba(0, 255, 157, 0.06);
  cursor: pointer;
}

.nav-cta:hover {
  background: rgba(0, 255, 157, 0.12);
  border-color: rgba(0, 255, 157, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.08);
}

/* ---- Hero ---- */
.hero-glow {
  position: absolute;
  top: 10%;
  left: 30%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 255, 157, 0.035) 0%, transparent 70%);
  pointer-events: none;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

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

/* ---- Terminal Window ---- */
.terminal-window {
  width: 340px;
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 255, 157, 0.03);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.terminal-body {
  padding: 16px;
  min-height: 200px;
}

.terminal-line {
  opacity: 0;
  transform: translateY(4px);
  animation: terminalReveal 0.3s ease forwards;
  margin-bottom: 6px;
}

@keyframes terminalReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Tool Badges ---- */
.tool-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #00ff9d;
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid rgba(0, 255, 157, 0.15);
  padding: 4px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: default;
}

.tool-badge:hover {
  background: rgba(0, 255, 157, 0.12);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.06);
}

/* ---- CTAs ---- */
.cta-primary {
  color: #06090f;
  background: #00ff9d;
  font-weight: 600;
  cursor: pointer;
}

.cta-primary:hover {
  background: #00e68d;
  box-shadow: 0 0 30px rgba(0, 255, 157, 0.2), 0 0 60px rgba(0, 255, 157, 0.05);
  transform: translateY(-1px);
}

.cta-primary:active {
  transform: scale(0.98);
}

.cta-secondary {
  color: #c9d1d9;
  border: 1px solid #30363d;
  background: rgba(48, 54, 61, 0.3);
  cursor: pointer;
}

.cta-secondary:hover {
  color: #e6edf3;
  border-color: #484f58;
  background: rgba(48, 54, 61, 0.5);
  transform: translateY(-1px);
}

.cta-secondary:active {
  transform: scale(0.98);
}

/* ---- Features ---- */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.feature-row:hover {
  background: rgba(13, 17, 23, 0.6);
}

.feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid rgba(0, 255, 157, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff9d;
}

/* ---- How It Works ---- */
.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 255, 157, 0.3);
  margin-bottom: 16px;
  line-height: 1;
}

/* ---- Pricing ---- */
.billing-toggle {
  background: #0d1117;
  border: 1px solid #21262d;
}

.toggle-btn {
  color: #6e7681;
  cursor: pointer;
}

.toggle-btn.active {
  color: #00ff9d;
  background: rgba(0, 255, 157, 0.1);
}

.pricing-card {
  position: relative;
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  border-color: #30363d;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
  border-color: rgba(0, 255, 157, 0.3);
}

.pricing-card.popular:hover {
  border-color: rgba(0, 255, 157, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 255, 157, 0.05);
}

.popular-glow {
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 255, 157, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #c9d1d9;
  font-weight: 300;
}

.check-mark {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  position: relative;
}

.check-mark::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 5px;
  height: 8px;
  border: solid #00ff9d;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* ---- Animations ---- */

/* Hero elements: fire on page load */
.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.6s ease forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Below-fold elements: fire on scroll */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Accessibility ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .scroll-reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: none;
  }

  .cursor-blink,
  .terminal-line {
    animation: none;
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
  }
}

/* ---- Focus states ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #00ff9d;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-glow {
    width: 300px;
    height: 200px;
    left: 50%;
  }

  .terminal-window {
    display: none;
  }
}
