/* Hero security console */
.sec-console {
  display: flex;
  flex-direction: column;
  height: 480px;
  overflow: hidden;
}
.sec-console::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(111, 227, 208, .07);
  border-radius: 14px;
}
.sec-console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(111, 227, 208, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 227, 208, .045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(80% 80% at 50% 45%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 45%, #000 20%, transparent 100%);
}
.sec-console > * { position: relative; z-index: 1; }
.sec-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
}
.sec-stats > div { padding: 11px 12px 10px; background: rgba(8, 13, 24, .86); }
.sec-stats small {
  display: block;
  color: rgba(255, 255, 255, .34);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
}
.sec-stats strong {
  display: inline-block;
  margin-top: 4px;
  color: #fff;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.sec-stats em {
  margin-left: 3px;
  color: rgba(255, 255, 255, .32);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}
.sec-feed {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(111, 227, 208, .1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(6, 12, 22, .9), rgba(7, 12, 21, .96)),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(255, 255, 255, .025) 27px 28px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
}
.sec-feed:hover .sec-track { animation-play-state: paused; }
.sec-track {
  display: flex;
  flex-direction: column;
  animation: secScroll 28s linear infinite;
  will-change: transform;
}
.sec-set { display: flex; flex-direction: column; }
.sec-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.sec-row:last-child { border-bottom: 0; }
.sec-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
}
.sec-row.is-waf .sec-tag { color: #ff8b93; background: rgba(244, 91, 105, .12); border: 1px solid rgba(244, 91, 105, .22); }
.sec-row.is-ddos .sec-tag { color: #6fe3d0; background: rgba(18, 199, 166, .1); border: 1px solid rgba(18, 199, 166, .2); }
.sec-main { min-width: 0; }
.sec-main b {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, .9);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sec-main small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, .4);
  font-family: var(--mono);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sec-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .4);
  white-space: nowrap;
}
.sec-state::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}
.sec-row.is-waf .sec-state { color: #ff8b93; }
.sec-row.is-ddos .sec-state { color: #6fe3d0; }
.sec-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 26%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(111, 227, 208, .09), transparent);
  animation: secScan 5s linear infinite;
}
.sec-foot {
  flex: none;
  padding-top: 12px;
  padding-bottom: 0;
}
@keyframes secScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes secScan {
  from { top: -30%; }
  to { top: 115%; }
}
@media (max-width: 640px) {
  .sec-console { height: 450px; }
  .sec-stats strong { font-size: 15px; }
  .sec-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; }
  .sec-foot { font-size: 9px; gap: 8px; }
  .sec-foot span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sec-track { animation: none; }
  .sec-feed { overflow-y: auto; }
  .sec-set[aria-hidden="true"] { display: none; }
  .sec-scan { display: none; }
}
