:root {
  --bg: #eef2f7;
  --bg-strong: #dde7f5;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(148, 163, 184, 0.22);
  --text: #0f172a;
  --muted: #5b6475;
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.14);
  --shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(10, 132, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(110, 231, 183, 0.16), transparent 26%),
    linear-gradient(180deg, #f6f9fd 0%, #eaf0f7 48%, #eef2f7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.inline-link {
  color: var(--accent);
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.hero,
.section,
.tool-card,
.glass-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero {
  padding: 28px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  box-shadow: var(--shadow);
}

.hero-nav,
.hero-body,
.action-row,
.tool-head,
.inline-fields {
  display: flex;
  align-items: center;
}

.hero-nav,
.hero-body,
.scenario-grid,
.tool-grid,
.action-grid,
.privacy-grid {
  gap: 18px;
}

.hero-nav {
  justify-content: space-between;
  margin-bottom: 40px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #37c9ff, #0a84ff);
  box-shadow: 0 0 18px rgba(10, 132, 255, 0.42);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-links {
  display: inline-flex;
  gap: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
}

.hero-links a:hover {
  color: var(--text);
}

.hero-body {
  justify-content: space-between;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  flex: 1;
}

.hero-copy {
  max-width: 620px;
  padding: 12px 4px 12px 2px;
}

.eyebrow,
.section-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.hero-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p,
.tool-card p,
.glass-card p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, #2b95ff, #0a84ff);
  color: #fff;
  box-shadow: 0 16px 28px rgba(10, 132, 255, 0.26);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-panel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-card {
  position: relative;
  width: min(100%, 460px);
  padding: 22px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.device-glow {
  position: absolute;
  inset: -60px auto auto -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.16);
  filter: blur(18px);
}

.device-header {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.device-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
}

.metric strong {
  display: block;
  font-size: 52px;
  letter-spacing: -0.04em;
}

.metric span,
.metric-list {
  color: var(--muted);
}

.metric-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.metric-list div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.section {
  margin-top: 24px;
  padding: 32px 28px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.5));
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.scenario-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.glass-card,
.tool-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.glass-card {
  padding: 22px;
}

.glass-card h3,
.tool-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

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

.tool-card-hero {
  order: -1;
}

.tool-card {
  padding: 24px;
}

.tool-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.image-mode-tabs {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(240, 246, 255, 0.9);
  margin-bottom: 16px;
}

.mode-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
}

.mode-tab.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.stack,
.preview-card {
  display: grid;
  gap: 12px;
}

.control-panel {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.control-label,
.control-value {
  font-size: 14px;
  font-weight: 600;
}

.control-value {
  color: var(--accent);
}

.control-panel input[type="range"] {
  width: 100%;
}

.control-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

textarea,
input[type="text"],
input[type="password"],
input[type="file"],
select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  color: var(--text);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.action-row,
.action-grid {
  margin-top: 14px;
}

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

.result-panel,
.table-wrap,
.download-list,
.preview-card {
  margin-top: 16px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 251, 255, 0.9);
}

.result-panel {
  min-height: 180px;
  padding: 18px;
  white-space: pre-wrap;
  line-height: 1.7;
  overflow: auto;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
}

th {
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  position: sticky;
  top: 0;
}

.download-list {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.download-meta {
  min-width: 0;
}

.download-title {
  font-weight: 600;
}

.download-name {
  margin-top: 4px;
  color: var(--muted);
  word-break: break-all;
}

.download-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #2b95ff, #0a84ff);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.preview-card {
  padding: 14px;
}

.ocr-result-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 251, 255, 0.9);
}

.ocr-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ocr-result-summary {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.ocr-result-textarea {
  width: 100%;
  min-height: 220px;
  margin-top: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  padding: 14px 16px;
  color: var(--text);
  line-height: 1.7;
  resize: vertical;
}

.ocr-action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

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

.preview-pane {
  display: grid;
  gap: 10px;
}

.preview-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.preview-stage {
  min-height: 220px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-stage.checkerboard {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, rgba(148, 163, 184, 0.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(148, 163, 184, 0.18) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.18) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.18) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.preview-card img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 18px;
  display: none;
}

.mini-program-card {
  align-items: center;
  text-align: center;
}

.mini-program-qr {
  width: min(100%, 260px);
  margin: 8px auto 0;
  display: block;
  border-radius: 28px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.mini-program-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.contact-entry {
  margin-top: 14px;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-dialog {
  position: relative;
  width: min(520px, calc(100% - 24px));
  margin: min(12vh, 88px) auto 0;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.contact-dialog-head,
.contact-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-dialog-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.contact-dialog h3 {
  margin: 8px 0 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.contact-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-dialog-copy {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-email-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(240, 246, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.contact-email-label {
  font-size: 13px;
  color: var(--muted);
}

.contact-email-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  word-break: break-all;
}

.contact-dialog-actions {
  margin-top: 18px;
}

.captcha-dialog .stack {
  margin-top: 14px;
}

.captcha-actions {
  margin-top: 18px;
}

.captcha-actions .button {
  flex: 1;
}

.captcha-dialog input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.96);
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(30px);
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s ease;
  z-index: 20;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 960px) {
  .hero-body,
  .tool-grid,
  .scenario-grid,
  .privacy-grid,
  .action-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-nav {
    display: grid;
    gap: 14px;
  }

  .hero-links {
    flex-wrap: wrap;
  }

  .image-mode-tabs,
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .image-preview-grid {
    grid-template-columns: 1fr;
  }

  .ocr-action-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    margin: 10px auto 28px;
  }

  .hero,
  .section {
    padding: 20px;
    border-radius: 26px;
  }

  .hero-copy h1,
  .section-heading h2 {
    letter-spacing: -0.05em;
  }

  .contact-dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   P0+P1 改造新增样式
   ============================================================ */

/* Hero 强承诺三点 */
.hero-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.hero-point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-point strong {
  grid-column: 1 / -1;
  color: var(--text);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.hero-point span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Hero 信任栏 */
.hero-trust {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-trust-item strong {
  color: var(--text);
  font-weight: 600;
}

/* 工具卡的提示行（chip + 示例按钮） */
.hint-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 12px;
}

.hint-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.link-btn {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.link-btn:hover {
  background: var(--accent-soft);
}

/* 结果区空态 */
.result-panel.result-empty {
  color: var(--muted);
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* PDF 上传 dropzone */
.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 26px 18px;
  border-radius: 22px;
  border: 1.5px dashed rgba(10, 132, 255, 0.36);
  background: linear-gradient(180deg, rgba(240, 246, 255, 0.7), rgba(255, 255, 255, 0.7));
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-align: center;
}

.upload-zone:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(225, 238, 255, 0.85), rgba(255, 255, 255, 0.85));
}

.upload-zone.is-dragover {
  border-color: var(--accent);
  background: rgba(10, 132, 255, 0.08);
}

.upload-zone.has-file {
  border-style: solid;
  border-color: rgba(10, 132, 255, 0.6);
  background: rgba(10, 132, 255, 0.06);
}

.upload-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.upload-title {
  font-weight: 600;
  color: var(--text);
}

.upload-meta {
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
  max-width: 100%;
}

/* 行内说明文字 */
.inline-note {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 196, 0, 0.08);
  border: 1px solid rgba(255, 196, 0, 0.22);
  color: #92651a;
  font-size: 13px;
  line-height: 1.6;
}

/* 隐私四条承诺列表 */
.privacy-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.privacy-list li {
  position: relative;
  padding: 10px 12px 10px 30px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #37c9ff, #0a84ff);
  box-shadow: 0 0 10px rgba(10, 132, 255, 0.36);
}

.privacy-list li strong {
  color: var(--text);
  margin-right: 4px;
}

/* 按钮 loading 态 */
.button.is-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.button.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: btn-spin 0.7s linear infinite;
}

.button-secondary.is-loading::after {
  border-color: rgba(15, 23, 42, 0.18);
  border-top-color: var(--text);
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.site-footer {
  margin-top: 28px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 24px;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  margin: 6px 0 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-col li,
.footer-col a {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.footer-icp {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-trust { display: none; }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer {
    padding: 22px;
    border-radius: 24px;
  }
}

/* ── Demo Carousel ──────────────────────────────── */
.demo-carousel {
  position: relative;
  width: min(100%, 480px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(244,248,255,0.6));
  border: 1px solid rgba(255,255,255,0.8);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15,23,42,0.10);
}

.demo-slide {
  display: none;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  animation: demoFadeIn 0.45s ease;
}
.demo-slide.is-active { display: flex; }

@keyframes demoFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.demo-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 270px;
  padding: 32px;
}

/* mini UI mockup card */
.mock-ui {
  width: 210px;
  padding: 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.mock-bar {
  height: 7px; width: 50%;
  background: #e2e8f0; border-radius: 4px;
  margin-bottom: 14px;
}

/* ── Scan mock ── */
.mock-img-area {
  height: 72px; background: #f1f5f9; border-radius: 8px;
  position: relative; overflow: hidden; margin-bottom: 14px;
}
.mock-scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  animation: scanDown 2.4s ease-in-out infinite;
}
@keyframes scanDown {
  0%,100% { top: -2px; }
  50%     { top: calc(100% + 2px); }
}
.mock-lines { display: flex; flex-direction: column; gap: 6px; }
.mock-lines i {
  display: block; height: 6px; background: #e2e8f0;
  border-radius: 3px;
  animation: lineGrow 2.4s ease-in-out infinite;
}
.mock-lines i:nth-child(1) { width:100%; animation-delay:.2s; }
.mock-lines i:nth-child(2) { width:80%;  animation-delay:.4s; }
.mock-lines i:nth-child(3) { width:55%;  animation-delay:.6s; }
@keyframes lineGrow {
  0%,30%   { opacity:.3; transform:scaleX(.4); transform-origin:left; }
  60%,100% { opacity:1;  transform:scaleX(1); }
}

/* ── ID-photo mock ── */
.mock-avatar {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg,#94a3b8,#cbd5e1);
  animation: avatarRing 3s ease-in-out infinite;
}
@keyframes avatarRing {
  0%,100% { box-shadow: 0 0 0 4px #e54d42; }
  33%     { box-shadow: 0 0 0 4px #1989fa; }
  66%     { box-shadow: 0 0 0 4px #eee; }
}
.mock-colors { display:flex; justify-content:center; gap:8px; }
.mock-colors i {
  width:18px; height:18px; border-radius:50%;
  border: 2px solid rgba(255,255,255,0.6);
}

/* ── PDF mock ── */
.mock-doc {
  height: 72px; background: #f8fafc; border-radius: 6px;
  position: relative; overflow: hidden; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
}
.mock-watermark {
  font-size: 12px; font-weight: 700; color: rgba(239,68,68,0.25);
  transform: rotate(-25deg); letter-spacing: 2px;
  animation: stampIn 2.5s ease-in-out infinite;
}
@keyframes stampIn {
  0%,20%  { opacity:0; transform:rotate(-25deg) scale(1.8); }
  40%,80% { opacity:1; transform:rotate(-25deg) scale(1); }
  100%    { opacity:0; }
}

/* ── Table mock ── */
.mock-table { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; }
.mock-table i {
  height:20px; background:#e2e8f0; border-radius:4px;
  animation: cellFill 3s ease-in-out infinite;
}
.mock-table i:nth-child(1) { animation-delay:0s; }
.mock-table i:nth-child(2) { animation-delay:.15s; }
.mock-table i:nth-child(3) { animation-delay:.3s; }
.mock-table i:nth-child(4) { animation-delay:.45s; }
.mock-table i:nth-child(5) { animation-delay:.6s; }
.mock-table i:nth-child(6) { animation-delay:.75s; }
@keyframes cellFill {
  0%,20%  { opacity:.2; transform:scale(.8); }
  40%,70% { opacity:1;  transform:scale(1); }
  90%,100%{ opacity:.2; transform:scale(.8); }
}

/* ── Scan output chips ── */
.mock-out-row { display:flex; gap:6px; margin-top:10px; }
.mock-out-chip {
  padding:3px 10px; border-radius:6px; font-size:11px; font-weight:600;
  background:#f1f5f9; color:#64748b;
}
.mock-out-chip--accent {
  background:rgba(10,132,255,0.12); color:#0a84ff;
}

/* ── Label & dots ── */
.demo-label { padding: 14px 18px 6px; }
.demo-label strong { display:block; font-size:16px; margin-bottom:2px; }
.demo-label span { font-size:13px; color:var(--muted); }

.demo-dots {
  display:flex; justify-content:center; gap:8px;
  padding: 8px 0 14px;
}
.demo-dot {
  width:8px; height:8px; border-radius:50%; border:0; padding:0;
  background: rgba(148,163,184,0.3); cursor:pointer;
  transition: background .3s, transform .3s;
}
.demo-dot.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Online PS */
.ps-tool-card {
  min-height: 360px;
}

.ps-card-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 150px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.88)),
    repeating-conic-gradient(rgba(255, 255, 255, 0.16) 0 25%, transparent 0 50%) 0 / 24px 24px;
}

.ps-card-preview span {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ps-card-preview span:nth-child(1) {
  grid-row: span 2;
}

.ps-card-preview strong {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: #fff;
  font-size: 34px;
  letter-spacing: 0;
}

.ps-page {
  min-height: 100vh;
  background: #0f172a;
  color: #fff;
}

.ps-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.ps-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.96);
}

.ps-topbar h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.ps-topbar p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.ps-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ps-frame-wrap {
  min-height: 0;
  background: #111827;
}

.ps-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 73px);
  border: 0;
  background: #111827;
}

@media (max-width: 720px) {
  .ps-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ps-frame {
    height: calc(100vh - 132px);
  }
}

/* ── Hero Workflow Demo v2 ───────────────────────── */
.workflow-demo {
  position: relative;
  width: min(100%, 520px);
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-glow {
  position: absolute;
  inset: 8% 2% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(10, 132, 255, 0.32), transparent 56%),
    radial-gradient(circle at 70% 72%, rgba(16, 185, 129, 0.22), transparent 52%);
  filter: blur(14px);
  animation: workflowGlow 5.5s ease-in-out infinite;
}

.workflow-window {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(241,247,255,0.72));
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.workflow-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.64);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.workflow-titlebar strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  white-space: nowrap;
}

.window-dots {
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}
.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.window-dots i:nth-child(1) { background: #fb7185; }
.window-dots i:nth-child(2) { background: #fbbf24; }
.window-dots i:nth-child(3) { background: #34d399; }

.workflow-stage {
  display: grid;
  grid-template-columns: 1fr 34px 1.12fr;
  gap: 14px;
  padding: 22px;
  min-height: 286px;
  align-items: stretch;
}

.upload-card,
.result-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.upload-card {
  padding: 16px;
  animation: uploadFloat 4.8s ease-in-out infinite;
}

.upload-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
}

.file-preview {
  display: grid;
  gap: 14px;
}

.paper-sheet {
  position: relative;
  height: 140px;
  border-radius: 18px;
  padding: 22px 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10,132,255,0.10), transparent 36%),
    #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.paper-sheet span {
  display: block;
  height: 8px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #cbd5e1;
  transform-origin: left;
  animation: paperLine 4.8s ease-in-out infinite;
}
.paper-sheet span:nth-child(1) { width: 72%; animation-delay: .1s; }
.paper-sheet span:nth-child(2) { width: 92%; animation-delay: .24s; }
.paper-sheet span:nth-child(3) { width: 60%; animation-delay: .38s; }
.paper-sheet span:nth-child(4) { width: 82%; animation-delay: .52s; }

.scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
  background: linear-gradient(180deg, rgba(10,132,255,0), rgba(10,132,255,0.72), rgba(10,132,255,0));
  box-shadow: 0 0 22px rgba(10,132,255,0.56);
  animation: workflowScan 4.8s ease-in-out infinite;
}

.file-meta strong,
.file-meta small {
  display: block;
}
.file-meta strong {
  font-size: 15px;
  color: #0f172a;
}
.file-meta small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.process-lane {
  position: relative;
  display: grid;
  place-items: center;
}
.process-lane::before {
  content: '';
  width: 2px;
  height: 84%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(10,132,255,0.38), transparent);
}
.process-lane span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(10,132,255,0.52);
  animation: dataPulse 2.4s ease-in-out infinite;
}
.process-lane span:nth-child(2) { animation-delay: .55s; }
.process-lane span:nth-child(3) { animation-delay: 1.1s; }

.result-card {
  padding: 16px;
  animation: resultRise 4.8s ease-in-out infinite;
}

.result-head,
.export-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.result-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.result-head strong {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 12px;
}

.result-lines {
  display: grid;
  gap: 8px;
  margin: 18px 0 14px;
}
.result-lines i {
  height: 8px;
  border-radius: 999px;
  background: #dbeafe;
  animation: resultLine 4.8s ease-in-out infinite;
}
.result-lines i:nth-child(1) { width: 96%; animation-delay: .4s; }
.result-lines i:nth-child(2) { width: 78%; animation-delay: .6s; }
.result-lines i:nth-child(3) { width: 88%; animation-delay: .8s; }

.result-table {
  display: grid;
  grid-template-columns: .8fr 1.15fr .8fr;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 11px;
}
.result-table b,
.result-table span {
  padding: 8px 7px;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.result-table b {
  background: #0f172a;
  color: #fff;
}
.result-table span {
  background: rgba(248,251,255,0.94);
  color: #475569;
}

.export-row {
  justify-content: flex-start;
  margin-top: 14px;
}
.export-row span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(10,132,255,0.10);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  animation: exportPop 4.8s ease-in-out infinite;
}
.export-row span:nth-child(2) { animation-delay: .14s; }
.export-row span:nth-child(3) { animation-delay: .28s; }

.workflow-caption {
  padding: 0 22px 22px;
}
.workflow-caption strong,
.workflow-caption span {
  display: block;
}
.workflow-caption strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}
.workflow-caption span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@keyframes workflowGlow {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: .82; }
  50% { transform: translate3d(-18px,12px,0) scale(1.04); opacity: 1; }
}
@keyframes uploadFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes workflowScan {
  0%, 18% { top: -14px; opacity: 0; }
  32%, 72% { opacity: 1; }
  58%, 100% { top: calc(100% + 14px); opacity: 0; }
}
@keyframes paperLine {
  0%, 24% { opacity: .35; transform: scaleX(.55); }
  46%, 100% { opacity: 1; transform: scaleX(1); }
}
@keyframes dataPulse {
  0% { transform: translateY(-90px) scale(.72); opacity: 0; }
  24%, 70% { opacity: 1; }
  100% { transform: translateY(90px) scale(1.08); opacity: 0; }
}
@keyframes resultRise {
  0%, 18% { transform: translateY(7px); }
  42%, 100% { transform: translateY(0); }
}
@keyframes resultLine {
  0%, 38% { opacity: .2; transform: scaleX(.35); transform-origin: left; }
  58%, 100% { opacity: 1; transform: scaleX(1); }
}
@keyframes exportPop {
  0%, 58% { transform: translateY(4px); opacity: .35; }
  72%, 100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 920px) {
  .workflow-demo {
    min-height: auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .workflow-stage {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .process-lane {
    height: 24px;
  }
  .process-lane::before {
    width: 84%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(10,132,255,0.38), transparent);
  }
  .process-lane span {
    animation-name: dataPulseMobile;
  }
  .workflow-titlebar span {
    display: none;
  }
  .workflow-caption {
    padding: 0 16px 18px;
  }
}

@keyframes dataPulseMobile {
  0% { transform: translateX(-130px) scale(.72); opacity: 0; }
  24%, 70% { opacity: 1; }
  100% { transform: translateX(130px) scale(1.08); opacity: 0; }
}
