/* TriageQR Systems LLC — Sovereign Zero-Cloud Optical Cryptography Design System
   100% Self-Hosted • Zero External CDNs • Zero Third-Party Trackers */
:root {
  --bg: #090b0e;
  --bg-deep: #05070a;
  --surface: #12161f;
  --surface-elev: #181e2b;
  --border: #1e2533;
  --border-hi: rgba(245, 158, 11, 0.45);
  --text: #f8fafc;
  --muted: #94a3b8;
  --amber: #f59e0b;
  --amber-soft: #fde68a;
  --cyan: #06b6d4;
  --cyan-soft: #67e8f9;
  --emerald: #10b981;
  --lime: #84cc16;
  --red: #ef4444;
  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    linear-gradient(rgba(6, 182, 212, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 14% 6%, rgba(6, 182, 212, 0.11), transparent 36%),
    radial-gradient(circle at 86% 12%, rgba(245, 158, 11, 0.09), transparent 38%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%, 100% 100%;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Top Classification / Status Ticker */
.status-ticker {
  background: #05070b;
  border-bottom: 1px solid var(--border);
  padding: 7px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber-soft);
}
.status-ticker span.sep { color: #475569; margin: 0 10px; }
.status-ticker span.cy { color: var(--cyan-soft); }

/* Global Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 11, 14, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-emblem {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0e7490, #0f172a);
  border: 1.5px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 13px;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.25);
}
.brand-name {
  font-weight: 900;
  font-size: 15.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.brand-name span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber); }

.nav-links a.nav-cta,
.nav-cta {
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 8px;
  background: #f59e0b;
  color: #090b0e;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.nav-links a.nav-cta:hover,
.nav-cta:hover {
  background: #fbbf24;
  color: #090b0e;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.32);
}

.mobile-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 11px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 1060px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #090b0e;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 20px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: inline-block; }
}

/* Badges & Buttons */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--cyan-soft);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.42);
  background: rgba(6, 182, 212, 0.08);
  margin-bottom: 16px;
}
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: #cbd5e1;
}
.badge.amber { color: var(--amber-soft); border-color: rgba(245, 158, 11, 0.48); background: rgba(245, 158, 11, 0.1); }
.badge.cyan { color: var(--cyan-soft); border-color: rgba(6, 182, 212, 0.48); background: rgba(6, 182, 212, 0.1); }
.badge.emerald { color: #6ee7b7; border-color: rgba(16, 185, 129, 0.48); background: rgba(16, 185, 129, 0.1); }
.badge.lime { color: #d9f99d; border-color: rgba(132, 204, 22, 0.48); background: rgba(132, 204, 22, 0.1); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all 0.15s ease;
}
.btn:hover { border-color: var(--cyan); }
.btn-amber {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #090b0e;
  border: none;
}
.btn-amber:hover { box-shadow: 0 10px 26px rgba(245, 158, 11, 0.3); transform: translateY(-1px); }
.btn-cyan {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #04131c;
  border: none;
}
.btn-cyan:hover { box-shadow: 0 10px 26px rgba(6, 182, 212, 0.3); transform: translateY(-1px); }
.btn-outline {
  background: rgba(18, 22, 31, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.38);
  color: #f8fafc;
}

/* Hero Section */
.hero {
  padding: 58px 0 38px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #f8fafc 10%, #67e8f9 60%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
}

/* Interactive Tag Anatomy Panel */
.anatomy-panel {
  background: linear-gradient(180deg, #12161f, #0b0e14);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.anatomy-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--amber-soft);
}
.pipe-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
@media (max-width: 620px) { .pipe-steps { grid-template-columns: repeat(2, 1fr); } }
.pipe-btn {
  padding: 9px 8px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #090c12;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.14s ease;
}
.pipe-btn.active, .pipe-btn:hover {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.14);
  color: #ffffff;
}
.pipe-detail {
  background: #07090d;
  border: 1px solid rgba(6, 182, 212, 0.32);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #e2e8f0;
  margin-top: 10px;
}

/* Telemetry Strip */
.telemetry-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0 44px;
}
@media (max-width: 760px) { .telemetry-bar { grid-template-columns: 1fr; } }
.tele-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  text-align: center;
}
.tele-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 4px;
}
.tele-lbl { font-size: 13px; font-weight: 700; color: #cbd5e1; }
.tele-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* Sections & Cards */
section.block { padding: 34px 0 46px; }
.sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sec-head h2 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -0.015em; }
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: rgba(6, 182, 212, 0.5); }
.card.amber-hover:hover { border-color: rgba(245, 158, 11, 0.55); }
.card.t-cyan { border-top: 3px solid var(--cyan); }
.card.t-amber { border-top: 3px solid var(--amber); }
.card.t-emerald { border-top: 3px solid var(--emerald); }
.card.t-lime { border-top: 3px solid var(--lime); }

.card h3 { margin: 8px 0 8px; font-size: 20px; font-weight: 900; }
.card p { margin: 0 0 12px; font-size: 13.5px; color: #cbd5e1; }
.spec-list { margin: 0 0 16px; padding-left: 18px; font-size: 13px; color: var(--muted); }
.spec-list li { margin-bottom: 5px; }
.spec-list strong { color: #f1f5f9; }

/* Founder Pedigree 2-Column Balanced Grid */
.founder-strip {
  background: linear-gradient(135deg, rgba(18, 22, 31, 0.96), rgba(9, 14, 24, 0.96));
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 16px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 26px;
}
@media (max-width: 900px) { .founder-strip { grid-template-columns: 1fr; } }
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cred-card {
  background: #080b10;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 13px;
}
.cred-card .cred-k {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: var(--amber-soft);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.cred-card .cred-v {
  font-size: 11.5px;
  color: #cbd5e1;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: #0b0e14;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-soft);
}
.data-table tr:last-child td { border-bottom: none; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: #070a0f;
  border: 1px solid #283244;
  border-radius: 9px;
  padding: 11px 13px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13.5px;
  -webkit-appearance: none;
  appearance: none;
}

/* Division Anchor Offset, Jump Bar, Patent Architecture Strip & Military Simulator */
.card[id^="div-"] { scroll-margin-top: 86px; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.div-jump-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.div-jump-link {
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: #e2e8f0;
  transition: all 0.14s ease;
}
.div-jump-link:hover { border-color: var(--cyan); color: #ffffff; }
.div-jump-link.mil { border-color: rgba(132, 204, 22, 0.55); background: rgba(132, 204, 22, 0.1); color: #d9f99d; }
.div-jump-link.mil:hover { border-color: var(--lime); background: rgba(132, 204, 22, 0.18); }

.patent-arch-strip {
  margin: 12px 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.07);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #fde68a;
  line-height: 1.5;
}
.patent-arch-strip strong { color: #ffffff; }

.div-card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.div-qr-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #080b10;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
}
.div-qr-box {
  background: #ffffff;
  padding: 4px;
  border-radius: 6px;
  line-height: 0;
  flex-shrink: 0;
}

/* Live Military Zero-RF Optical Seal Simulator (DIV-04) */
.mil-sim-box {
  margin: 18px 0 20px;
  background: linear-gradient(180deg, #0b1016, #070a0f);
  border: 1px solid rgba(132, 204, 22, 0.45);
  border-radius: 14px;
  padding: 18px 20px;
}
.mil-sim-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.mil-sim-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #d9f99d;
}
.mil-tab-row, .mil-key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.mil-preset-btn, .mil-key-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #101620;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
}
.mil-preset-btn.active, .mil-preset-btn:hover {
  border-color: var(--lime);
  background: rgba(132, 204, 22, 0.16);
  color: #ecfccb;
}
.mil-key-btn.active, .mil-key-btn:hover {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.16);
  color: #ffffff;
}
.mil-key-btn.zeroize {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}
.mil-key-btn.zeroize:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.24);
  color: #ffffff;
}
.mil-sim-body {
  display: grid;
  grid-template-columns: 1fr 144px;
  gap: 16px;
  align-items: center;
}
@media (max-width: 720px) { .mil-sim-body { grid-template-columns: 1fr; } }
.mil-output {
  background: #05070b;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 13px 15px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: #e2e8f0;
  min-height: 138px;
}
.mil-qr-col {
  text-align: center;
}
.mil-qr-frame {
  display: inline-block;
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  border: 2px solid var(--lime);
  line-height: 0;
}
.mil-qr-cap {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
}

/* Technical Evaluator FAQ / Red-Team Q&A (/ai-shield) */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.16s ease;
}
.faq-item:hover,
.faq-item[open] {
  border-color: rgba(6, 182, 212, 0.5);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  user-select: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-q-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.faq-chevron {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: var(--cyan-soft);
  flex-shrink: 0;
  transition: transform 0.16s ease;
}
.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
  color: var(--amber-soft);
}
.faq-body {
  padding: 0 20px 18px;
  border-top: 1px solid rgba(30, 37, 51, 0.85);
  font-size: 13.5px;
  line-height: 1.62;
  color: #cbd5e1;
}
.faq-body p {
  margin: 12px 0 0;
}
.faq-body ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.faq-body li {
  margin-bottom: 6px;
}
.faq-body strong {
  color: #f8fafc;
}
.faq-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-soft);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 5px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  background: #05070b;
  border-top: 1px solid var(--border);
  padding: 36px 0 42px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-charter {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
}

/* Print Stylesheet for 1-Page Government / Hospital Capability Statement */
@media print {
  body { background: #ffffff !important; color: #000000 !important; font-size: 10pt; }
  .status-ticker, .site-header, .site-footer, .no-print { display: none !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .card, .data-table, .founder-strip, .faq-item { background: #ffffff !important; color: #000000 !important; border: 1px solid #000000 !important; box-shadow: none !important; }
  .badge { background: #ffffff !important; color: #000000 !important; border: 1px solid #000000 !important; }
  .data-table th { background: #f1f5f9 !important; color: #000000 !important; }
  p, li, td { color: #000000 !important; }
}
