:root {
  color-scheme: light;
  --ink: #26312a;
  --muted: #66746b;
  --paper: #fffaf1;
  --paper-strong: #f5eadb;
  --sage: #8aa17c;
  --sage-deep: #3f5c4a;
  --coral: #df7b5d;
  --butter: #f2c66d;
  --line: #e5d8c8;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(63, 92, 74, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(255, 250, 241, 1) 540px),
    var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

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;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(255, 250, 241, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(63, 92, 74, 0.16);
  border-radius: 8px;
  background: var(--sage-deep);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 16px;
}

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

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.top-nav a:hover {
  color: var(--sage-deep);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 36px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  padding: 26px 0 64px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.search-panel {
  width: min(620px, 100%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin: 0 0 10px;
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 900;
}

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

.search-row input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
}

.search-row input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(138, 161, 124, 0.2);
}

.search-row button,
.hero-chips button,
.filter-tabs button {
  border: 0;
  cursor: pointer;
}

.search-row button {
  min-height: 52px;
  border-radius: 8px;
  background: var(--sage-deep);
  color: var(--white);
  padding: 0 22px;
  font-weight: 900;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-chips button {
  min-height: 38px;
  border: 1px solid rgba(63, 92, 74, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sage-deep);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
}

.hero-media {
  position: relative;
  margin: 0;
}

.hero-media::before {
  position: absolute;
  inset: 9% -4% -5% 12%;
  z-index: -1;
  border-radius: 8px;
  background: var(--butter);
  content: "";
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 28px 80px rgba(63, 92, 74, 0.22);
}

.metrics,
.section-block,
.section-band,
.article-preview,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metrics div {
  min-height: 112px;
  background: rgba(255, 255, 255, 0.72);
  padding: 22px;
}

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

.metrics strong {
  margin-bottom: 8px;
  color: var(--sage-deep);
  font-size: 30px;
  line-height: 1.1;
}

.metrics span {
  color: var(--muted);
  font-weight: 800;
}

.section-block {
  padding: 86px 0 0;
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}

.cluster-grid,
.answer-grid {
  display: grid;
  gap: 16px;
}

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

.cluster-card,
.answer-card,
.roadmap-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.cluster-card {
  min-height: 230px;
  padding: 22px;
}

.cluster-card span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  background: rgba(138, 161, 124, 0.18);
  color: var(--sage-deep);
  font-weight: 900;
}

.cluster-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.cluster-card p,
.answer-card p,
.roadmap-copy p,
.roadmap-list p {
  color: var(--muted);
  line-height: 1.72;
}

.cluster-card p {
  margin-bottom: 20px;
}

.cluster-card small {
  color: var(--coral);
  font-weight: 900;
}

.answers-block {
  padding-bottom: 86px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
}

.filter-tabs button[aria-pressed="true"] {
  background: var(--sage-deep);
  color: var(--white);
}

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

.answer-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 22px;
}

.answer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.answer-meta span {
  border-radius: 999px;
  background: rgba(138, 161, 124, 0.16);
  padding: 5px 9px;
}

.answer-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.answer-card p {
  margin-bottom: 20px;
}

.answer-card a {
  margin-top: auto;
  color: var(--sage-deep);
  font-weight: 900;
}

.answer-card button {
  width: fit-content;
  margin-top: auto;
  border: 0;
  background: transparent;
  color: var(--sage-deep);
  cursor: pointer;
  padding: 0;
  font-weight: 900;
}

.article-preview {
  margin-bottom: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 24px;
}

.preview-label {
  margin-bottom: 16px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-body {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
}

.preview-body h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.12;
}

.preview-body p {
  color: var(--muted);
  line-height: 1.72;
}

.preview-answer {
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 22px;
}

.preview-answer strong {
  display: block;
  margin-bottom: 14px;
  color: var(--sage-deep);
  font-size: 22px;
}

.preview-answer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.section-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 74px;
  padding: 46px;
  border-radius: 8px;
  background: var(--sage-deep);
  color: var(--white);
}

.section-band .eyebrow,
.section-band p {
  color: rgba(255, 255, 255, 0.76);
}

.roadmap-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
}

.roadmap-list {
  display: grid;
  gap: 12px;
}

.roadmap-list div {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
}

.roadmap-list span {
  display: block;
  margin-bottom: 10px;
  color: var(--butter);
  font-weight: 900;
}

.roadmap-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong {
  color: var(--ink);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero,
  .preview-body,
  .section-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

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

  .row-heading {
    display: block;
  }

  .filter-tabs {
    justify-content: flex-start;
    margin-top: 18px;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
  }

  .top-nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero,
  .metrics,
  .section-block,
  .section-band,
  .article-preview,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 43px;
  }

  .hero-text {
    font-size: 17px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row button {
    width: 100%;
  }

  .metrics,
  .cluster-grid,
  .answer-grid {
    grid-template-columns: 1fr;
  }

  .metrics div {
    min-height: 96px;
  }

  .section-band {
    padding: 28px;
  }

  .site-footer {
    display: block;
  }

  .site-footer strong {
    display: block;
    margin-bottom: 8px;
  }
}
