:root {
  --blue-900: #06367f;
  --blue-800: #09429f;
  --blue-700: #0f55c8;
  --blue-100: #eaf2ff;
  --ink: #172033;
  --muted: #657184;
  --line: #d6deea;
  --surface: #ffffff;
  --soft: #f5f8fc;
  --accent: #d50f22;
  --shadow: 0 24px 70px rgba(13, 39, 80, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(214, 222, 234, 0.8);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--blue-800);
  color: var(--blue-900);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--blue-900);
  font-size: 15px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

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

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

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

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 3px auto;
  background: var(--blue-900);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 118px));
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0.38) 65%, rgba(255, 255, 255, 0.04) 100%),
    url("dm-cover.jpg");
  background-position: center, right center;
  background-size: cover, cover;
}

.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -26px;
  width: 48vw;
  height: 34px;
  background: var(--blue-800);
  content: "";
  transform: skewX(-28deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  padding: clamp(72px, 12vh, 122px) 0 clamp(84px, 14vh, 136px) clamp(20px, 6vw, 86px);
}

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

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

h1 {
  margin-bottom: 10px;
  color: var(--blue-900);
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.1;
}

.hero-subtitle {
  margin-bottom: 22px;
  color: var(--blue-900);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 34px;
  color: #2f3a4d;
  font-size: clamp(17px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 2px solid var(--blue-800);
  font-size: 15px;
  font-weight: 900;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

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

.button.primary {
  background: var(--blue-800);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue-900);
}

.button.light {
  border-color: #fff;
}

.button.secondary.light {
  color: #fff;
  background: transparent;
}

.proof-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-bar div {
  min-height: 104px;
  padding: 22px clamp(20px, 4vw, 56px);
  background: #fff;
}

.proof-bar span,
.proof-bar strong {
  display: block;
}

.proof-bar span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.proof-bar strong {
  color: var(--blue-900);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
}

.proof-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}

.proof-logos img {
  width: 100%;
  max-height: 42px;
  object-fit: contain;
}

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

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.section-heading h2,
.solutions-copy h2,
.contact-card h2 {
  margin-bottom: 0;
  color: var(--blue-900);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.18;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 72px);
  color: #384459;
  font-size: 18px;
}

.intro-grid p {
  margin-bottom: 0;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.about-points div {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.about-points span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
}

.about-points strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1.25;
}

.about-points p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.service-card {
  min-height: 272px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue-800);
  background: #fff;
  box-shadow: 0 16px 46px rgba(17, 43, 84, 0.07);
}

.service-icon {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1.28;
}

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

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

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

.equipment-grid article {
  min-height: 216px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.equipment-grid span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
}

.equipment-grid h3 {
  margin-bottom: 10px;
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1.25;
}

.equipment-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.solutions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
  background: var(--blue-900);
  color: #fff;
}

.solutions .eyebrow,
.solutions h2 {
  color: #fff;
}

.solutions-copy h2 {
  margin-bottom: 28px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.check-list li::before {
  position: absolute;
  top: 11px;
  left: 0;
  width: 12px;
  height: 12px;
  background: #fff;
  content: "";
  clip-path: polygon(14% 44%, 0 59%, 39% 100%, 100% 16%, 84% 0, 37% 63%);
}

.equipment-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fff;
  box-shadow: var(--shadow);
}

.equipment-panel img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

.brand-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.brand-card {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.brand-card strong {
  display: block;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 900;
  line-height: 1;
}

.brand-logo {
  width: min(220px, 86%);
  max-height: 66px;
  object-fit: contain;
}

.iec-logo {
  width: min(260px, 92%);
}

.graco-logo {
  width: min(230px, 88%);
}

.decker-logo {
  width: min(190px, 78%);
}

.brand-card span {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.brand-card em {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.brand-card.iec strong,
.brand-card.decker strong {
  color: var(--accent);
}

.brand-card.graco strong {
  color: #20242b;
}

.brand-card.graco em {
  color: #3f4857;
}

.technology {
  background: #fff;
}

.technology-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.technology-summary {
  padding: 28px;
  border-left: 6px solid var(--accent);
  background: var(--soft);
}

.technology-summary p {
  margin-bottom: 22px;
  color: #384459;
  font-size: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue-900);
  font-weight: 900;
}

.text-link::after {
  width: 28px;
  height: 2px;
  margin-left: 10px;
  background: currentColor;
  content: "";
}

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

.technology-grid article {
  min-height: 228px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.technology-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.technology-grid h3 {
  margin: 14px 0 10px;
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1.25;
}

.technology-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.industry-tags span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  color: #3d4b62;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

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

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

.case-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 46px rgba(17, 43, 84, 0.07);
}

.case-card span {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 6px 10px;
  color: #fff;
  background: var(--blue-800);
  font-size: 13px;
  font-weight: 900;
}

.case-card h3 {
  margin-bottom: 12px;
  color: var(--blue-900);
  font-size: 24px;
  line-height: 1.25;
}

.case-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.customer-grid span {
  display: grid;
  min-height: 74px;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  color: var(--blue-900);
  background: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
}

.customer-grid small {
  color: var(--blue-800);
  font-size: 12px;
  text-transform: uppercase;
}

.contact-section {
  padding-top: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(32px, 5vw, 58px);
  background: var(--blue-900);
  color: #fff;
  box-shadow: var(--shadow);
}

.contact-card .eyebrow,
.contact-card h2 {
  color: #fff;
}

.contact-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-list dt {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.contact-actions {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.82);
  background: #071b3f;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .service-grid,
  .about-points,
  .case-grid,
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .site-header {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 40px rgba(10, 36, 72, 0.14);
  }

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

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

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 110px);
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 52%, rgba(255, 255, 255, 0.28) 100%),
      url("dm-cover.jpg");
    background-position: center, 68% center;
  }

  .hero-content {
    width: min(640px, calc(100% - 32px));
    padding: 48px 0 84px 20px;
  }

  .proof-bar,
  .intro-grid,
  .solutions,
  .technology-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .proof-bar div {
    min-height: auto;
  }

  .proof-logos {
    max-width: 420px;
  }

  .brand-strip,
  .equipment-grid,
  .about-points,
  .case-grid,
  .technology-grid,
  .customer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .about-points,
  .case-grid,
  .equipment-grid,
  .brand-strip,
  .technology-grid,
  .customer-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
