:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --ink: #141722;
  --muted: #626b7c;
  --line: #dce3ef;
  --purple: #7c3aed;
  --purple-deep: #5b21b6;
  --blue: #2563eb;
  --cyan: #00b8b0;
  --amber: #f2b705;
  --green: #13a46b;
  --red: #e05252;
  --shadow: 0 22px 60px rgba(32, 39, 62, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans TC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

button,
a {
  font: inherit;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  font-weight: 900;
}

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

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

.topnav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 8px;
}

.topnav a,
.ghost-button,
.secondary-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 9px 14px;
}

.ghost-button,
.secondary-button,
.primary-button,
.extension-button {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ghost-button:hover,
.secondary-button:hover,
.primary-button:hover,
.extension-button:hover {
  transform: translateY(-1px);
}

.primary-button,
.extension-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: white;
  padding: 13px 20px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(124, 58, 237, .24);
}

main {
  display: grid;
  gap: 28px;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.pipeline,
.workspace,
.lite-section,
.comparison-section,
.talk-track {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 58px;
  min-height: 440px;
  background:
    radial-gradient(circle at 85% 8%, rgba(0, 184, 176, .18), transparent 30%),
    radial-gradient(circle at 12% 85%, rgba(242, 183, 5, .18), transparent 28%),
    white;
}

.eyebrow,
.section-title span,
.panel-head span {
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.metric {
  display: grid;
  min-height: 220px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #15182a, #2a175d);
  color: white;
  text-align: center;
}

.metric strong {
  font-size: 76px;
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, .72);
}

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

.metric-grid div {
  min-height: 106px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-2);
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  font-size: 30px;
}

.metric-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.workflow {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.pipeline,
.workspace,
.lite-section,
.comparison-section,
.talk-track {
  padding: 26px;
}

.section-title h2,
.workspace-toolbar h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafcff;
  cursor: pointer;
}

.steps li.active {
  border-color: rgba(124, 58, 237, .45);
  background: linear-gradient(135deg, rgba(124, 58, 237, .1), rgba(37, 99, 235, .08));
}

.steps li span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  background: white;
  color: var(--purple);
  font-weight: 900;
}

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

.steps small {
  margin-top: 3px;
  color: var(--muted);
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.status-pill {
  min-width: 112px;
  border-radius: 999px;
  background: #edfdf7;
  color: var(--green);
  padding: 10px 14px;
  text-align: center;
  font-weight: 800;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.candidate-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfcff;
  padding: 18px;
  cursor: pointer;
}

.candidate-card.active {
  border-color: rgba(37, 99, 235, .5);
  background: #f0f6ff;
}

.candidate-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  font-weight: 900;
}

.candidate-card h3 {
  margin-bottom: 3px;
  font-size: 17px;
}

.candidate-card p,
.candidate-card small {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 999px;
  background: white;
  color: #34405a;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.insight-layout {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1fr);
  gap: 18px;
}

.analysis-panel,
.decision-panel,
.browser-card,
.excel-card,
.comparison-card,
.script-grid article {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfcff;
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.score-ring {
  display: grid;
  width: 174px;
  height: 174px;
  place-items: center;
  margin: 10px auto 22px;
  border-radius: 50%;
  background: conic-gradient(var(--purple) 0deg, var(--line) 0deg);
}

.score-ring::before {
  content: "";
  position: absolute;
}

.score-ring strong,
.score-ring span {
  display: block;
  position: relative;
  text-align: center;
}

.score-ring strong {
  font-size: 48px;
}

.score-ring span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.score-bars {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 112px 1fr 34px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.decision-panel p {
  color: var(--muted);
  line-height: 1.75;
}

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

.question-list div {
  border-radius: 16px;
  background: white;
  padding: 13px 14px;
  color: #34405a;
}

.lite-section,
.comparison-section,
.talk-track {
  scroll-margin-top: 90px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.comparison-card.assisted {
  border-color: rgba(124, 58, 237, .28);
  background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(37, 99, 235, .06));
}

.compare-label {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.assisted .compare-label {
  color: var(--purple);
}

.comparison-card ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-card li {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  background: white;
  padding: 14px 15px;
}

.comparison-card strong,
.comparison-card span {
  display: block;
}

.comparison-card span {
  color: var(--muted);
  line-height: 1.6;
}

.difference-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.difference-strip div {
  border-radius: 18px;
  background: #15182a;
  color: white;
  padding: 18px;
}

.difference-strip strong,
.difference-strip span {
  display: block;
}

.difference-strip span {
  margin-top: 8px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.6;
}

.lite-demo {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
  margin-top: 22px;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}

.browser-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6b6b;
}

.browser-bar span:nth-child(2) {
  background: #f7c948;
}

.browser-bar span:nth-child(3) {
  background: #2ecc71;
}

.browser-bar strong {
  margin-left: 10px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-mock {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 124px;
  border-radius: 20px;
  background: white;
  padding: 20px;
}

.profile-mock h3 {
  margin-bottom: 8px;
}

.profile-mock p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.extension-button {
  width: 100%;
  margin-top: 18px;
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: white;
}

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

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

td {
  color: #34405a;
}

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

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

.script-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .hero,
  .workflow,
  .lite-demo,
  .insight-layout,
  .comparison-grid,
  .difference-strip {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar,
  .workspace-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    justify-content: flex-start;
  }

  main,
  .topbar {
    padding: 16px;
  }

  .hero-copy,
  .pipeline,
  .workspace,
  .lite-section,
  .comparison-section,
  .talk-track {
    padding: 20px;
  }

  .candidate-grid,
  .metric-grid,
  .script-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 38px;
  }
}
