:root {
  --ink: #17202a;
  --muted: #64707d;
  --line: #d9e1e8;
  --paper: #f7f9fb;
  --white: #ffffff;
  --deep: #163842;
  --teal: #08a6a6;
  --green: #2f9d66;
  --amber: #d48a1f;
  --red: #bc4a4a;
  --blue: #2d74b8;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 225, 232, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand img {
  display: block;
  width: clamp(168px, 18vw, 238px);
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.3vw, 28px);
  color: #3f4b57;
  font-size: 15px;
  white-space: nowrap;
}

nav a { border-bottom: 2px solid transparent; }
nav a:hover { color: var(--teal); border-color: var(--teal); }

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  color: var(--white);
  background: #122a30;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 24, 27, 0.9), rgba(11, 24, 27, 0.66) 49%, rgba(11, 24, 27, 0.3)),
    linear-gradient(0deg, rgba(18, 42, 48, 0.92), rgba(18, 42, 48, 0) 26%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.58fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1180px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 82px 24px 118px;
}

.hero-copy { max-width: 760px; }

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

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
}

.hero-lead {
  max-width: 800px;
  margin: 20px 0 0;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.24;
}

.hero-text {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.6vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(8, 166, 166, 0.28);
}

.button.primary:hover { background: #079292; }

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
}

.button.secondary.light { border-color: rgba(255, 255, 255, 0.5); }

.hero-panel {
  width: 100%;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.signal-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.signal-row span {
  width: 42px;
  height: 7px;
  border-radius: 20px;
  background: var(--teal);
}

.signal-row span:nth-child(2) { background: var(--amber); }
.signal-row span:nth-child(3) { background: var(--green); }

.hero-panel h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}

.hero-panel p {
  margin: 8px 0 24px;
  color: rgba(255, 255, 255, 0.76);
}

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

.metric-grid div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.metric-grid strong,
.metric-grid span { display: block; }

.metric-grid span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  color: var(--white);
  background: #122a30;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-strip span {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(8, 166, 166, 0.13), rgba(212, 138, 31, 0.06));
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 900;
  text-align: center;
}

.brand-strip span:last-child { color: #8ee5d5; }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 24px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.compact {
  margin: 0;
  text-align: left;
}

.section-heading h2,
.guide-copy h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

.section-heading p:not(.eyebrow),
.guide-copy p,
.final-cta p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.challenge-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.challenge-grid .info-card { grid-column: span 2; }
.challenge-grid .info-card.wide { grid-column: span 2; }

.info-card {
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.06);
}

.info-card h3,
.case-grid h3,
.process-flow h3 {
  margin: 16px 0 8px;
  font-size: 21px;
  line-height: 1.28;
}

.info-card p,
.process-flow p,
.case-grid p {
  margin: 0;
  color: var(--muted);
}

.icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: #e8f6f5;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
}

.maintenance::before,
.cost::before {
  width: 22px;
  height: 14px;
  border: 3px solid var(--teal);
  border-top: 0;
  transform: rotate(-15deg);
}

.maintenance::after,
.cost::after {
  width: 22px;
  height: 3px;
  background: var(--amber);
  transform: translate(3px, -8px) rotate(-15deg);
}

.lifecycle::before {
  width: 22px;
  height: 22px;
  border: 3px solid var(--red);
  border-radius: 50%;
}

.lifecycle::after {
  width: 14px;
  height: 3px;
  background: var(--red);
}

.speed::before,
.future::before {
  width: 24px;
  height: 24px;
  border: 3px solid var(--blue);
  border-radius: 50%;
}

.speed::after,
.future::after {
  width: 17px;
  height: 3px;
  background: var(--blue);
  transform: rotate(-35deg) translate(4px, -1px);
  transform-origin: left center;
}

.visibility::before,
.traffic::before {
  width: 25px;
  height: 15px;
  border: 3px solid var(--green);
  border-radius: 50%;
}

.visibility::after,
.traffic::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.security::before {
  width: 22px;
  height: 25px;
  border: 3px solid var(--teal);
  border-radius: 13px 13px 7px 7px;
}

.security::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.callout-line {
  margin: 30px 0 0;
  padding: 20px 24px;
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: #eaf7f5;
  color: #24565f;
  font-size: 18px;
  font-weight: 800;
}

.split-section,
.guide-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.capability-list {
  display: grid;
  gap: 12px;
}

.capability-list div {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(23, 32, 42, 0.05);
}

.capability-list span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
}

.process-section {
  max-width: none;
  background: var(--white);
}

.process-section .section-heading,
.process-flow {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0 24px;
}

.process-flow article {
  position: relative;
  min-height: 250px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-right: 0;
  background: #fbfcfd;
}

.process-flow article:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.process-flow article:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.process-flow article::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fbfcfd;
  transform: translateY(-50%) rotate(45deg);
}

.process-flow article:last-child::after { content: none; }

.process-flow span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--deep);
  border-radius: 50%;
  font-weight: 900;
}

.process-flow strong {
  display: block;
  margin: 0 0 10px;
  color: var(--teal);
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 0.85fr);
  gap: clamp(26px, 5vw, 60px);
  align-items: center;
  margin-top: 36px;
}

.architecture {
  position: relative;
  min-height: 390px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 166, 166, 0.14), transparent 38%),
    radial-gradient(circle at 78% 20%, rgba(212, 138, 31, 0.16), transparent 30%),
    var(--white);
  box-shadow: var(--shadow);
}

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

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

.arch-layer span,
.arch-core {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: #244149;
  font-weight: 800;
  text-align: center;
}

.arch-core {
  min-height: 92px;
  margin: 14px auto;
  max-width: 270px;
  color: var(--white);
  background: var(--deep);
  box-shadow: 0 16px 34px rgba(22, 56, 66, 0.24);
}

.arch-core small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.arch-lines {
  width: min(74%, 430px);
  height: 64px;
  margin: 8px auto 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(8, 166, 166, 0.5) calc(50% - 1px), rgba(8, 166, 166, 0.5) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(rgba(8, 166, 166, 0.5), rgba(8, 166, 166, 0.5)) center top / 100% 2px no-repeat;
  border-left: 2px solid rgba(8, 166, 166, 0.5);
  border-right: 2px solid rgba(8, 166, 166, 0.5);
}

.arch-lines.bottom {
  margin-top: 0;
  transform: rotate(180deg);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list span {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #31414e;
  font-weight: 800;
}

.case-grid article {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.06);
}

.case-grid h3 { margin-top: 0; }

dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

dt { color: var(--muted); }
dd { margin: 0; font-weight: 900; text-align: right; }

.guide-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1180px) / 2 + 24px));
  background:
    linear-gradient(135deg, rgba(8, 166, 166, 0.12), transparent 45%),
    #eaf3f1;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 800;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.download-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.download-form label {
  display: grid;
  gap: 7px;
  color: #2d3b45;
  font-weight: 800;
}

.download-form input,
.download-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c9d3db;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.download-form input:focus,
.download-form select:focus {
  outline: 3px solid rgba(8, 166, 166, 0.18);
  border-color: var(--teal);
}

.form-button,
.form-note { grid-column: 1 / -1; }

.form-button {
  width: 100%;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.form-note a {
  color: var(--teal);
  border-bottom: 1px solid currentColor;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

summary {
  cursor: pointer;
  padding: 18px 22px;
  font-size: 18px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 72px max(24px, calc((100vw - 1180px) / 2 + 24px));
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 166, 166, 0.24), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(212, 138, 31, 0.14), transparent 28%),
    var(--deep);
}

.final-cta p { color: rgba(255, 255, 255, 0.76); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: #10181d;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .hero-inner,
  .split-section,
  .solution-layout,
  .guide-section {
    grid-template-columns: 1fr;
  }

  .hero-inner { padding-top: 64px; }
  .hero-panel { max-width: 620px; }

  .card-grid,
  .case-grid,
  .brand-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .challenge-grid .info-card,
  .challenge-grid .info-card.wide {
    grid-column: span 1;
  }

  .process-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .process-flow article,
  .process-flow article:first-child,
  .process-flow article:last-child {
    min-height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .process-flow article::after {
    top: auto;
    right: 50%;
    bottom: -11px;
    transform: translateX(50%) rotate(135deg);
  }

  .process-flow article:last-child::after { content: none; }
  .final-cta { display: block; }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    display: grid;
  }

  .brand img {
    width: min(220px, 72vw);
  }

  nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .hero-inner { min-height: auto; }
  .hero-inner { padding: 58px 20px 72px; }
  .hero-panel { padding: 20px; }

  .metric-grid,
  .card-grid,
  .case-grid,
  .brand-strip,
  .download-form,
  .arch-layer,
  .arch-layer.top {
    grid-template-columns: 1fr;
  }

  .section { padding: 68px 20px; }
  .process-flow { padding: 0 20px; }

  .architecture {
    min-height: auto;
    padding: 22px;
  }

  .arch-lines {
    width: 2px;
    height: 46px;
    border: 0;
    background: rgba(8, 166, 166, 0.5);
  }

  .site-footer { display: grid; }
}
