/* =============================================
   USE CASE PAGE STYLES
   Extends landing.css — dark theme, same design tokens
   ============================================= */

/* Nav links (for use-case pages that need the Use Cases link in nav) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link-active {
  color: var(--text, #e2e8f0);
}

/* ---- Page layout ---- */
.uc-page {
  padding-top: 96px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 48px;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #00e87b;
}

.bc-sep {
  opacity: 0.5;
}

/* ---- Page hero ---- */
.uc-hero {
  text-align: center;
  margin-bottom: 64px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.uc-hub-hero {
  margin-bottom: 56px;
}

.uc-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.uc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #e2e8f0;
  margin: 0 0 20px;
}

.uc-sub {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0 auto 32px;
  max-width: 600px;
}

.uc-cta {
  display: inline-flex;
  text-decoration: none;
  font-size: 1rem;
  padding: 14px 28px;
}

/* ---- Article body ---- */
.uc-body {
  max-width: 720px;
  margin: 0 auto 72px;
  color: #94a3b8;
  line-height: 1.8;
  font-size: 1rem;
}

.uc-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 48px 0 16px;
}

.uc-body h2:first-child {
  margin-top: 0;
}

.uc-body p {
  margin: 0 0 18px;
}

.uc-body strong {
  color: #e2e8f0;
  font-weight: 600;
}

.uc-body em {
  color: #cbd5e1;
}

/* ---- Workflow diagram ---- */
.uc-diagram {
  background: #0a0a14;
  border: 1px solid #1a1a2e;
  border-radius: 16px;
  padding: 32px 24px;
  margin: 32px 0;
  overflow-x: auto;
}

.uc-flow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 600px;
}

.uc-arrow {
  color: #334155;
  font-size: 1.4rem;
  font-weight: 300;
  padding-top: 22px;
  flex-shrink: 0;
  line-height: 1;
}

/* Tiles */
.uc-tile {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid #1a1a2e;
  background: #0f0f1a;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tile-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.tile-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
}

.tile-desc {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.5;
}

/* Tile color variants */
.tile-agent .tile-icon {
  background: rgba(0, 232, 123, 0.12);
  border: 1px solid rgba(0, 232, 123, 0.2);
  color: #00e87b;
}

.tile-agent .tile-label {
  color: #00e87b;
}

.tile-decision .tile-icon {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.tile-decision .tile-label {
  color: #f59e0b;
}

.tile-handoff .tile-icon {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
}

.tile-handoff .tile-label {
  color: #8b5cf6;
}

.tile-checkpoint .tile-icon {
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.2);
  color: #ec4899;
}

.tile-checkpoint .tile-label {
  color: #ec4899;
}

/* ---- CTA block ---- */
.uc-cta-block {
  text-align: center;
  padding: 56px 32px;
  background: #0a0a14;
  border: 1px solid #1a1a2e;
  border-radius: 20px;
  margin-top: 32px;
}

.uc-cta-block h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 12px;
}

.uc-cta-block p {
  color: #94a3b8;
  margin: 0 0 28px;
  font-size: 1rem;
}

.uc-back {
  display: block;
  margin-top: 20px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.uc-back:hover {
  color: #94a3b8;
}

/* ---- Use case card grid (index page) ---- */
.uc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.uc-card {
  display: flex;
  flex-direction: column;
  background: #0f0f1a;
  border: 1px solid #1a1a2e;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.uc-card:hover {
  border-color: rgba(0, 232, 123, 0.3);
  transform: translateY(-2px);
}

.uc-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  width: fit-content;
}

.uc-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 12px;
  line-height: 1.4;
}

.uc-card-desc {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0 0 20px;
  flex: 1;
}

.uc-card-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tile-chip {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid;
}

.tile-agent-chip {
  color: #00e87b;
  border-color: rgba(0, 232, 123, 0.3);
  background: rgba(0, 232, 123, 0.06);
}

.tile-decision-chip {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
}

.tile-handoff-chip {
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.06);
}

.tile-checkpoint-chip {
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.3);
  background: rgba(236, 72, 153, 0.06);
}

.uc-card-link {
  color: #00e87b;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .uc-page {
    padding-top: 80px;
    padding-bottom: 48px;
  }

  .uc-flow {
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .uc-arrow {
    transform: rotate(90deg);
    padding-top: 0;
    align-self: center;
  }

  .uc-tile {
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
  }

  .uc-card-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 12px;
  }
}
