/* Page styles for home.html (public landing page).
   Loaded before the shared layers (tokens.css … responsive.css), where the
   inline <style> used to be, so the cascade order is unchanged. */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--qice-ink);
  background: radial-gradient(
      circle at 8% 5%,
      rgba(210, 229, 221, 0.75),
      transparent 27rem
    ),
    radial-gradient(
      circle at 92% 12%,
      rgba(238, 215, 162, 0.35),
      transparent 24rem
    ),
    var(--qice-bg);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    sans-serif;
  line-height: 1.7;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* Legacy .site-shell, .site-topbar and .site-nav a values are covered by
   qiceTieredUi. The shared shell supplies the live header layout. */
.site-shell {
  width: min(
    var(--qice-shell-max),
    calc(100% - (var(--qice-page-gutter) * 2))
  );
  margin: 0 auto;
}
.page-content {
  width: min(1180px, calc(100% - (var(--qice-page-gutter) * 2)));
}
.site-topbar {
  position: sticky;
  z-index: 20;
  top: 12px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 95px;
  margin-top: var(--qice-header-top);
  padding: 14px 18px;
  border: 1px solid rgba(217, 221, 216, 0.88);
  border-radius: 16px;
  background: rgba(255, 254, 251, 0.92);
  box-shadow: 0 12px 34px rgba(34, 68, 59, 0.09);
  backdrop-filter: blur(16px);
}
.site-brand {
  display: flex;
  grid-column: 1;
  align-items: center;
  justify-self: start;
  gap: 11px;
  min-width: 216px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 1px solid var(--qice-brand-100);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f5fbf8);
}
.brand-mark img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.brand-name {
  display: block;
  color: var(--qice-brand-950);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.2;
}
.brand-tagline {
  display: block;
  margin-top: 4px;
  color: var(--qice-muted);
  font-size: 10px;
  letter-spacing: 0.07em;
}
.site-nav {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d7e2dd;
  border-radius: 999px;
  background: #f7faf8;
}
.site-nav a {
  display: inline-flex;
  min-width: 142px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  color: #426057;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--qice-brand);
  background: var(--qice-brand-50);
  outline: none;
}
.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--qice-brand);
}
.member-link {
  display: inline-flex;
  grid-column: 3;
  justify-self: end;
  min-height: 42px;
  padding: 9px 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--qice-brand-200);
  border-radius: 13px;
  color: var(--qice-brand);
  background: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.member-link:hover,
.member-link:focus-visible {
  border-color: var(--qice-brand);
  outline: none;
}

main {
  padding: 58px 0 84px;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 54px;
  align-items: center;
  min-height: 630px;
  padding: 58px 56px;
  overflow: hidden;
  border: 1px solid rgba(190, 214, 204, 0.8);
  border-radius: 34px;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 252, 0.98) 0 52%,
    rgba(230, 242, 237, 0.96) 100%
  );
  box-shadow: var(--qice-shadow-md);
}
.hero::before {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(13, 112, 94, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(13, 112, 94, 0.035),
    0 0 0 88px rgba(13, 112, 94, 0.025);
  content: "";
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--qice-brand-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
}
.hero h1 {
  max-width: 660px;
  margin: 0;
  color: var(--qice-brand-950);
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
}
.hero h1 span {
  color: var(--qice-brand);
}
.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #4d655d;
  font-size: 17px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}
.button.primary {
  color: #fff;
  background: var(--qice-brand);
  box-shadow: 0 10px 22px rgba(11, 107, 92, 0.22);
}
.button.primary:hover,
.button.primary:focus-visible {
  background: var(--qice-brand-950);
  outline: none;
}
.button.secondary {
  border-color: var(--qice-brand-200);
  color: var(--qice-brand);
  background: #fff;
}
.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--qice-brand);
  outline: none;
}
.hero-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 22px 0 0;
  color: var(--qice-muted);
  font-size: 11px;
}
.hero-note::before {
  color: var(--qice-premium);
  content: "◆";
  font-size: 9px;
  transform: translateY(3px);
}

.chart-visual {
  position: relative;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 26px;
  border: 1px solid rgba(22, 113, 95, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 252, 0.82);
  box-shadow: 0 25px 60px rgba(25, 75, 62, 0.14);
}
.chart-visual::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(11, 107, 92, 0.07);
  border-radius: 22px;
  content: "";
  pointer-events: none;
}
.chart-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--qice-brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.nine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  aspect-ratio: 1;
  border: 1px solid #87a59a;
  background: #87a59a;
  gap: 1px;
}
.nine-cell {
  display: grid;
  place-items: center;
  min-width: 0;
  color: #31534a;
  background: rgba(255, 255, 252, 0.96);
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
}
.nine-cell:nth-child(odd) {
  background: #f7fbf9;
}
.nine-cell.center {
  position: relative;
  background: linear-gradient(145deg, #fbf5e8, #fffdf8);
}
.nine-cell.center img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  opacity: 0.94;
}
.center-palace-label {
  position: absolute;
  top: 7px;
  left: 8px;
  color: #7a6537;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.chart-caption {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.chart-caption span {
  padding: 7px 4px;
  border-radius: 8px;
  color: var(--qice-brand);
  background: var(--qice-brand-50);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--qice-line);
  border-radius: 22px;
  background: rgba(255, 254, 251, 0.8);
}
.value-strip article {
  display: flex;
  gap: 13px;
  min-height: 110px;
  padding: 24px;
  align-items: center;
}
.value-strip article + article {
  border-left: 1px solid var(--qice-line);
}
.value-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--qice-brand);
  background: var(--qice-brand-50);
  font-family: serif;
  font-size: 21px;
  font-weight: 900;
}
.value-strip h2 {
  margin: 0 0 3px;
  color: var(--qice-brand-950);
  font-size: 15px;
}
.value-strip p {
  margin: 0;
  color: var(--qice-muted);
  font-size: 12px;
  line-height: 1.6;
}

.section {
  padding: 104px 0 0;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 36px;
}
.section-head h2 {
  margin: 0;
  color: var(--qice-brand-950);
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.24;
}
.section-head p {
  margin: 0;
  color: var(--qice-muted);
  font-size: 15px;
  line-height: 1.9;
}
.section-number {
  display: block;
  margin-bottom: 12px;
  color: var(--qice-premium);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.explain-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--qice-line);
  border-radius: var(--qice-radius-md);
  background: rgba(255, 254, 251, 0.86);
}
.explain-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--qice-brand);
  font-family: serif;
  font-size: 21px;
  font-weight: 900;
}
.explain-card h3 {
  margin: 22px 0 8px;
  color: var(--qice-brand-950);
  font-size: 19px;
}
.explain-card p {
  margin: 0;
  color: var(--qice-muted);
  font-size: 13px;
  line-height: 1.85;
}

.decision-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 44px;
  margin-top: 104px;
  padding: 54px;
  border-radius: var(--qice-radius-lg);
  color: #fff;
  background: radial-gradient(
      circle at 86% 12%,
      rgba(239, 204, 127, 0.22),
      transparent 19rem
    ),
    linear-gradient(135deg, var(--qice-brand-950), #1d5e4f);
  box-shadow: var(--qice-shadow-md);
}
.decision-section .section-number {
  color: #f1c66d;
}
.decision-section h2 {
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.24;
}
.decision-section > div > p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.9;
}
.decision-list {
  display: grid;
  gap: 12px;
}
.decision-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}
.decision-item strong {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--qice-brand-950);
  background: #f1c66d;
}
.decision-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.decision-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.65;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.use-case {
  padding: 24px;
  border: 1px solid var(--qice-line);
  border-radius: 16px;
  background: rgba(255, 254, 251, 0.84);
}
.use-case span {
  color: var(--qice-premium);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.use-case h3 {
  margin: 9px 0 6px;
  color: var(--qice-brand-950);
  font-size: 17px;
}
.use-case p {
  margin: 0;
  color: var(--qice-muted);
  font-size: 12px;
  line-height: 1.75;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: process;
}
.step {
  position: relative;
  padding: 27px 26px 28px;
  border-top: 1px solid var(--qice-brand-200);
  counter-increment: process;
}
.step::before {
  display: grid;
  width: 35px;
  height: 35px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--qice-brand);
  content: counter(process, decimal-leading-zero);
  font-size: 10px;
  font-weight: 900;
}
.step:not(:last-child)::after {
  position: absolute;
  top: 44px;
  right: -8px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--qice-brand-200);
  border-right: 1px solid var(--qice-brand-200);
  background: var(--qice-bg);
  content: "";
  transform: rotate(45deg);
}
.step h3 {
  margin: 0 0 7px;
  color: var(--qice-brand-950);
  font-size: 16px;
}
.step p {
  margin: 0;
  color: var(--qice-muted);
  font-size: 12px;
  line-height: 1.75;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  display: flex;
  min-height: 300px;
  padding: 28px;
  flex-direction: column;
  border: 1px solid var(--qice-line);
  border-radius: 22px;
  background: rgba(255, 254, 251, 0.9);
}
.service-card.featured {
  border-color: #8fbfb0;
  background: linear-gradient(155deg, #eff8f4, #fffefb 65%);
  box-shadow: 0 18px 42px rgba(22, 96, 78, 0.1);
}
.service-tag {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--qice-brand);
  background: var(--qice-brand-50);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.service-card h3 {
  margin: 20px 0 8px;
  color: var(--qice-brand-950);
  font-size: 22px;
}
.service-card p {
  margin: 0;
  color: var(--qice-muted);
  font-size: 13px;
  line-height: 1.8;
}
.service-points {
  display: grid;
  gap: 8px;
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
}
.service-points li {
  color: #3c5a51;
  font-size: 12px;
}
.service-points li::before {
  margin-right: 8px;
  color: var(--qice-premium);
  content: "✓";
  font-weight: 900;
}
.service-card .button {
  margin-top: auto;
}

.principle {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin-top: 104px;
  padding: 44px 48px;
  border: 1px solid #dac99d;
  border-radius: var(--qice-radius-lg);
  background: linear-gradient(135deg, #fffaf0, #fffefb);
}
.principle h2 {
  margin: 0 0 9px;
  color: #624c1f;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 31px;
}
.principle p {
  max-width: 760px;
  margin: 0;
  color: #6d624a;
  font-size: 13px;
  line-height: 1.9;
}

@media (max-width: 980px) {
  .site-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
  }
  .member-link {
    grid-column: 2;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 46px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-actions,
  .hero-note {
    justify-content: center;
  }
  .chart-visual {
    max-width: 430px;
  }
  .section-head,
  .decision-section {
    grid-template-columns: 1fr;
  }
  .explain-grid,
  .use-cases,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }
  .site-topbar {
    top: 6px;
    margin-top: 6px;
    padding: 10px;
    border-radius: 17px;
  }
  .site-brand {
    min-width: 0;
  }
  .brand-mark {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
    border-radius: 13px;
  }
  .brand-mark img {
    width: 39px;
    height: 39px;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand-tagline {
    display: none;
  }
  .member-link {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 12px;
  }
  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .site-nav a {
    min-width: 0;
    min-height: 38px;
    padding: 8px 7px;
    font-size: 11px;
  }
  main {
    padding: 24px 0 60px;
  }
  .hero {
    min-height: 0;
    padding: 35px 22px;
    border-radius: 24px;
  }
  .hero h1 {
    font-size: clamp(39px, 12vw, 52px);
  }
  .hero-lead {
    font-size: 15px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
  .chart-visual {
    padding: 18px;
    border-radius: 22px;
  }
  .value-strip,
  .explain-grid,
  .use-cases,
  .steps,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .value-strip article + article {
    border-top: 1px solid var(--qice-line);
    border-left: 0;
  }
  .section {
    padding-top: 76px;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section-head h2,
  .decision-section h2 {
    font-size: 36px;
  }
  .decision-section {
    margin-top: 76px;
    padding: 34px 22px;
    border-radius: 22px;
  }
  .step:not(:last-child)::after {
    display: none;
  }
  .principle {
    grid-template-columns: 1fr;
    margin-top: 76px;
    padding: 32px 22px;
  }
}

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

