:root {
  --ink: #17201f;
  --muted: #66716f;
  --line: #dce4df;
  --paper: #fbfcf9;
  --panel: #ffffff;
  --green: #18b6a6;
  --green-dark: #071f24;
  --gold: #d7a84b;
  --blue: #2e6c94;
  --soft: #eef7f4;
  --shadow: 0 24px 70px rgba(23, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(251, 252, 249, 0.92);
  border-bottom: 1px solid rgba(220, 228, 223, 0.85);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #06272d, #0f7a74 58%, #d7a84b);
  color: #fff;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.desktop-nav {
  display: flex;
  gap: clamp(10px, 1.25vw, 18px);
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--muted);
  font-size: 13px;
}

.desktop-nav a {
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: var(--green-dark);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
}

.nav-cta {
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 64px) 48px;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.button {
  border: 1px solid var(--ink);
  padding: 0 20px;
  cursor: pointer;
  font-size: 15px;
}

.button.primary {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 0;
}

.trust-row div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trust-row dt {
  font-size: 24px;
  font-weight: 800;
}

.trust-row dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-media {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-dashboard {
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2.4vw, 24px);
  background:
    radial-gradient(circle at 82% 18%, rgba(215, 168, 75, 0.34), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(24, 182, 166, 0.3), transparent 30%),
    linear-gradient(135deg, #071f24 0%, #0b3534 56%, #dbe9e2 100%);
  color: #fff;
}

.dashboard-topbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(4, 20, 24, 0.72);
}

.dashboard-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #18b6a6;
}

.dashboard-topbar span:nth-child(2) {
  background: #d7a84b;
}

.dashboard-topbar span:nth-child(3) {
  background: rgba(255, 255, 255, 0.5);
}

.dashboard-topbar strong {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.dashboard-hero {
  margin: clamp(18px, 3vw, 28px) 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(159, 246, 235, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(24, 182, 166, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(4, 20, 24, 0.56);
}

.dashboard-hero p,
.dashboard-label {
  margin: 0 0 10px;
  color: #9ff6eb;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-hero h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.06;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.92fr);
  gap: 16px;
  margin-top: auto;
}

.dashboard-list,
.dashboard-metrics {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(251, 252, 249, 0.94);
  color: var(--ink);
}

.dashboard-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.dashboard-list article:first-of-type {
  border-top: 0;
}

.dashboard-list strong,
.dashboard-metrics strong {
  font-size: 16px;
}

.dashboard-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-align: right;
}

.dashboard-metrics {
  display: grid;
  gap: 12px;
}

.dashboard-metrics div {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.dashboard-metrics p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.notice-band {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: #fff;
}

.notice-band span {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 64px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.12;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 28px;
  max-width: none;
  align-items: end;
}

.section-heading p,
.contact-section p {
  color: var(--muted);
}

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

.roles {
  background: #071f24;
  color: #fff;
}

.roles .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

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

.persona-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.persona-card img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.persona-card div {
  padding: 22px;
}

.persona-card span,
.article-grid span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.persona-card h3 {
  margin: 8px 0;
  font-size: 24px;
}

.persona-card p {
  color: rgba(255, 255, 255, 0.72);
}

.intro-grid article,
.firm-card,
.steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.intro-grid article {
  padding: 24px;
}

.intro-grid h3,
.firm-card h3,
.steps h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.intro-grid p,
.firm-card p,
.steps p,
.firm-card li {
  color: var(--muted);
}

.firms {
  background: var(--soft);
}

.firm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.filter-button.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.firm-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
}

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

.firm-card.is-hidden {
  display: none;
}

.firm-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.firm-logo {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: #e8f1ef;
  color: var(--green-dark);
  font-weight: 900;
}

.badge {
  border-radius: 999px;
  padding: 5px 10px;
  background: #f7ecd8;
  color: #8a5d1e;
  font-size: 12px;
  font-weight: 800;
}

.firm-card ul {
  padding-left: 18px;
}

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

.workflow {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 250px;
  padding: 24px;
}

.steps span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-weight: 900;
}

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

.articles {
  background: var(--paper);
}

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

.article-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(24, 182, 166, 0.08), transparent 42%),
    #fff;
}

.article-grid h3 {
  margin: 10px 0;
  font-size: 24px;
  line-height: 1.25;
}

.article-grid p {
  color: var(--muted);
}

.article-grid a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green-dark);
  font-weight: 900;
}

.article-page {
  background:
    linear-gradient(135deg, rgba(24, 182, 166, 0.1), transparent 34%),
    var(--paper);
  overflow-x: hidden;
}

.article-shell {
  width: 100%;
  max-width: 980px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 86px) clamp(20px, 5vw, 48px) 96px;
}

.article-shell h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 68px);
  overflow-wrap: anywhere;
}

.article-shell h1 span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.38em;
  line-height: 1.1;
}

.article-lede {
  max-width: 820px;
  color: var(--muted);
  font-size: 20px;
}

.article-hero-image {
  width: 100%;
  max-width: 100%;
  max-height: 520px;
  margin: 34px 0;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article-shell section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-shell h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
}

.article-shell p,
.article-shell li {
  color: var(--muted);
  font-size: 17px;
}

.article-shell li + li {
  margin-top: 8px;
}

.article-callout {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

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

.concept-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.concept-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 18px;
}

.concept-grid p {
  margin: 0;
}

.source-note {
  margin: 32px 0 20px;
  font-size: 14px;
}

.source-note a {
  color: var(--green-dark);
  font-weight: 800;
}

.resource-list a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.resource-list span {
  color: var(--blue);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(24, 182, 166, 0.14), transparent 42%),
    var(--green-dark);
  color: #fff;
}

.contact-section .eyebrow,
.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 64px);
  background: #101716;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

@media (max-width: 1180px) {
  .firm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .hero,
  .section-heading.split,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  h1 {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    font-size: 30px;
    line-height: 1.16;
    word-break: break-all;
  }

  .hero-lede {
    width: min(100%, 320px);
    max-width: 320px;
    font-size: 16px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .article-shell h1 {
    width: min(100%, 330px);
    max-width: 330px;
    font-size: 32px;
    word-break: break-all;
  }

  .article-lede {
    max-width: 320px;
    font-size: 17px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .article-shell p,
  .article-shell ul,
  .article-shell li,
  .article-callout,
  .concept-grid {
    max-width: 330px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img {
    min-height: 380px;
  }

  .hero-dashboard {
    min-height: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-list article {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .dashboard-list em {
    text-align: left;
  }

  .trust-row,
  .intro-grid,
  .persona-grid,
  .steps,
  .firm-grid,
  .resource-list,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .notice-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-list a {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}
