/* ===========================================================
   VIGIL — Design system
   Palette pulled directly from the product's own visual language
   (the CCTV bounding-box red + dark console tones already used
   across every use-case card and the dashboard mockup), extended
   site-wide so the marketing site itself feels like the product.
   =========================================================== */

:root {
  --bg: #0B0E13;
  --panel: #12161D;
  --panel-alt: #161B24;
  --panel-hover: #1B212C;
  --border: #232A35;
  --border-hover: #323B4A;
  --text-hi: #F2F4F7;
  --text-lo: #9099A8;
  --text-dim: #5B6472;
  --red: #E8342B;
  --red-dim: #B8281F;
  --red-glow: rgba(232, 52, 43, 0.18);
  --green: #34C77B;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1200px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }

p { color: var(--text-lo); }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dim); box-shadow: 0 0 0 4px var(--red-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text-hi);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); background: var(--panel-alt); }
.btn-sm { padding: 10px 18px; font-size: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 19, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-lo);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text-hi); }
.nav-links a.active { color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-hi); font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    padding: 24px 32px;
    gap: 20px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); margin-bottom: 22px; }
.hero h1 .accent { color: var(--red); }
.hero-sub { font-size: 18px; max-width: 520px; margin-bottom: 36px; }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-top: 14px; }

.hero-visual {
  position: relative;
}
.hero-visual .crop {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  transform: rotate(1.2deg) translateX(4%);
  overflow: hidden;
  height: 380px;
}
.hero-visual .crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.hero-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: -20px -20px auto auto;
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--red-glow), transparent 70%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual img { transform: none; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-bar p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.trust-tags { display: flex; gap: 12px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-lo);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 4px;
}

/* ---------- 3-step ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
  margin-bottom: 18px;
  display: block;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 14.5px; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Industry showcase ---------- */
.industry-block { margin-bottom: 88px; }
.industry-block:last-child { margin-bottom: 0; }
.industry-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.industry-head h3 { font-size: 26px; }
.industry-head p { font-size: 14.5px; max-width: 480px; margin-top: 8px; }

.carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin: 0 -32px;
    padding: 0 32px 8px;
  }
  .carousel .card { min-width: 82%; scroll-snap-align: start; }
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 16px 18px; }
.card-body h4 { font-size: 15px; margin-bottom: 4px; }
.card-body p { font-size: 13px; color: var(--text-dim); }

/* ---------- Dashboard section ---------- */
.dashboard-section {
  background: var(--panel-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dashboard-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7);
}
.dashboard-frame img { width: 100%; }

/* ---------- Compliance ---------- */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.compliance-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.compliance-item .tag { display: inline-block; margin-bottom: 14px; color: var(--red); border-color: var(--red-dim); }
.compliance-item p { font-size: 14px; }
@media (max-width: 760px) { .compliance-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 90px 0;
  border-top: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 480px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { max-width: 320px; font-size: 14px; }
.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-lo);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text-hi); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Vertical page specific ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-lo); }
.breadcrumb a:hover { color: var(--red); }

.usecase-list {
  display: grid;
  gap: 28px;
}
.usecase-row {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--panel);
}
.usecase-row img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; }
.usecase-row h3 { margin-bottom: 12px; }
.usecase-row p { font-size: 15px; }
.usecase-row:nth-child(even) { direction: rtl; }
.usecase-row:nth-child(even) > * { direction: ltr; }

@media (max-width: 820px) {
  .usecase-row { grid-template-columns: 1fr; direction: ltr !important; }
}

.related-verticals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s ease;
}
.related-card:hover { border-color: var(--red); }
.related-card .eyebrow { margin-bottom: 8px; }
@media (max-width: 760px) { .related-verticals { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6);
  z-index: 200;
  display: none;
}
.cookie-banner.show { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie-banner p { font-size: 13px; flex: 1; min-width: 200px; }
.cookie-banner .btn { flex-shrink: 0; }

@media (max-width: 500px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
}
