/* ============================================================
   Airsoft Systems NZ — main stylesheet
   Fonts are self-hosted in css/fonts (no Google Fonts request).
   ============================================================ */

@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Audiowide'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/audiowide-latin-400-normal.woff2') format('woff2'); }

:root {
  /* Surfaces */
  --bg: #202020;
  --surface: #1a1a1a;
  --raised: #272727;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #eef0ef;
  --text-2: #a9afad;
  --text-3: #7a807e;

  /* Accent — used as a signal, not decoration */
  --cyan: #00e6e6;
  --cyan-bright: #00ffff;
  --green: #5ee08a;
  --yellow: #ffdd00;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --radius: 3px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fixed backdrop: faint TacNet-style glow over a survey grid. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 50% at 70% 0%, rgba(30, 70, 72, 0.45) 0%, transparent 70%),
    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: 100% 100%, 64px 64px, 64px 64px;
  background-repeat: no-repeat, repeat, repeat;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 0.95; text-transform: uppercase; letter-spacing: 0; }
p { margin: 0; }
dl, dd { margin: 0; }
figure { margin: 0; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

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

.skip { position: absolute; left: -9999px; top: 8px; background: var(--cyan); color: #04201f; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 15px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 12px 16px; font-size: 14px; }
.btn-primary { background: var(--cyan); color: #031a1a; }
.btn-primary:hover { background: var(--cyan-bright); }
.btn-wellington { background: var(--yellow); color: #16150c; }
.btn-wellington:hover { background: #ffe94d; }
.btn-outline { border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-text { padding-left: 4px; padding-right: 4px; color: var(--text); }
.btn-text span { transition: transform .15s ease; }
.btn-text:hover { color: var(--cyan); }
.btn-text:hover span { transform: translateX(3px); }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(32 32 32 / 85%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 72px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 32px; height: 32px; }
.brand-wordmark { height: 28px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }

/* ---------------- Hero ---------------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.meta-line {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.meta-line span:first-child { color: var(--text-2); }
.hero-title {
  font-size: clamp(3.4rem, 8.4vw, 7.8rem);
  line-height: 0.88;
}
@media (max-width: 960px) { .hero-title .br-lg { display: none; } .hero-title { max-width: 11ch; } }
.hero-title .hl { color: var(--cyan); }

.hero-grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 44ch; }
.hero-ctas { margin-top: 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Product index */
.index { border-top: 1px solid var(--line-strong); }
.index-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.index-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .15s ease, padding .15s ease;
}
.index-num { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.index-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.index-name small { font-family: var(--font-body); font-size: 14px; line-height: 1.35; font-weight: 400; text-transform: none; color: var(--text-2); }
.index-row:hover { background: rgba(255, 255, 255, 0.03); padding-left: 10px; padding-right: 10px; }
.index-row:hover .index-name { color: var(--cyan); }

/* Status chips */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--green); }
.status-beta { color: var(--cyan); }

/* ---------------- Section heads ---------------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(40px, 7vw, 112px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head .label { grid-column: 1 / -1; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.section-intro { color: var(--text-2); font-size: 17px; max-width: 46ch; }

/* ---------------- Products ---------------- */
.product { padding-top: 0; }
.product + .product { margin-top: clamp(72px, 10vw, 128px); padding-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.product-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.product-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.product-copy h3 { font-size: clamp(2.8rem, 5vw, 4.4rem); }
.product-copy > p { margin-top: 22px; color: var(--text-2); font-size: 17px; max-width: 46ch; }

.specs { margin-top: 32px; border-top: 1px solid var(--line); }
.specs div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.specs dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
.specs dd { color: var(--text); }

.product-ctas { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.url { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }

.product-media figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}
.frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8);
}
.frame-light { background: #dcdfde; padding: clamp(16px, 3.5vw, 44px); }
.frame-light img { border-radius: 6px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.35); }

/* TacNet status panel — keeps TacNet's own palette */
.tacnet-panel {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30, 70, 72, 0.7) 0%, transparent 70%),
    linear-gradient(180deg, #131e1f 0%, #0b1415 100%);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px);
  border-color: rgba(0, 255, 255, 0.14);
}
.tacnet-logo { width: 220px; margin: 0 auto clamp(28px, 4vw, 44px); }
.readout { border-top: 1px solid rgba(0, 255, 255, 0.22); }
.readout div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 255, 255, 0.12);
  font-family: 'Audiowide', var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.readout dt { color: rgba(255, 255, 255, 0.55); }
.readout dd { color: #fff; text-align: right; }
.readout dd.live { color: var(--cyan-bright); display: inline-flex; align-items: center; gap: 10px; }
.readout dd.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-bright); box-shadow: 0 0 10px var(--cyan-bright); animation: pulse 1.8s ease-in-out infinite; }
.readout div.next-test { align-items: flex-start; }
.readout .next-test dd { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.readout .cd { color: var(--cyan-bright); font-size: 18px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout .next-test small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: none; color: rgba(255, 255, 255, 0.55); }
@keyframes pulse { 50% { opacity: 0.35; } }

/* TacNet field photo */
.tacnet-photo { aspect-ratio: 4 / 3; background: #0a0a0a; }
.tacnet-photo img { width: 100%; height: 100%; object-fit: cover; }
.next-meta { color: var(--text-3); font-size: 13px; }

/* Airsoft Wellington panel — keeps Wellington's own palette */
.wgtn-panel { position: relative; aspect-ratio: 16 / 11; background: #0a0a0a; }
.wgtn-panel img { width: 100%; height: 100%; object-fit: cover; }
.wgtn-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 35%, rgba(8, 9, 7, 0.9) 95%);
}
.wgtn-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; color: #fff; }
.wgtn-wordmark span, .wgtn-headline span { color: var(--yellow); }
.wgtn-headline { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 0.95; text-transform: uppercase; color: #fff; margin-top: 6px; }

/* ---------------- About ---------------- */
.about { border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px);
}
.about-intro h2 { margin-top: 20px; font-size: clamp(2.6rem, 5vw, 4.2rem); }
.about-intro > p:not(.label) { margin-top: 24px; color: var(--text-2); font-size: 17px; max-width: 42ch; }
.about-photo { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(0.75) contrast(1.05); }

.disciplines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); align-self: start; }
.disciplines li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.d-num { font-family: var(--font-mono); font-size: 13px; color: var(--cyan); padding-top: 8px; }
.disciplines h3 { font-size: clamp(2rem, 3vw, 2.6rem); }
.disciplines p { margin-top: 10px; color: var(--text-2); max-width: 48ch; }

/* ---------------- Contact ---------------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: end;
}
.contact h2 { margin-top: 20px; font-size: clamp(2.8rem, 6vw, 5.2rem); max-width: 14ch; }
.contact-body > p { color: var(--text-2); font-size: 17px; max-width: 42ch; }
.contact-email {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--cyan);
  transition: color .15s ease;
  overflow-wrap: anywhere;
}
.contact-email span { transition: transform .15s ease; }
.contact-email:hover { color: var(--cyan-bright); }
.contact-email:hover span { transform: translateX(4px); }
.contact-meta { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-meta dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.contact-meta dd { margin-top: 4px; font-size: 15px; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand p { font-size: 13px; color: var(--text-3); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-grid, .section-head, .product-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-head .section-intro { margin-top: 20px; }
  .product-media { order: -1; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
  .brand-wordmark { height: 22px; }
  .meta-line { flex-direction: column; gap: 4px; }
  .index-name { font-size: 24px; }
  .specs div { grid-template-columns: 100px 1fr; }
  .readout div { font-size: 11px; }
  .readout .cd { font-size: 15px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .brand-wordmark { height: 18px; }
}
@media (max-width: 420px) {
  .contact-meta { grid-template-columns: 1fr; }
}
