:root {
  --ivory: #fbf7ef;
  --cream: #f3eadc;
  --milk: #dcc8ad;
  --coffee: #7a5a43;
  --clay: #b46b4b;
  --sage: #8fa58b;
  --moss: #4f6f5f;
  --gold: #d6a94f;
  --ink: #2d2a25;
  --muted: #665f56;
  --white: #fffdf8;
  --shadow: 0 22px 70px rgba(72, 54, 36, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  line-height: 1.8;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clay), var(--gold), var(--sage));
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 900;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(122, 90, 67, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 14px 42px rgba(72, 54, 36, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 50px rgba(72, 54, 36, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--coffee);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--clay), var(--moss));
  font-family: Georgia, serif;
}

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

.site-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--moss);
  background: rgba(143, 165, 139, 0.16);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(143, 165, 139, 0.16);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--moss);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 104px 0;
}

.hero {
  min-height: 96vh;
  display: grid;
  align-items: center;
  padding: 130px 0 72px;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 247, 239, 0.98) 0%, rgba(251, 247, 239, 0.84) 39%, rgba(251, 247, 239, 0.22) 68%),
    linear-gradient(180deg, rgba(45, 42, 37, 0.04), rgba(79, 111, 95, 0.12));
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin-left: max(calc((100% - 1120px) / 2), 20px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--moss);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--coffee);
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(3rem, 7vw, 5.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  color: var(--coffee);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.24;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--coffee);
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 710px;
  color: #463d33;
  font-size: clamp(1.16rem, 2vw, 1.55rem);
  line-height: 1.75;
}

.hero-copy {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.35;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--clay), var(--moss));
  box-shadow: 0 14px 28px rgba(122, 90, 67, 0.22);
}

.button.ghost {
  color: var(--coffee);
  background: rgba(255, 253, 248, 0.68);
  border-color: rgba(122, 90, 67, 0.25);
}

.soft-band {
  background:
    radial-gradient(circle at 8% 18%, rgba(143, 165, 139, 0.2), transparent 30%),
    linear-gradient(180deg, #f8f1e7, #eef1e6);
}

.earth-band {
  color: var(--white);
  background: linear-gradient(135deg, #5c4a39, #4f6f5f 62%, #8b6a45);
}

.earth-band h2,
.earth-band h3,
.earth-band .eyebrow {
  color: var(--white);
}

.earth-band p {
  color: rgba(255, 253, 248, 0.86);
}

.two-column,
.story-grid,
.benefits-layout,
.credentials,
.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.section-intro p,
.story-copy p,
.center-note,
.quiet-note {
  color: var(--muted);
  font-size: 1.04rem;
}

.check-panel {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(122, 90, 67, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
}

.check-panel label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(122, 90, 67, 0.1);
  color: #4c443b;
  cursor: pointer;
}

.check-panel label:last-of-type {
  border-bottom: 0;
}

.check-panel input {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  accent-color: var(--moss);
}

.check-result {
  margin-top: 10px;
  padding: 14px 16px;
  border-left: 4px solid var(--sage);
  background: rgba(143, 165, 139, 0.14);
  color: var(--moss);
  font-weight: 700;
}

.quote-strip,
.quiet-note,
.highlight-line {
  margin-top: 52px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow);
  color: var(--coffee);
  font-size: 1.2rem;
  line-height: 1.85;
}

.earth-band .quiet-note {
  background: rgba(255, 253, 248, 0.12);
  color: var(--white);
  box-shadow: none;
}

.story-card {
  position: sticky;
  top: 110px;
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(243, 234, 220, 0.86));
  box-shadow: var(--shadow);
}

.story-copy {
  padding-top: 12px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-list span,
.fit-grid span,
.benefit-cloud span {
  display: inline-flex;
  align-items: center;
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.15);
  color: var(--white);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.strength-card {
  min-height: 228px;
  padding: 26px;
  border: 1px solid rgba(122, 90, 67, 0.13);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 45px rgba(72, 54, 36, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.strength-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.strength-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--sage);
  font-family: Georgia, serif;
  font-size: 2rem;
}

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

.center-note {
  max-width: 820px;
  margin: 42px auto 0;
  text-align: center;
}

.tabs {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(143, 165, 139, 0.14);
}

.tab-buttons button {
  min-height: 58px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.tab-buttons button[aria-selected="true"] {
  color: var(--moss);
  border-color: var(--moss);
  background: var(--white);
}

.tab-panel {
  display: none;
  padding: 34px;
}

.tab-panel.is-active {
  display: block;
  animation: panelIn 0.32s ease both;
}

.tab-panel p {
  max-width: 760px;
  color: var(--muted);
}

.benefit-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.benefit-cloud span,
.fit-grid span {
  color: var(--coffee);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(72, 54, 36, 0.08);
}

.highlight-line {
  color: var(--moss);
  font-weight: 800;
  text-align: center;
}

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

.credential-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.12);
}

.credential-list span {
  color: rgba(255, 253, 248, 0.82);
}

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

.statement-band {
  color: var(--white);
  background:
    linear-gradient(rgba(79, 111, 95, 0.9), rgba(79, 111, 95, 0.92)),
    url("assets/hero-joyce-nsnlp.png") center / cover;
}

.statement-band h2 {
  max-width: 1020px;
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.8rem);
}

.statement-band p {
  max-width: 780px;
  color: rgba(255, 253, 248, 0.88);
  font-size: 1.14rem;
}

.cta-section {
  background:
    radial-gradient(circle at 15% 18%, rgba(214, 169, 79, 0.18), transparent 34%),
    radial-gradient(circle at 84% 62%, rgba(143, 165, 139, 0.24), transparent 32%),
    var(--ivory);
}

.cta-card {
  max-width: 860px;
  padding: 46px;
  border: 1px solid rgba(122, 90, 67, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

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

.site-footer {
  padding: 54px 0;
  color: var(--white);
  background: #2f3f36;
}

.site-footer h2 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1.6rem;
}

.site-footer p {
  color: rgba(255, 253, 248, 0.78);
}

.site-footer strong {
  color: #f2d999;
}

.footer-links {
  display: grid;
  gap: 10px;
  justify-self: end;
  min-width: 220px;
}

.footer-links a {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.2);
  color: rgba(255, 253, 248, 0.84);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 42, 37, 0.52);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  animation: panelIn 0.24s ease both;
}

.modal-dialog p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--coffee);
  background: rgba(122, 90, 67, 0.1);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(280px, calc(100vw - 24px));
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px 14px;
  }

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

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(251, 247, 239, 0.97) 0%, rgba(251, 247, 239, 0.9) 55%, rgba(251, 247, 239, 0.62) 100%),
      linear-gradient(180deg, rgba(45, 42, 37, 0.04), rgba(79, 111, 95, 0.12));
  }

  .hero-media img {
    object-position: 63% center;
  }

  .two-column,
  .story-grid,
  .benefits-layout,
  .credentials,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .story-card {
    position: static;
  }

  .strength-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .tab-buttons {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand span:last-child {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section {
    padding: 76px 0;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.9rem;
  }

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

  .button {
    width: 100%;
  }

  .check-panel,
  .quote-strip,
  .quiet-note,
  .highlight-line,
  .story-card,
  .cta-card,
  .modal-dialog,
  .tab-panel {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
