:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #607086;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --line: #dfe5ee;
  --soft: #eef2ff;
  --shadow: 0 16px 40px rgba(31, 41, 55, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

.hero,
.page-hero {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.94), rgba(14, 165, 233, 0.82)),
    url("../img/hero-bg.svg") center/cover no-repeat;
}

.hero {
  min-height: 620px;
  padding: 24px 24px 110px;
}

.page-hero {
  padding: 24px 24px 92px;
}

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary-dark);
  background: #fff;
}

.hero-content,
.page-title {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-content {
  padding-top: 126px;
}

.page-title {
  padding-top: 76px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--primary);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.hero-desc,
.page-title p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  font-weight: 700;
}

.btn.primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
}

main {
  max-width: 1120px;
  margin: -64px auto 0;
  padding: 0 24px 60px;
}

.section {
  margin-bottom: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.intro,
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.feature-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #fafbff);
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.feature-card p,
.intro p,
.scenario-list p,
.steps,
.download-card p,
.cta p {
  color: var(--muted);
}

.scenario-list {
  display: grid;
  gap: 14px;
}

.scenario-list div,
.steps li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}

.scenario-list p {
  margin-bottom: 0;
}

.cta {
  text-align: center;
  background: var(--soft);
}

.cta p {
  max-width: 680px;
  margin: 0 auto 22px;
}

.download-grid {
  display: grid;
  gap: 14px;
}

.download-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}

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

.primary-download {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #fff, #f7f8ff);
}

.file-type {
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.file-type.sql {
  background: #0ea5e9;
}

.download-card h3 {
  margin-bottom: 4px;
}

.download-card p {
  margin-bottom: 4px;
}

.download-card small {
  color: var(--muted);
  word-break: break-all;
}

.steps {
  margin: 0;
  padding-left: 22px;
}

.steps li + li {
  margin-top: 12px;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef2ff;
  color: var(--primary-dark);
}

.footer {
  padding: 30px 24px 42px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-bottom: 96px;
  }

  .hero-content {
    padding-top: 86px;
  }

  .intro,
  .split,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .hero,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section {
    padding: 22px;
  }

  .download-card {
    grid-template-columns: 1fr;
  }
}
