/* ===========================================================
   MimoCAD — Twilight-inspired dispatch console theme
   =========================================================== */

:root {
  --bg-0: #0B0716;
  --bg-1: #141021;
  --bg-2: #1C1732;
  --bg-3: #251F43;
  --line: #2A2446;
  --line-strong: #3F3662;

  --fg-0: #EDE9FA;
  --fg-1: #B8B0D6;
  --fg-2: #8B81AE;
  --fg-3: #5F567D;

  --brand-1: #0EA5E9;
  --brand-2: #0369A1;
  --brand-3: #0C4A6E;

  --fire: #EF4444;
  --ems: #A78BFA;
  --police: #60A5FA;
  --amber: #F59E0B;
  --success: #34D399;

  --accent: #F59E0B;
  --accent-soft: color-mix(in oklab, var(--accent) 22%, var(--bg-1));

  --maxw: 1320px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-0); color: var(--fg-0); font-family: var(--sans); }
body {
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(14,165,233,0.08), transparent 60%),
    radial-gradient(1000px 600px at 95% 10%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -1;
  pointer-events: none;
}

/* ===========================================================
   TOP BAR
   =========================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg-0) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 19px;
}
.logo img { height: 30px; width: 30px; object-fit: contain; }
.logo .tm { color: var(--fg-3); font-size: 10px; font-family: var(--mono); margin-left: 2px; transform: translateY(-6px); }
nav.main {
  display: flex; gap: 6px;
  margin-left: auto;
}
nav.main a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--fg-1);
  border-radius: 6px;
  transition: all 120ms;
}
nav.main a:hover { background: var(--bg-2); color: var(--fg-0); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  transition: all 160ms;
  color: var(--fg-0);
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-primary {
  background: var(--accent);
  color: var(--bg-0);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--accent) 85%, white);
  border-color: color-mix(in oklab, var(--accent) 85%, white);
  color: var(--bg-0);
}
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--bg-2); }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-1);
  letter-spacing: 0.04em;
}
.blinker {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--success) 60%, transparent);
  animation: blink 1.6s infinite;
}
@keyframes blink {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--success) 70%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 28px 24px;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px; background: var(--accent);
}
.hero h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 22px;
  max-width: 18ch;
}
.hero h1 .hl {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}
.hero-sub {
  max-width: 58ch;
  color: var(--fg-1);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 12px; align-items: center; }
.hero-meta {
  margin-top: 28px;
  display: flex; gap: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero-meta .k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-meta .v {
  font-size: 22px;
  font-weight: 600;
  color: var(--fg-0);
  margin-top: 4px;
  font-feature-settings: "tnum";
}
.hero-meta .v .mono { font-family: var(--mono); }

/* ===========================================================
   DISPATCH CONSOLE
   =========================================================== */
.console {
  margin: 36px auto 0;
  max-width: var(--maxw);
  padding: 0 28px;
}
.console-frame {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}
.console-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding: 12px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}
.console-header .left { display: flex; gap: 8px; align-items: center; color: var(--fg-2); }
.console-header .title { text-align: center; color: var(--fg-0); font-weight: 600; }
.console-header .right { text-align: right; color: var(--fg-2); }
.traffic { display: inline-flex; gap: 6px; margin-right: 6px;}
.traffic i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.traffic .r { background: #EF4444; }
.traffic .a { background: #F59E0B; }
.traffic .g { background: #34D399; }

.console-body {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  min-height: 620px;
}

.queue {
  border-right: 1px solid var(--line);
  padding: 14px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
}
.queue-header {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  text-transform: uppercase;
  padding: 0 4px 10px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 6px;
}
.alarm-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--fire);
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 140ms;
}
.alarm-card.alpha   { border-left-color: #22C55E; }
.alarm-card.bravo   { border-left-color: #3B82F6; }
.alarm-card.charlie { border-left-color: #FACC15; }
.alarm-card.delta   { border-left-color: #EF4444; }
.alarm-card.echo    { border-left-color: #D946EF; }
.alarm-card:hover { background: var(--bg-3); }
.alarm-card .id-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--fg-3); letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.alarm-card .pri-alpha   { color: #22C55E; }
.alarm-card .pri-bravo   { color: #3B82F6; }
.alarm-card .pri-charlie { color: #FACC15; }
.alarm-card .pri-delta   { color: #EF4444; }
.alarm-card .pri-echo    { color: #D946EF; }
.alarm-card .type {
  font-family: var(--mono); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.05em; color: var(--fg-0);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.alarm-card .addr { font-size: 12px; color: var(--fg-1); font-family: var(--mono); }
.alarm-card .meta {
  margin-top: 8px; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; color: var(--fg-2);
}
.alarm-card .meta .dispatched { color: var(--success); }

.channel {
  border-left: 1px solid var(--line);
  padding: 14px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.channel-tabs {
  display: flex; gap: 2px;
  background: var(--bg-2);
  border-radius: 6px;
  padding: 3px;
  margin-bottom: 12px;
}
.channel-tabs button {
  flex: 1; padding: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--fg-2); border-radius: 4px;
  text-transform: uppercase;
  transition: all 140ms;
}
.channel-tabs button.active { background: var(--bg-3); color: var(--fg-0); }
.radio-feed {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: 11.5px;
  mask-image: linear-gradient(180deg, transparent 0, black 30px, black 100%);
}
.radio-msg {
  padding: 8px 10px;
  background: var(--bg-2);
  border-left: 2px solid var(--line);
  border-radius: 0 4px 4px 0;
  animation: slideIn 300ms ease-out;
}
.radio-msg.fire { border-left-color: var(--fire); }
.radio-msg.ems { border-left-color: var(--ems); }
.radio-msg.police { border-left-color: var(--police); }
.radio-msg.disp { border-left-color: var(--amber); }
@keyframes slideIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; }}
.radio-msg .hdr {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--fg-3); letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.radio-msg .unit { color: var(--fg-0); font-weight: 700; }
.radio-msg .txt { color: var(--fg-1); line-height: 1.45; }
.channel-footer {
  margin-top: 12px;
  padding: 10px;
  background: var(--bg-2);
  border-radius: 6px;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px;
  color: var(--fg-2);
  display: flex; align-items: center; gap: 8px;
}
.wave {
  flex: 1; display: flex; align-items: center; gap: 2px; height: 18px;
}
.wave span {
  flex: 1; background: var(--accent);
  animation: wave 0.9s infinite ease-in-out;
}
.wave span:nth-child(1) { animation-delay: 0s; }
.wave span:nth-child(2) { animation-delay: 0.1s; }
.wave span:nth-child(3) { animation-delay: 0.2s; }
.wave span:nth-child(4) { animation-delay: 0.3s; }
.wave span:nth-child(5) { animation-delay: 0.4s; }
.wave span:nth-child(6) { animation-delay: 0.5s; }
.wave span:nth-child(7) { animation-delay: 0.6s; }
@keyframes wave {
  0%, 100% { height: 30%; opacity: 0.6; }
  50% { height: 100%; opacity: 1; }
}

.map-wrap {
  position: relative;
  background: var(--bg-0);
  overflow: hidden;
}
.map-root { position: relative; width: 100%; height: 100%; min-height: 620px; }
.map-svg { width: 100%; height: 100%; display: block; }
.map-legend {
  position: absolute; bottom: 16px; left: 16px;
  background: color-mix(in oklab, var(--bg-0) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--mono); font-size: 11px;
  backdrop-filter: blur(8px);
  min-width: 180px;
}
.legend-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  padding: 3px 0;
  align-items: center;
  color: var(--fg-1);
}
.legend-label { letter-spacing: 0.08em; }
.legend-count { color: var(--fg-0); font-weight: 700; }
.legend-divider { height: 1px; background: var(--line); margin: 6px 0; }
.legend-section-title {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.16em; color: var(--fg-3);
  margin-bottom: 4px; text-transform: uppercase;
}
.dot { width: 10px; height: 10px; border-radius: 2px; }
.dot-fire { background: var(--fire); }
.dot-ems { background: var(--ems); }
.dot-police { background: var(--police); }
.dot-alarm { background: var(--amber); transform: rotate(45deg); border-radius: 1px; }

.map-timer {
  position: absolute; top: 16px; right: 16px;
  background: color-mix(in oklab, var(--bg-0) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-1);
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  display: flex; gap: 10px; align-items: center;
}
.map-timer .label { color: var(--fg-3); font-size: 10px; letter-spacing: 0.14em; }
.map-timer .val { color: var(--fg-0); font-weight: 700; }

/* ===========================================================
   SECTION HEADERS
   =========================================================== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 120px 28px; }
.section-header { margin-bottom: 60px; }
.section-label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
.section h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  max-width: 22ch;
}
.section h2 .hl { color: var(--accent); font-style: italic; font-weight: 600; }
.section-sub { color: var(--fg-1); margin-top: 18px; max-width: 62ch; font-size: 17px; }

/* ===========================================================
   PRODUCT SUITE
   =========================================================== */
.products {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: repeat(2, auto);
  gap: 16px;
}
.product {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: all 200ms;
  min-height: 260px;
  display: flex; flex-direction: column;
}
.product:hover {
  border-color: color-mix(in oklab, var(--accent) 60%, var(--line));
  transform: translateY(-2px);
}
.product.wide { grid-column: span 1; grid-row: span 2; min-height: 540px; }
.product-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 18px;
}
.product-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.product h3 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.product .tagline {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.product p {
  color: var(--fg-1);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 auto;
  flex: 1;
}
.product .price {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--mono);
  font-size: 13px;
}
.product .price .amt { color: var(--fg-0); font-weight: 700; font-size: 15px; }
.product .price .per { color: var(--fg-3); font-size: 11px; letter-spacing: 0.06em; }
.product-bg {
  position: absolute; right: -20px; top: 20px;
  font-family: var(--mono);
  font-size: 160px;
  font-weight: 800;
  color: var(--bg-2);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.product > * { position: relative; z-index: 1; }

.product.wide .cad-viz {
  flex: 1;
  margin: 14px -28px -28px;
  padding: 20px 28px 28px;
  background:
    linear-gradient(180deg, transparent 0%, var(--bg-0) 40%),
    radial-gradient(ellipse at 50% 80%, color-mix(in oklab, var(--brand-1) 12%, transparent), transparent 70%);
  border-top: 1px solid var(--line);
  position: relative;
  min-height: 240px;
}
.mimo-diagram { display: flex; justify-content: center; align-items: center; height: 100%; min-height: 220px; }

/* ===========================================================
   INTEGRATIONS
   =========================================================== */
.int-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.int-cell {
  background: var(--bg-1);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
  transition: background 140ms;
}
.int-cell:hover { background: var(--bg-2); }
.int-cell .name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.int-cell .kind {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.int-cell .desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
  margin-top: auto;
}
.int-cell .dir {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding: 3px 7px;
  background: var(--accent-soft);
  border-radius: 20px;
  align-self: flex-start;
  margin-top: 4px;
}

/* ===========================================================
   AUDIENCE
   =========================================================== */
.audience {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.aud-card {
  padding: 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
}
.aud-card .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
.aud-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.aud-card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
}
.aud-card .tick {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===========================================================
   CTA
   =========================================================== */
.cta-block {
  max-width: var(--maxw);
  margin: 0 auto 80px;
  padding: 0 28px;
}
.cta-inner {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 0% 50%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%),
    radial-gradient(500px 300px at 100% 50%, color-mix(in oklab, var(--brand-1) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-inner h2 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 14ch;
}
.cta-inner h2 .hl { color: var(--accent); font-style: italic; }
.cta-inner p { color: var(--fg-1); font-size: 16px; margin: 0 0 24px; }
.cta-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-form label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}
.cta-form input, .cta-form select {
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--fg-0);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border 120ms;
}
.cta-form input:focus, .cta-form select:focus { border-color: var(--accent); }
.cta-form button {
  margin-top: 8px;
  padding: 12px;
  background: var(--accent);
  color: var(--bg-0);
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 140ms;
  border: 0;
}
.cta-form button:hover {
  background: color-mix(in oklab, var(--accent) 85%, white);
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 28px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.foot-top h5 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 600;
}
.foot-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-top a { color: var(--fg-1); font-size: 14px; }
.foot-top a:hover { color: var(--fg-0); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.foot-bottom .gen { color: var(--fg-2); }
.foot-bottom .mono { font-family: var(--mono); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1180px) {
  .console-body { grid-template-columns: 240px 1fr 280px; }
  .products { grid-template-columns: 1fr 1fr; }
  .product.wide { grid-column: span 2; grid-row: span 1; min-height: 320px; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 820px) {
  .console-body { grid-template-columns: 1fr; }
  .queue, .channel { display: none; }
  nav.main { display: none; }
  .products { grid-template-columns: 1fr; }
  .product.wide { grid-column: span 1; }
  .hero h1 { font-size: 44px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .topbar-inner { gap: 16px; }
  .status-pill { display: none; }
}

/* ===========================================================
   INNER PAGE CONTENT
   =========================================================== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 28px 80px;
}

.container h1 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--fg-0);
  line-height: 1.1;
}

.container h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 32px 0 16px;
  color: var(--fg-0);
}

.container p {
  color: var(--fg-1);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.container p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--accent) 50%, transparent);
}

.container p a:hover { text-decoration-color: var(--accent); }

.container ol, .container ul {
  color: var(--fg-1);
  font-size: 15px;
  line-height: 1.7;
  padding-left: 1.75rem;
  margin: 0 0 18px;
}

.container li { margin-bottom: 6px; }

.container small { font-size: 13px; }

/* ===========================================================
   TEXT COLOR UTILITIES
   =========================================================== */
.text-success  { color: var(--success) !important; }
.text-danger   { color: var(--fire) !important; }
.text-warning  { color: var(--amber) !important; }
.text-info     { color: var(--brand-1) !important; }
.text-primary  { color: var(--police) !important; }
.text-secondary { color: var(--fg-2) !important; }
.text-attention { color: var(--ems) !important; }
.text-muted    { color: var(--fg-3) !important; }

/* ===========================================================
   GRID / LAYOUT UTILITIES
   =========================================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.col-sm-4  { flex: 0 0 calc(33.333% - 8px); min-width: 200px; }
.col-md-4  { flex: 0 0 calc(33.333% - 8px); min-width: 200px; }
.col-md-12 { flex: 1 1 100%; }

.d-grid { display: grid; }
.gap-2  { gap: 12px; }
.w-100  { width: 100%; }
.mb-3   { margin-bottom: 18px; }
.mt-auto { margin-top: auto; }

/* ===========================================================
   FORM ELEMENTS
   =========================================================== */
.form-control,
.form-select {
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--fg-0);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border 120ms;
  appearance: none;
  -webkit-appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%238B81AE' d='M8 10.5L3 5.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 36px;
}

.form-control:focus,
.form-select:focus { border-color: var(--accent); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-floating {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.form-floating label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  order: -1;
}

/* Input groups */
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group .form-control,
.input-group .form-select {
  border-radius: 0;
  flex: 1;
}

.input-group > :first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group > :last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group > :only-child  { border-radius: var(--radius-sm); }

.input-group-text {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg-2);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* Button variants for forms */
.btn-outline-primary {
  border-color: var(--police);
  color: var(--police);
}
.btn-outline-primary:hover {
  background: color-mix(in oklab, var(--police) 15%, transparent);
  border-color: var(--police);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11px;
}

.btn-outline-success {
  border-color: var(--success);
  color: var(--success);
}
.btn-outline-success:hover {
  background: color-mix(in oklab, var(--success) 15%, transparent);
}

/* ===========================================================
   PRE / CODE (SDR console)
   =========================================================== */
pre {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-1);
  overflow-x: auto;
  line-height: 1.6;
  max-height: 520px;
  overflow-y: auto;
}

/* ===========================================================
   FLASH / ERROR BANNER
   =========================================================== */
.flash-error {
  max-width: var(--maxw);
  margin: 16px auto 0;
  padding: 0 28px;
}
.flash-error-inner {
  background: color-mix(in oklab, var(--fire) 15%, var(--bg-1));
  border: 1px solid color-mix(in oklab, var(--fire) 40%, var(--line));
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--fg-0);
  font-size: 14px;
}
