:root {
  --ink: #0c1932;
  --muted: #5c6980;
  --line: #dce6f2;
  --panel: #ffffff;
  --soft: #eef7fb;
  --blue: #075eb8;
  --blue-dark: #073b82;
  --teal: #0b8d9b;
  --green: #4e9d65;
  --gold: #c58b29;
  --shadow: 0 24px 70px rgba(12, 25, 50, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    "PingFang TC",
    system-ui,
    sans-serif;
  background: #f8fbff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(248, 251, 255, 0.88);
  border-bottom: 1px solid rgba(220, 230, 242, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 8px;
}

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

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

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

.site-nav a {
  padding: 10px 14px;
  color: #24324d;
  border-radius: 8px;
  font-size: 15px;
}

.site-nav a:hover {
  background: #eaf4fb;
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(78vh - 75px);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.88) 48%, rgba(232, 246, 250, 0.5) 100%),
    radial-gradient(circle at 84% 22%, rgba(11, 141, 155, 0.18), transparent 32%),
    #f8fbff;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 72px;
  line-height: 1.06;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 span,
.mobile-line {
  display: inline;
}

h2 {
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}

.lead {
  max-width: 700px;
  color: #34445d;
  font-size: 21px;
}

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

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

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 32px rgba(7, 94, 184, 0.24);
}

.button.secondary {
  color: var(--blue-dark);
  background: #fff;
  border-color: var(--line);
}

.hero-proof {
  display: grid;
  max-width: 700px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-proof div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-proof dt {
  color: var(--blue-dark);
  font-size: 28px;
  font-weight: 900;
}

.hero-proof dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 48%;
  z-index: 1;
  overflow: hidden;
}

.mesh {
  position: absolute;
  inset: 7% -12% 8% 4%;
  background:
    linear-gradient(30deg, transparent 48%, rgba(7, 94, 184, 0.13) 49%, rgba(7, 94, 184, 0.13) 51%, transparent 52%),
    linear-gradient(150deg, transparent 48%, rgba(11, 141, 155, 0.16) 49%, rgba(11, 141, 155, 0.16) 51%, transparent 52%);
  background-size: 86px 86px;
  opacity: 0.9;
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
}

.gateway {
  position: absolute;
  top: 50%;
  right: clamp(28px, 8vw, 130px);
  display: grid;
  width: clamp(210px, 24vw, 320px);
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  text-align: center;
  background: linear-gradient(145deg, var(--blue-dark), var(--teal));
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: translateY(-50%) rotate(45deg);
}

.gateway span,
.gateway small {
  display: block;
  transform: rotate(-45deg);
}

.gateway span {
  margin: 0 0 -90px -72px;
  font-size: 72px;
  font-weight: 900;
}

.gateway small {
  margin: -88px -64px 0 0;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(7, 94, 184, 0.5), transparent);
}

.signal-one {
  top: 38%;
  right: 0;
  width: 52%;
}

.signal-two {
  top: 60%;
  right: 12%;
  width: 48%;
}

.savings-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 6vw, 72px) clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 59, 130, 0.98), rgba(11, 141, 155, 0.94)),
    var(--blue-dark);
}

.savings-strip .eyebrow {
  color: #bfeff2;
}

.savings-copy h2 {
  max-width: 840px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 42px;
}

.savings-copy p {
  max-width: 860px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.savings-copy small {
  display: block;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.62);
}

.savings-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.cost-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
}

.cost-row span {
  font-weight: 900;
}

.cost-row strong {
  font-size: 28px;
}

.cost-row small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.68);
}

.cost-row.low {
  background: rgba(255, 255, 255, 0.2);
}

.saving-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
}

.saving-number span {
  color: var(--muted);
  font-weight: 800;
}

.saving-number strong {
  color: var(--blue-dark);
  font-size: 54px;
  line-height: 1;
}

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

.section-heading {
  max-width: 940px;
  margin-bottom: 36px;
}

.section-heading.compact {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}

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

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

.intro {
  background: #fff;
}

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

.intro-grid article,
.case-grid article,
.plan-grid article,
.service-list article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.intro-grid p,
.case-grid p,
.plan-grid p,
.service-list p,
.api-copy p {
  color: var(--muted);
}

.icon,
.plan-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.service-band {
  background: linear-gradient(180deg, #eef7fb 0%, #f8fbff 100%);
}

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

.api-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.68fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #fff;
}

.api-copy {
  max-width: 720px;
}

.feature-stack {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.feature-stack div {
  padding: 18px;
  border-left: 4px solid var(--teal);
  background: #f3f9fc;
  border-radius: 0 8px 8px 0;
}

.feature-stack strong,
.feature-stack span {
  display: block;
}

.feature-stack span {
  color: var(--muted);
}

.api-visual {
  margin: 0;
}

.api-visual img {
  width: min(100%, 520px);
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.use-cases {
  background: #f8fbff;
}

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

.case-grid article {
  min-height: 190px;
}

.process {
  background: #0c1932;
  color: #fff;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  display: grid;
  min-height: 170px;
  align-content: start;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.steps span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  font-weight: 900;
}

.steps strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.steps small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.plans {
  background: #fff;
}

.plan-grid article {
  display: grid;
  align-content: start;
  min-height: 390px;
}

.plan-grid .featured {
  color: #fff;
  background: linear-gradient(145deg, var(--blue-dark), var(--teal));
  border-color: transparent;
  box-shadow: var(--shadow);
}

.plan-grid .featured p,
.plan-grid .featured .plan-label {
  color: rgba(255, 255, 255, 0.78);
}

.plan-grid ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.plan-grid li {
  padding-top: 10px;
  border-top: 1px solid rgba(92, 105, 128, 0.18);
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr);
  gap: 32px;
  align-items: center;
  padding: clamp(54px, 7vw, 88px) clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 59, 130, 0.96), rgba(11, 141, 155, 0.92)),
    var(--blue-dark);
}

.contact p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
}

.contact .eyebrow {
  color: #bfeff2;
}

address {
  display: grid;
  gap: 12px;
  padding: 22px;
  font-style: normal;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 1100px) {
  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 40px;
  }

  .lead {
    font-size: 20px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-media {
    inset: 0;
    opacity: 0.48;
  }

  .service-list,
  .case-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-section,
  .contact,
  .savings-strip,
  .section-heading.compact {
    grid-template-columns: 1fr;
  }

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

  .api-visual img {
    width: min(100%, 620px);
    margin: 0;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 34px;
    line-height: 1.16;
  }

  h2 {
    font-size: 27px;
  }

  .lead {
    font-size: 18px;
  }

  h1,
  h2,
  .lead {
    max-width: calc(100vw - 48px);
    line-break: anywhere;
    word-break: break-all;
  }

  h1 span,
  .mobile-line {
    display: block;
  }

  .hero-actions,
  .button,
  .hero-proof {
    max-width: calc(100vw - 48px);
  }

  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .hero {
    padding-top: 50px;
  }

  .hero-media {
    inset: 48% 0 0 0;
  }

  .gateway {
    right: -28px;
    width: 190px;
    opacity: 0.72;
  }

  .gateway span {
    font-size: 46px;
  }

  .hero-proof,
  .savings-card,
  .intro-grid,
  .service-list,
  .case-grid,
  .steps,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof div {
    padding: 14px;
  }

  .button {
    width: 100%;
  }

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

  .savings-copy h2 {
    font-size: 30px;
  }

  .savings-copy p {
    font-size: 17px;
  }

  .cost-row {
    grid-template-columns: 1fr;
  }

  .plan-grid article,
  .case-grid article,
  .steps li {
    min-height: auto;
  }

  footer {
    flex-direction: column;
  }
}
