:root {
  --accent: #D97757;
  --accent-hover: #E08F73;
  --accent-soft: rgba(217, 119, 87, 0.12);
  --primary: #007AFF;
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #AEAEB2;
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --separator: #E5E5EA;
  --radius-sm: 8px;
  --radius-base: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
          'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.nav-logo img { width: 30px; height: 30px; }

.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all .15s ease;
}

.nav-link:hover { background: rgba(0,0,0,0.04); color: var(--text); }

.nav-link--accent {
  background: var(--text);
  color: #fff;
}

.nav-link--accent:hover { background: #2C2C2E; }

/* Hero */
.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
}

.hero-blob--1 {
  width: 520px; height: 520px;
  top: -160px; right: -120px;
  background: radial-gradient(circle, #F2A98F, transparent 70%);
}

.hero-blob--2 {
  width: 420px; height: 420px;
  bottom: -140px; left: -100px;
  background: radial-gradient(circle, #C7D2FE, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(217, 119, 87, .32);
}

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

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover { box-shadow: var(--shadow); }

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-6deg) rotateX(4deg);
  transition: transform .4s ease;
}

.hero-card:hover { transform: perspective(1000px) rotateY(-2deg) rotateX(2deg); }

/* Painpoints */
.painpoints {
  padding: 0 0 80px;
}

.painpoints-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.painpoint {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.painpoint strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.painpoint span {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Sections */
.section { padding: 110px 0; }

.section--surface { background: var(--surface); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  height: 28px;
  padding: 0 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  line-height: 28px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

/* Value cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card {
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.value-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius-base);
  color: var(--accent);
  margin-bottom: 18px;
}

.value-icon svg { width: 22px; height: 22px; }

.value-title { font-size: 17px; font-weight: 700; margin: 0 0 8px; }

.value-text { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.65; }

/* Cases */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.case-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}

.case-card:hover { box-shadow: var(--shadow); }

.case-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-base);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.case-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }

.case-text { font-size: 14px; color: var(--text-secondary); margin: 0 0 16px; line-height: 1.6; }

.case-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

.case-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Workflow */
.workflow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
}

.workflow-step {
  flex: 1;
  max-width: 320px;
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  text-align: center;
  position: relative;
}

.workflow-step + .workflow-step::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -22px;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, #F2A98F, var(--accent));
}

.workflow-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--separator);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}

.workflow-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }

.workflow-text { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* Preview */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.preview-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.preview-tag {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.preview-card img { width: 100%; height: auto; }

/* Compare */
.compare-table {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.4fr;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 15px;
}

.compare-row:last-child { border-bottom: 0; }

.compare-header {
  background: var(--bg);
  font-weight: 700;
  color: var(--text-secondary);
}

.compare-yes {
  color: var(--accent);
  font-weight: 600;
}

/* Quick start */
.quickstart {
  background: #1D1D1F;
  border-radius: var(--radius-xl);
  padding: 28px;
  color: #F5F5F7;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.85;
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
}

.quickstart code { font-family: inherit; }

.quickstart-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.quickstart-note a {
  color: var(--accent);
  font-weight: 600;
}

/* CTA */
.cta { padding: 40px 0 120px; }

.cta-card {
  background: linear-gradient(135deg, #FFF5F2 0%, #FFFFFF 100%);
  border: 1px solid rgba(217, 119, 87, 0.15);
  border-radius: var(--radius-xl);
  padding: 64px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 auto 28px;
  max-width: 460px;
}

/* Footer */
.footer {
  padding: 56px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--separator);
}

.footer strong { color: var(--text); }

.footer a { color: var(--text); font-weight: 600; }

.footer a:hover { text-decoration: underline; }

.footer-meta { margin-top: 10px; font-size: 13px; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; text-align: center; }
  .hero-title { font-size: 46px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { text-align: center; }
  .hero-card { max-width: 620px; margin: 0 auto; transform: none; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-card { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .painpoints-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .workflow { flex-direction: column; align-items: center; }
  .workflow-step { max-width: 420px; }
  .workflow-step + .workflow-step::before { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 20px; }
  .compare-header { display: none; }
  .compare-row span:first-child { font-weight: 700; color: var(--text); }
}

@media (max-width: 600px) {
  .hero { padding: 120px 0 70px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 17px; }
  .section-title { font-size: 28px; }
  .value-grid { grid-template-columns: 1fr; }
  .btn { height: 46px; padding: 0 22px; font-size: 15px; }
  .nav-links { gap: 2px; }
  .nav-link { padding: 0 10px; font-size: 13px; }
}
