:root {
  --ink: #101827;
  --muted: #516079;
  --blue: #0079ad;
  --blue-dark: #003a73;
  --cyan: #0099b5;
  --teal: #17a58f;
  --orange: #ff8d5b;
  --soft: #f3f6f9;
  --line: #dce5ee;
  --panel: #ffffff;
  --shadow: 0 18px 48px rgba(16, 24, 39, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
iframe {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 8px clamp(8px, 1.6vw, 24px);
  border-bottom: 1px solid rgba(0, 121, 173, 0.16);
  background:
    linear-gradient(90deg, rgba(230, 249, 252, 0.96), rgba(255, 255, 255, 0.94) 42%, rgba(245, 250, 255, 0.94)),
    #ffffff;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 26px rgba(0, 58, 115, 0.07);
}

.brand img {
  width: min(390px, 30vw);
  height: auto;
  max-height: 82px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  color: #26384f;
  font-size: 15px;
  font-weight: 800;
}

.site-nav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-dropdown {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 2;
  display: none;
  min-width: 108px;
  padding: 13px 12px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 58, 115, 0.13);
  transform: translateX(-50%);
}

.nav-submenu a {
  display: block;
  white-space: nowrap;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  display: block;
}

.site-nav a:hover {
  color: var(--blue);
  border-color: var(--teal);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: clamp(74px, 9vw, 112px) 0;
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5.3vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero-subtitle-line {
  margin-top: 8px;
  font-size: 0.68em;
  line-height: 1.12;
}

h2 {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: 1.28;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 1.3;
}

p {
  color: var(--muted);
  font-size: 17px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  color: #ffffff;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 19, 38, 0.88), rgba(6, 19, 38, 0.48) 42%, rgba(6, 19, 38, 0.12)),
    linear-gradient(180deg, rgba(6, 19, 38, 0.12), rgba(6, 19, 38, 0.76));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 76px);
  width: min(720px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 72px);
  padding: 90px 0 70px;
}

.hero h1,
.hero p,
.hero .eyebrow {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero .eyebrow {
  color: #83e2d6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(0, 121, 173, 0.24);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.intro-grid,
.legacy-grid,
.pain-grid,
.product-grid,
.workflow-grid,
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.intro-section {
  background: #f6f7f9;
}

.intro-grid {
  align-items: center;
}

.intro-copy {
  max-width: 620px;
}

.image-panel {
  margin: 0;
  align-self: center;
}

@media (min-width: 1081px) {
  .intro-grid {
    align-items: start;
  }

  .image-panel {
    align-self: start;
    margin-top: clamp(150px, 12vw, 186px);
  }
}

.shape-mark {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 0 28px 12px;
}

.shape-mark::before,
.shape-mark::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
}

.shape-mark::before {
  border: 1px solid #5d91ff;
  transform: rotate(45deg);
}

.shape-mark::after {
  top: 22px;
  left: 22px;
  background: var(--cyan);
}

.shape-mark.warm::after {
  background: var(--orange);
}

.image-panel img,
.legacy-grid figure img,
.pain-grid figure img {
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-panel img {
  aspect-ratio: 1.6 / 1;
}

.legacy-strip {
  padding-top: 84px;
}

.legacy-grid figure img {
  aspect-ratio: 1.6 / 1;
}

.section-title.center {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto 54px;
  text-align: center;
}

.section-title.center p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.pain-section {
  background: #f1f1f1;
}

.integrated-features {
  margin-top: clamp(56px, 7vw, 82px);
  padding-top: clamp(44px, 5vw, 60px);
  border-top: 1px solid rgba(0, 121, 173, 0.16);
}

.integrated-features .feature-summary {
  padding: 0;
}

.pain-section.pain-hidden .integrated-features {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.pain-section .pain-grid[hidden] {
  display: none;
}

.pain-list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(17px, 1.55vw, 20px);
  font-weight: 800;
  line-height: 1.58;
}

.pain-list li {
  position: relative;
  padding-left: 34px;
}

.pain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.product-section {
  background: #ffffff;
}

.product-grid figure img {
  width: 100%;
  box-shadow: var(--shadow);
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.quick-facts span {
  padding: 8px 12px;
  border: 1px solid #bde7ef;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #effbfc;
  font-weight: 800;
}

.workflow-section {
  background: #f8fbff;
}

.workflow-section .section-inner {
  width: min(1380px, calc(100% - 32px));
}

.workflow-grid {
  grid-template-columns: 1fr;
  gap: 34px;
}

.workflow-grid > div {
  max-width: 920px;
}

.diagram-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.diagram-panel img {
  width: 100%;
  min-width: 980px;
  max-width: none;
  height: auto;
}

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

.check-list li {
  position: relative;
  padding-left: 44px;
  color: var(--blue-dark);
  font-size: 17px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #088c72;
  background: #e4f8f2;
  font-weight: 900;
}

.features-section {
  background: #ffffff;
}

.feature-summary {
  padding: 30px 0;
}

.feature-cards {
  display: grid;
  gap: 20px;
}

.feature-cards article,
.scenario-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 24, 39, 0.06);
}

.feature-cards p,
.scenario-grid p {
  margin-bottom: 0;
}

.hardware-section {
  background: #ffffff;
}

.wide-image {
  margin: 0;
}

.wide-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.scenarios-section {
  background: #ffffff;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
  padding: 12px;
  background: #edf4fb;
}

.contact-section {
  padding-top: 34px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px 0 28px 0;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-lines {
  min-width: 320px;
  padding: 22px;
  border-left: 4px solid var(--blue);
  background: #f7fbff;
}

.contact-lines h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 18px;
}

.contact-lines p {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
}

.contact-lines p:last-child {
  grid-template-columns: 86px 1fr;
  margin-bottom: 0;
}

.contact-lines strong {
  color: var(--blue-dark);
}

.contact-lines a {
  color: var(--blue);
  font-weight: 800;
}

.contact-lines span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: #ffffff;
  background: #111418;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer img {
  width: 132px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
  }

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

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

  .nav-dropdown {
    display: flex;
    flex-direction: column;
  }

  .nav-trigger::after {
    display: none;
  }

  .nav-submenu {
    position: static;
    display: block;
    padding: 0 0 0 20px;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .intro-grid,
  .legacy-grid,
  .pain-grid,
  .product-grid,
  .workflow-grid,
  .feature-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 8px 10px;
  }

  .brand img {
    width: 240px;
    max-height: 64px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-bg {
    object-position: 62% center;
  }

  .hero-content {
    min-height: 640px;
    width: calc(100% - 32px);
    margin: 0 auto;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p,
  p {
    font-size: 19px;
  }

  .pain-list {
    font-size: 19px;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
    padding: 0;
    background: transparent;
  }

  .contact-lines {
    min-width: 0;
  }

  .contact-lines p,
  .contact-lines p:last-child {
    grid-template-columns: 1fr;
    gap: 2px;
    margin-bottom: 14px;
  }

  .site-footer,
  .site-footer div {
    align-items: flex-start;
    flex-direction: column;
  }
}
