:root {
  --ink: #151816;
  --ink-soft: #313934;
  --muted: #65716b;
  --paper: #f7f2e8;
  --paper-strong: #fffdf7;
  --mist: #e8eee9;
  --line: #ded6ca;
  --teal: #0e766f;
  --teal-dark: #0a4f49;
  --coral: #cf6b57;
  --brass: #b48943;
  --sage: #8ca393;
  --shadow: 0 24px 70px rgb(22 25 23 / 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
summary,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgb(14 118 111 / 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgb(222 214 202 / 0.75);
  background: rgb(247 242 232 / 0.86);
  padding: 0.78rem max(1rem, calc((100vw - 1200px) / 2 + 1rem));
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 800;
}

.brand-name,
.brand-note {
  display: block;
  white-space: nowrap;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-note {
  margin-top: 0.05rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.18rem;
}

.site-nav a {
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.58rem 0.65rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--mist);
  color: var(--ink);
}

.site-nav .nav-cta {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  margin-left: 0.3rem;
  padding-inline: 0.9rem;
}

.site-nav .nav-cta:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: white;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  isolation: isolate;
  overflow: hidden;
}

.hero {
  min-height: 75svh;
  align-items: end;
}

.page-hero {
  min-height: 56svh;
  align-items: center;
}

.hero-image,
.page-hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image,
.page-hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(9 12 11 / 0.86), rgb(9 12 11 / 0.58) 46%, rgb(9 12 11 / 0.16)),
    linear-gradient(0deg, rgb(9 12 11 / 0.35), transparent 54%);
}

.hero-content,
.page-hero-content {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  color: white;
}

.hero-content {
  padding: 6.8rem 0 4.8rem;
}

.page-hero-content {
  padding: 5.2rem 0 4.2rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--teal);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.cta-section .eyebrow {
  color: #87e0d5;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 6.4rem;
}

.page-hero h1 {
  font-size: 4.8rem;
}

.hero-lede,
.page-hero-lede {
  max-width: 720px;
  margin: 1.35rem 0 0;
  color: rgb(255 253 247 / 0.9);
  font-size: 1.25rem;
  line-height: 1.9;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  padding: 0.82rem 1.08rem;
  text-align: center;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
}

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

.button-secondary {
  border: 1px solid rgb(255 253 247 / 0.55);
  background: rgb(255 253 247 / 0.08);
  color: white;
  backdrop-filter: blur(14px);
}

.button-quiet {
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--teal-dark);
  font-weight: 800;
}

.text-link::after,
.link-card a::after {
  content: "→";
  margin-left: 0.45rem;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.proof-band div {
  min-height: 92px;
  border-right: 1px solid var(--line);
  padding: 1rem max(1rem, calc((100vw - 1200px) / 2 + 1rem));
}

.proof-band div:first-child {
  padding-left: max(1rem, calc((100vw - 1200px) / 2 + 1rem));
}

.proof-band strong {
  display: block;
  color: var(--coral);
  font-size: 0.78rem;
  margin-bottom: 0.38rem;
}

.proof-band span {
  display: block;
  font-weight: 800;
}

.section {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  padding: 6rem 0;
}

.section.compact {
  padding-top: 3.5rem;
}

.section.tinted {
  width: 100%;
  max-width: none;
  border-block: 1px solid var(--line);
  background: #ece8dc;
  padding-inline: max(1rem, calc((100vw - 1180px) / 2 + 1rem));
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 3rem;
}

.section-grid.reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.section-grid.reverse .section-heading {
  order: 2;
}

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

.section-heading.narrow {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading.split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.6rem;
}

.section-heading p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.insight-panel,
.media-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.insight-panel img,
.media-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

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

.link-card,
.article-card,
.detail-card,
.process-card,
.metric-card,
.check-card,
.case-card,
.resource-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 1.35rem;
}

.link-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
}

.link-card h3,
.article-card h3,
.detail-card h3,
.process-card h3,
.case-card h3,
.resource-card h3,
.check-card h3 {
  margin: 0.7rem 0 0;
  font-size: 1.35rem;
}

.link-card p,
.article-card span,
.detail-card p,
.process-card p,
.case-card p,
.resource-card p,
.check-card p,
.metric-card p {
  color: var(--muted);
}

.link-card a {
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 800;
}

.item-index {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
}

.model-grid {
  width: min(100%, 1180px);
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.model-grid article {
  min-height: 230px;
  background: var(--paper);
  padding: 1.35rem;
}

.model-grid h3 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 1.25rem;
}

.model-grid p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.case-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.case-strip article {
  min-height: 245px;
  border-right: 1px solid var(--line);
  padding: 1.4rem;
}

.case-strip article:last-child {
  border-right: 0;
}

.case-strip span {
  color: var(--brass);
  font-weight: 800;
}

.case-strip h3 {
  margin: 0.9rem 0 0;
  font-size: 1.45rem;
}

.case-strip p {
  color: var(--muted);
}

.score-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(14 118 111 / 0.12), transparent 38%),
    var(--paper-strong);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.score-preview strong {
  display: block;
  color: var(--teal-dark);
  font-size: 5rem;
  line-height: 1;
}

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

.score-preview ul,
.feature-list,
.deliverable-list,
.case-points {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.score-preview li,
.feature-list li,
.deliverable-list li,
.case-points li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: var(--ink-soft);
}

.score-preview li::before,
.feature-list li::before,
.deliverable-list li::before,
.case-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.12rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--coral);
}

.article-card p {
  margin: 0;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-card {
  min-height: 230px;
}

.article-card span {
  display: block;
  margin-top: 1rem;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  background: var(--ink);
  color: white;
  padding: 4.5rem max(1rem, calc((100vw - 1180px) / 2 + 1rem));
}

.cta-section h2 {
  max-width: 800px;
  margin: 0;
  font-size: 2.7rem;
}

.cta-section p:not(.eyebrow) {
  max-width: 700px;
  color: rgb(255 253 247 / 0.74);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.2fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  background: var(--paper-strong);
  padding: 3rem max(1rem, calc((100vw - 1180px) / 2 + 1rem));
}

.footer-brand {
  display: inline-block;
  font-weight: 850;
}

.site-footer p,
.site-footer small {
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
}

.site-footer nav a {
  color: var(--ink-soft);
  font-weight: 700;
}

.site-footer small {
  grid-column: 1 / -1;
}

.breadcrumb {
  width: min(100% - 2rem, 1180px);
  margin: 1.5rem auto -1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--teal-dark);
  font-weight: 700;
}

.service-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: 2rem;
  align-items: start;
}

.lead-copy {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2rem;
  line-height: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.stack {
  display: grid;
  gap: 1rem;
}

.timeline {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.process-card {
  position: relative;
  padding-left: 4.5rem;
}

.process-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.35rem;
  top: 1.35rem;
  color: var(--coral);
  font-weight: 850;
}

.compare-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.compare-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row > * {
  padding: 1rem;
}

.compare-row strong {
  background: var(--mist);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 1rem 1.15rem;
}

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

.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.case-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
}

.case-card .tag {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.65rem;
}

.case-card .case-points {
  margin-top: auto;
}

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

.resource-card {
  min-height: 260px;
}

.resource-card .type {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.audit-groups {
  display: grid;
  gap: 1rem;
}

.check-card label {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

.check-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.score-card {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.score-number {
  display: flex;
  align-items: end;
  gap: 0.25rem;
  color: var(--teal-dark);
}

.score-number strong {
  font-size: 4.7rem;
  line-height: 0.9;
}

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

.score-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mist);
  margin: 1.25rem 0;
}

.score-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  transition: width 180ms ease;
}

.score-card p {
  color: var(--muted);
}

.score-card ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .site-header {
    padding-inline: 1rem;
  }

  .site-nav a {
    font-size: 0.84rem;
    padding-inline: 0.48rem;
  }

  .hero h1 {
    font-size: 5rem;
  }

  .page-hero h1 {
    font-size: 4rem;
  }

  .section-grid,
  .section-grid.reverse,
  .service-overview,
  .detail-layout,
  .audit-layout {
    grid-template-columns: 1fr;
  }

  .section-grid.reverse .section-heading {
    order: 0;
  }

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

  .score-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .brand-note {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 72px 1rem auto 1rem;
    display: none;
    max-height: calc(100svh - 96px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
    padding: 0.6rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a,
  .site-nav .nav-cta {
    display: block;
    margin: 0;
    padding: 0.85rem;
  }

  .hero {
    min-height: 76svh;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 3.25rem;
  }

  .hero-lede,
  .page-hero-lede {
    font-size: 1.05rem;
  }

  .proof-band,
  .card-grid.two,
  .card-grid.three,
  .model-grid,
  .case-strip,
  .metric-row,
  .case-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .proof-band div,
  .case-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-band div:last-child,
  .case-strip article:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 4rem 0;
  }

  .section-heading h2,
  .cta-section h2 {
    font-size: 2rem;
  }

  .section-heading.split,
  .cta-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

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

@media (max-width: 520px) {
  .brand-name {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-content,
  .page-hero-content {
    width: min(100% - 1.25rem, 1180px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.75rem;
  }

  .hero-actions,
  .section-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .process-card {
    padding-left: 1.35rem;
    padding-top: 3.4rem;
  }

  .process-card::before {
    top: 1rem;
  }
}
