/* ===================================================================
 * ADL / TARGO — Shared design system
 * =================================================================== */

:root {
  /* Core neutrals — shared across both tracks */
  --bg: #0d0e12;
  --bg-elev: #14161c;
  --bg-elev-2: #1a1d25;
  --bg-elev-3: #22252f;
  --line: #23262f;
  --line-bright: #2e323d;
  --text: #e9eaee;
  --text-dim: #8b8f9a;
  --text-faint: #555863;

  /* Brand accents */
  --gold: #e6a817;
  --gold-bright: #f5b932;
  --gold-deep: #b8850e;
  --gold-faint: rgba(230, 168, 23, 0.08);
  --gold-glow: rgba(230, 168, 23, 0.18);

  /* Defense-track accent — cooler, institutional */
  --defense: #6b8aa8;
  --defense-faint: rgba(107, 138, 168, 0.08);

  /* Signal colors */
  --live: #22c55e;
  --alert: #ef4444;

  /* Typography stacks */
  --display: 'Fraunces', 'Times New Roman', serif;
  --display-alt: 'Instrument Serif', 'Fraunces', serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1280px;
  --gutter: 32px;
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle film grain everywhere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

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

/* ===================================================================
 * NAV — shared shell, differentiated by track class
 * =================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px var(--gutter);
  background: rgba(13, 14, 18, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.nav-track {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-faint);
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid var(--line-bright);
}
.nav .track-defense { color: var(--defense); }
.nav .track-targo { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.current { color: var(--gold); }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 9px 16px;
  border: 1px solid var(--line-bright);
  color: var(--text);
  transition: all 0.2s;
}
.nav-cta:hover { border-color: var(--gold); color: var(--gold); }
.nav-cta.primary {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-faint);
}
.nav-cta.primary:hover {
  background: var(--gold);
  color: var(--bg);
}
.nav-switch {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  padding: 6px 10px;
  margin-right: 12px;
  border: 1px solid var(--line);
  transition: all 0.2s;
}
.nav-switch:hover { border-color: var(--text-dim); color: var(--text); }

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-bright);
  color: var(--text);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
}

@media (max-width: 960px) {
  .nav-links, .nav-switch { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px var(--gutter);
    z-index: 49;
    display: none;
    flex-direction: column;
    gap: 20px;
  }
  .nav-mobile-menu.open { display: flex; }
  .nav-mobile-menu a {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-mobile-menu .switch {
    color: var(--gold);
    border-color: var(--line-bright);
  }
}

/* Push page content below fixed nav */
main { padding-top: var(--nav-h); }

/* ===================================================================
 * BUTTONS
 * =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-bright);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  padding: 8px 0;
  border-bottom: 1px solid var(--line-bright);
  border-radius: 0;
}
.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.btn-arrow::after {
  content: '→';
  transition: transform 0.2s;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ===================================================================
 * SECTION SCAFFOLDING
 * =================================================================== */
.section {
  padding: 120px 0;
  position: relative;
}
.section-alt { background: var(--bg-elev); }
.section-border-top { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.defense { color: var(--defense); }
.eyebrow.defense::before { background: var(--defense); }

.h1 {
  font-family: var(--display);
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.h1 em { font-style: italic; color: var(--gold); font-weight: 300; }

.h2 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.h2 em { font-style: italic; color: var(--gold); font-weight: 300; }

.h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 400;
}

.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.6;
}

.mono-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ===================================================================
 * FOOTER — shared, small track indicator on the current track
 * =================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.footer-brand em { color: var(--gold); font-style: italic; }
.footer-tagline {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 360px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-faint);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
 * CONTACT FORM — shared, used on segmented contact pages
 * =================================================================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  background: var(--bg-elev);
  border: 1px solid var(--line-bright);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  padding: 14px 16px;
  transition: border-color 0.15s;
  border-radius: 0;
  outline: none;
  font-weight: 400;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--body);
}
.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b8f9a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Radio segment for inquiry type */
.inquiry-segment {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.inquiry-segment input[type="radio"] { display: none; }
.inquiry-segment label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line-bright);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-align: center;
  text-transform: uppercase;
}
.inquiry-segment label:hover {
  border-color: var(--text-dim);
  color: var(--text);
}
.inquiry-segment input[type="radio"]:checked + label {
  background: var(--gold-faint);
  border-color: var(--gold);
  color: var(--gold);
}

.form-submit {
  padding: 16px 32px;
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  align-self: flex-start;
  text-transform: uppercase;
}
.form-submit:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}
.form-note {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.5;
}
.form-note a { color: var(--text-dim); border-bottom: 1px solid var(--line-bright); }

/* ===================================================================
 * ANIMATIONS
 * =================================================================== */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ===================================================================
 * DEFENSE TRACK CUSTOMIZATIONS
 * =================================================================== */
body.track-defense .eyebrow { color: var(--defense); }
body.track-defense .eyebrow::before { background: var(--defense); }
body.track-defense .h1 em,
body.track-defense .h2 em { color: var(--defense); }
body.track-defense .btn-primary {
  background: var(--defense);
  border-color: var(--defense);
  color: var(--bg);
}
body.track-defense .btn-primary:hover {
  background: #7ea0be;
  border-color: #7ea0be;
}

/* Body class stays on for the shared visual identity where useful.
   Defense-specific overrides go in components on this class. */

/* ===================================================================
 * TARGO TRACK CUSTOMIZATIONS — kinetic, energetic, esports-flavored
 * =================================================================== */
body.track-targo .h1,
body.track-targo .h2 {
  letter-spacing: -0.035em;
}
/* Targo uses the gold hard */
body.track-targo .h1 em,
body.track-targo .h2 em { color: var(--gold-bright); }

/* Ticker component — used on Targo home for "shots fired today / hits / ranges" */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: var(--bg-elev);
  white-space: nowrap;
  position: relative;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(to right, var(--bg-elev), transparent); }
.ticker::after { right: 0; background: linear-gradient(to left, var(--bg-elev), transparent); }
.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: ticker 40s linear infinite;
  padding-right: 48px;
}
.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.ticker-item strong {
  font-family: var(--display);
  font-size: 20px;
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* Animated stat number */
.stat-big {
  font-family: var(--display);
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 300;
  line-height: 0.9;
  color: var(--gold);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
