:root {
  color-scheme: light;
  --ink: #131c1a;
  --ink-90: #1d2826;
  --graphite: #4a5560;
  --soft: #f3f5f4;
  --paper: #ffffff;
  --line: #e3e8e6;
  --accent: #1f6e8c;
  --accent-50: #e8f0f4;
  --shadow: 0 30px 60px -28px rgba(19, 28, 26, .28);
  --nav-height: 96px;
  font-family: "Noto Sans TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.inner,
.nav,
.hero {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(227, 232, 230, .9);
  backdrop-filter: blur(14px);
}

.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  height: 62px;
  max-width: 285px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-90);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--accent);
}

.nav-cta {
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transition: background .18s ease;
}

.nav-cta:hover {
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.site-shell {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}

.site-shell::before {
  content: "";
  position: absolute;
  top: var(--nav-height);
  right: 0;
  bottom: auto;
  left: 0;
  height: clamp(560px, 76vh, 760px);
  background:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.94) 32%, rgba(255,255,255,.52) 58%, rgba(255,255,255,.12) 82%, rgba(255,255,255,.02) 100%),
    var(--hero-image, none) right top / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .82fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 88px;
  min-height: calc(86vh - var(--nav-height));
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-meta::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--ink);
}

h1 {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: 72px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

h1 .accent-word {
  color: var(--accent);
}

.hero-copy {
  max-width: 560px;
  margin: 0 0 36px;
  color: var(--graphite);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  border: 1px solid var(--ink);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn.primary {
  background: var(--ink);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

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

.btn.secondary:hover {
  background: var(--ink);
  color: #fff;
}

.btn-arrow {
  width: 14px;
  height: 10px;
  fill: currentColor;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 600px;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.proof {
  padding-right: 18px;
}

.proof + .proof {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.proof b {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.proof span {
  display: block;
  margin-top: 6px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 600;
}

.quote-panel {
  align-self: stretch;
  display: grid;
  align-content: center;
}

.process-ticket {
  padding: 28px 28px 26px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.ticket-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ticket-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--accent-50);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.steps {
  display: grid;
  margin-top: 8px;
}

.step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
}

.step + .step {
  border-top: 1px solid var(--line);
}

.step-no {
  color: var(--graphite);
  font-size: 12px;
  font-weight: 700;
  padding-top: 3px;
}

.step h3,
.product-body h3,
.feature h3,
.stage h3 {
  letter-spacing: 0;
}

.step h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.step p {
  margin: 4px 0 0;
  color: var(--graphite);
  font-size: 13px;
  line-height: 1.55;
}

.section {
  padding: 96px 0;
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: block;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: "-- ";
  color: var(--accent);
}

.section-head h2,
.capability-text h2 {
  margin: 0;
  max-width: 720px;
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}

.product-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef3f6;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.03);
}

.product-num {
  position: absolute;
  left: 16px;
  top: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.product-body {
  flex: 1;
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.32;
  font-weight: 700;
}

.product-body p {
  margin: 0;
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.65;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chip {
  padding: 4px 9px;
  color: var(--ink-90);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.capability {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}

.image-stack {
  position: relative;
  aspect-ratio: 5 / 6;
  max-height: 560px;
}

.image-stack .photo-main {
  width: 88%;
  height: 88%;
  object-fit: cover;
  border-radius: 4px;
}

.image-stack .commit-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%;
  padding: 22px 24px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.commit-card .label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.commit-card .quote {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
}

.commit-card .byline {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--graphite);
  font-size: 12px;
  font-weight: 700;
}

.capability-text h2 {
  margin-bottom: 24px;
}

.capability-text > p {
  margin: 0 0 40px;
  color: var(--graphite);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  max-width: 560px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  padding: 24px 22px 24px 0;
  border-bottom: 1px solid var(--line);
}

.feature:nth-child(2n) {
  padding-left: 22px;
  border-left: 1px solid var(--line);
  padding-right: 0;
}

.feature .num,
.stage .stage-no {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.6;
}

.bag-table {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
}

.bag-row {
  display: grid;
  grid-template-columns: 80px 180px minmax(0, 1fr) 200px;
  gap: 24px;
  padding: 18px 24px;
  align-items: center;
}

.bag-row + .bag-row {
  border-top: 1px solid var(--line);
}

.bag-row.header {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.bag-row .id {
  color: var(--graphite);
  font-size: 12px;
  font-weight: 700;
}

.bag-row.header .id {
  color: rgba(255,255,255,.55);
}

.bag-row strong {
  font-size: 18px;
  font-weight: 700;
}

.bag-row .apply {
  color: var(--ink-90);
  font-size: 15px;
  font-weight: 500;
}

.bag-row .tier {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 600;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.stage {
  padding: 28px 22px 26px 0;
  position: relative;
}

.stage + .stage {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.stage h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.stage p {
  margin: 0;
  color: var(--graphite);
  font-size: 13px;
  line-height: 1.6;
}

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
}

.cta-layout h2 {
  margin: 0 0 18px;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 800;
  max-width: 640px;
}

.cta-layout > div > p {
  margin: 0;
  max-width: 620px;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
}

.contact-box {
  padding: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  font-style: normal;
}

.contact-box .label {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.contact-box a,
.contact-box span {
  display: block;
  padding: 10px 0;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.contact-box a:first-of-type {
  border-top: none;
  padding-top: 0;
}

.contact-box a:hover {
  color: #8ecde0;
}

.footer {
  padding: 32px 0;
  background: #0a1110;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}

.footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  height: 56px;
  width: auto;
  max-width: 265px;
  padding: 6px 10px;
  background: #fff;
  border-radius: 4px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand span {
  color: rgba(255,255,255,.72);
  font-weight: 600;
}

.scroll-cue {
  position: absolute;
  left: 24px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--graphite);
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 700;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--ink) 0, transparent 100%);
}

@media (max-width: 1024px) {
  .brand img {
    height: 54px;
    max-width: 288px;
  }

  .nav-links {
    gap: 22px;
  }

  h1 {
    font-size: 56px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 56px;
    min-height: auto;
  }

  .site-shell::before {
    top: var(--nav-height);
    right: 0;
    bottom: auto;
    left: 0;
    height: 620px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.88) 48%, rgba(255,255,255,.98) 100%),
      var(--hero-image, none) center top / cover no-repeat;
  }

  .scroll-cue {
    display: none;
  }

  .section-head,
  .cta-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .capability {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .image-stack {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

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

  .stage + .stage {
    padding-left: 0;
    border-left: none;
  }

  .stage {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
  }

  .stage:nth-child(odd) {
    padding-right: 16px;
  }

  .stage:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

  .bag-row {
    grid-template-columns: 60px 140px minmax(0, 1fr) 140px;
    gap: 16px;
    padding: 16px;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-height: 82px;
  }

  .inner,
  .nav,
  .hero {
    width: min(100% - 32px, 1200px);
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a.nav-cta {
    margin-top: 12px;
    text-align: center;
    border-radius: 4px;
    border-bottom: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand img {
    height: 46px;
    max-width: 230px;
  }

  .hero {
    padding: 36px 0 44px;
  }

  .hero-meta {
    margin-bottom: 22px;
    font-size: 12px;
    gap: 10px;
  }

  .hero-meta::before {
    width: 24px;
  }

  h1 {
    font-size: 42px;
    margin-bottom: 22px;
  }

  .hero-copy {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .actions {
    width: 100%;
  }

  .btn {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
  }

  .proof-row {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .proof {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .proof:first-child {
    border-top: none;
    padding-top: 0;
  }

  .proof + .proof {
    padding-left: 0;
    border-left: none;
  }

  .process-ticket {
    padding: 22px 20px;
  }

  .ticket-head h2 {
    font-size: 19px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2,
  .capability-text h2,
  .cta-layout h2 {
    font-size: 32px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-body {
    padding: 20px 20px 22px;
  }

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

  .feature {
    padding: 20px 0 !important;
    border-left: none !important;
    border-bottom: 1px solid var(--line);
  }

  .feature:last-child {
    border-bottom: none;
  }

  .commit-card {
    position: static !important;
    width: 100% !important;
    margin-top: 16px;
  }

  .image-stack {
    aspect-ratio: auto;
  }

  .image-stack .photo-main {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

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

  .stage {
    padding: 22px 0 !important;
    border-left: none !important;
    border-bottom: 1px solid var(--line);
  }

  .stage:last-child {
    border-bottom: none;
  }

  .bag-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px;
  }

  .bag-row.header {
    display: none;
  }

  .bag-row .id::before {
    content: "編號 / ";
  }

  .bag-row .apply::before {
    content: "適用 / ";
    color: var(--graphite);
  }

  .bag-row .tier::before {
    content: "客戶 / ";
    color: var(--graphite);
  }

  .contact-box {
    padding: 22px 20px;
  }

  .footer .inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-brand img {
    height: 48px;
    max-width: 225px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
