/*
 * BlattCo Flagship Website -- Component Stylesheet (Overwatch, Privacy Lab, Footer, Modals)
 */

.overwatch-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ow-point {
  background: #000000;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 6px;
  padding: 0.48rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--txt-muted);
  transition: all 0.2s ease;
}

.ow-point.locked {
  border-color: var(--neon-emerald);
  background: rgba(0, 245, 155, 0.1);
  color: var(--txt-main);
}

.ow-point-num {
  color: var(--neon-yellow);
  font-weight: 700;
  display: block;
}

.overwatch-status-banner {
  background: #000000;
  border: 1px solid var(--neon-cyan);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-emerald);
}

/* Privacy Lab */
.lab-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-emerald);
  border: 1px solid var(--neon-emerald);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.lab-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.lab-card h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--neon-yellow);
  font-family: var(--font-mono);
}

.lab-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--txt-muted);
}

.lab-btn-row {
  display: flex;
  gap: 0.55rem;
}

.lab-output {
  background: #000000;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--neon-cyan);
  min-height: 76px;
  white-space: pre-wrap;
  word-break: break-all;
}

.matrix-canvas-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

#matrix-badge-canvas {
  border: 1px solid var(--neon-yellow);
  border-radius: 8px;
  background: #000000;
  flex-shrink: 0;
}

.matrix-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.matrix-digest {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-magenta);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  background: #000000;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-note {
  color: var(--txt-muted);
  font-size: 0.84rem;
  max-width: 52ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-col h4 {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--neon-yellow);
}

.footer-col p {
  margin: 0.25rem 0;
  font-size: 0.84rem;
  color: var(--txt-muted);
}

/* Modals */
.cyber-modal[hidden] {
  display: none !important;
}

.cyber-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  background: var(--bg-panel);
  border: 1px solid var(--neon-yellow);
  border-radius: 12px;
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(252, 238, 10, 0.22);
}

.modal-card-sm {
  max-width: 520px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: #000000;
  border-bottom: 1px solid var(--border-dim);
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.modal-icon {
  border-radius: 10px;
  border: 1px solid var(--neon-yellow);
}

.modal-header h2 {
  margin: 0.15rem 0;
  font-size: 1.25rem;
  color: var(--neon-yellow);
}

.modal-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--neon-cyan);
}

.modal-close-btn {
  background: transparent;
  color: var(--txt-muted);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--neon-yellow);
  border-color: var(--neon-yellow);
}

.modal-body {
  padding: 1.35rem;
}

.modal-summary {
  margin: 0 0 1rem;
  color: var(--txt-main);
  font-size: 0.92rem;
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.modal-sec-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-magenta);
  margin: 1.2rem 0 0.6rem;
}

.cyber-console {
  background: #000000;
  border: 1px solid var(--neon-emerald);
  border-radius: 6px;
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--neon-emerald);
  overflow-x: auto;
  margin: 0;
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.portal-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--neon-cyan);
}

.portal-input-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.portal-prefix, .portal-suffix {
  color: var(--neon-yellow);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .hero-grid, .kujo-split-grid, .lab-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-row, .modal-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overwatch-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container { padding: 0 0.9rem; }
  .telemetry-ribbon { font-size: 0.68rem; padding: 0.35rem 0; }
  .ribbon-inner { justify-content: center; text-align: center; gap: 0.4rem 0.65rem; }
  .ribbon-item:nth-child(3) { display: none; }
  .ribbon-portal-btn { width: 100%; padding: 0.35rem 0.5rem; font-size: 0.72rem; }
  .header-inner { flex-direction: column; align-items: stretch; padding: 0.65rem 0.9rem; gap: 0.6rem; }
  .brand-lockup { gap: 0.65rem; }
  .brand-logo { width: 56px; height: 56px; border-radius: 10px; }
  .brand-name { font-size: 1.2rem; letter-spacing: 0.1em; }
  .brand-tag { font-size: 0.64rem; letter-spacing: 0.04em; line-height: 1.25; }
  .site-nav { flex-wrap: nowrap; overflow-x: auto; gap: 0.4rem; padding-bottom: 0.15rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; font-size: 0.74rem; padding: 0.32rem 0.6rem; border: 1px solid rgba(56, 189, 248, 0.2); background: #050505; }
  .hero-section { padding: 1.65rem 0 2rem; }
  .hero-brand-banner { flex-direction: column; align-items: center; text-align: center; gap: 0.9rem; }
  .hero-master-logo { width: 168px; height: 168px; }
  .hero-badge { font-size: 0.66rem; padding: 0.24rem 0.55rem; }
  .hero-title { font-size: 1.42rem; line-height: 1.2; }
  .hero-lead { font-size: 0.92rem; text-align: center; margin-bottom: 1.15rem; }
  .hero-stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; margin-bottom: 1.2rem; }
  .stat-pill { padding: 0.55rem 0.65rem; }
  .stat-val { font-size: 1.08rem; }
  .hero-actions { flex-direction: column; gap: 0.6rem; }
  .hero-actions .btn { width: 100%; padding: 0.78rem 1rem; }
  .stage-header, .stage-footer { flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 0.55rem 0.75rem; font-size: 0.7rem; }
  .section-block { padding: 2.15rem 0; }
  .section-head { flex-direction: column; align-items: stretch; gap: 0.75rem; margin-bottom: 1.15rem; }
  .section-title { font-size: 1.28rem; }
  .search-box-wrap { min-width: 0; width: 100%; flex: 1 1 auto; }
  .category-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; margin-bottom: 1.15rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .category-bar::-webkit-scrollbar { display: none; }
  .cat-pill { white-space: nowrap; flex-shrink: 0; padding: 0.46rem 0.78rem; font-size: 0.72rem; }
  .arsenal-grid { grid-template-columns: 1fr; gap: 1rem; }
  .arsenal-card, .kujo-panel, .lab-card { padding: 1rem; }
  .overwatch-points-grid { grid-template-columns: 1fr; }
  .matrix-canvas-row { flex-direction: column; align-items: stretch; }
  #matrix-badge-canvas { align-self: center; }
  .lab-btn-row { flex-direction: column; }
  .lab-btn-row .btn { width: 100%; }
  .cyber-modal { padding: 0.5rem; }
  .modal-card { max-height: 92vh; }
  .modal-header { padding: 0.85rem 0.95rem; }
  .modal-body { padding: 0.95rem; }
  .modal-metrics-grid { grid-template-columns: 1fr 1fr; }
  .portal-input-group { flex-wrap: wrap; }
}
