.app-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.landing-shell {
  display: grid;
  gap: 20px;
}

.hero-section,
.story-grid,
.stats-grid,
.panel-grid,
.proof-grid,
.steps-grid,
.feature-grid,
.audience-grid,
.provider-grid,
.command-grid {
  display: grid;
  gap: 16px;
}

.hero-section {
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.9fr);
  align-items: stretch;
}

.hero-copy-block,
.hero-panel,
.story-card,
.stat-card,
.panel,
.chart-card,
.step-card,
.feature-card,
.audience-card,
.proof-card,
.provider-card,
.command-card,
.cta-section,
.toolbar,
.network-summary-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 15, 28, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.24);
}

.hero-copy-block,
.hero-panel,
.story-card,
.panel,
.chart-card,
.cta-section,
.network-summary-card {
  padding: 28px;
}

.hero-topline,
.hero-actions,
.toolbar-meta,
.refresh-picker,
.task-card-head,
.task-card-meta,
.lemma-card-head,
.lemma-card-meta,
.provider-card-head,
.chart-card-header,
.label-with-tooltip,
.comparison-row-head,
.metric-list,
.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-topline,
.task-card-head,
.task-card-meta,
.lemma-card-head,
.lemma-card-meta,
.provider-card-head,
.chart-card-header,
.comparison-row-head,
.metric-list,
.timeline-item,
.toolbar {
  justify-content: space-between;
}

.eyebrow {
  margin: 0;
  color: #8fb3ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-copy-block h1,
.story-card h2,
.section-intro h2,
.cta-copy h2,
.panel h2,
.hero-panel h2 {
  margin: 0;
}

.hero-copy-block h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy,
.section-intro p,
.panel-header p,
.secondary-cell,
.empty-state,
.toolbar-meta,
.task-age,
.story-card p,
.feature-card p,
.audience-card p,
.audience-card span,
.proof-card p,
.hero-panel-copy p,
.provider-card p,
.provider-card span,
.network-summary-copy,
.chart-card-copy,
.comparison-detail,
.cta-copy p {
  color: #93a3c3;
}

.hero-copy-large {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 22px;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #eff5ff;
  font-weight: 700;
  text-decoration: none;
  transition: 160ms ease;
}

.button-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: rgba(129, 140, 248, 0.32);
}

.button-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.button-secondary,
.button-ghost {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.2);
}

.button-secondary:hover,
.button-ghost:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.34);
}

.button-ghost:disabled {
  opacity: 0.6;
  cursor: wait;
}

.proof-grid {
  margin-top: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-card,
.step-card,
.feature-card,
.audience-card,
.provider-card,
.command-card,
.stat-card {
  padding: 18px;
}

.proof-card {
  background: rgba(8, 14, 26, 0.72);
}

.proof-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.65rem;
  color: #eff5ff;
}

.proof-card span {
  display: block;
  color: #dbe7ff;
  font-weight: 600;
}

.proof-card p {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.hero-panel-copy {
  display: grid;
  gap: 12px;
}

.hero-panel-copy p {
  margin: 0;
}

.banner {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.banner-info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.25);
  color: #d8e8ff;
}

.banner-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
  color: #ffd7d7;
}

.story-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.story-card-strong {
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(10, 15, 28, 0.84));
}

.story-card p:last-child {
  margin-bottom: 0;
}

.section-block {
  display: grid;
  gap: 18px;
}

.section-intro {
  max-width: 780px;
}

.section-intro p:last-child {
  margin-bottom: 0;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-number {
  display: inline-block;
  margin-bottom: 16px;
  color: #7dd3fc;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step-card h3,
.feature-card h3,
.audience-card h3,
.command-card h3,
.provider-card strong {
  margin: 0 0 10px;
}

.step-card p,
.feature-card p,
.provider-card p,
.command-card pre,
.audience-card p,
.audience-card span {
  margin: 0;
}

.feature-grid,
.audience-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-card {
  display: grid;
  gap: 10px;
}

.audience-card span {
  font-size: 0.92rem;
}

.toolbar {
  padding: 14px 16px;
}

.toolbar-simple {
  margin-bottom: 0;
}

.network-summary-card {
  display: grid;
  gap: 10px;
}

.network-summary-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.toolbar-meta {
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.refresh-picker {
  color: #dce7ff;
}

.refresh-picker select {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.95);
  color: inherit;
  padding: 8px 12px;
}

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

.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-card {
  display: grid;
  gap: 16px;
}

.chart-card-header {
  align-items: flex-start;
}

.label-with-tooltip {
  color: #dbe7ff;
  font-weight: 700;
}

.tooltip-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #bcd2ff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: help;
  outline: none;
}

.tooltip-bubble {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(260px, calc(100vw - 48px));
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.38);
  color: #dbe7ff;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.tooltip-chip:hover .tooltip-bubble,
.tooltip-chip:focus-visible .tooltip-bubble {
  opacity: 1;
}

.chart-card-value {
  display: block;
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  line-height: 1.05;
  color: #eff5ff;
}

.chart-card-copy {
  margin: -4px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.stacked-bar {
  display: flex;
  overflow: hidden;
  min-height: 12px;
  width: 100%;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.stacked-bar-empty {
  display: block;
  width: 100%;
  background: rgba(51, 65, 85, 0.45);
}

.stacked-bar-segment {
  display: block;
  min-width: 6px;
}

.chart-legend,
.comparison-bars {
  display: grid;
  gap: 10px;
}

.legend-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: #c7d6f0;
  font-size: 0.92rem;
}

.legend-row strong {
  color: #eff5ff;
  font-size: 0.92rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.comparison-row {
  display: grid;
  gap: 6px;
}

.comparison-row-head {
  color: #c7d6f0;
  font-size: 0.92rem;
}

.comparison-row-head strong {
  color: #eff5ff;
}

.comparison-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.comparison-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.comparison-detail {
  font-size: 0.84rem;
}

.tone-default {
  background: linear-gradient(90deg, #64748b, #94a3b8);
}

.tone-success {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.tone-warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.tone-danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.tone-accent {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.panel-header {
  margin-bottom: 16px;
}

.panel-header p {
  margin: 6px 0 0;
  font-size: 0.94rem;
}

.primary-cell {
  color: #eff5ff;
  font-weight: 600;
}

.secondary-cell {
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pill-live,
.pill-completed {
  background: rgba(34, 197, 94, 0.16);
  color: #b5f6c7;
  border-color: rgba(74, 222, 128, 0.28);
}

.pill-demo,
.pill-assigned {
  background: rgba(59, 130, 246, 0.16);
  color: #cde1ff;
  border-color: rgba(96, 165, 250, 0.3);
}

.pill-pending,
.pill-release {
  background: rgba(245, 158, 11, 0.14);
  color: #ffe0a8;
  border-color: rgba(251, 191, 36, 0.28);
}

.pill-running {
  background: rgba(6, 182, 212, 0.15);
  color: #bdf4ff;
  border-color: rgba(34, 211, 238, 0.28);
}

.pill-failed,
.pill-reserve {
  background: rgba(239, 68, 68, 0.14);
  color: #ffd0d0;
  border-color: rgba(248, 113, 113, 0.28);
}

.pill-transfer {
  background: rgba(168, 85, 247, 0.14);
  color: #ead5ff;
  border-color: rgba(192, 132, 252, 0.28);
}

.task-list,
.timeline,
.provider-grid,
.lemma-list {
  display: grid;
  gap: 12px;
}

.task-card,
.timeline-item,
.provider-card,
.lemma-card {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(12, 20, 35, 0.75);
}

.task-card,
.timeline-item,
.lemma-card {
  padding: 14px;
}

.task-card-meta {
  margin-top: 10px;
  color: #cbd8ef;
  font-size: 0.88rem;
  align-items: flex-start;
}

.lemma-card {
  display: grid;
  gap: 10px;
}

.lemma-card-meta {
  color: #cbd8ef;
  font-size: 0.88rem;
  align-items: flex-start;
}

.lemma-code {
  margin: 0;
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 14, 26, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #dbe7ff;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.task-age {
  font-size: 0.85rem;
  white-space: nowrap;
}

.timeline-item {
  align-items: flex-start;
}

.timeline-copy {
  min-width: 0;
}

.provider-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.provider-card {
  display: grid;
  gap: 8px;
}

.provider-card p {
  color: #dbe7ff;
  font-weight: 600;
}

.metric-list {
  margin: 0;
  padding: 0;
}

.metric-list dt {
  color: #93a3c3;
}

.metric-list dd {
  margin: 0;
  color: #eff5ff;
  font-weight: 600;
}

.compact-metrics {
  display: grid;
  gap: 12px;
}

.cta-section {
  display: grid;
  gap: 22px;
}

.command-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-card pre {
  overflow-x: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(8, 14, 26, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #dbe7ff;
  line-height: 1.5;
}

.empty-state {
  padding: 8px 0 4px;
}

@media (max-width: 1100px) {
  .hero-section,
  .story-grid,
  .overview-grid,
  .panel-grid,
  .steps-grid,
  .feature-grid,
  .audience-grid,
  .command-grid,
  .provider-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 20px;
  }

  .hero-copy-block,
  .hero-panel,
  .story-card,
  .panel,
  .cta-section {
    padding: 22px;
  }

  .hero-topline,
  .hero-panel-header,
  .toolbar,
  .task-card-head,
  .task-card-meta,
  .provider-card-head,
  .chart-card-header,
  .comparison-row-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }
}
