/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0a1f3d;
  --navy-dark: #061527;
  --gold: #b31942;
  --gold-light: #e6395f;
  --red: #b31942;
  --red-light: #e6395f;
  --steel: #93a3b8;
  --steel-light: #c3ccd9;
  --ink: #1c2733;
  --muted: #5a6b7d;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --border: #e2e7ee;
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-inner { padding: 84px 24px; }
.section-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.divider {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 18px 0 32px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.logo-title { white-space: nowrap; }
.logo-text .accent { color: var(--red-light); }

.logo-text small {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .04em;
  color: #c3cede;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: #dbe3ee;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}

.main-nav a:hover { color: var(--gold-light); }

.nav-cta {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: .9rem;
  transition: background .2s;
}

.nav-cta:hover { background: var(--red-light); }

.nav-toggle-checkbox, .menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  transition: all .2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-light); }

.btn-outline {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Stripe bar (patriotic accent) ---------- */
.stripe-bar {
  display: flex;
  height: 6px;
}
.stripe-bar span {
  flex: 1;
}
.stripe-bar span:nth-child(odd) { background: var(--red); }
.stripe-bar span:nth-child(even) { background: #ffffff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 90px 0;
  overflow: hidden;
}

/* high-tech HUD grid overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(147,163,184,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147,163,184,.10) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}

/* ---------- Network / Comms Diagram ---------- */
.network-section {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.network-section .section-label { color: var(--red-light); }
.network-section h2 { color: #fff; }
.network-section .divider { margin-left: auto; margin-right: auto; }

.network-intro {
  color: #cbd6e4;
  max-width: 62ch;
  margin: 0 auto 24px;
  font-size: 1.05rem;
}

.network-diagram {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 24px auto 0;
}

.network-diagram .link {
  fill: none;
  stroke: var(--steel-light);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  opacity: .55;
}

.network-diagram .ring {
  fill: none;
  stroke: var(--red-light);
  stroke-width: 1.5;
}

.network-diagram .pulse { fill: var(--red-light); }

.network-diagram .node rect,
.network-diagram .node polygon,
.network-diagram .node circle,
.network-diagram .node line {
  fill: var(--steel-light);
  stroke: none;
}

.network-diagram .node line { stroke: var(--steel-light); stroke-width: 3; }

.network-diagram .node text {
  fill: var(--steel-light);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  opacity: .85;
}

.network-diagram .node-hub path {
  fill: none;
  stroke: var(--red-light);
  stroke-width: 2;
}
.network-diagram .node-hub circle,
.network-diagram .node-hub rect,
.network-diagram .node-hub line,
.network-diagram .node-hub text {
  fill: var(--red-light);
}
.network-diagram .node-hub line { stroke: var(--red-light); }

.hero-stars {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.hero-stars svg { width: 13px; height: 13px; fill: var(--red-light); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--red-light);
  margin-bottom: 16px;
}

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.hero p {
  color: #cbd6e4;
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero-card {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(147,163,184,.3);
  border-radius: var(--radius);
  padding: 32px;
}

/* HUD-style corner brackets */
.hero-card::before,
.hero-card::after,
.hero-card .corner-tl,
.hero-card .corner-br {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--red-light);
  border-style: solid;
  border-width: 0;
}
.hero-card::before {
  top: -1px; left: -1px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.hero-card::after {
  bottom: -1px; right: -1px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.hero-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red-light);
}

.hero-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  color: #dbe3ee;
  font-size: .96rem;
}

.hero-card ul li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: var(--steel-light);
  font-size: .85rem;
}

/* ---------- About ---------- */
.intro { background: var(--bg); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.intro-grid p { color: var(--muted); margin-bottom: 16px; }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
  box-shadow: 0 12px 28px rgba(11,37,69,.08);
  transform: translateY(-3px);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: .96rem; }

/* ---------- Subcontracting ---------- */
.subcontracting {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.subcontracting .section-label { color: var(--gold-light); }
.subcontracting h2 { color: #fff; }
.subcontracting .divider { margin-left: auto; margin-right: auto; }
.subcontracting-text {
  color: #cbd6e4;
  max-width: 64ch;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-info p { color: var(--muted); margin-bottom: 20px; }
.contact-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
}
.contact-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form button {
  margin-top: 20px;
  border: none;
  cursor: pointer;
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-status {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: .95rem;
}
.form-status.success { background: #e6f4ea; color: #1a7a3a; }
.form-status.error { background: #fbe7e7; color: #a32020; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #a9b6c8;
  text-align: center;
  padding: 28px 0;
  font-size: .88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .intro-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .services-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    display: none;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-toggle-checkbox:checked ~ .main-nav { display: block; }
  .nav-cta { display: none; }
  .menu-toggle {
    display: block;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
  }
}
