/* ========================================
   VulnRelay — Dark Terminal Aesthetic
   Font stack: Syne (headings), DM Sans (body), DM Mono (data/code)
   ======================================== */

:root {
  --bg: #070b09;
  --surface: #0a0f0e;
  --surface-alt: #0d1411;
  --border: rgba(0, 229, 160, 0.12);
  --green: #00e5a0;
  --green-dim: rgba(0, 229, 160, 0.15);
  --amber: #f59e0b;
  --red: #ef4444;
  --text: #c8d9d2;
  --text-dim: #6b7c77;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

html { font-size: 16px; }

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

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 9, 0.85);
  backdrop-filter: blur(12px);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
  letter-spacing: 0.02em;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem clamp(1.5rem, 5vw, 4rem) 4rem;
}
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.hero-label, .section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.label-bar {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--green);
  flex-shrink: 0;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #eef3ef;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 42ch;
  line-height: 1.7;
}

/* ---- TERMINAL ---- */
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 229, 160, 0.03);
}
.terminal-dots { display: flex; gap: 0.4rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-amber { background: #f59e0b; }
.dot-green { background: #00e5a0; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  flex: 1;
  text-align: center;
}
.terminal-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0, 229, 160, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.05em;
}
.terminal-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  position: relative;
}
.terminal-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.8fr 1.4fr;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  border: 1px solid transparent;
  gap: 0.5rem;
  transition: border-color 0.2s;
}
.terminal-row:hover { border-color: var(--border); }
.header-row { color: var(--text-dim); font-size: 0.65rem; letter-spacing: 0.08em; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); margin-bottom: 0.2rem; }
.terminal-row.critical { background: rgba(239, 68, 68, 0.06); }
.terminal-row.high { background: rgba(245, 158, 11, 0.04); }
.cve-id { color: #7dbaa5; }
.score { font-weight: 500; }
.critical-score { color: var(--red); }
.high-score { color: var(--amber); }
.medium-score { color: #e2a84b; }
.badge { font-size: 0.62rem; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.04em; font-weight: 500; }
.badge-red { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.badge-amber { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.badge-green { background: rgba(0, 229, 160, 0.1); color: var(--green); }
.badge-muted { background: rgba(107, 124, 119, 0.15); color: var(--text-dim); }
.action-text { color: var(--text-dim); font-size: 0.68rem; }
.terminal-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 229, 160, 0.012) 3px, rgba(0, 229, 160, 0.012) 4px);
  pointer-events: none;
  border-radius: 0 0 10px 10px;
}
.terminal-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  background: rgba(0, 229, 160, 0.02);
}
.terminal-sep { color: rgba(0, 229, 160, 0.25); }

/* ---- STATS ---- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 18ch;
  margin: 0 auto;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ---- HOW ---- */
.how { padding: 6rem clamp(1.5rem, 5vw, 4rem); }
.how-inner { max-width: 1200px; margin: 0 auto; }
.section-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #eef3ef;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 55ch;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}
.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.pipe-stage {
  flex: 0 0 auto;
  min-width: 140px;
  text-align: center;
  padding: 0 0.5rem;
}
.pipe-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
}
.pipe-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: #eef3ef;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.pipe-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 15ch;
  margin: 0 auto;
}
.pipe-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-top: 20px;
}

/* ---- FEATURES ---- */
.features { padding: 5rem clamp(1.5rem, 5vw, 4rem); background: var(--surface); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 2rem;
}
.feature-card {
  background: var(--surface-alt);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.feature-card:hover { background: #0f1814; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #eef3ef;
  margin-bottom: 0.6rem;
}
.feature-body {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ---- MANIFESTO ---- */
.manifesto { padding: 5rem clamp(1.5rem, 5vw, 4rem); }
.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}
.manifesto-quote { position: relative; }
.quote-mark {
  font-family: var(--font-head);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--green);
  opacity: 0.25;
  margin-bottom: 0.5rem;
}
.manifesto-quote p {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  color: #c8d9d2;
  line-height: 1.7;
  max-width: 42ch;
}
.quote-attribution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.attr-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-dim);
}
.manifesto-side {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.manifesto-stat {}
.m-stat-num {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.m-stat-unit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}
.m-stat-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  line-height: 1.6;
  max-width: 32ch;
}

/* ---- CLOSING ---- */
.closing { padding: 6rem clamp(1.5rem, 5vw, 4rem); background: var(--surface); }
.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #eef3ef;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.closing-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 auto 3rem;
}
.closing-statement {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* ---- FOOTER ---- */
.footer { padding: 2rem clamp(1.5rem, 5vw, 4rem); border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-text { order: 1; }
  .hero-terminal { order: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 3rem; }
  .pipeline { flex-direction: column; align-items: center; }
  .pipe-arrow { transform: rotate(90deg); }
  .stats-inner { justify-content: center; }
  .stat-divider { display: none; }
}
@media (max-width: 600px) {
  .stat-number { font-size: 2.2rem; }
  .hero-headline { font-size: 2rem; }
  .terminal-row { grid-template-columns: 1.5fr 0.8fr 1.4fr; }
  .terminal-row .action-text { display: none; }
}
