/* ==========================================================================
   sgt.sh — landing page
   Palette: tactical olive/khaki/amber on near-black green
   ========================================================================== */

:root {
  --bg: #0C0F0A;
  --panel: #141A10;
  --border: #2A331F;
  --olive: #5A6B3B;
  --khaki: #C8B98A;
  --amber: #FFB000;
  --red: #E03E36;
  --green: #9ACD32;
  --text: #E6E2D3;
  --muted: #8A8F7E;

  --font-head: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1140px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  background-color: var(--bg);
  /* subtle tactical grid texture */
  background-image:
    linear-gradient(rgba(90, 107, 59, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 107, 59, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0.08em; }

p { color: var(--text); }

.microlabel {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.section-sub {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

/* ---------- status pips ---------- */

.pip {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  vertical-align: baseline;
}
.pip-green { background: var(--green); box-shadow: 0 0 6px rgba(154, 205, 50, 0.7); }
.pip-amber { background: var(--amber); box-shadow: 0 0 6px rgba(255, 176, 0, 0.7); }
.pip-red   { background: var(--red);   box-shadow: 0 0 6px rgba(224, 62, 54, 0.7); }
.pip-khaki { background: var(--khaki); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-lg { font-size: 1.05rem; padding: 1em 1.8em; }
.btn-block { display: block; text-align: center; }

.btn-amber {
  background: var(--amber);
  color: #141000;
  border-color: var(--amber);
}
.btn-amber:hover, .btn-amber:focus-visible {
  background: #ffc23d;
  border-color: #ffc23d;
  box-shadow: 0 0 22px rgba(255, 176, 0, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--khaki);
  border-color: var(--olive);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--khaki);
  color: var(--text);
  background: rgba(200, 185, 138, 0.06);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--amber);
  color: #141000;
  padding: 0.6em 1em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

/* ---------- HUD corner brackets ---------- */

.brackets {
  position: relative;
  border: 1px solid var(--border);
  background: var(--panel);
}
.brackets::before,
.brackets::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.brackets::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--olive);
  border-left: 2px solid var(--olive);
}
.brackets::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--olive);
  border-right: 2px solid var(--olive);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 15, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.1em;
  color: var(--text);
}
.wordmark em { font-style: normal; color: var(--amber); }
.wordmark-chevrons { width: 20px; height: 18px; color: var(--amber); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--amber); }

.nav-cta { font-size: 0.82rem; padding: 0.7em 1.3em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--khaki);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(ellipse 70% 55% at 70% 10%, rgba(90, 107, 59, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(255, 176, 0, 0.05), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 54ch;
  margin: 1.4rem 0 2.2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}
.hero-tags li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.hero-tags li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--olive);
  display: inline-block;
}

/* ---------- terminal & code panels ---------- */

.hero-term, .code-panel {
  font-family: var(--font-mono);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}
.term-dots i:first-child { background: var(--red); opacity: 0.8; }
.term-title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.term-body {
  padding: 1.1rem 1.2rem;
  font-size: 0.83rem;
  line-height: 1.75;
  overflow-x: auto;
  color: var(--text);
}
.term-body code { font-family: inherit; }

.t-mut   { color: var(--muted); }
.t-khaki { color: var(--khaki); }
.t-amber { color: var(--amber); }
.t-green { color: var(--green); }

.t-cursor {
  color: var(--amber);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .t-cursor { animation: none; }
}

.term-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  padding: 0.6rem 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--khaki);
}
.term-status > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.copy-btn {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--khaki);
  background: none;
  border: 1px solid var(--border);
  padding: 0.35em 0.9em;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover, .copy-btn:focus-visible { color: var(--amber); border-color: var(--olive); }

/* ---------- classification divider ---------- */

.divider {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  padding: 0.45rem 0;
  text-align: center;
}
.divider span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive);
  white-space: nowrap;
}

/* ---------- sections ---------- */

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

/* ---------- feature grid ---------- */

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

.card {
  padding: 1.75rem 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--olive); }

.card .icon {
  width: 30px;
  height: 30px;
  stroke: var(--amber);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- relay net ---------- */

.relay-grid, .mcp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.relay-copy > p, .mcp-copy > p {
  color: var(--muted);
  margin: 1rem 0;
  max-width: 54ch;
}
.relay-copy .btn, .mcp-copy .btn { margin-top: 0.75rem; }

.check-list {
  list-style: none;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.9rem;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
  font-family: var(--font-mono);
}

.check-list.slim { gap: 0.6rem; margin: 1.25rem 0 1.75rem; }
.check-list.slim li { font-size: 0.9rem; }
.check-list.slim li::before { content: "✓"; color: var(--green); font-size: 0.85em; top: 2px; }

.relay-map { padding: 1rem; }
.relay-map svg { display: block; width: 100%; height: auto; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.8rem 0.4rem 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-legend > span { display: inline-flex; align-items: center; gap: 0.5em; }

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
}
.price-card .check-list { flex: 1; }

.price-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.price-card h3 { font-size: 1.6rem; }

.price {
  margin: 0.75rem 0 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.price-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.price-per {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-card.is-featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(255, 176, 0, 0.35), 0 18px 50px rgba(0, 0, 0, 0.45);
}
.price-card.is-featured::before,
.price-card.is-featured::after {
  border-color: var(--amber);
}
.price-card.is-featured .price-num { color: var(--amber); }
.price-card.is-featured .price-kicker { color: var(--amber); }

/* ---------- final CTA ---------- */

.final-cta {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 176, 0, 0.08), transparent 70%);
}
.final-cta .microlabel { justify-content: center; }
.final-cta .section-sub { margin-left: auto; margin-right: auto; margin-bottom: 2rem; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.footer .wordmark { font-size: 1.2rem; }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: auto;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--amber); }

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-grid,
  .relay-grid,
  .mcp-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .relay-map { order: 2; }
}

@media (max-width: 720px) {
  .nav-inner { gap: 1rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    margin-left: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 1rem 24px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
  }

  .feature-grid { grid-template-columns: 1fr; }

  .hero-ctas .btn { width: 100%; text-align: center; }

  .divider span { letter-spacing: 0.18em; font-size: 0.6rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { margin-right: 0; }
}
