*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base: #050814;        
  --bg-surface: #0a1122;    
  --bg-card: #10182b;        
  --bg-elevated: #162038;    
  --bg-hover: #1e2c4a;
  
  --border: #1e2c4a;
  --border-light: #2a3c63;
  
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  
  --cyan: #00f0ff;         
  --cyan-glow: rgba(0, 240, 255, 0.2);
  --cyan-dim: rgba(0, 240, 255, 0.1);
  
  --pink: #ff2a6d;         
  --pink-glow: rgba(255, 42, 109, 0.3);
  --pink-dim: rgba(255, 42, 109, 0.15);

  --red: #ff4757;
  --orange: #ff6b35;
  --yellow: #ffc048;
  --green: #00d68f;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: 'SF Mono', 'JetBrains Mono', Consolas, monospace; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 8, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-links a.active {
  color: var(--cyan);
  background: var(--cyan-dim);
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.btn-github:hover {
  border-color: var(--cyan) !important;
}

.hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse at center 30%, var(--cyan-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--pink-dim);
  color: var(--pink);
  border: 1px solid var(--pink-glow);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
}

.hero-stats span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-preview img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 80px rgba(0, 240, 255, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg-base);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.btn-primary:hover {
  background: #00d2df;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: var(--bg-elevated);
}

/* ===== DOWNLOAD SECTION ===== */
.download {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 18px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, var(--cyan-dim), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.download-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.download-card:hover::before {
  opacity: 1;
}

.dl-icon, .download-card h3, .dl-arch, .dl-file, .dl-btn {
  position: relative;
  z-index: 1;
}

.dl-icon { font-size: 48px; margin-bottom: 20px; }
.download-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.dl-arch { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }

.dl-file {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: 'SF Mono', Consolas, monospace;
  margin-bottom: 24px;
}

.dl-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--bg-elevated);
  color: var(--cyan);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.download-card:hover .dl-btn {
  background: var(--cyan);
  color: var(--bg-base);
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.download-footer { text-align: center; }
.download-footer p { color: var(--text-muted); font-size: 14px; }
.download-footer a { color: var(--text-primary); text-decoration: underline; transition: color var(--transition); }
.download-footer a:hover { color: var(--cyan); }

.features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--pink);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--pink-dim);
}

.feature-icon { font-size: 40px; margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.feature-card b { color: var(--pink); }

.nae-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nae-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.nae-node {
  width: 200px;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.nae-node.attacker { border-color: rgba(255, 42, 109, 0.4); box-shadow: 0 0 20px var(--pink-dim); }
.nae-node.target { border-color: rgba(0, 240, 255, 0.4); box-shadow: 0 0 20px var(--cyan-dim); }
.nae-node.analyzer { border-color: rgba(255, 192, 72, 0.4); }

.nae-icon { font-size: 48px; margin-bottom: 16px; }
.nae-node h4 { font-size: 15px; letter-spacing: 2px; margin-bottom: 8px; color: var(--text-primary); }
.nae-node p { font-size: 13px; color: var(--text-muted); }
.nae-arrow { font-size: 40px; color: var(--text-muted); font-weight: 700; }

.nae-example { max-width: 800px; margin: 0 auto; }
.round {
  display: flex; gap: 24px; padding: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 16px; align-items: center;
}
.round.success {
  border-color: var(--pink);
  background: var(--pink-dim);
}
.round-num { flex-shrink: 0; width: 80px; font-weight: 800; color: var(--cyan); }
.round.success .round-num { color: var(--pink); }
.round-prompt { font-family: 'SF Mono', Consolas, monospace; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }
.round-verdict { font-size: 14px; }
.score { display: inline-block; padding: 4px 12px; border-radius: 100px; font-weight: 800; font-size: 12px; margin-right: 12px; }
.score.bad { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
.score.mid { background: rgba(255, 192, 72, 0.15); color: var(--yellow); }
.score.good { background: var(--pink); color: var(--bg-base); }

.arsenal { padding: 100px 0; }
.arsenal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.attack-cat {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.attack-cat:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  background: var(--bg-hover);
}

.cat-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.attack-cat h4 { font-size: 15px; margin-bottom: 6px; color: var(--text-primary); }
.cat-count { font-size: 13px; color: var(--cyan); font-weight: 600; }

.img-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
  margin: 0 auto; 
  display: block;
}

.img-frame:hover {
  border-color: var(--cyan);
  box-shadow: 0 16px 50px rgba(0, 240, 255, 0.25);
}

.nae-media-container, 
.db-preview-container, 
.report-media-container, 
.docs-img-wrapper {
  margin: 32px auto;
  text-align: center;
  display: flex;
  justify-content: center; 
  align-items: center;
  width: 100%;
}

.docs-img-wrapper img,
.nae-media-container img,
.db-preview-container img,
.report-media-container img {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

.cta { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 80px 0; text-align: center; }
.cta h2 { font-size: 40px; font-weight: 800; margin-bottom: 16px; }
.cta p { color: var(--text-secondary); font-size: 18px; margin-bottom: 40px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.footer { padding: 40px 0; background: var(--bg-base); border-top: 1px solid var(--border); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 2px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 6px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color var(--transition); }
.footer-links a:hover { color: var(--cyan); }
.footer-copyright { font-size: 13px; color: var(--text-muted); width: 100%; text-align: center; padding-top: 24px; border-top: 1px solid var(--border); margin-top: 24px; }
.footer-copyright a { color: var(--text-primary); }

.docs-page { background: var(--bg-base); }
.docs-layout { display: grid; grid-template-columns: 260px 1fr; max-width: 1400px; margin: 0 auto; min-height: calc(100vh - 70px); }
.docs-sidebar { position: sticky; top: 70px; height: calc(100vh - 70px); padding: 32px 24px; border-right: 1px solid var(--border); overflow-y: auto; }
.docs-search input { width: 100%; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: inherit; font-size: 14px; margin-bottom: 32px; }
.docs-search input:focus { border-color: var(--cyan); }
.docs-nav-section { margin-bottom: 32px; }
.docs-nav-section h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 12px; padding: 0 8px; }
.docs-nav-link { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: all var(--transition); }
.docs-nav-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.docs-nav-link.active { background: var(--cyan-dim); color: var(--cyan); font-weight: 700; }
.docs-content { padding: 48px 80px; max-width: 960px; }
.docs-breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.docs-article h1 { font-size: 48px; font-weight: 900; margin-bottom: 24px; letter-spacing: -1px; }
.docs-article h2 { font-size: 32px; font-weight: 800; margin: 56px 0 20px; padding-top: 32px; border-top: 1px solid var(--border); }
.docs-article h3 { font-size: 22px; font-weight: 700; margin: 32px 0 16px; }
.docs-article p { color: var(--text-secondary); margin-bottom: 20px; font-size: 16px; line-height: 1.7; }
.docs-article code { background: var(--bg-elevated); padding: 4px 8px; border-radius: 4px; font-size: 14px; color: var(--cyan); }
.docs-article pre { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; overflow-x: auto; margin: 24px 0; }
.docs-article pre code { background: transparent; padding: 0; color: var(--text-primary); }

.callout { padding: 20px 24px; background: var(--bg-card); border-left: 4px solid var(--cyan); border-radius: var(--radius-sm); margin: 32px 0; color: var(--text-primary); }
.callout a { color: var(--cyan); text-decoration: underline; }
.callout.info { border-left-color: var(--cyan); }
.callout.warning { border-left-color: var(--yellow); }
.callout.danger { border-left-color: var(--red); }

.docs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.docs-table th {
  background: var(--bg-elevated);
  color: var(--cyan);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-light);
  text-align: left;
}

.docs-table td {
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.docs-table tr:hover td {
  background: var(--bg-hover);
  color: #ffffff;
}

.docs-table td strong {
  color: var(--cyan);
  font-weight: 700;
}

.docs-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.docs-tab { padding: 10px 16px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-secondary); cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; transition: all var(--transition); }
.docs-tab:hover { color: var(--text-primary); }
.docs-tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.docs-tab-content { display: none; padding-top: 16px; }
.docs-tab-content.active { display: block; }

.cli-command { padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin: 20px 0; }
.cli-command h3 { margin-top: 0 !important; margin-bottom: 8px !important; }

.community-hero { padding: 100px 0 60px; text-align: center; background: radial-gradient(ellipse at center top, var(--pink-dim), transparent 50%); }
.community-hero h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 900; margin-bottom: 20px; }
.community-hero p { color: var(--text-secondary); font-size: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.stat-card { padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; }
.stat-value { font-size: 48px; font-weight: 900; background: linear-gradient(135deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .features-grid, .arsenal-grid { grid-template-columns: 1fr 1fr; }
  .download-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .features-grid, .arsenal-grid, .stats-grid, .download-grid { grid-template-columns: 1fr; }
  .nae-diagram { flex-direction: column; }
  .nae-arrow { transform: rotate(90deg); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .docs-content { padding: 32px 24px; }
  .nav-links li:not(:last-child) { display: none; }
}

.download-card.recommended {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 30px var(--cyan-glow), inset 0 0 20px var(--cyan-dim) !important;
  transform: translateY(-4px);
}

.recommended-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--cyan);
  color: var(--bg-base);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px var(--cyan-glow);
  z-index: 2;
}