:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --panel: #f8fafc;
  --text: #172033;
  --muted: #64748b;
  --line: #d8e2ef;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-soft: #dbeafe;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #0f8a5f;
  --success-soft: #dcfce7;
  --warning: #b45309;
  --warning-soft: #fff7ed;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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.6;
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--primary);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 70px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 44px;
}

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

.section-soft {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: #eef4fb;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

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

h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.tagline {
  margin: 18px 0 0;
  color: var(--primary-dark);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
}

.hero-text,
.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--primary-dark);
  background: #ffffff;
  border-color: var(--line);
}

.prototype-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.window-bar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.window-bar strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}

.prototype-body {
  min-height: 420px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.mock-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.mock-sidebar span {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mock-sidebar .active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.mock-main {
  padding: 20px;
}

.mock-stat-grid,
.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mock-stat-grid div,
.dashboard-summary div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.mock-stat-grid strong,
.dashboard-summary strong {
  display: block;
  color: var(--primary-dark);
  font-size: 25px;
  line-height: 1.2;
}

.mock-stat-grid span,
.dashboard-summary span {
  color: var(--muted);
  font-size: 14px;
}

.chat-preview {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 8px;
}

.message.user {
  margin-left: auto;
  color: #ffffff;
  background: var(--primary);
}

.message.ai {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
}

.mini-progress {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.mini-progress span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  margin-bottom: 30px;
}

.pain-grid,
.value-grid,
.division-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.feature-card,
.demo-card,
.division-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.feature-card {
  padding: 24px;
}

.feature-card p,
.feature-card li,
.division-card p {
  color: var(--muted);
}

.feature-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.card-icon,
.module-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 800;
}

.card-icon {
  width: 42px;
  height: 34px;
  margin-bottom: 18px;
}

.module-tag {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 13px;
}

.risk-card {
  border-color: #fecaca;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.demo-card {
  padding: 22px;
}

.plan-card,
.dashboard-card {
  grid-column: 1 / -1;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-questions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--primary-dark);
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.quick-questions button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.answer-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.answer-label {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 800;
}

#answerText {
  margin: 0;
  font-size: 17px;
}

.planner-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #334155;
  background: #f1f5f9;
  font-size: 14px;
  font-weight: 800;
}

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

.plan-table td:first-child {
  color: var(--primary-dark);
  font-weight: 800;
  white-space: nowrap;
}

.plan-focus {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 800;
}

.quiz-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.quiz-options {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.quiz-options button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
  color: var(--text);
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.quiz-options button:hover {
  border-color: var(--primary);
  background: #f8fafc;
}

.quiz-options button.correct {
  border-color: rgba(15, 138, 95, 0.55);
  background: var(--success-soft);
}

.quiz-options button.wrong {
  border-color: rgba(220, 38, 38, 0.5);
  background: var(--danger-soft);
}

.quiz-options button:disabled {
  cursor: default;
}

.quiz-feedback {
  min-height: 28px;
  margin: 0 0 18px;
  font-weight: 800;
}

.quiz-feedback.success {
  color: var(--success);
}

.quiz-feedback.error {
  color: var(--danger);
}

.dashboard-summary {
  margin-bottom: 16px;
}

.progress-cell {
  min-width: 180px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa 0%, var(--primary) 100%);
}

.score-pill,
.attention {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
}

.score-pill {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.attention {
  color: var(--danger);
  background: var(--danger-soft);
}

.attention.ok {
  color: var(--success);
  background: var(--success-soft);
}

.human-note {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  color: #1e3a8a;
  background: #eff6ff;
  font-weight: 700;
}

.division-card {
  padding: 22px;
}

.division-card span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--primary);
  font-weight: 800;
}

.division-card h3 {
  margin-bottom: 10px;
}

.division-card p {
  margin: 0;
}

.footer {
  padding: 28px 16px 40px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero,
  .demo-grid,
  .pain-grid,
  .value-grid,
  .division-grid {
    grid-template-columns: 1fr;
  }

  .prototype-body {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .hero,
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .input-row,
  .planner-controls,
  .quiz-topline,
  .mock-stat-grid,
  .dashboard-summary {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .button,
  .input-row .button,
  .planner-controls .button {
    width: 100%;
  }

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

  .prototype-window {
    display: none;
  }

  h1 {
    font-size: 42px;
  }
}
