:root {
  --bg: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --deep: #0f172a;
  --ok: #0f766e;
  --warn: #b45309;
  --bad: #b91c1c;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(1400px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.active {
  background: #eef2ff;
  color: var(--brand);
}

.nav-action {
  padding: 10px 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
  font-size: 14px;
  font-weight: 750;
}

.topic-tabs {
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.92);
}

.topic-tabs-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.topic-tabs a {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
}

.topic-tabs a.active,
.topic-tabs a:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.hero {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.84) 52%, rgba(37, 99, 235, 0.68)),
    url("/hero-visual.png") right 9% center / min(42vw, 560px) auto no-repeat,
    #0f172a;
  border-bottom: 1px solid #1e293b;
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  padding: 92px 0 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  max-width: 850px;
  margin: 20px 0 0;
  font-size: clamp(38px, 5.2vw, 70px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 19px;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fff;
  color: #0f172a;
  font-weight: 800;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

section {
  border-bottom: 1px solid var(--line);
}

.section-inner {
  padding: 76px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.6fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 32px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-head p,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.soft {
  background: var(--soft);
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.role-card,
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.role-card {
  min-height: 260px;
}

.role-card:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
}

.pill.green {
  background: #ecfdf5;
  color: var(--ok);
}

.pill.gold {
  background: #fffbeb;
  color: var(--warn);
}

.pill.red {
  background: #fef2f2;
  color: var(--bad);
}

h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.card p,
.role-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 14px;
  line-height: 1.85;
}

.list li + li {
  margin-top: 8px;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.matrix th,
.matrix td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.75;
}

.matrix th {
  background: #eef2ff;
  color: #1e293b;
  font-weight: 850;
}

.matrix td {
  color: #334155;
}

.matrix tr:last-child td {
  border-bottom: 0;
}

.backline {
  margin-bottom: 24px;
}

.backline a {
  color: var(--brand);
  font-weight: 750;
}

.footer {
  background: #0f172a;
  color: #f8fafc;
}

.footer-cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 56px 16px;
  text-align: center;
}

.footer-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.footer-cta p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: rgba(248, 250, 252, 0.72);
  line-height: 1.8;
}

.footer-grid,
.footer-bottom {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-grid {
  padding: 44px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.footer-grid h4 {
  margin: 0 0 16px;
  font-size: 16px;
}

.footer-grid a,
.footer-grid li,
.footer-grid p {
  color: rgba(248, 250, 252, 0.62);
  font-size: 14px;
  line-height: 1.9;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(248, 250, 252, 0.46);
  font-size: 13px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

@media (max-width: 1060px) {
  .nav-links {
    display: none;
  }

  .site-nav {
    min-height: 64px;
  }

  .hero {
    background:
      linear-gradient(120deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88)),
      url("/hero-visual.png") right 18px bottom 28px / 260px auto no-repeat,
      #0f172a;
  }

  .hero-inner {
    padding: 70px 0 150px;
  }

  .section-head,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .matrix {
    display: block;
    overflow-x: auto;
  }
}
