/* ============================= */
/* CVORAH STATIC LIVE DEMO */
/* ============================= */

.demo-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.demo-hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.demo-shell {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 30px;
  padding: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  position: relative;
  overflow: hidden;
}

.demo-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(53, 92, 255, 0.28), transparent 38%),
    radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.18), transparent 34%);
  pointer-events: none;
}

.demo-shell > * {
  position: relative;
  z-index: 2;
}

/* ============================= */
/* TOPBAR */
/* ============================= */

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.demo-topbar strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
}

.demo-topbar span {
  display: block;
  color: #cbd5e1;
  font-size: 0.85rem;
  margin-top: 2px;
}

.demo-topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.demo-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 9px 13px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.demo-topbar-btn:hover {
  transform: translateY(-2px);
}

.demo-pricing-btn {
  background: linear-gradient(135deg, #f97316, #e11d48, #a21caf);
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}

.demo-pricing-btn:hover {
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.38);
}

.demo-app-btn {
  background: linear-gradient(135deg, #2563eb, #06b6d4, #8b5cf6);
  box-shadow: 0 10px 24px rgba(53, 92, 255, 0.34);
}

.demo-app-btn:hover {
  box-shadow: 0 14px 30px rgba(53, 92, 255, 0.44);
}

.demo-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.demo-status.is-running {
  background: rgba(56, 189, 248, 0.12);
  color: #67e8f9;
}

.demo-status.is-complete {
  background: rgba(52, 211, 153, 0.13);
  color: #6ee7b7;
}

/* ============================= */
/* DEMO GRID */
/* ============================= */

.demo-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
}

/* ============================= */
/* PANELS */
/* ============================= */

.demo-upload-panel,
.demo-report-panel {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(12px);
}

.demo-panel-title,
.report-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.demo-panel-title i {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.12);
  color: #67e8f9;
}

.demo-panel-title strong,
.report-header strong {
  display: block;
  color: #ffffff;
}

.demo-panel-title span,
.report-header span {
  display: block;
  color: #cbd5e1;
  font-size: 0.86rem;
  margin-top: 2px;
}

/* ============================= */
/* UPLOAD MOCK */
/* ============================= */

.fake-upload-box {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.18);
  transition: all 0.3s ease;
}

.fake-upload-box.is-active {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}

.upload-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #355cff, #8b5cf6);
  box-shadow: 0 12px 30px rgba(53, 92, 255, 0.32);
  flex-shrink: 0;
}

.fake-upload-box strong {
  display: block;
  color: #ffffff;
}

.fake-upload-box span {
  display: block;
  color: #cbd5e1;
  font-size: 0.86rem;
  margin-top: 3px;
}

.upload-check {
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.13);
  color: #6ee7b7;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s ease;
}

.upload-check.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================= */
/* JOB BOX */
/* ============================= */

.fake-job-box {
  margin-top: 14px;
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.job-box-header {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  margin-bottom: 8px;
}

.job-box-header i {
  color: #a78bfa;
}

.fake-job-box p {
  color: #cbd5e1;
  font-size: 0.91rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================= */
/* PROGRESS */
/* ============================= */

.analysis-progress {
  margin-top: 18px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.progress-header span {
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 700;
}

.progress-header strong {
  color: #67e8f9;
  font-size: 0.84rem;
}

.progress-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #355cff, #8b5cf6);
  box-shadow: 0 0 22px rgba(53, 92, 255, 0.45);
  transition: width 0.45s ease;
}

.demo-run-btn {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #355cff, #8b5cf6);
  box-shadow: 0 14px 32px rgba(53, 92, 255, 0.30);
  transition: all 0.25s ease;
}

.demo-run-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(53, 92, 255, 0.40);
}

.demo-run-btn i {
  margin-right: 8px;
}

.demo-run-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ============================= */
/* REPORT */
/* ============================= */

.report-header {
  justify-content: space-between;
}

.report-ready {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 800;
}

.report-ready i {
  font-size: 0.55rem;
}

.report-ready.is-ready {
  background: rgba(52, 211, 153, 0.13);
  color: #6ee7b7;
}

.score-area {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.score-circle-demo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#355cff 0%, rgba(255, 255, 255, 0.08) 0%);
  position: relative;
  transition: background 0.35s ease;
}

.score-circle-demo::after {
  content: "";
  position: absolute;
  inset: 13px;
  background: #0f172a;
  border-radius: 50%;
}

.score-circle-demo div {
  position: relative;
  z-index: 2;
  text-align: center;
}

.score-circle-demo strong {
  display: block;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.score-circle-demo small {
  color: #cbd5e1;
  font-size: 0.8rem;
}

.score-summary h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.score-summary p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.demo-metric {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 14px;
  opacity: 0.45;
  transform: translateY(6px);
  transition: all 0.35s ease;
}

.demo-metric.is-visible {
  opacity: 1;
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.065);
}

.demo-metric span {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.demo-metric strong {
  color: #ffffff;
  font-size: 0.98rem;
}

/* ============================= */
/* BEFORE / AFTER */
/* ============================= */

.before-after-card {
  margin-top: 14px;
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.45s ease;
}

.before-after-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.before-after-header {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  margin-bottom: 12px;
}

.before-after-header i {
  color: #67e8f9;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.before-after-grid div {
  border-radius: 14px;
  padding: 13px;
  background: rgba(0, 0, 0, 0.18);
}

.before-after-grid span {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
}

.before-label {
  color: #fb7185;
}

.after-label {
  color: #6ee7b7;
}

.before-after-grid p {
  color: #cbd5e1;
  line-height: 1.55;
  font-size: 0.86rem;
  margin: 0;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1050px) {
  .demo-page {
    align-items: flex-start;
    padding: 28px 0 44px;
  }

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

  .demo-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-topbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {
  .demo-shell {
    padding: 20px;
  }

  .score-area,
  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .score-circle-demo {
    margin: 0 auto;
  }

  .score-summary {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .demo-shell {
    padding: 16px;
    border-radius: 24px;
  }

  .demo-topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .demo-topbar-btn,
  .demo-status {
    width: 100%;
  }

  .demo-metrics {
    grid-template-columns: 1fr;
  }

  .report-header {
    align-items: flex-start;
    flex-direction: column;
  }
}