/* Process Lasso Site - Shared Styles */
:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #22c55e;
  --primary-bg: #f0fdf4;
  --dark: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --bg: #ffffff;
  --text: #334155;
  --text-strong: #0f172a;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 17px;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
}
.brand small {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 400;
  margin-top: -2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s ease;
}
.nav-links a:hover { background: var(--primary-bg); color: var(--primary-dark); }
.nav-links a.active { color: var(--primary-dark); background: var(--primary-bg); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--gray-100); color: var(--text-strong); }
.btn-secondary:hover { background: var(--gray-200); color: var(--text-strong); }
.btn-outline { background: transparent; color: var(--primary-dark); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-bg); color: var(--primary-dark); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 56px 0 48px;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(34, 197, 94, 0.10), transparent 60%),
    radial-gradient(800px 300px at 0% 0%, rgba(22, 163, 74, 0.06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7fefa 100%);
  border-bottom: 1px solid var(--gray-200);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-tag::before { content: ""; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }
.hero h1 {
  font-size: 38px;
  line-height: 1.18;
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 15.5px;
  color: var(--gray-600);
  margin-bottom: 20px;
  max-width: 540px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--gray-500);
  margin-bottom: 22px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta b { color: var(--text-strong); font-weight: 600; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-screenshot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  background: #1e293b;
  aspect-ratio: 16/10;
}
.hero-screenshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-screenshot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,23,42,0) 60%, rgba(15,23,42,.18) 100%);
}

/* ===== Section ===== */
section { padding: 48px 0; }
.section-title {
  text-align: center;
  margin-bottom: 32px;
}
.section-title h2 {
  font-size: 26px;
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.section-title p {
  color: var(--gray-500);
  font-size: 14px;
}
.section-title .line {
  display: block;
  width: 36px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: all .2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-size: 15px;
  color: var(--text-strong);
  font-weight: 600;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ===== Why grid ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.why-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fefa 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
}
.why-card h3 {
  font-size: 15px;
  color: var(--text-strong);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.why-card h3::before { content: "✓"; color: var(--primary); font-weight: 700; }
.why-card p { font-size: 13px; color: var(--gray-600); }

/* ===== Version table ===== */
.version-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13.5px;
}
.version-table th, .version-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.version-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--text-strong);
  font-size: 13px;
}
.version-table tr:last-child td { border-bottom: none; }
.version-table .yes { color: var(--primary); font-weight: 600; }
.version-table .no { color: var(--gray-500); }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.tag-free { background: #eff6ff; color: #1d4ed8; }
.tag-pro { background: var(--primary-bg); color: var(--primary-dark); }
.tag-new { background: #fef3c7; color: #b45309; }

/* ===== Download cards ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.dl-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  transition: all .2s ease;
}
.dl-card:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }
.dl-card.pro {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f7fefa 100%);
}
.dl-card .badge {
  position: absolute;
  top: -10px;
  right: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.dl-card h3 {
  font-size: 19px;
  color: var(--text-strong);
  font-weight: 700;
  margin-bottom: 4px;
}
.dl-card .ver {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.dl-card ul {
  list-style: none;
  margin: 0 0 18px;
}
.dl-card li {
  font-size: 13.5px;
  color: var(--gray-700);
  padding: 5px 0 5px 22px;
  position: relative;
}
.dl-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.dl-card li.no::before { content: "✕"; color: var(--gray-300); }
.dl-card li.no { color: var(--gray-500); }
.dl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-info {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-200);
  font-size: 12px;
  color: var(--gray-500);
}

/* ===== Page hero (sub pages) ===== */
.page-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border-bottom: 1px solid var(--gray-200);
  padding: 44px 0 36px;
  text-align: center;
}
.page-hero h1 {
  font-size: 30px;
  color: var(--text-strong);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.page-hero p { color: var(--gray-600); font-size: 14.5px; max-width: 720px; margin: 0 auto; }
.breadcrumb {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }

/* ===== FAQ ===== */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 14px 18px;
  font-weight: 600;
  color: var(--text-strong);
  font-size: 14.5px;
  cursor: pointer;
  position: relative;
  padding-right: 44px;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 20px;
  font-weight: 400;
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: all .25s ease;
  color: var(--gray-600);
  font-size: 14px;
}
.faq-item.open .faq-a { padding: 0 18px 16px; max-height: 320px; }

/* ===== Steps ===== */
.steps { max-width: 820px; margin: 0 auto; counter-reset: step; }
.step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--gray-200);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.step h3 { font-size: 15px; color: var(--text-strong); margin-bottom: 4px; }
.step p { color: var(--gray-600); font-size: 13.5px; }
.step code {
  background: var(--gray-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--gray-800);
}

/* ===== Content cards (sub pages) ===== */
.content-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.content-card h2 {
  font-size: 19px;
  color: var(--text-strong);
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-bg);
}
.content-card h3 {
  font-size: 16px;
  color: var(--text-strong);
  font-weight: 600;
  margin: 14px 0 8px;
}
.content-card p { color: var(--gray-700); margin-bottom: 8px; }
.content-card ul, .content-card ol { padding-left: 20px; color: var(--gray-700); margin-bottom: 8px; }
.content-card li { margin-bottom: 4px; }

/* ===== Sidebar / two column ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.side-card {
  background: var(--primary-bg);
  border: 1px solid #d1fae5;
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 80px;
}
.side-card h4 { font-size: 14px; color: var(--primary-dark); margin-bottom: 8px; }
.side-card p { font-size: 12.5px; color: var(--gray-600); margin-bottom: 12px; }
.side-card .btn { width: 100%; justify-content: center; }

/* ===== Footer ===== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 32px 0 24px;
  margin-top: 48px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 22px;
}
.footer-grid h5 {
  color: #fff;
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-grid ul { list-style: none; }
.footer-grid li { padding: 3px 0; }
.footer-grid a { color: var(--gray-300); font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-about { font-size: 12.5px; color: var(--gray-500); line-height: 1.7; }
.copyright {
  border-top: 1px solid #1e293b;
  padding-top: 16px;
  text-align: center;
  color: var(--gray-500);
  font-size: 12px;
}

/* ===== Two column screenshot ===== */
.screenshot-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.screenshot-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.screenshot-frame img { width: 100%; }

/* ===== Notice ===== */
.notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin: 14px 0;
}
.notice b { color: #78350f; }

/* ===== Download Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s ease;
  padding: 16px;
}
.modal-overlay.closing { animation: fadeOut .2s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: modalIn .3s ease;
}
.modal-box.closing { animation: modalOut .25s ease forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes modalOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(20px) scale(0.96); } }

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 18px;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  line-height: 1;
}
.modal-close:hover { background: var(--gray-200); color: var(--text-strong); }

.modal-box h3 {
  font-size: 20px;
  color: var(--text-strong);
  font-weight: 700;
  margin-bottom: 6px;
}
.modal-box .modal-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

/* QR Code breathing animation */
.qr-wrap {
  display: inline-block;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  animation: qrBreathe 3s ease-in-out infinite;
  margin-bottom: 12px;
}
@keyframes qrBreathe {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.35);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(22, 163, 74, 0.05);
  }
}
.qr-wrap img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 8px;
}

.modal-box .qr-hint {
  font-size: 14px;
  color: var(--text-strong);
  font-weight: 600;
  margin-bottom: 14px;
}
.modal-box .qr-tips {
  text-align: left;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 2;
}
.modal-box .qr-tips i {
  color: var(--primary);
  margin-right: 6px;
  font-style: normal;
  font-weight: 700;
}
.modal-box .qr-warn {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 12.5px;
  color: #92400e;
  text-align: left;
  line-height: 1.7;
}
.modal-box .qr-warn strong { color: #78350f; }

/* Download button as trigger (not link) */
.dl-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  font-family: inherit;
}
.dl-trigger-primary { background: var(--primary); color: #fff; }
.dl-trigger-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.dl-trigger-outline { background: transparent; color: var(--primary-dark); border: 1px solid var(--primary); }
.dl-trigger-outline:hover { background: var(--primary-bg); color: var(--primary-dark); }
.dl-trigger-secondary { background: var(--gray-100); color: var(--text-strong); }
.dl-trigger-secondary:hover { background: var(--gray-200); color: var(--text-strong); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
  section { padding: 36px 0; }
  .nav-links a:not(.nav-cta):not(.active) { display: none; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 30px; }
  .hero h1 { font-size: 26px; }
  .container { padding: 0 16px; }
  .nav { height: 54px; }
  .brand { font-size: 15px; }
  .version-table th, .version-table td { padding: 9px 10px; font-size: 12.5px; }
}
