/* ============================================================
   Landing hero — fake product console mockup + logo strip.
   Extracted from styles.css (architecture-budget CSS ceiling)
   because this widget is exclusive to index.html's hero section;
   security.html (and any future subpage) never renders it.
   Load order: styles.css first, then this file — the responsive
   overrides below share selectors/specificity with base rules in
   styles.css (e.g. .hero-proof, .workbench) and must win at their
   breakpoints via source order.
   ============================================================ */

.console-shell {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(20, 32, 51, 0.96), rgba(7, 13, 24, 0.98)),
    #08111f;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.console-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(6, 12, 23, 0.7);
}

.window-controls {
  display: flex;
  gap: 7px;
  margin-right: 8px;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #334155;
}

.window-dot:first-child {
  background: #fb7185;
}

.window-dot:nth-child(2) {
  background: #facc15;
}

.window-dot:nth-child(3) {
  background: #34d399;
}

.console-title {
  color: #dbeafe;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.console-search {
  flex: 1;
  min-width: 0;
  height: 32px;
  margin-left: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.72);
  color: #6f8197;
  font-size: 11px;
  line-height: 30px;
  padding: 0 12px;
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.08);
  color: #bffff6;
  font-size: 11px;
  font-weight: 750;
  padding: 7px 10px;
  white-space: nowrap;
}

.console-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.8);
}

.console-grid {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  min-height: 560px;
}

.console-nav {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 18px 12px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(5, 10, 18, 0.42);
  color: #93a4b8;
  font-size: 11px;
}

.nav-section {
  display: grid;
  gap: 5px;
}

.nav-section small {
  color: #5f7188;
  font-size: 10px;
  font-weight: 800;
  padding: 0 9px 4px;
  text-transform: uppercase;
}

.console-nav span {
  border-radius: 9px;
  padding: 8px 9px;
  white-space: nowrap;
}

.console-nav .nav-active {
  background: rgba(94, 234, 212, 0.12);
  color: #dcfffb;
}

.console-main {
  padding: 16px;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.workspace-head span {
  display: block;
  color: #718096;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workspace-head strong {
  display: block;
  margin-top: 4px;
  color: #f8fafc;
  font-size: 16px;
}

.scope-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(3, 7, 18, 0.46);
  padding: 3px;
}

.scope-tabs span {
  border-radius: 7px;
  color: #8da0b8;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  padding: 7px 9px;
  text-transform: none;
}

.scope-tabs .active {
  background: rgba(96, 165, 250, 0.18);
  color: #dbeafe;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.metric-card {
  min-width: 0;
  border-radius: 13px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(18, 31, 50, 0.88), rgba(9, 17, 30, 0.78));
}

.metric-card strong {
  display: block;
  margin-top: 7px;
  color: #f8fafc;
  font-size: 25px;
  line-height: 1;
}

.metric-card em {
  display: block;
  margin-top: 6px;
  color: #7d8ca1;
  font-size: 11px;
  font-style: normal;
}

.metric-card.warning strong {
  color: var(--amber);
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(190px, 0.7fr);
  gap: 10px;
  margin-top: 12px;
}

.queue,
.device-panel {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 15px;
  background: rgba(7, 14, 25, 0.78);
  padding: 12px;
}

.queue-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.queue-head small {
  display: block;
  margin-top: 3px;
  color: #6f8197;
  font-size: 11px;
  font-weight: 600;
}

.queue-head span:last-child {
  color: var(--green);
  white-space: nowrap;
}

.table-head,
.device-row {
  display: grid;
  grid-template-columns: minmax(76px, 0.85fr) minmax(78px, 0.9fr) minmax(88px, 1fr) 56px;
  gap: 7px;
  align-items: center;
}

.table-head {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #5f7188;
  font-size: 10px;
  font-weight: 800;
  padding: 8px 0;
  text-transform: uppercase;
}

.device-row {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding: 11px 0;
  color: #cbd5e1;
  font-size: 12px;
}

.device-row:last-child {
  border-bottom: 0;
}

.device-row b {
  color: #f8fafc;
}

.device-row b,
.device-row span,
.table-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-row em {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #c7d2fe;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  padding: 5px 7px;
  text-align: center;
  text-transform: uppercase;
}

.device-row.critical b {
  color: var(--danger);
}

.device-row.warning b {
  color: var(--amber);
}

.device-row.selected {
  margin: 0 -7px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 10px;
  background: rgba(94, 234, 212, 0.07);
  padding-left: 7px;
  padding-right: 7px;
}

.status {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
}

.status.critical {
  background: var(--danger);
}

.status.warning {
  background: var(--amber);
}

.status.good {
  background: var(--green);
}

.device-panel h3 {
  margin: 7px 0 8px;
  font-size: 21px;
}

.device-panel p {
  margin-bottom: 13px;
  color: #9aacc1;
  font-size: 12px;
  line-height: 1.55;
}

.health-bar {
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.15);
}

.health-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--danger), var(--amber), var(--green));
}

.endpoint-facts {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.endpoint-facts span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  font-size: 11px;
  padding-bottom: 7px;
}

.endpoint-facts b {
  color: #697b91;
  font-weight: 800;
}

.action-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.action-list span {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.56);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 650;
  padding: 9px;
}

.activity-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.activity-strip div {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 13px;
  background: rgba(3, 7, 18, 0.38);
  padding: 11px;
}

.activity-strip b,
.activity-strip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-strip b {
  color: #e2e8f0;
  font-size: 12px;
}

.activity-strip span {
  margin-top: 5px;
  color: #7d8ca1;
  font-size: 11px;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 26px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.12);
}

.logo-strip span {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  background: rgba(9, 18, 31, 0.9);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  padding: 0 18px;
}

@media (max-width: 1020px) {
  .console-grid {
    grid-template-columns: 1fr;
  }

  .console-nav {
    display: none;
  }

  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero,
  .logo-strip {
    width: min(100% - 24px, 1180px);
  }

  .hero-proof,
  .workbench,
  .logo-strip {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-shell {
    border-radius: 18px;
  }

  .console-grid {
    min-height: 0;
  }

  .console-main {
    padding: 12px;
  }

  .console-topbar {
    align-items: stretch;
    flex-wrap: wrap;
    height: auto;
    padding: 11px;
  }

  .console-search {
    display: none;
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }

  .workspace-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-head {
    display: none;
  }

  .device-row,
  .table-head {
    grid-template-columns: 1fr auto;
  }

  .device-row span {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .device-row em {
    grid-column: 2;
    grid-row: 1;
  }

  .optional-row,
  .activity-strip {
    display: none;
  }
}
