/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-50: #eff6ff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
}

/* ===== Container ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.navbar-brand svg {
  width: 32px;
  height: 32px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 96px;
  background: linear-gradient(180deg, var(--primary-50) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
  font-size: 0.65em;
  font-weight: 600;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-highlights {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 32px;
}

/* ===== Section ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary);
  margin-bottom: 24px;
}

.section-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s infinite;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ===== Feature Cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  cursor: default;
  overflow: visible;
  z-index: 1;
}

.feature-card:hover {
  z-index: 10;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #6366f1);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  font-size: 24px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Feature Preview (Hover Mockup) ===== */
.feature-preview {
  position: absolute;
  top: 0;
  left: calc(100% + 16px);
  width: 400px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-12px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  z-index: 50;
  pointer-events: none;
}

.feature-card:hover .feature-preview {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.feature-card:nth-child(3n) .feature-preview {
  left: auto;
  right: calc(100% + 16px);
}

.feature-card:nth-child(3n):hover .feature-preview {
  transform: translateX(0) scale(1);
}

.preview-window {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.preview-titlebar > span:not(.preview-title) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.preview-titlebar > span:not(.preview-title):nth-child(1) { background: #ef4444; }
.preview-titlebar > span:not(.preview-title):nth-child(2) { background: #f59e0b; }
.preview-titlebar > span:not(.preview-title):nth-child(3) { background: #22c55e; }

.preview-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.preview-body {
  padding: 20px;
  min-height: 200px;
  font-size: 12px;
}

/* Flow Designer Mockup */
.flow-designer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.flow-row { display: flex; justify-content: center; width: 100%; }

.flow-node {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  width: fit-content;
  transition: transform 0.2s, box-shadow 0.3s;
  animation: flow-appear 0.3s ease backwards;
}

.feature-card:hover .flow-designer .flow-node { animation: flow-appear 0.4s ease backwards; }
.feature-card:hover .flow-designer > :nth-child(1) .flow-node { animation-delay: 0.05s; }
.feature-card:hover .flow-designer > :nth-child(3) .flow-node { animation-delay: 0.1s; }
.feature-card:hover .flow-designer > :nth-child(5) .flow-node { animation-delay: 0.15s; }
.feature-card:hover .flow-designer > :nth-child(7) .flow-node { animation-delay: 0.2s; }
.feature-card:hover .flow-designer > :nth-child(8) .flow-node { animation-delay: 0.25s; }
.feature-card:hover .flow-designer > :nth-child(10) .flow-node { animation-delay: 0.3s; }
.feature-card:hover .flow-designer > :nth-child(12) .flow-node { animation-delay: 0.35s; }
.feature-card:hover .flow-designer > :nth-child(13) .flow-node { animation-delay: 0.4s; }
.feature-card:hover .flow-designer > :nth-child(15) .flow-node { animation-delay: 0.45s; }
.feature-card:hover .flow-designer > :nth-child(16) .flow-node { animation-delay: 0.5s; }
.feature-card:hover .flow-designer > :nth-child(18) .flow-node { animation-delay: 0.55s; }

@keyframes flow-appear {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.flow-node.start { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; border-radius: 20px; }
.flow-node.action { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.flow-node.end { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; border-radius: 20px; }

.flow-node.diamond {
  background: #fefce8; color: #a16207; border: 1px solid #fde047;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  padding: 12px 20px;
  font-size: 10px;
}

/* Branch layout */
.flow-branch {
  display: flex;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.flow-branch-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.flow-branch-label {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 2px;
}

.flow-branch-label.yes { background: #f0fdf4; color: #15803d; }
.flow-branch-label.no { background: #fef2f2; color: #b91c1c; }

.flow-branch-path .flow-arrow {
  height: 12px;
}

.flow-branch-path .flow-node {
  font-size: 11px;
  padding: 6px 14px;
}

/* Merge point */
.flow-merge {
  position: relative;
  height: 8px;
}

.flow-merge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 2px;
  background: #cbd5e1;
  transform: translateX(-50%);
}

.flow-merge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 8px;
  background: #cbd5e1;
}

.flow-arrow {
  position: relative;
  width: 2px;
  height: 16px;
  background: #cbd5e1;
  margin: 0 auto;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #cbd5e1;
}

.flow-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6), 0 0 16px rgba(37, 99, 235, 0.3);
  left: 50%;
  transform: translateX(-50%);
  top: -2px;
  opacity: 0;
}

/* Sequential particle animation: one point flows through the entire process */
.feature-card:hover .flow-particle {
  animation: particle-flow 0.5s ease-in-out infinite;
}

/* Step timing: each step = 0.7s, total cycle = 8 steps × 0.7s + 1.4s pause = 7s */
.feature-card:hover .flow-particle[data-step="1"]  { animation-delay: 0s; }
.feature-card:hover .flow-particle[data-step="2"]  { animation-delay: 0.7s; }
.feature-card:hover .flow-particle[data-step="3"]  { animation-delay: 1.4s; }
.feature-card:hover .flow-particle[data-step="4a"] { animation-delay: 2.1s; }
.feature-card:hover .flow-particle[data-step="4b"] { animation-delay: 2.1s; }
.feature-card:hover .flow-particle[data-step="5"]  { animation-delay: 2.8s; }
.feature-card:hover .flow-particle[data-step="6"]  { animation-delay: 3.5s; }
.feature-card:hover .flow-particle[data-step="7a"] { animation-delay: 4.2s; }
.feature-card:hover .flow-particle[data-step="7b"] { animation-delay: 4.2s; }
.feature-card:hover .flow-particle[data-step="8"]  { animation-delay: 4.9s; }

@keyframes particle-flow {
  0% { top: -2px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 14px; opacity: 0; }
}

/* Device List Mockup */
.device-list { display: flex; flex-direction: column; gap: 6px; }

.device-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: var(--bg-alt); border: 1px solid var(--border);
  transition: transform 0.2s;
}

.feature-card:hover .device-item { animation: slide-in 0.3s ease backwards; }
.feature-card:hover .device-item:nth-child(1) { animation-delay: 0.05s; }
.feature-card:hover .device-item:nth-child(2) { animation-delay: 0.1s; }
.feature-card:hover .device-item:nth-child(3) { animation-delay: 0.15s; }
.feature-card:hover .device-item:nth-child(4) { animation-delay: 0.2s; }
.feature-card:hover .device-item:nth-child(5) { animation-delay: 0.25s; }
.feature-card:hover .device-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.device-icon { font-size: 14px; }
.device-name { font-size: 12px; font-weight: 500; color: var(--text); min-width: 90px; }
.device-task { font-size: 10px; color: var(--text-secondary); flex: 1; }

.device-status { font-size: 10px; font-weight: 600; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.device-status.running { background: #dcfce7; color: #15803d; }
.device-status.idle { background: #f1f5f9; color: #64748b; }

.device-progress { width: 52px; height: 5px; background: #e2e8f0; border-radius: 3px; overflow: hidden; position: relative; }
.device-progress span {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  width: 0;
  position: relative;
  overflow: hidden;
}
.feature-card:hover .device-progress span {
  animation: progress-fill 1.2s ease forwards, progress-shimmer 2s ease-in-out 1.2s infinite;
}
.feature-card:hover .device-item:nth-child(1) .device-progress span { animation-delay: 0.15s, 1.35s; }
.feature-card:hover .device-item:nth-child(2) .device-progress span { animation-delay: 0.2s, 1.4s; }
.feature-card:hover .device-item:nth-child(3) .device-progress span { animation-delay: 0.25s, 1.45s; }
.feature-card:hover .device-item:nth-child(4) .device-progress span { animation-delay: 0.3s, 1.5s; }
.feature-card:hover .device-item:nth-child(5) .device-progress span { animation-delay: 0.35s, 1.55s; }
.feature-card:hover .device-item:nth-child(6) .device-progress span { animation-delay: 0.4s, 1.6s; }

@keyframes progress-fill {
  from { width: 0; }
  to { width: var(--target-width, 50%); }
}
@keyframes progress-shimmer {
  0% { background-position: -52px 0; }
  100% { background-position: 52px 0; }
}
.device-progress span::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 52px 100%;
  animation: none;
}
.feature-card:hover .device-progress span::after {
  animation: shimmer-move 1.5s ease-in-out infinite;
}
@keyframes shimmer-move {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ADB Panel Mockup */
.adb-panel { display: flex; flex-direction: column; gap: 14px; }
.adb-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

.adb-btn {
  padding: 8px 0; text-align: center;
  background: var(--primary-light); color: var(--primary);
  border-radius: 6px; font-size: 12px; font-weight: 600;
  transition: all 0.15s;
}

.feature-card:hover .adb-btn { animation: btn-pop 0.3s ease backwards; }
.feature-card:hover .adb-btn:nth-child(1) { animation-delay: 0.03s; }
.feature-card:hover .adb-btn:nth-child(2) { animation-delay: 0.06s; }
.feature-card:hover .adb-btn:nth-child(3) { animation-delay: 0.09s; }
.feature-card:hover .adb-btn:nth-child(4) { animation-delay: 0.12s; }
.feature-card:hover .adb-btn:nth-child(5) { animation-delay: 0.15s; }
.feature-card:hover .adb-btn:nth-child(6) { animation-delay: 0.18s; }
.feature-card:hover .adb-btn:nth-child(7) { animation-delay: 0.21s; }
.feature-card:hover .adb-btn:nth-child(8) { animation-delay: 0.24s; }
.feature-card:hover .adb-btn:nth-child(9) { animation-delay: 0.27s; }

@keyframes btn-pop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.adb-log {
  background: #0f172a; border-radius: 8px; padding: 10px 14px;
  font-family: 'Consolas', 'Monaco', monospace; font-size: 11px; line-height: 1.9;
}

.log-line { color: #94a3b8; }
.log-time { color: #64748b; }
.log-action { color: #22c55e; font-weight: 600; }
.log-ok { color: #34d399; font-weight: 600; }

/* Template Match Mockup */
/* Multi Match Mockup */
.multi-match { }

.match-mode-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-mode-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.match-mode-item:hover {
  border-color: var(--primary-light);
  background: #f0f5ff;
}

.mode-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  min-width: 52px;
  text-align: center;
  letter-spacing: 0.5px;
}

.mode-ocr { background: #8b5cf6; }
.mode-grey { background: #6b7280; }
.mode-bin { background: #1e293b; }
.mode-xpath { background: #0891b2; }

.mode-detail { flex: 1; }

.mode-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.mode-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.mode-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}

.mode-status.ok {
  color: #15803d;
  background: #dcfce7;
}

/* Screen Mirror Mockup */
.screen-mirror { }

.mirror-layout { display: flex; flex-direction: column; gap: 12px; }

.mirror-row { display: flex; gap: 16px; align-items: flex-start; }

.phone-frame {
  width: 100px; background: #1e293b; border-radius: 16px;
  padding: 8px; border: 2px solid #334155; flex-shrink: 0;
}

.phone-notch { width: 28px; height: 5px; background: #475569; border-radius: 3px; margin: 0 auto 4px; }

.phone-screen {
  aspect-ratio: 9/16;
  background: linear-gradient(180deg, #1e40af, #3b82f6, #60a5fa);
  border-radius: 8px; position: relative; overflow: hidden;
}

.phone-statusbar {
  display: flex; justify-content: space-between; padding: 2px 6px;
  font-size: 7px; color: rgba(255,255,255,0.7);
}

.phone-app-bar {
  background: rgba(255,255,255,0.15); padding: 4px 6px;
  font-size: 8px; color: #fff; font-weight: 600; margin: 4px 2px; border-radius: 3px;
}

.phone-card {
  background: rgba(255,255,255,0.1); margin: 3px 2px; border-radius: 3px;
  height: 12px;
}

.phone-label {
  text-align: center; font-size: 10px; color: var(--text-secondary);
  margin-top: 6px; font-weight: 500;
}

.phone-hint {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 9px; color: rgba(255,255,255,0.6); white-space: nowrap;
  background: rgba(0,0,0,0.35); padding: 3px 8px; border-radius: 3px;
}

.mirror-info { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.mirror-stat {
  font-size: 11px; color: var(--text-secondary); padding: 4px 8px;
  background: var(--bg-alt); border-radius: 4px; border: 1px solid var(--border);
}

.mirror-actions { display: flex; gap: 6px; margin-top: 4px; }

.mirror-btn {
  flex: 1; padding: 6px 0; text-align: center;
  background: var(--primary-light); color: var(--primary);
  border-radius: 6px; font-size: 10px; font-weight: 600;
}

.touch-point {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); border: 2px solid #fff;
  transform: translate(-50%, -50%);
  animation: touch-pulse 1.5s ease infinite;
}

@keyframes touch-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.5; }
}

/* Security Check Mockup */
.security-check { display: flex; flex-direction: column; gap: 8px; position: relative; }

.check-section {
  display: flex; flex-direction: column; gap: 4px;
}

.check-section + .check-section {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.check-section-title {
  font-size: 12px; font-weight: 600; color: var(--text);
  padding: 4px 0;
}

.check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 500;
}

.feature-card:hover .check-item { animation: check-in 0.3s ease backwards; }
.feature-card:hover .check-item:nth-child(1) { animation-delay: 0.05s; }
.feature-card:hover .check-item:nth-child(2) { animation-delay: 0.1s; }
.feature-card:hover .check-item:nth-child(3) { animation-delay: 0.15s; }
.feature-card:hover .check-item:nth-child(4) { animation-delay: 0.2s; }

@keyframes check-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.check-item.pass { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.check-item.warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.check-icon { font-weight: 700; }

/* Mobile: click to toggle preview */
@media (max-width: 1024px) {
  .feature-preview {
    position: relative; top: auto; left: auto; right: auto;
    width: 100%; margin-top: 16px; transform: none;
    display: none;
  }
  .feature-card:nth-child(3n) .feature-preview { left: auto; right: auto; }
  .feature-card.active .feature-preview {
    display: block; opacity: 1; visibility: visible; transform: none;
  }
  .mirror-layout { flex-direction: column; align-items: center; }
}

/* ===== Scenario Cards ===== */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.scenario-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.scenario-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.scenario-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.scenario-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.scenario-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Pricing Cards ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--primary);
}

.pricing-card.featured:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  background: var(--primary);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.pricing-card .price-period {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-features li.disabled {
  opacity: 0.4;
}

.pricing-features li.disabled svg {
  color: #94a3b8;
}

/* ===== Download Section ===== */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.download-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.download-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.os-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.download-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.download-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.download-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.sys-req {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
}

.sys-req h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.sys-req table {
  width: 100%;
  border-collapse: collapse;
}

.sys-req th,
.sys-req td {
  text-align: left;
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.sys-req th {
  color: var(--text-secondary);
  font-weight: 500;
  width: 140px;
}

.sys-req td {
  color: var(--text);
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.contact-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.contact-card .qr-img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  margin: 0 auto 8px;
  padding: 6px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-card .qr-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.qq-num {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 8px 20px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.contact-detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== Activation Form ===== */
.activation-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: 80px;
}

.activation-section h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.activation-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 4px;
}

.activation-hint {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 24px;
}

.activation-section .section-desc {
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.form-group .input-wrapper {
  display: flex;
  gap: 8px;
  flex: 1;
}

.form-group input {
  flex: 1;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
  color: var(--text);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
  color: #94a3b8;
}

.btn-copy {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-copy:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-copy.copied {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}

.form-message.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== QR Code Modal ===== */
.qrcode-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}



.qrcode-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: modal-slide-up 0.3s ease;
  overflow: hidden;
}

@keyframes modal-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.qrcode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.qrcode-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.qrcode-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

.qrcode-close:hover {
  color: var(--text);
}

.qrcode-body {
  padding: 24px 20px;
  text-align: center;
}

.qrcode-body img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.qrcode-body p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 6px 0;
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 72px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .section {
    padding: 60px 0;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .navbar-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .activation-section {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
