/* ============================================
   AdversaryPilot - Dark Neon UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --cyan: #00e5ff;
  --purple: #a855f7;
  --pink: #ec4899;
  --green: #22d3ee;
  --bg-0: #000000;
  --bg-1: #06060f;
  --bg-2: #0c0c1d;
  --bg-card: rgba(12, 12, 29, 0.6);
  --glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 229, 255, 0.25);
  --text: #c8c8d8;
  --text-dim: #6b6b85;
  --text-bright: #eeeef6;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 229, 255, 0.045), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(168, 85, 247, 0.03), transparent);
  background-attachment: fixed;
  min-height: 100vh;
}

/* --- Layout --- */

.site-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

/* --- Nav --- */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 0.9rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
}

.site-nav a {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}

.site-nav a.active {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

/* --- Hero --- */

.hero {
  text-align: center;
  padding: 4.5rem 0 3rem;
  position: relative;
}

.hero-glow { display: none; }

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.15));
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  margin-bottom: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.3));
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.4rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

/* --- Buttons --- */

.btn-neon {
  display: inline-block;
  padding: 0.55rem 1.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.25), 0 0 60px rgba(168, 85, 247, 0.1);
  transform: translateY(-1px);
  color: #000;
  text-decoration: none;
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--border-hover);
  background: rgba(0, 229, 255, 0.04);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
  text-decoration: none;
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-bright);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
  color: var(--text-bright);
  -webkit-text-fill-color: unset;
  background: none;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 2px;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

p { margin-bottom: 0.9rem; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.15s;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

strong { color: var(--text-bright); }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* --- Cards --- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: rgba(0, 229, 255, 0.03);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 229, 255, 0.1);
}

.feature-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text-bright);
  background: none;
  -webkit-text-fill-color: unset;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

/* --- Docs Grid --- */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 1.5rem 0;
}

.docs-grid a {
  display: block;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.docs-grid a:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.04);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.docs-grid .doc-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.15rem;
}

.docs-grid .doc-desc {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* --- Pipeline --- */

.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1.2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.pipeline-step {
  background: rgba(0, 229, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  text-align: center;
  min-width: 110px;
}

.pipeline-step .step-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
}

.pipeline-step .step-desc {
  font-size: 0.65rem;
  color: var(--text-dim);
  display: block;
  margin-top: 0.15rem;
}

.pipeline-arrow {
  color: var(--purple);
  font-size: 1rem;
  font-weight: bold;
  opacity: 0.7;
}

/* --- Code --- */

pre {
  background: rgba(6, 6, 15, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

code {
  font-family: var(--mono);
  font-size: 0.87em;
}

p code, li code, td code {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  font-size: 0.84em;
  color: var(--cyan);
}

/* --- Tables --- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.82rem;
}

th {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border-hover);
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

tr:hover td {
  background: rgba(0, 229, 255, 0.015);
}

/* --- Lists --- */

ul, ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

li { margin-bottom: 0.25rem; }

/* --- Blockquotes --- */

blockquote {
  border-left: 2px solid var(--purple);
  margin: 1rem 0;
  padding: 0.75rem 1.2rem;
  background: rgba(168, 85, 247, 0.03);
  border-radius: 0 10px 10px 0;
  color: var(--text-dim);
}

blockquote p:last-child { margin-bottom: 0; }

/* --- Images --- */

img {
  max-width: 700px;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: block;
  margin: 1.5rem 0;
}

/* --- CTA --- */

.repo-cta {
  margin-top: 4rem;
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.repo-cta h2 {
  font-size: 1.15rem;
  background: none;
  -webkit-text-fill-color: unset;
  color: var(--text-bright);
}

.repo-cta h2::after { display: none; }

.repo-cta p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.repo-cta .btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  margin: 0.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  border: 1px solid var(--border-hover);
  transition: all 0.2s ease;
}

.repo-cta .btn:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: var(--cyan);
  color: var(--cyan);
  text-decoration: none;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .hero { padding: 3rem 0 2rem; }
  .hero-title { font-size: 2.6rem; }
  .hero-stats { gap: 2rem; }
  .stat-number { font-size: 1.8rem; }
  .features { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }
  .site-wrapper { padding: 0 1.25rem 4rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 0.8rem; }
  .site-nav { gap: 1px; }
  .site-nav a { font-size: 0.72rem; padding: 0.3rem 0.45rem; }
}
