/* 911 Command LLC company site.
   Tokens, type and component styles follow responderos.app (dist/index.html)
   so the company and its product read as one family. The blue "911" tile is
   the company's own mark and the only colour on the page. */

/* ========== TOKENS ========== */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F7F9;
  --bg-deep: #0F1419;
  --bg-deeper: #0A0E12;
  --text-primary: #1A2332;
  --text-secondary: #5B6573;
  --text-tertiary: #8B95A1;
  --text-inverse: #E8EBF0;
  --text-inverse-muted: #8B95A1;
  --border: #E4E7EB;
  --border-inverse: #1F2832;
  --border-inverse-muted: #161E27;
  --accent: #1A2332;
  --accent-hover: #0F1419;
  --brand-a: #1D4ED8;
  --brand-b: #1E3A8A;
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
ul { list-style: none; }
section[id] { scroll-margin-top: 64px; }
a:focus-visible { outline: 2px solid var(--brand-a); outline-offset: 3px; border-radius: 3px; }
.on-dark a:focus-visible { outline-color: #FFFFFF; }

/* ========== UTILITY ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.on-dark .eyebrow { color: var(--text-inverse-muted); }
.inline-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.inline-link:hover { text-decoration-thickness: 2px; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus { left: 8px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.1px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); background: var(--bg-alt); }
.btn-ghost-inverse { background: transparent; color: var(--text-inverse); border-color: var(--border-inverse); }
.btn-ghost-inverse:hover { border-color: #4A5563; background: rgba(255, 255, 255, 0.04); }
.btn-inverse { background: #FFFFFF; color: var(--text-primary); }
.btn-inverse:hover { background: #E8EBF0; transform: translateY(-1px); }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text-primary);
}
.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--brand-a) 0%, var(--brand-b) 100%);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.3px;
  color: #FFFFFF;
  flex-shrink: 0;
}
/* The logo's "911Command": tone and weight separate the two parts, so the
   logo alone runs them together. Everywhere else it is written "911 Command". */
.logo-wordmark {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}
.logo-wordmark b { font-weight: 700; color: var(--text-primary); }
.logo-wordmark small {
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 2px;
  font-size: 0.82rem;
}
.nav-links { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.nav-links a {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text-primary); }
@media (max-width: 760px) {
  /* No menu to open: the four links stay visible on a second row. */
  .site-header { position: static; }
  .site-header-inner { flex-wrap: wrap; height: auto; padding-top: 0.75rem; padding-bottom: 0.75rem; row-gap: 0.65rem; }
  .logo { width: 100%; margin-right: 0; }
  .nav-links { width: 100%; justify-content: space-between; gap: 0.5rem; }
  .header-cta { display: none; }
  section[id] { scroll-margin-top: 0; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: clamp(4rem, 11vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg-mark {
  position: absolute;
  right: -2vw;
  top: clamp(2rem, 4vw, 4rem);
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(14rem, 34vw, 34rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 800px) {
  .hero-bg-mark { right: -14vw; top: 3rem; opacity: 0.035; }
}
.hero-inner { position: relative; z-index: 1; max-width: 980px; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg);
  margin-bottom: 1.75rem;
  animation: fade-up 0.7s 0.05s both ease;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-a); flex-shrink: 0; }
.status-text {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.status-text b { color: var(--text-primary); font-weight: 500; }
.hero-headline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -2.5px;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  max-width: 18ch;
  animation: fade-up 0.7s 0.15s both ease;
}
.hero-headline em { display: block; font-style: normal; font-weight: 500; color: #7A8592; }
.hero-lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-primary);
  max-width: 60ch;
  margin-bottom: 2.5rem;
  animation: fade-up 0.7s 0.25s both ease;
}
.hero-lede strong { font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  animation: fade-up 0.7s 0.35s both ease;
}
.hero-meta {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  animation: fade-up 0.7s 0.45s both ease;
}
.meta-num {
  font-weight: 600;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.meta-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.6px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--text-secondary);
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== COMPANY (DARK) ========== */
.company {
  background: var(--bg-deep);
  color: var(--text-inverse);
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-inverse);
}
.company::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.022) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.015) 0%, transparent 40%);
  pointer-events: none;
}
.company-inner { position: relative; z-index: 1; }
.company-head { max-width: 820px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.company-statement {
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.75rem);
  line-height: 1.03;
  letter-spacing: -1.8px;
  color: var(--text-inverse);
  margin-top: 1.5rem;
}
.company-statement em { display: block; font-style: normal; font-weight: 500; color: var(--text-inverse-muted); }
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 880px) { .company-grid { grid-template-columns: minmax(0, 1fr); } }
.company-body p {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.65;
  color: rgba(232, 235, 240, 0.78);
  max-width: 62ch;
}
.company-body p + p { margin-top: 1.25rem; }
.company-body a { color: var(--text-inverse); }
.facts-box {
  border: 1px solid var(--border-inverse);
  border-radius: 12px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.025);
}
.facts-head {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
  margin-bottom: 0.5rem;
}
.facts-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-inverse);
}
.facts-row:last-child { border-bottom: none; padding-bottom: 0; }
.facts-row dt {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
  margin-bottom: 2px;
}
.facts-row dd { font-size: 14.5px; line-height: 1.4; color: var(--text-inverse); }

/* ========== SECTION HEADER ========== */
.section-head {
  max-width: 800px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 1rem; }
.section-title {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -1.3px;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.section-title em { display: block; font-style: normal; font-weight: 500; color: #7A8592; }
.section-lede {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 auto;
}

/* ========== SOFTWARE CARDS ========== */
.software {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-bottom: 1px solid var(--border);
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 1020px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: minmax(0, 1fr); } }
.cap-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cap-card-header { display: flex; align-items: center; justify-content: space-between; }
.cap-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}
.cap-icon svg { width: 19px; height: 19px; }
.cap-num {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: var(--text-secondary);
}
.cap-card h3 {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.4px;
  line-height: 1.25;
}
.cap-card p { font-size: 15px; line-height: 1.55; color: var(--text-secondary); }

/* ========== RESPONDEROS ========== */
.product {
  background: var(--bg-alt);
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-bottom: 1px solid var(--border);
}
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
@media (max-width: 940px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
.product-logo-wrap {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  margin: 1.25rem 0 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.product-logo { height: 44px; width: auto; }
.product-body {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 2rem;
}
.product-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-bottom: 2.25rem;
  max-width: 620px;
}
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.owner-card {
  background: var(--bg-deep);
  color: var(--text-inverse);
  border: 1px solid var(--border-inverse);
  border-radius: 14px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.owner-statement {
  font-weight: 700;
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.9px;
  margin: 1.25rem 0 1rem;
}
.owner-note {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(232, 235, 240, 0.75);
  margin-bottom: 1.5rem;
}
.owner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-inverse);
}
.owner-link svg { width: 14px; height: 14px; }
.owner-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ========== CONTACT ========== */
.cta {
  background: var(--bg-deep);
  color: var(--text-inverse);
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.cta-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-inner .eyebrow { margin-bottom: 1.5rem; }
.cta-title {
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}
.cta-title em { font-style: normal; color: var(--text-inverse-muted); font-weight: 500; }
.cta-lede {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.55;
  color: rgba(232, 235, 240, 0.75);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
}
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ========== FOOTER ========== */
.site-footer { background: var(--bg-deeper); color: var(--text-inverse-muted); padding: 3rem 0 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-inverse-muted);
  margin-bottom: 1.5rem;
}
@media (max-width: 680px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .logo { margin-right: 0; color: var(--text-inverse); }
.footer-brand .logo-wordmark { color: var(--text-inverse-muted); }
.footer-brand .logo-wordmark b { color: #FFFFFF; }
.footer-brand .logo-wordmark small { color: var(--text-inverse-muted); }
.footer-tag { font-size: 14px; line-height: 1.55; margin-top: 0.9rem; max-width: 36ch; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-col h2 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-inverse);
  margin-bottom: 1rem;
}
.footer-col li { font-size: 13.5px; line-height: 2; }
.footer-col a { color: var(--text-inverse-muted); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text-inverse); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
}

/* ========== INNER PAGES (LEGAL, 404) ========== */
.page-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -2px;
  margin: 1.25rem 0 1rem;
}
.page-lede { font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.55; color: var(--text-secondary); max-width: 60ch; }
.legal-body { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal-section { max-width: 760px; }
.legal-section + .legal-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.legal-section h2 {
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  margin-bottom: 0.85rem;
}
.legal-section p, .legal-section li { font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
.legal-section p + p { margin-top: 0.85rem; }
.legal-section p strong { color: var(--text-primary); font-weight: 600; }
.legal-section ul { margin-top: 0.85rem; }
.legal-section ul + p { margin-top: 1.25rem; }
.legal-section li { padding-left: 1.1rem; position: relative; }
.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
}
.legal-section li + li { margin-top: 0.35rem; }
.legal-section a { color: var(--text-primary); }
.legal-dl { margin-top: 0.25rem; }
.legal-dl div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.legal-dl div:last-child { border-bottom: none; }
.legal-dl dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.legal-dl dd { font-size: 15.5px; line-height: 1.5; color: var(--text-primary); }
@media (max-width: 520px) {
  .legal-dl div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
}
.notfound { padding: clamp(5rem, 14vw, 10rem) 0; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ========== MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
