/* ============================================================
   ThreatDB — global stylesheet
   Dark, professional cybersecurity theme: navy/slate base,
   single cyan accent. Flat surfaces, no stock gradients.
   ============================================================ */

:root {
  --bg: #0b1220;            /* deep navy page bg */
  --bg-alt: #0f1a2e;        /* slightly lifted section bg */
  --surface: #14213a;       /* card surface */
  --surface-2: #1a2a47;     /* hover / raised surface */
  --border: #24365c;
  --text: #e6edf7;
  --text-muted: #93a3bd;
  --accent: #35d4e5;        /* single cyan accent */
  --accent-ink: #05242b;    /* text on accent */
  --danger: #ff7b72;
  --radius: 10px;
  --maxw: 1080px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono',
    Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--text-muted);
}

em {
  font-style: normal;
  color: var(--accent);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.brand-mark {
  color: var(--accent);
}

.brand-sub {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-cta {
  margin-left: 8px;
  padding: 8px 14px;
  font-size: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover {
  background: #5cdce9;
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(rgba(53, 212, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 212, 229, 0.035) 1px, transparent 1px);
  background-size: 44px 44px; /* subtle grid, not a gradient hero */
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero-sub {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 32px;
}

.hero-sub strong {
  color: var(--text);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
}

.hero-stats li {
  border: 1px solid var(--border);
  background: rgba(20, 33, 58, 0.6);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.hero-stats span {
  display: block;
  font-family: var(--mono);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ---------- sections ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.section-lede {
  max-width: 64ch;
  margin: 0 0 40px;
  font-size: 16px;
}

/* ---------- feature cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: #35507f;
  background: var(--surface-2);
}

.card-icon {
  font-size: 22px;
  margin-bottom: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- pipeline ---------- */
.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.pipeline-num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.pipeline-step h3 {
  margin: 2px 0 8px;
  font-size: 17px;
}

.pipeline-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- demo band ---------- */
.demo {
  border-top: 1px solid var(--border);
}

.demo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.demo-inner .section-title {
  margin-bottom: 10px;
}

.demo-inner .section-lede {
  margin-bottom: 0;
  max-width: 56ch;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.contact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.contact-item p {
  margin: 0;
  font-size: 15px;
}

.contact-item p.muted {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.cta-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0 0 4px;
  font-weight: 600;
}

.site-footer .muted {
  font-size: 13.5px;
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-step {
    grid-template-columns: 1fr;
  }

  .pipeline-num {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .demo-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
