:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-strong: #eef4ff;
  --text: #172033;
  --muted: #667085;
  --line: #d9e2ef;
  --primary: #1769e0;
  --primary-dark: #0e4ea9;
  --accent: #12a88a;
  --warning: #e28c20;
  --shadow: 0 24px 70px rgba(31, 52, 86, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial,
    sans-serif;
  line-height: 1.6;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(130px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(217, 226, 239, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.topbar.is-scrolled {
  box-shadow: 0 8px 30px rgba(31, 52, 86, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav a,
.top-action,
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.nav a {
  padding: 8px 12px;
  color: #46546a;
}

.nav a:hover {
  background: #eef4ff;
  color: var(--primary-dark);
}

.top-action {
  justify-self: end;
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--primary-dark);
  background: #fff;
}

.section-band,
.section {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 76px);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.86)),
    radial-gradient(circle at 80% 20%, rgba(18, 168, 138, 0.14), transparent 34%),
    radial-gradient(circle at 8% 80%, rgba(23, 105, 224, 0.13), transparent 32%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.12;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.28;
}

.lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: #43516a;
  font-size: 18px;
}

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

.button {
  padding: 11px 16px;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(23, 105, 224, 0.24);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary-dark);
}

.dashboard-preview {
  width: min(100%, 650px);
  justify-self: end;
  border: 1px solid rgba(217, 226, 239, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 24px);
}

.preview-header,
.panel-title,
.progress-row,
.prompt-line,
.answer-line,
.footer,
.status-list span {
  display: flex;
  align-items: center;
}

.preview-header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.preview-header strong,
.preview-header .muted {
  display: block;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  border: 1px solid rgba(18, 168, 138, 0.26);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(18, 168, 138, 0.1);
  color: #087861;
  font-size: 12px;
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.metric-grid article,
.progress-panel,
.assistant-card,
.module-card,
.ai-panel,
.security-grid > div,
.status-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-grid article {
  padding: 14px;
}

.metric-grid span,
.metric-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-grid strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 30px;
  line-height: 1;
}

.progress-panel {
  padding: 18px;
  margin-bottom: 14px;
}

.panel-title {
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
}

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

.progress-row {
  display: grid;
  grid-template-columns: 86px 1fr 44px;
  gap: 12px;
  min-height: 34px;
  font-size: 13px;
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef8;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.assistant-card {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  padding: 15px;
  background: #f8fbff;
}

.assistant-card p {
  margin: 0;
  color: #40506a;
  font-size: 14px;
}

.assistant-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(18, 168, 138, 0.12);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  color: #53627a;
}

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

.module-card {
  min-height: 210px;
  padding: 22px;
}

.module-index {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.module-card p,
.timeline p,
.security-grid p,
.status-box p {
  color: #53627a;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.timeline span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--primary-dark);
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
}

.ai-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.ai-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #13233a;
  color: #fff;
}

.prompt-line,
.answer-line {
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius);
}

.prompt-line {
  background: rgba(255, 255, 255, 0.08);
}

.answer-line {
  background: rgba(18, 168, 138, 0.2);
}

.prompt-line span,
.answer-line span {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #13233a;
  font-weight: 900;
}

.prompt-line p,
.answer-line p {
  margin: 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.security-grid > div {
  min-height: 150px;
  padding: 20px;
}

.security-grid strong {
  display: block;
  margin-bottom: 10px;
}

.status-box {
  display: grid;
  grid-template-columns: 1fr minmax(230px, 320px);
  gap: 30px;
  align-items: center;
  padding: clamp(24px, 5vw, 44px);
  background: #fff;
}

.status-box p {
  margin-bottom: 0;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-list span {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cce5dc;
  border-radius: var(--radius);
  background: #f1fbf7;
  color: #087861;
  font-weight: 800;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .split-section,
  .ai-section,
  .status-box {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    justify-self: stretch;
  }

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

@media (max-width: 640px) {
  .topbar {
    padding: 12px 14px;
  }

  .brand small,
  .top-action {
    display: none;
  }

  h1 {
    font-size: 38px;
  }

  .section-band,
  .section {
    padding: 42px 16px;
  }

  .metric-grid,
  .module-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .progress-row {
    grid-template-columns: 72px 1fr 38px;
    gap: 8px;
  }

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