/* Public /demo page — ClearLayer brand: Navy #0D1B2E, Blue #5078DC, Sky #64B4F0 */

.demo-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #0d1b2e;
  color: #e8eef7;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 680px;
  margin: 0 auto;
}

.demo-header__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.demo-lang-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(100, 180, 240, 0.35);
  color: #e8eef7;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
}

.demo-sign-in {
  color: #64b4f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.demo-sign-in:hover {
  text-decoration: underline;
}

.demo-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.demo-hero h1 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: #fff;
}

.demo-hero__sub {
  margin: 0 0 1.5rem;
  color: #a8b8d0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.demo-dropzone {
  border: 2px dashed rgba(80, 120, 220, 0.65);
  border-radius: 14px;
  padding: 2rem 1.25rem;
  text-align: center;
  background: rgba(80, 120, 220, 0.06);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.demo-dropzone.is-dragover {
  border-color: #64b4f0;
  background: rgba(100, 180, 240, 0.12);
}

.demo-dropzone__label {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.demo-dropzone__hint {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: #8fa3be;
}

.demo-filename {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: #64b4f0;
  font-weight: 600;
}

.demo-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

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

.demo-btn--primary {
  background: linear-gradient(135deg, #5078dc, #64b4f0);
  color: #0d1b2e;
}

.demo-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e8eef7;
  border: 1px solid rgba(100, 180, 240, 0.4);
}

.demo-btn--ghost {
  background: transparent;
  color: #64b4f0;
  border: 1px solid rgba(100, 180, 240, 0.35);
}

.demo-btn--lg {
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
}

.demo-progress {
  margin: 1.5rem 0;
}

.demo-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.demo-progress__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5078dc, #64b4f0);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.demo-progress__label {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  color: #64b4f0;
}

.demo-rate-limit {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.35);
  text-align: center;
}

.demo-rate-limit p {
  margin: 0 0 1rem;
}

.demo-summary {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #a8b8d0;
}

.demo-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(80, 120, 220, 0.25);
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.demo-table th,
.demo-table td {
  padding: 0.55rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-table th {
  color: #64b4f0;
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-field-low {
  color: #fbbf24;
}

.demo-verify-badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-cta {
  margin-top: 2.5rem;
  padding: 2rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(80, 120, 220, 0.18), rgba(13, 27, 46, 0.9));
  border: 1px solid rgba(100, 180, 240, 0.25);
  text-align: center;
}

.demo-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.demo-cta p {
  margin: 0 0 1.25rem;
  color: #a8b8d0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.demo-cta .demo-btn--ghost {
  margin-top: 0.75rem;
}

.demo-footer {
  max-width: 680px;
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7f99;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .demo-table {
    font-size: 0.75rem;
  }
  .demo-upload-actions {
    flex-direction: column;
  }
  .demo-upload-actions .demo-btn {
    width: 100%;
  }
}
