/* ============================================
   TACTICTECH SOLUTIONS LLC — STYLE SYSTEM
   ============================================ */

:root {
  --bg-deep: #0B0E14;
  --bg-panel: #131826;
  --bg-panel-2: #181F30;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --signal: #3D9DFF;
  --signal-soft: rgba(61,157,255,0.14);
  --amber: #F5A623;
  --text-hi: #F4F6FB;
  --text-mid: #A9B2C3;
  --text-low: #6C7689;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text-hi);
}

/* Faint grid overlay for tactical/network feel */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.2) 60%, transparent);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--signal);
  color: #06090F;
}
.btn-primary:hover { background: #5BAEFF; transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text-hi);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn.full { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,14,20,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--signal);
  color: #06090F;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}
.brand-mark.small { width: 28px; height: 28px; font-size: 13px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-suffix {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-low);
  letter-spacing: 0.12em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--text-hi); }
.nav-cta {
  padding: 10px 20px;
  background: var(--signal-soft);
  border: 1px solid rgba(61,157,255,0.4);
  border-radius: 2px;
  color: var(--signal) !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text-hi); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--signal);
  margin: 0 0 22px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-low);
  margin-bottom: 6px;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.hero-graphic { position: relative; }
.node-svg { width: 100%; height: auto; }
.node-links line {
  stroke: var(--line-strong);
  stroke-width: 1;
}
.node-points circle {
  fill: var(--bg-deep);
  stroke: var(--signal);
  stroke-width: 2;
}
.node-core {
  fill: var(--signal);
  stroke: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { r: 9; opacity: 1; }
  50% { r: 12; opacity: 0.75; }
}

/* ===== Trust strip ===== */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 32px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-mid);
}
.sep { color: var(--text-low); }

/* ===== Section labels ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-low);
  margin-bottom: 18px;
}
.section-label.light { color: rgba(255,255,255,0.55); }
.tag {
  color: var(--signal);
  border: 1px solid rgba(61,157,255,0.35);
  padding: 3px 8px;
  border-radius: 2px;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 48px;
  max-width: 700px;
}
.section-title.light { color: #fff; }

/* ===== About ===== */
.about { padding: 90px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.about-grid h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
}
.about-text p {
  color: var(--text-mid);
  margin: 0 0 18px;
  font-size: 15.5px;
}

/* ===== Services ===== */
.services { padding: 70px 0 100px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.service-card:hover {
  border-color: rgba(61,157,255,0.4);
  transform: translateY(-3px);
}
.service-icon {
  width: 48px; height: 48px;
  color: var(--signal);
  margin-bottom: 24px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-mid);
  font-size: 14.5px;
  margin: 0;
}

/* ===== Performance ===== */
.performance {
  background: var(--bg-panel);
  padding: 90px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.performance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.performance-card {
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  padding: 30px 32px;
}
.perf-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--signal);
}
.performance-card h3 {
  font-size: 22px;
  margin: 12px 0 10px;
}
.performance-card p {
  color: var(--text-mid);
  font-size: 14.5px;
  margin: 0;
}

/* ===== NAICS ===== */
.naics { padding: 90px 0 100px; }
.naics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.naics-item {
  background: var(--bg-deep);
  display: flex;
  gap: 18px;
  padding: 20px 24px;
  align-items: baseline;
}
.naics-code {
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: 14px;
  flex-shrink: 0;
  min-width: 64px;
}
.naics-desc {
  color: var(--text-mid);
  font-size: 14px;
}

/* ===== Contact ===== */
.contact {
  background: var(--bg-panel);
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-left h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  margin-bottom: 16px;
  line-height: 1.15;
}
.contact-left p {
  color: var(--text-mid);
  margin-bottom: 36px;
  max-width: 420px;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-low);
}
.contact-v { font-size: 15.5px; font-weight: 500; }
.contact-v a:hover { color: var(--signal); }

.contact-form {
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 4px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  color: var(--text-hi);
  padding: 12px 14px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--signal);
}
.form-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-low);
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.footer-meta, .footer-copy {
  font-size: 12.5px;
  color: var(--text-low);
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { order: -1; max-width: 280px; margin: 0 auto 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .performance-grid { grid-template-columns: 1fr; }
  .naics-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 8px; text-align: center; border-bottom: none !important; }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .node-core { animation: none; }
  html { scroll-behavior: auto; }
}
