:root {
  --navy-900: #081326;
  --navy-850: #0b1b33;
  --navy-800: #0f2140;
  --navy-700: #16305a;
  --line: rgba(124, 160, 214, 0.16);
  --cyan: #33e0c8;
  --cyan-600: #17b6a2;
  --blue: #4a8bff;
  --ink: #eaf1fb;
  --muted: #9fb0cc;
  --muted-2: #7688a6;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--navy-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(51, 224, 200, 0.18);
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.1rem, 4vw, 2.5rem);
  background: rgba(8, 19, 38, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-weight: 800;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 6px 18px -6px rgba(51, 224, 200, 0.6);
}

.brand.small .brand-mark { width: 28px; height: 28px; font-size: 0.85rem; }

.nav { display: flex; align-items: center; gap: 1.6rem; font-size: 0.95rem; }
.nav a { color: var(--muted); transition: color 0.15s ease; }
.nav a:hover { color: var(--ink); }

.nav-cta {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  padding: 0.55rem 1rem;
  border-radius: 999px;
}
.nav-cta:hover { border-color: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

.btn-primary {
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 30px -12px rgba(51, 224, 200, 0.7);
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(51, 224, 200, 0.9); }

.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 6rem);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 0 0 1.1rem;
}

.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }

.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
  max-width: 620px;
  margin: 1.4rem auto 2rem;
}

.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.hero-badges {
  list-style: none;
  display: flex;
  gap: 0.6rem 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 2.6rem 0 0;
  color: var(--muted-2);
  font-size: 0.9rem;
}
.hero-badges li { position: relative; padding-left: 1.1rem; }
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--cyan);
}

.hero-glow {
  position: absolute;
  inset: -20% 0 auto 0;
  height: 620px;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(74, 139, 255, 0.22), transparent 70%),
    radial-gradient(40% 50% at 70% 10%, rgba(51, 224, 200, 0.18), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem); max-width: var(--max); margin: 0 auto; }
.section-alt { background: var(--navy-850); max-width: none; }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-head { max-width: 620px; margin: 0 auto 2.6rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; }
.section-head p { color: var(--muted); margin: 0.8rem 0 0; }

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card, .step {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.card:hover, .step:hover { transform: translateY(-3px); border-color: rgba(51, 224, 200, 0.4); }
.card h3, .step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p, .step p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.step-num {
  display: inline-block;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
}

/* ---------- Work / case studies ---------- */
.case {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.case:hover { transform: translateY(-3px); border-color: rgba(51, 224, 200, 0.4); }
.case-cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(51, 224, 200, 0.1);
  border: 1px solid rgba(51, 224, 200, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.case h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.case > p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.case-metric {
  margin-top: 0.9rem !important;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.9rem !important;
}
.case-tech {
  margin-top: auto !important;
  padding-top: 0.9rem;
  color: var(--muted-2) !important;
  font-size: 0.82rem !important;
}

/* ---------- Contact form ---------- */
.contact-form { text-align: left; max-width: 620px; margin: 2.2rem auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > span { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.field > span em { color: var(--muted-2); font-style: normal; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: rgba(8, 19, 38, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(51, 224, 200, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 0.92rem; min-height: 1.2em; color: var(--muted); }
.form-status.is-success { color: var(--cyan); }
.form-status.is-error { color: #ff8a8a; }
.contact-alt { color: var(--muted); margin: 1.4rem 0 0; font-size: 0.92rem; }
.contact-alt a { color: var(--cyan); }

/* ---------- CTA ---------- */
.section-cta { text-align: center; }
.cta-inner {
  background: linear-gradient(135deg, rgba(51, 224, 200, 0.08), rgba(74, 139, 255, 0.08));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-inner p { color: var(--muted); max-width: 520px; margin: 1rem auto 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--navy-850); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem clamp(1.1rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
  text-align: center;
}
.footer-meta { color: var(--muted); margin: 0.3rem 0 0; font-size: 0.95rem; }
.footer-meta a { color: var(--cyan); }
.footer-copy { color: var(--muted-2); font-size: 0.85rem; margin: 0; }

/* ---------- Hamburger toggle (mobile) ---------- */
.nav-toggle {
  display: none;                 /* revealed at <=820px */
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; left: 0; top: -6px; }
.nav-toggle-bar::after  { position: absolute; left: 0; top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Veteran-owned badge ---------- */
.vet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(51, 224, 200, 0.32);
  background: rgba(51, 224, 200, 0.08);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.hero .vet-badge { margin: 0 0 1.3rem; }
.vet-ico { flex: none; display: block; }
.vet-badge-sm {
  font-size: 0.8rem;
  padding: 0.32rem 0.8rem;
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  display: none;                 /* revealed at <=820px */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.7rem clamp(1rem, 4vw, 1.5rem);
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 19, 38, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-cta .btn { width: 100%; }
.mobile-cta.is-hidden {
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
}

/* Kill intrinsic-width overflow of form controls inside grid/flex tracks */
.field,
.field input,
.field textarea { min-width: 0; }
.cf-turnstile { max-width: 100%; margin: 0 auto; overflow: hidden; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .card:hover, .step:hover, .case:hover { transform: none; }
}

/* ---------- Responsive ---------- */

/* Tablet — 3-up grids become 2-up */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile nav — hamburger dropdown + sticky CTA */
@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .mobile-cta { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem;
    font-size: 1rem;
    background: rgba(8, 19, 38, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }
  .nav-open .nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    color: var(--ink);
  }
  .nav a:not(.nav-cta):hover { background: rgba(124, 160, 214, 0.1); }
  .nav-cta {
    justify-content: center;
    border-color: var(--cyan);
    margin-top: 0.25rem;
  }

  /* room so the sticky CTA never sits on top of the footer */
  .site-footer { padding-bottom: 5.5rem; }
}

/* Phones — single column + tighter form chrome (prevents 320px overflow) */
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-inner { padding: clamp(2rem, 7vw, 3rem) 1.1rem; }
  .hero-badges { gap: 0.5rem 1.1rem; }
  .section-cta { padding-left: 0.9rem; padding-right: 0.9rem; }
}

/* Very small phones — trim form chrome so the fixed 300px Turnstile widget fits */
@media (max-width: 380px) {
  .section-cta { padding-left: 0.5rem; padding-right: 0.5rem; }
  .cta-inner { padding-left: 0.6rem; padding-right: 0.6rem; }
}
