/* =====================================================================
   Palette — dark / elite-hacker direction: near-black grounds, cool
   steel grays, one electric-blue accent (no green). Swapping the brand
   later only requires editing this block.
   ===================================================================== */
:root {
  --color-ink: #07090d;          /* page background */
  --color-surface: #10141b;      /* header, footer, cards */
  --color-surface-alt: #161c26;  /* section backgrounds that need to read as a step up */
  --color-border: #262e3a;       /* hairlines, card borders */
  --color-text: #eef1f5;         /* primary text */
  --color-text-muted: #8b93a3;   /* secondary/body copy on dark */
  --color-accent: #4babf5;       /* signal blue — CTAs, links, highlights */
  --color-accent-dark: #2f7cc2;  /* hover state */
  --color-danger: #e2483f;
  --color-success: #22c55e;
  --color-warning: #f5a524;

  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --max-width: 1120px;
  --radius: 3px;
}

/* =====================================================================
   Reset / base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-ink);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); }
a:focus-visible, .btn:focus-visible, .nav-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
h1, h2, h3 { line-height: 1.2; margin-top: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Shield backdrop, repeated at full proportion in a few sections and
   alternating sides. Hero carries the strongest one plus the sweep. */
.section-shield {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.section-shield svg {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  height: 135%;
  opacity: 0.5;
}
.section-shield--left svg { right: auto; left: 2%; }
.section-sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(75, 171, 245, 0) 0%, rgba(75, 171, 245, 0.055) 50%, rgba(75, 171, 245, 0) 100%);
  animation: hero-sweep 7s linear infinite;
}
/* Offset each sweep so the sections don't scan in lockstep */
.services .section-sweep { animation-delay: -2.5s; }
.closing .section-sweep { animation-delay: -5s; }
/* Contact is the shortest section — give it extra height so its shield can
   run large while still sitting fully inside rather than clipping at the point. */
/* About + contact sit inside .closing so a single shield can span both,
   starting at the top of About and ending above the footer. */
.closing { position: relative; overflow: hidden; }
.closing > .section-shield svg {
  height: 112%;
  right: auto;
  left: 50%;
  top: auto;
  bottom: 0;
  transform: translateX(-50%);
}
.contact { padding: 5rem 0 8rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-align: center;
  margin: 0 0 0.75rem;
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand-a { color: var(--color-text); }
.brand-b { color: var(--color-accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.main-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.main-nav a:hover { color: var(--color-text); }
.nav-cta {
  background: var(--color-accent);
  color: var(--color-ink) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  padding: 6.5rem 0 5.5rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.hero .container,
.services .container,
.about .container,
.contact .container { position: relative; z-index: 2; }
.services { position: relative; overflow: hidden; }

/* Hero backdrop: shield mark at full proportion, with a slow sweep */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-bg svg {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  height: 150%;
  opacity: 0.5;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-ink) 10%, rgba(7, 9, 13, 0.7) 45%, rgba(7, 9, 13, 0) 80%);
}
.hero-sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(75, 171, 245, 0) 0%, rgba(75, 171, 245, 0.055) 50%, rgba(75, 171, 245, 0) 100%);
  animation: hero-sweep 7s linear infinite;
}
@keyframes hero-sweep {
  0%   { top: -30%; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sweep, .section-sweep { animation: none; top: 36%; }
}
.hero h1 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.01em;
  max-width: 34ch;
  margin: 0 auto 1.1rem;
}
.hero-subhead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 58ch;
  margin: 0 auto 2.25rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn:hover { opacity: 0.9; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-ink);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-accent); }

/* =====================================================================
   Sections
   ===================================================================== */
section { padding: 5rem 0; }
section h2 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.mission {
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}
.mission p {
  max-width: 65ch;
  margin: 0 auto 1.15rem;
  text-align: center;
  color: var(--color-text-muted);
}
.mission p:last-child { margin-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
/* Last card sits in the middle column, under incident response, rather than
   dangling on the left. Only applies once the grid is actually 3-up. */
@media (min-width: 880px) {
  .card-grid .card:last-child { grid-column: 2; }
}
.card h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-text);
  margin-bottom: 0.65rem;
}
.card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

.trust { background: var(--color-surface-alt); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.trust-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  text-align: center;
}
.trust-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 1rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--color-text);
}

.about p, .contact p {
  max-width: 65ch;
  margin: 0 auto 1.15rem;
  text-align: center;
  color: var(--color-text-muted);
}
.about p:last-child, .contact p:last-child { margin-bottom: 0; }

.contact { text-align: center; }
.contact-methods {
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
}
.contact-methods a { font-weight: 700; text-decoration: none; }
.contact-methods a:hover { text-decoration: underline; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.footer-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* =====================================================================
   Responsive nav (small screens)
   ===================================================================== */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; padding: 1rem 1.5rem; gap: 0.75rem; }
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .hero { padding: 4rem 0 3.5rem; }
}
