:root {
  --ink: #172027;
  --muted: #5d6872;
  --line: #dce3e8;
  --paper: #ffffff;
  --soft: #f5f8f9;
  --mist: #e8f4f3;
  --teal: #008e94;
  --teal-dark: #00646b;
  --cyan: #1bbbd1;
  --lime: #9ac63d;
  --amber: #f0a432;
  --shadow: 0 18px 50px rgba(17, 32, 42, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 clamp(20px, 5vw, 64px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(12, 28, 38, 0.12);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 18px;
  line-height: 1.25;
}

.brand small {
  color: currentColor;
  font-size: 12px;
  opacity: 0.72;
}

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

.site-nav a {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-open .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.is-open .site-nav a:focus-visible {
  background: var(--mist);
  color: var(--teal-dark);
}

.site-nav .nav-cta {
  margin-left: 8px;
  color: #fff;
  background: var(--teal);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #fff;
  background: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: currentColor;
  background: transparent;
  cursor: pointer;
}

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

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 92vh;
  padding: 132px clamp(20px, 5vw, 64px) 130px;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(10, 20, 29, 0.95), rgba(10, 20, 29, 0.72) 38%, rgba(10, 20, 29, 0.12) 73%), url("assets/hero-smart-warehouse.png");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 14vh;
  background: linear-gradient(180deg, transparent, rgba(3, 12, 18, 0.48));
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(0, 142, 148, 0.28), transparent 42%),
    radial-gradient(circle at 82% 74%, rgba(154, 198, 61, 0.18), transparent 24%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.hero .eyebrow {
  color: #98f0eb;
}

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

h1 {
  margin-bottom: 18px;
  font-size: 80px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 18px;
  font-size: 48px;
  line-height: 1.18;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.35;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.hero-support {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.25;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(0, 142, 148, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.full-width {
  width: 100%;
}

.hero-metrics {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: 28px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  width: min(520px, calc(100% - 40px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 20, 28, 0.62);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero-metrics div {
  padding: 18px;
}

.hero-metrics div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: #a8f5ee;
  font-size: 24px;
  line-height: 1.1;
}

.hero-metrics span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

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

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.intro-band {
  background: var(--ink);
  color: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.intro-grid p {
  min-height: 88px;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #172027;
  color: #eef8f7;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 58px;
  align-items: start;
}

.prose p {
  color: var(--muted);
  font-size: 18px;
}

.prose p:last-child {
  margin-bottom: 0;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

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

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

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

.service-card,
.client-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(17, 32, 42, 0.07);
}

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

.icon-box,
.client-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--mist);
}

.icon-box {
  margin-bottom: 24px;
}

.icon-box svg,
.client-icon svg {
  width: 26px;
  height: 26px;
}

.service-card p,
.client-card p,
.advantage-list p,
.contact-layout p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 800;
}

.text-link::after {
  content: "";
  width: 22px;
  height: 2px;
  margin-left: 10px;
  background: currentColor;
  transition: width 160ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  width: 34px;
}

.advantages-section {
  background:
    linear-gradient(180deg, rgba(232, 244, 243, 0.78), rgba(255, 255, 255, 0.95)),
    linear-gradient(90deg, rgba(0, 142, 148, 0.12), rgba(240, 164, 50, 0.12));
}

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

.advantage-list article {
  padding: 30px;
  background: rgba(255, 255, 255, 0.92);
}

.advantage-list span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 15px;
  font-weight: 900;
}

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

.client-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 28px;
}

.client-card h3 {
  margin-bottom: 8px;
}

.client-card p {
  grid-column: 2;
  margin-bottom: 0;
}

.contact-section {
  padding: 96px clamp(20px, 5vw, 64px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 32, 39, 0.95), rgba(23, 32, 39, 0.86)),
    url("assets/hero-smart-warehouse.png");
  background-position: center 60%;
  background-size: cover;
}

.contact-section .eyebrow {
  color: #98f0eb;
}

.contact-section h2 {
  max-width: 680px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: start;
}

.contact-layout p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.contact-card {
  padding: 28px;
  color: var(--ink);
}

.contact-card dl {
  margin: 0 0 24px;
}

.contact-card dl > div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.contact-card dd {
  margin: 0;
  font-weight: 800;
}

.contact-card dd a {
  color: var(--teal-dark);
}

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

.contact-form label,
.contact-form .message-field,
.contact-form button,
.form-status {
  grid-column: 1 / -1;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label:nth-of-type(1),
.contact-form label:nth-of-type(2),
.contact-form label:nth-of-type(3),
.contact-form label:nth-of-type(4) {
  grid-column: auto;
}

.contact-form span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 142, 148, 0.12);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  padding: 24px clamp(20px, 5vw, 64px);
  background: #11181e;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #a8f5ee;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 70px;
    padding-inline: 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

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

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

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: 860px;
    padding: 118px 20px 236px;
    background-position: 58% center;
  }

  .hero-lead {
    font-size: 21px;
  }

  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-metrics {
    right: 20px;
    left: 20px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .hero-metrics div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .intro-grid,
  .two-column,
  .advantage-list,
  .client-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section,
  .contact-section {
    padding-block: 72px;
  }
}

@media (max-width: 640px) {
  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .intro-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .client-card {
    grid-template-columns: 1fr;
  }

  .client-card p {
    grid-column: auto;
  }

  .contact-card dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-form label:nth-of-type(1),
  .contact-form label:nth-of-type(2),
  .contact-form label:nth-of-type(3),
  .contact-form label:nth-of-type(4) {
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
  }
}
