/* Landing Page (/) Styles — MDIS Robotics Studio (matches reference architecture) */

.font-display { font-family: var(--font-display); }
.font-mono-tech { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Sticky 56px Top Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 56px;
  width: 100%;
  background: rgba(9, 11, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 3px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease;
  border-radius: 3px;
}

.nav-links a:hover { color: #ffffff; }

.nav-cta {
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #090b0f;
  background: #38bdf8;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.nav-cta:hover { background: #7dd3fc; }
.nav-cta:active { transform: translateY(1px); }

/* Landing page resets main padding because Hero is full-bleed */
.landing-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Hero 3D Stage (#stage)
   ========================================================================== */
.hero-stage {
  position: relative;
  width: 100%;
  height: calc(100dvh - 56px);
  min-height: 640px;
  max-height: 940px;
  overflow: hidden;
  background: #090b0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 767px) {
  .hero-stage {
    min-height: 700px;
    height: auto;
    max-height: none;
  }
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  cursor: grab;
}

.hero-canvas-wrap:active { cursor: grabbing; }
.hero-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-mesh-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 21, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11.5px;
  font-family: var(--font-mono);
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.hero-mesh-badge[hidden] { display: none; }

.hero-mesh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  animation: pulse-dot 1.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090b0f;
  color: #94a3b8;
  text-align: center;
  padding: 24px;
  z-index: 5;
}
.hero-fallback[hidden] { display: none; }

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(9, 11, 15, 0.86) 0%,
    rgba(9, 11, 15, 0.3) 52%,
    rgba(9, 11, 15, 0.85) 100%
  );
}

@media (min-width: 1024px) {
  .hero-scrim {
    background: linear-gradient(
      to right,
      rgba(9, 11, 15, 0.93) 0%,
      rgba(9, 11, 15, 0.46) 50%,
      rgba(9, 11, 15, 0) 100%
    );
  }
}

.hero-overlay {
  pointer-events: none;
  position: relative;
  z-index: 10;
  max-width: 1360px;
  margin: 0 auto;
  height: 100%;
  padding: 32px 24px 128px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .hero-overlay {
    justify-content: center;
    padding-bottom: 112px;
  }
}

@media (max-width: 767px) {
  .hero-overlay {
    padding-top: 24px;
    padding-bottom: 220px;
  }
}

.hero-copy {
  max-width: 540px;
  pointer-events: auto;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow .sep { color: #475569; }
.hero-eyebrow .hash { color: #cbd5e1; font-family: var(--font-mono); }

.hero-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.15;
  font-size: clamp(1.95rem, 3.6vw, 3.15rem);
  text-wrap: balance;
}

.hero-summary {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 46ch;
}

@media (min-width: 640px) {
  .hero-summary { font-size: 15px; }
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 16px 0;
  margin: 0 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 440px;
}

.hero-specs dt {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.hero-specs dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .hero-specs dd { font-size: 18px; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #090b0f;
  background: #38bdf8;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-hero-primary:hover { background: #7dd3fc; }
.btn-hero-primary:active { transform: translateY(1px); }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(17, 21, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-hero-secondary:hover {
  background: #181e27;
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.hero-hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-hint strong {
  color: #e2e8f0;
  font-weight: 500;
}

.hero-hint .sep { color: #475569; }
.hero-hint .live-note { color: #38bdf8; font-family: var(--font-mono); font-size: 11.5px; }

/* ==========================================================================
   Collapsible Bottom 3D Control Dock
   ========================================================================== */
.dock-shell {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 20;
  width: min(1080px, 95vw);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-shell.collapsed {
  transform: translateX(-50%) translateY(calc(100% - 29px));
}

.dock-toggle-row {
  display: flex;
  justify-content: center;
}

.dock-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  background: #11151c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.dock-toggle-btn:hover { color: #ffffff; }

.dock-bar {
  background: rgba(17, 21, 28, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.dock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (min-width: 1024px) {
  .dock-row { flex-wrap: nowrap; }
}

.dock-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #090b0f;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.dock-group::-webkit-scrollbar { display: none; }

.dock-btn {
  padding: 4px 10px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

@media (max-width: 639px) {
  .dock-bar { padding: 8px 10px; }
  .dock-group { flex-wrap: wrap; }
  .dock-btn { padding: 4px 8px; font-size: 11px; }
}

.dock-btn:hover { color: #e2e8f0; }

.dock-btn.active {
  background: #1e293b;
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.42);
}

.dock-btn.motion-active {
  background: #38bdf8;
  color: #090b0f;
  font-weight: 600;
  border-color: #38bdf8;
}

.dock-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dock-inspector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.dock-explode-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
  padding: 0 4px;
  white-space: nowrap;
}

input[type="range"].studio-range {
  -webkit-appearance: none;
  appearance: none;
  width: 68px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

input[type="range"].studio-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #38bdf8;
  border: 2px solid #090b0f;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

input[type="range"].studio-range::-webkit-slider-thumb:hover { transform: scale(1.15); }

input[type="range"].studio-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #38bdf8;
  border: 2px solid #090b0f;
  cursor: pointer;
}

.dock-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #090b0f;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.dock-icon-btn:hover { color: #ffffff; }
.dock-icon-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

/* ==========================================================================
   Content Sections (Fleet, Pipeline, Licenses)
   ========================================================================== */
.section-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 80px 24px;
}

@media (min-width: 768px) {
  .section-wrap { padding: 96px 24px; }
}

.border-sep {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sec-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #38bdf8;
}

.sec-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-wrap: balance;
}

.sec-lead {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 64ch;
}

@media (min-width: 640px) {
  .sec-lead { font-size: 15px; }
}

.fleet-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .fleet-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #11151c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  align-self: flex-start;
  flex-shrink: 0;
}

.filter-btn {
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover { color: #e2e8f0; }
.filter-btn.active {
  background: #1e293b;
  color: #ffffff;
}

.fleet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.fleet-card {
  background: #11151c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease;
}

.fleet-card:hover { border-color: rgba(255, 255, 255, 0.16); }
.fleet-card.active { border-color: rgba(56, 189, 248, 0.5); }

.fleet-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fleet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.fleet-meta .org { color: #e2e8f0; font-weight: 500; }
.fleet-meta .lic { font-family: var(--font-mono); }

.stage-focus-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.stage-focus-btn:hover { color: #ffffff; }
.stage-focus-btn.active { color: #38bdf8; }

.fleet-card-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.fleet-card-desc {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.65;
  color: #cbd5e1;
}

.fleet-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 0;
  margin: 0 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fleet-kpis > div {
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.fleet-kpis > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.fleet-kpis > div:last-child { padding-right: 0; }

.fleet-kpis dt {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.fleet-kpis dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .fleet-kpis dd { font-size: 18px; }
}

.fleet-facts {
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.fleet-fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.fleet-fact-row dt {
  color: #94a3b8;
  flex-shrink: 0;
}

.fleet-fact-row dd {
  margin: 0;
  color: #e2e8f0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fleet-fact-row dd.mono-val {
  font-family: var(--font-mono);
  color: #cbd5e1;
}

.fleet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.act-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #090b0f;
  background: #38bdf8;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}
.act-btn-primary:hover { background: #7dd3fc; }

.act-btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  background: #182230;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}
.act-btn-accent:hover { background: #1e293b; }

.act-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #e2e8f0;
  background: #181e27;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}
.act-btn-secondary:hover { background: #222a36; }

.act-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.act-btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.act-ext-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.act-ext-link:hover { color: #e2e8f0; }

/* ==========================================================================
   Pipeline Section (#pipeline)
   ========================================================================== */
.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1024px) {
  .pipeline-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .pipeline-left { grid-column: span 5 / span 5; }
  .pipeline-right { grid-column: span 7 / span 7; }
}

.pipeline-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 24px;
  margin: 32px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pipeline-proof dt {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.pipeline-proof dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.pipeline-proof-sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: #64748b;
}

.pipeline-stages {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pipeline-stage {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.pipeline-stage:first-child { border-top: 0; padding-top: 18px; }
.pipeline-stage:last-child { padding-bottom: 18px; }

@media (min-width: 640px) {
  .pipeline-stage {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .pipeline-stage-body { grid-column: span 8 / span 8; }
  .pipeline-stage-metric { grid-column: span 4 / span 4; text-align: right; }
}

.pipeline-stage-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.pipeline-stage-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
}

.pipeline-stage-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
}

.pipeline-stage-desc {
  margin: 0;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.65;
  color: #cbd5e1;
}

.pipeline-stage-metric { padding-left: 28px; }
@media (min-width: 640px) { .pipeline-stage-metric { padding-left: 0; } }

.pipeline-metric-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.pipeline-metric-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Licenses Table Section (#licenses)
   ========================================================================== */
.license-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #11151c;
}

.license-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.license-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #94a3b8;
}

.license-table th {
  padding: 14px 20px;
  font-weight: 500;
  white-space: nowrap;
}

.license-table td {
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  white-space: normal;
  line-height: 1.45;
}

.license-table td.nowrap-cell {
  white-space: nowrap;
}

.license-table tbody tr:first-child td { border-top: 0; }
.license-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.lic-repo-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.lic-repo-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.lic-repo-links a:hover { color: #38bdf8; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 24px;
  background: #090b0f;
}

.site-footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  color: #94a3b8;
}

@media (min-width: 640px) {
  .site-footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.site-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer-links a:hover { color: #ffffff; }

/* ==========================================================================
   Workspace Quick-Inspect Modal
   ========================================================================== */
.ws-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
}
.ws-backdrop[hidden] { display: none; }

.ws-dialog {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  background: #11151c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ws-head {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ws-eyebrow {
  margin: 0 0 2px;
  font-size: 12px;
  color: #94a3b8;
}

.ws-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
}

.ws-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ws-close-btn:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }

.ws-tabs {
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1016;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.ws-tab-btn {
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ws-tab-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }
.ws-tab-btn.active {
  background: #38bdf8;
  color: #090b0f;
  font-weight: 600;
}

.ws-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ws-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 639px) {
  .ws-kpi-grid { grid-template-columns: 1fr; }
}

.ws-kpi-label { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.ws-kpi-val {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.ws-cmd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 639px) {
  .ws-cmd-grid { grid-template-columns: 1fr; }
}

.ws-choice-card {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1016;
  color: #cbd5e1;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ws-choice-card:hover { border-color: rgba(255, 255, 255, 0.2); }
.ws-choice-card.selected {
  background: #182230;
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
}

.ws-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
