:root {
  --bg: #f6f8f7;
  --bg-tinted: #edf3f2;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #0f1f1f;
  --text-muted: #4a6060;
  --border: #d5e2e0;
  --border-strong: #b4cbc8;
  --primary: #006a6a;
  --primary-hover: #005454;
  --primary-soft: #dff4f2;
  --primary-ink: #ffffff;
  --accent: #00d4be;
  --tertiary: #285f89;
  --shadow-sm: 0 2px 8px rgba(11, 45, 48, 0.05);
  --shadow-md: 0 14px 36px rgba(11, 45, 48, 0.09);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --bg: #0b1415;
  --bg-tinted: #101d1f;
  --surface: #132224;
  --surface-elevated: #172a2d;
  --text: #eaf4f3;
  --text-muted: #98b4b3;
  --border: #22393c;
  --border-strong: #2f4d52;
  --primary: #2bc2b8;
  --primary-hover: #44d6cc;
  --primary-soft: rgba(43, 194, 184, 0.14);
  --primary-ink: #041d1d;
  --accent: #00e5cc;
  --tertiary: #7cb8e8;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-icon {
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.main-nav a {
  transition: color 0.16s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-pill,
.lang-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.icon-pill:hover,
.lang-pill:hover {
  border-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.44rem 0.9rem;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 0.86rem 1.45rem;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 26%, transparent);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

/* Hero */
.hero {
  padding: 4.2rem 0 4.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.82rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 4.1vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.hero-lead {
  margin: 0 0 1.8rem;
  font-size: 1.07rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.7rem;
}

.trust-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.trust-strip li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.4rem;
}

/* Scanner visual card */
.scanner-stage {
  background: linear-gradient(145deg, #005b5b 0%, #0b415a 100%);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  color: #eaf8f7;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(128, 242, 233, 0.2);
}

.stage-topbar {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stage-chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.stage-chip-accent {
  background: rgba(0, 229, 204, 0.2);
  color: #9bf7ec;
}

.viewfinder {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(4, 24, 30, 0.28);
  overflow: hidden;
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid #80f2e9;
}

.corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

.paper-sheet {
  background: #ffffff;
  color: #163030;
  border-radius: 10px;
  padding: 1.15rem 1.1rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.paper-tag {
  color: #006a6a;
}

.paper-lock {
  padding: 0.16rem 0.45rem;
  border-radius: 5px;
  background: #dff4f2;
  color: #005454;
}

.paper-line {
  height: 8px;
  border-radius: 99px;
  background: #d7e5e6;
  margin-bottom: 0.55rem;
}

.paper-line.strong {
  height: 10px;
  background: #006a6a;
}

.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-76 { width: 76%; }
.w-85 { width: 85%; }
.w-88 { width: 88%; }
.w-92 { width: 92%; }

.paper-divider {
  height: 1px;
  background: #e7eff0;
  margin: 0.8rem 0;
}

.paper-ocr-box {
  margin-top: 0.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #f0f9f8;
  border: 1px dashed #6bc5be;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: #005858;
}

.scan-beam {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 3px;
  top: 22%;
  background: #00e5cc;
  box-shadow: 0 0 16px 4px rgba(0, 229, 204, 0.48);
  animation: scanSweep 4.2s ease-in-out infinite;
}

@keyframes scanSweep {
  0%, 100% { top: 18%; opacity: 0.85; }
  50% { top: 82%; opacity: 1; }
}

.stage-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.metric {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.metric strong {
  font-size: 0.98rem;
}

.metric span {
  font-size: 0.74rem;
  opacity: 0.86;
}

/* Sections */
.section {
  padding: 4.2rem 0;
}

.section-tinted {
  background: var(--bg-tinted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: 2.3rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.card-featured {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.22rem;
}

.card-desc {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.card-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-neutral {
  background: var(--bg-tinted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Download layout */
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.checksum-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  margin-bottom: 0.85rem;
}

.checksum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.checksum-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.checksum-value {
  display: block;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--text);
}

.copy-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 7px;
  padding: 0.22rem 0.6rem;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--primary-soft);
}

.small-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Mirrors */
.mirrors-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mirror-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.82rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.mirror-row.is-active:hover {
  border-color: var(--primary);
  background: var(--surface);
}

.mirror-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.mirror-name {
  font-weight: 600;
  font-size: 0.93rem;
}

.mirror-desc {
  font-size: 0.79rem;
  color: var(--text-muted);
}

.mirror-status {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

.mirror-status.ready {
  background: var(--primary-soft);
  color: var(--primary);
}

.mirror-status.soon {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.feature-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.04rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.45rem 0 1.1rem;
}

.price {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-unit {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.check-list,
.plain-list {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  flex: 1;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 1.35rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.plain-list li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--primary);
  font-weight: 700;
}

.buy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Steps */
.steps-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.7rem;
}

.steps-panel h3 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.15rem;
}

.step-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
}

.step-item h4 {
  margin: 0 0 0.35rem;
  font-size: 0.97rem;
}

.step-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Support */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.contact-email-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.contact-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#supportEmailValue {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--primary);
  word-break: break-all;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--text);
  color: var(--bg);
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }
  .hero-grid,
  .download-layout,
  .pricing-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2.8rem 0 3.2rem;
  }
  .section {
    padding: 3.1rem 0;
  }
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .nav-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan-beam {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
