:root {
  --primary: #5833ea;
  --primary-dark: #3f1eb8;
  --primary-light: #7c5cf7;
  --accent: #10b981;
  --accent-soft: #ecfdf5;
  --bg: #f9f7fd;
  --surface: #ffffff;
  --surface-soft: #f3effa;
  --border: #e6def2;
  --text-primary: #1e1b29;
  --text-secondary: #4a4358;
  --text-muted: #877d9c;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 6px rgba(88, 51, 234, 0.04);
  --shadow-md: 0 4px 16px rgba(88, 51, 234, 0.08);
  --shadow-lg: 0 10px 30px rgba(88, 51, 234, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --page-pad: 40px;
}

*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.wrap {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding-left: max(var(--page-pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-pad), env(safe-area-inset-right, 0px));
}

/* Nav */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 20px;
}

.nav {
  max-width: 1040px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text-primary);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(88, 51, 234, 0.3);
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
}

.nav-links a:hover, .nav-links a.is-on {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 980px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(88, 51, 234, 0.25);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88, 51, 234, 0.35);
  background: linear-gradient(135deg, var(--primary-dark), #2563eb);
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13.5px;
}

.btn-line {
  background: var(--surface);
  color: var(--text-primary) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-line:hover {
  background: var(--surface-soft);
  border-color: var(--primary-light);
  color: var(--primary) !important;
}

/* Hero Section */
.hero {
  padding: 68px 0 32px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface-soft);
  padding: 6px 16px;
  border-radius: 980px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 auto 16px;
  max-width: 820px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* 3-Card Stats Banner */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto 48px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Callout Box - Key Takeaways */
.callout-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 56px;
  box-shadow: var(--shadow-sm);
}

.callout-box h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.callout-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

/* 4-Pillar Grid (Security Defenses) */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0 56px;
}

.card-defense {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card-defense:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.defense-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 980px;
  margin-bottom: 14px;
}

.card-defense h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
}

.card-defense p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 28px 0 56px;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

th {
  background: var(--surface-soft);
  color: var(--text-primary);
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

td strong {
  color: var(--text-primary);
}

/* 4-Step Verification Workflow */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 32px 0 56px;
}

.workflow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.workflow-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}

.workflow-step h4 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.workflow-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Download Platform Cards */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin: 36px 0 56px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.dl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.dl-card.highlight {
  border: 2px solid var(--primary);
  background: linear-gradient(to bottom, #ffffff, #faf8fe);
  position: relative;
}

.dl-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 980px;
}

.dl-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.dl-card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.dl-code-box {
  background: #23201a;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 12px;
  margin-bottom: 16px;
  word-break: break-all;
}

.dl-card p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}

.dl-card .btn {
  width: 100%;
}

/* Testimonial Cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 56px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.testimonial-card blockquote {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* Feedback Form Card */
.feedback-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 680px;
  margin: 32px auto 60px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(88, 51, 234, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* FAQ Details */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  padding: 18px 22px;
  transition: all 0.2s ease;
}

details[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

summary {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 20px;
  color: var(--primary);
}

details[open] summary::after {
  content: "–";
}

details p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 68px;
  font-size: 13.5px;
  color: var(--text-muted);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 860px) {
  .nav {
    border-radius: 16px;
    padding: 10px 18px;
  }
  .nav-links {
    display: none;
  }
  .stats-banner, .testimonial-grid, .grid-4 {
    grid-template-columns: 1fr;
  }
}
