:root {
  color-scheme: light;
  --ink: #16211f;
  --muted: #5c6764;
  --line: #dfe6e2;
  --paper: #f6f8f4;
  --white: #ffffff;
  --green: #2e6f58;
  --green-deep: #164838;
  --teal: #1a8c8f;
  --blue: #245e9c;
  --coral: #c9624a;
  --gold: #a97f35;
  --shadow: 0 24px 80px rgba(22, 33, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 64px);
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-open,
.subpage .site-header {
  color: var(--ink);
  background: rgba(246, 248, 244, 0.94);
  box-shadow: 0 1px 0 rgba(22, 33, 31, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: currentColor;
  font-size: 0.73rem;
  opacity: 0.7;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

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

.hero {
  position: relative;
  min-height: 88svh;
  padding: 152px clamp(22px, 7vw, 104px) 96px;
  overflow: hidden;
  color: var(--white);
  background: #172522;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 21, 19, 0.88) 0%, rgba(12, 21, 19, 0.66) 42%, rgba(12, 21, 19, 0.3) 100%),
    radial-gradient(circle at 72% 30%, rgba(30, 126, 122, 0.24), transparent 38%);
  content: "";
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    #172522;
  background-size: 56px 56px;
}

.scene-grid {
  position: absolute;
  inset: auto -8% -18% 42%;
  height: 68%;
  transform: skewY(-8deg);
  background:
    linear-gradient(120deg, rgba(250, 252, 246, 0.14), rgba(250, 252, 246, 0)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 52px);
}

.scene-panel {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(239, 246, 241, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.scene-panel-main {
  right: clamp(22px, 8vw, 128px);
  bottom: 11%;
  width: min(46vw, 620px);
  min-width: 460px;
  padding: 18px;
  transform: perspective(1100px) rotateY(-10deg) rotateX(5deg);
}

.panel-top {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 74px 1fr;
  min-height: 330px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(250, 252, 246, 0.9);
}

.preview-sidebar {
  padding: 22px 18px;
  background: #23342f;
}

.preview-sidebar i {
  display: block;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
}

.preview-content {
  padding: 24px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.preview-row span {
  height: 18px;
  border-radius: 999px;
  background: #cedbd5;
}

.preview-row span:first-child {
  width: 44%;
}

.preview-row span:last-child {
  width: 22%;
}

.preview-chart {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 150px;
  padding: 18px;
  border-radius: 8px;
  background: #e8efe9;
}

.preview-chart b {
  flex: 1;
  min-width: 18px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--teal), var(--green));
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.preview-cards em {
  height: 56px;
  border-radius: 8px;
  background: #d8e3de;
}

.scene-panel-code {
  top: 26%;
  right: 7%;
  display: grid;
  gap: 10px;
  width: 220px;
  padding: 18px;
  transform: rotate(3deg);
}

.scene-panel-code code {
  color: #dceee7;
  font-size: 0.86rem;
}

.scene-panel-mobile {
  right: 39%;
  bottom: 8%;
  width: 132px;
  height: 220px;
  padding: 16px;
  transform: rotate(-7deg);
}

.scene-panel-mobile span,
.scene-panel-mobile b,
.scene-panel-mobile i {
  display: block;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.22);
}

.scene-panel-mobile span {
  width: 40%;
  height: 8px;
  margin: 0 auto 18px;
}

.scene-panel-mobile b {
  height: 72px;
  margin-bottom: 14px;
}

.scene-panel-mobile i {
  height: 18px;
  margin-bottom: 10px;
}

.hero-content {
  width: min(760px, 100%);
  padding-top: 36px;
}

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

.hero .eyebrow {
  color: #8ed6c9;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.8rem, 12vw, 9.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.3;
}

.hero-copy {
  width: min(660px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--green);
}

.button-primary:hover {
  background: var(--green-deep);
}

.button-secondary {
  color: currentColor;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.09);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-strip div {
  min-height: 112px;
  padding: 26px clamp(20px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(280px, 1fr);
  gap: clamp(26px, 6vw, 84px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 44px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading.compact {
  display: block;
  max-width: 790px;
  margin-right: auto;
  margin-left: 0;
}

.section-heading.compact .eyebrow {
  margin-bottom: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card,
.work-card,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  min-height: 420px;
  padding: 30px;
}

.service-card.featured {
  color: var(--white);
  background: var(--green-deep);
}

.service-number {
  display: block;
  margin-bottom: 72px;
  color: var(--teal);
  font-weight: 900;
}

.featured .service-number {
  color: #8ed6c9;
}

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

.featured p,
.featured li {
  color: rgba(255, 255, 255, 0.76);
}

.service-card ul {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.service-card li {
  padding: 11px 0;
  border-top: 1px solid rgba(92, 103, 100, 0.22);
  color: var(--muted);
}

.featured li {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.work {
  background: #edf3ef;
}

.work-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.tab.active {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

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

.work-card.wide {
  grid-column: span 2;
}

.work-card.small {
  min-height: 340px;
}

.mockup {
  position: relative;
  display: grid;
  min-height: 230px;
  overflow: hidden;
  background: #dfe9e3;
}

.browser-mockup {
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(36, 94, 156, 0.16), rgba(46, 111, 88, 0.14)),
    #eef4f0;
}

.mockup-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  height: 30px;
  padding: 10px;
  border-radius: 7px 7px 0 0;
  background: #1d2c29;
}

.mockup-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

.site-preview {
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  grid-template-rows: 1fr auto;
  gap: 14px;
  width: 100%;
  margin-top: 30px;
  padding: 18px;
  border-radius: 0 0 7px 7px;
  background: #fbfcfa;
}

.site-hero {
  min-height: 124px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(22, 72, 56, 0.78), rgba(26, 140, 143, 0.76)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.22) 18px 19px);
}

.site-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.site-copy b,
.site-copy i,
.product-list span,
.admin-lines span,
.metric-row b,
.window-body span,
.phone-mockup span {
  display: block;
  border-radius: 999px;
  background: #cbd9d3;
}

.site-copy b {
  width: 88%;
  height: 18px;
}

.site-copy i {
  width: 68%;
  height: 10px;
}

.site-products {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.site-products em {
  min-height: 54px;
  border-radius: 7px;
  background: #e4ebe7;
}

.ecommerce-mockup,
.admin-mockup,
.analytics-mockup,
.phone-mockup,
.desktop-mockup {
  padding: 20px;
}

.ecommerce-mockup {
  grid-template-columns: 1fr 0.8fr;
  gap: 14px;
  background: #f2eee8;
}

.product-tile.large {
  min-height: 160px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 98, 74, 0.82), rgba(169, 127, 53, 0.74)),
    #e5c8a9;
}

.product-list {
  display: grid;
  align-content: center;
  gap: 12px;
}

.product-list span {
  height: 14px;
  background: rgba(95, 69, 47, 0.24);
}

.ecommerce-mockup button {
  grid-column: 1 / -1;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--coral);
  font-weight: 800;
}

.admin-mockup {
  grid-template-columns: 58px 1fr;
  gap: 16px;
  background: #e8eff4;
}

.admin-nav {
  border-radius: 8px;
  background: #245e9c;
}

.admin-lines {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 10px;
}

.admin-lines span {
  height: 16px;
  background: rgba(36, 94, 156, 0.22);
}

.admin-table {
  grid-column: 2;
  display: grid;
  gap: 8px;
}

.admin-table i {
  display: block;
  height: 24px;
  border-radius: 6px;
  background: rgba(36, 94, 156, 0.13);
}

.analytics-mockup {
  align-content: center;
  gap: 22px;
  background: #edf4ed;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-row b {
  height: 52px;
  border-radius: 8px;
  background: #d7e4dd;
}

.analytics-mockup svg {
  width: 100%;
  height: 116px;
}

.analytics-mockup path {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-width: 8;
}

.phone-mockup {
  width: 150px;
  min-height: 230px;
  margin: 20px auto 0;
  border: 8px solid #202725;
  border-radius: 28px;
  background: #f8faf7;
}

.phone-notch {
  width: 46px;
  height: 7px;
  margin: 0 auto 20px;
  border-radius: 99px;
  background: #202725;
}

.phone-card {
  height: 80px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.phone-mockup span {
  height: 12px;
  margin-bottom: 10px;
}

.desktop-mockup {
  width: 88%;
  min-height: 210px;
  margin: 28px auto 0;
  border: 8px solid #25312e;
  border-radius: 8px;
  background: #f8faf7;
}

.window-head {
  height: 34px;
  margin: -20px -20px 24px;
  background: #25312e;
}

.window-body {
  display: grid;
  gap: 14px;
}

.window-body span {
  height: 22px;
}

.work-info {
  padding: 22px;
}

.work-info span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-info p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: var(--green);
  font-weight: 900;
}

.text-link::after {
  margin-left: 8px;
  content: "->";
}

.text-link:hover {
  color: var(--green-deep);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline article {
  padding: 24px;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 40px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

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

.contact {
  padding-top: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(24px, 6vw, 70px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px);
  border-radius: 8px;
  color: var(--white);
  background: #1c302b;
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.contact-methods a {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 900;
}

.contact-methods span {
  color: rgba(255, 255, 255, 0.66);
}

.brief-form {
  display: grid;
  gap: 16px;
}

.brief-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.brief-form select,
.brief-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.brief-form select {
  min-height: 48px;
  padding: 0 14px;
}

.brief-form option {
  color: var(--ink);
}

.brief-form textarea {
  resize: vertical;
  min-height: 150px;
  padding: 14px;
}

.brief-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.subpage-hero {
  padding: 150px clamp(20px, 6vw, 88px) clamp(56px, 8vw, 96px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(22, 33, 31, 0.9), rgba(22, 33, 31, 0.56)),
    linear-gradient(135deg, #164838, #1a8c8f 64%, #e7efe9);
}

.subpage-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 9vw, 7rem);
}

.subpage-hero p:not(.eyebrow) {
  width: min(820px, 100%);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(54px, 8vw, 92px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.faq-section:nth-child(odd) {
  background: var(--white);
}

.faq-heading {
  position: sticky;
  top: 96px;
  align-self: start;
}

.faq-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-section:nth-child(odd) .faq-item {
  background: var(--paper);
}

.faq-item h3 {
  margin-bottom: 10px;
}

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

@media (max-width: 980px) {
  .scene-panel-main {
    right: -180px;
    opacity: 0.76;
  }

  .scene-panel-code,
  .scene-panel-mobile {
    opacity: 0.58;
  }

  .trust-strip,
  .service-grid,
  .timeline,
  .contact-panel,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .faq-heading {
    position: static;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 12px;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding: 12px 18px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 50px rgba(22, 33, 31, 0.16);
  }

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

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

  .hero {
    min-height: 86svh;
    padding: 122px 20px 72px;
  }

  h1 {
    font-size: clamp(3.3rem, 17vw, 5.2rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .scene-panel-main {
    right: -320px;
    bottom: 2%;
    min-width: 450px;
    transform: perspective(1000px) rotateY(-12deg) rotateX(6deg) scale(0.82);
  }

  .scene-panel-code,
  .scene-panel-mobile {
    display: none;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 42px;
  }

  .work-grid,
  .work-card.wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .work-card,
  .work-card.small {
    min-height: auto;
  }

  .mockup {
    min-height: 210px;
  }

  .site-preview {
    grid-template-columns: 1fr;
  }

  .site-products {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
