:root {
  color-scheme: light;
  --ink: #1d2433;
  --muted: #6f6471;
  --line: #e6d9d2;
  --bg: #fff7f2;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --blue: #1684e8;
  --green: #1f9d74;
  --red: #d65445;
  --gold: #e5a12b;
  --brown: #8a675d;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 242, 0.96), rgba(247, 250, 252, 0.98)),
    radial-gradient(circle at 22% 16%, rgba(22, 132, 232, 0.12), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(31, 157, 116, 0.12), transparent 26%);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 247, 242, 0.88);
  border-bottom: 1px solid rgba(138, 103, 93, 0.16);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  font-weight: 900;
  background: var(--ink);
  border-radius: 8px;
}

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

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #4c4350;
}

.top-nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.74);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: 56px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 5.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: #4f4652;
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.75;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.primary-action {
  color: white;
  background: var(--ink);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.72);
}

.phone-visual {
  width: min(100%, 430px);
  justify-self: center;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(29, 36, 51, 0.16);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
}

.phone-top span {
  width: 38px;
  height: 6px;
  background: #d9e0e7;
  border-radius: 999px;
}

.phone-top strong {
  color: var(--ink);
}

.mastery-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.mastery-row div {
  display: grid;
  min-height: 74px;
  place-items: center;
  padding: 8px 4px;
  background:
    radial-gradient(closest-side, white 73%, transparent 74% 100%),
    conic-gradient(var(--blue) calc(var(--p) * 1%), #e7edf3 0);
  border-radius: 999px;
}

.mastery-row b {
  font-size: 0.94rem;
}

.mastery-row span {
  margin-top: -8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.task-preview {
  margin-top: 12px;
  padding: 18px;
  background: #f7fafc;
  border: 1px solid #e5ecf2;
  border-radius: 12px;
}

.task-preview small {
  color: var(--blue);
  font-weight: 900;
}

.task-preview h3 {
  margin: 8px 0 6px;
}

.task-preview p {
  color: var(--muted);
  line-height: 1.55;
}

.task-preview button {
  width: 100%;
  min-height: 44px;
  color: white;
  font: inherit;
  font-weight: 900;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
}

.task-preview.muted button {
  background: var(--green);
}

.section {
  padding: 52px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

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

.flow-grid article,
.role-grid article,
.data-panel,
.faq-list details {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(29, 36, 51, 0.06);
}

.flow-grid article,
.role-grid article {
  min-height: 202px;
  padding: 22px;
}

.flow-grid span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 16px;
  color: white;
  font-weight: 900;
  background: var(--blue);
  border-radius: 8px;
}

.flow-grid h3,
.role-grid h3 {
  margin-bottom: 10px;
}

.flow-grid p,
.role-grid p,
.faq-list p {
  color: #5f5662;
  line-height: 1.7;
}

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

.data-tabs {
  display: grid;
  align-self: start;
  gap: 8px;
}

.data-tabs button {
  min-height: 46px;
  padding: 0 14px;
  color: #4d4550;
  font: inherit;
  font-weight: 900;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.data-tabs button.active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.data-panels {
  min-width: 0;
}

.data-panel {
  display: none;
  padding: 24px;
}

.data-panel.active {
  display: block;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border-radius: 8px;
}

dt {
  font-weight: 900;
}

dd {
  margin: 0;
  color: #5f5662;
  line-height: 1.7;
}

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

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

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 52px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: white;
  background: var(--ink);
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
}

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

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

  .phone-visual {
    justify-self: start;
  }

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

  .data-layout {
    grid-template-columns: 1fr;
  }

  .data-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: auto;
  }

  .data-tabs button {
    min-width: 120px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .flow-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .mastery-row {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    overflow-x: auto;
  }

  .mastery-row div {
    min-width: 58px;
    min-height: 58px;
  }

  .mastery-row b {
    font-size: 0.78rem;
  }

  .mastery-row span {
    font-size: 0.68rem;
  }

  dl div {
    grid-template-columns: 1fr;
  }
}
