.demo-body {
  background: #f4f6fa;
  overflow-x: hidden;
}

.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding: clamp(52px, 7vw, 86px) clamp(20px, 5vw, 72px);
  background: #0b1220;
  color: #f8fafc;
}

.demo-hero .eyebrow {
  color: #8fb4ff;
}

.demo-hero h1 {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.demo-subtitle {
  max-width: 790px;
  margin-bottom: 28px;
  color: #dbe5f4;
  font-size: clamp(18px, 2vw, 22px);
  overflow-wrap: anywhere;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-status-panel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.demo-status-panel p {
  margin: 4px 0 0;
  color: #dbe5f4;
  overflow-wrap: anywhere;
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
  background: #8fb4ff;
  box-shadow: 0 0 0 6px rgba(143, 180, 255, 0.16);
}

.demo-status-panel[data-tone="ready"] .status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.demo-status-panel[data-tone="running"] .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18);
}

.demo-status-panel[data-tone="error"] .status-dot {
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.18);
}

.demo-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.demo-trust-strip span {
  padding: 16px clamp(16px, 4vw, 28px);
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.demo-shell {
  display: grid;
  gap: clamp(34px, 5vw, 58px);
  padding: clamp(42px, 6vw, 78px) clamp(20px, 5vw, 72px);
}

.empty-state,
.packet-summary,
.packet-section,
.approval-panel,
.audit-card,
.json-details {
  max-width: 1180px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.empty-state {
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
}

.packet-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
  padding: clamp(28px, 4vw, 44px);
}

.packet-summary h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

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

.metric {
  min-height: 78px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.packet-grid,
.packet-columns {
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin: 16px auto 0;
}

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

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

.packet-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.packet-card p,
.packet-card li,
.packet-section p,
.audit-card p {
  color: var(--muted);
}

.card-blue {
  border-top-color: var(--blue);
}

.card-green {
  border-top-color: var(--green);
}

.card-amber {
  border-top-color: var(--amber);
}

.card-red {
  border-top-color: var(--red);
}

.demo-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.packet-section {
  padding: clamp(28px, 4vw, 44px);
}

.timeline-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.timeline-marker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-alert {
  background: var(--blue);
}

.timeline-release {
  background: var(--amber);
}

.timeline-error {
  background: var(--red);
}

.timeline-list time {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timeline-list strong {
  display: block;
  margin-top: 2px;
}

.timeline-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

.timeline-list code {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue-dark);
  font-size: 13px;
}

.approval-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-color: #fed7aa;
  background: #fffaf4;
}

.button-disabled {
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fdba74;
  cursor: not-allowed;
}

.button-disabled:hover,
.button-disabled:focus-visible {
  transform: none;
}

.audit-section {
  display: grid;
  gap: 16px;
}

.audit-card {
  padding: clamp(28px, 4vw, 44px);
}

.audit-card h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.json-details {
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.json-details summary {
  cursor: pointer;
  padding: 18px 22px;
  color: var(--blue-dark);
  font-weight: 900;
}

.json-details pre {
  max-height: 520px;
  margin: 0;
  padding: 22px;
  overflow: auto;
  background: #0b1220;
  color: #dbe5f4;
  font-size: 13px;
}

@media (max-width: 980px) {
  .demo-hero,
  .demo-trust-strip,
  .packet-summary,
  .packet-grid,
  .packet-columns {
    grid-template-columns: 1fr;
  }

  .demo-status-panel {
    align-items: center;
  }
}

@media (max-width: 620px) {
  .demo-hero,
  .demo-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .demo-actions,
  .demo-actions .button,
  .metric-grid,
  .audit-meta {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .demo-hero h1 {
    font-size: 36px;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
  }

  .approval-panel {
    align-items: stretch;
    flex-direction: column;
  }
}
