/* ==========================================================================
   Basira Sovereign Systems — Shared Component Library (components.css)
   Unified, modular, production-tested components for all product decks.
   ========================================================================== */

/* ── 1. GLOBAL LAYOUT CONTAINERS ── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 52px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── 2. SHARED APPLICATION HEADER & PRODUCT NAV ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.product-toggle-bar {
  display: flex;
  align-items: center;
  background: var(--toggle-bar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  color: var(--text-primary);
  background: var(--toggle-btn-hover);
}

.toggle-btn.active {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.status-dot.sage { background: var(--sage); }
.status-dot.clay { background: var(--clay); }

/* ── 3. UNIFIED SHOWCASE DISPLAY COMPONENT ── */
.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.showcase-item:hover {
  border-color: rgba(217, 164, 65, 0.35);
  box-shadow: var(--shadow-hover);
}

.showcase-item.reverse {
  grid-template-columns: 1.35fr 1fr;
}
.showcase-item.reverse .showcase-text { order: 2; }
.showcase-item.reverse .showcase-ui { order: 1; }

.showcase-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.showcase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(217, 164, 65, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.route-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sage);
  background: rgba(127, 175, 152, 0.12);
  border: 1px solid rgba(127, 175, 152, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.showcase-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* Feature bullets layout */
.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-bullets li {
  display: block;
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.bullet-check {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-bullets li strong {
  color: var(--text-bright);
  font-weight: 600;
  margin-right: 4px;
}

/* ── 4. BROWSER FRAME MOCK & ZOOM OVERLAY ── */
.browser-frame {
  background: #0f0e0c;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-mock);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.browser-frame:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 164, 65, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.7);
}

.mock-header {
  background: #181614;
  border-bottom: 1px solid #282420;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot.r { background: #e05252; }
.dot.y { background: #e5a73b; }
.dot.g { background: #4caf50; }

.mock-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8c827a;
  background: #0f0e0c;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid #282420;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.browser-body {
  position: relative;
  line-height: 0;
  background: #141210;
}

.browser-body img {
  width: 100%;
  height: auto;
  display: block;
}

.zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 14, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.browser-frame:hover .zoom-overlay {
  opacity: 1;
}

/* ── 4b. COMPATIBILITY ALIASES (FrontDesk & BackHouse) ── */
.browser-mock {
  background: #0f0e0c;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-mock);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.browser-mock:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 164, 65, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.7);
}

.media-frame {
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-frame:hover {
  transform: translateY(-2px);
}

/* ── 5. LIGHTBOX MODAL ── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 9, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 94vw;
  max-height: 92vh;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(20, 18, 16, 0.8);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: var(--surface-elevated);
  border-color: var(--gold);
}

/* ── 6. METRIC STAT CELLS & CARDS ── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: left;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.15;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── 7. CONTROLS & CAPABILITY MATRIX CARDS ── */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.matrix-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.matrix-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(217, 164, 65, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
}

.matrix-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.matrix-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.matrix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.matrix-list li {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.matrix-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-weight: 700;
}

.matrix-list li strong {
  color: var(--text-bright);
}

/* ── 8. ENTERPRISE CTA SECTION ── */
.enterprise-cta {
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.08) 0%, rgba(178, 107, 69, 0.05) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  margin: 64px 0 32px;
  position: relative;
  overflow: hidden;
}

.enterprise-cta h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.enterprise-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-gold {
  background: var(--gold);
  color: #131210;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary-gold:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--gold-glow);
}

.btn-secondary-outline {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: var(--surface);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary-outline:hover {
  border-color: var(--gold);
  background: var(--surface-elevated);
}

/* ── 9. RESPONSIVE BREAKPOINTS ── */
@media (max-width: 900px) {
  .showcase-item,
  .showcase-item.reverse {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    gap: 28px;
  }
  .showcase-item.reverse .showcase-text { order: 1; }
  .showcase-item.reverse .showcase-ui { order: 2; }
  .showcase-title { font-size: 1.35rem; }
  .section-title { font-size: 1.85rem; }
  .header-inner { flex-wrap: wrap; }
  .product-toggle-bar {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
}
