:root {
  --navy-950: #05131d;
  --navy-900: #081b29;
  --navy-800: #102d3e;
  --navy-700: #184154;
  --ink: #172a37;
  --muted: #526473;
  --teal-500: #59dfc0;
  --teal-600: #20b89c;
  --teal-700: #08776b;
  --teal-800: #075f57;
  --white: #ffffff;
  --surface: #f3f7f8;
  --line: #d9e3e7;
  --shadow: 0 18px 50px rgba(14, 42, 56, 0.09);
  --radius: 14px;
  --font-sans: "Helvetica Neue", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

button {
  color: inherit;
  font: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--teal-500);
  color: var(--navy-950);
}

:focus-visible {
  outline: 3px solid var(--teal-700);
  outline-offset: 4px;
}

.site-header :focus-visible,
.hero :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--teal-500);
}

main:focus {
  outline: none;
}

.container {
  width: min(70rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

section[id] {
  scroll-margin-top: 6.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.75rem;
  height: 2px;
  background: currentColor;
  content: "";
  flex: 0 0 auto;
}

.eyebrow--light {
  color: var(--teal-500);
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 3rem;
}

.section-heading h2,
.contact h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.025em;
}

.section-heading > p:last-child:not(.eyebrow) {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading--centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading--centered .eyebrow {
  justify-content: center;
}

.section-heading--centered > p:last-child:not(.eyebrow) {
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(210, 235, 240, 0.12);
  background: rgba(8, 27, 41, 0.97);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: rgba(8, 27, 41, 0.9);
    backdrop-filter: blur(14px);
  }
}

.site-header__inner {
  position: relative;
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--white);
  line-height: 1.35;
  text-decoration: none;
}

.brand__zh {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__en {
  margin-top: 0.2rem;
  color: #b7cbd5;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.nav-toggle {
  display: none;
  min-width: 3rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(210, 235, 240, 0.28);
  border-radius: 7px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle__icon {
  position: relative;
  width: 1.1rem;
  height: 0.85rem;
}

.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease;
}

.nav-toggle__icon span:first-child {
  top: 0.15rem;
}

.nav-toggle__icon span:last-child {
  top: 0.65rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child {
  top: 0.4rem;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child {
  top: 0.4rem;
  transform: rotate(-45deg);
}

.site-nav ul,
.footer-nav,
.hero__services {
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  color: #d6e3e9;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-list a::after {
  position: absolute;
  right: 0.85rem;
  bottom: 0.35rem;
  left: 0.85rem;
  height: 2px;
  background: var(--teal-500);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: var(--navy-900);
  color: var(--white);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(42, 157, 153, 0.16), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(54, 108, 190, 0.17), transparent 36%);
  content: "";
}

.hero__grid {
  display: grid;
  min-height: 34rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 12em;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: clamp(2.3rem, 4.3vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.hero h1 span {
  display: block;
  color: #83ebd4;
}

.hero__lead {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: #c0d1d9;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button--primary {
  background: var(--teal-500);
  color: #06271f;
  box-shadow: 0 10px 24px rgba(29, 210, 174, 0.14);
}

.button--secondary {
  border-color: rgba(221, 239, 243, 0.38);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
}

.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
}

.hero__services li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__service-mark {
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--teal-500);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(89, 223, 192, 0.09);
  flex: 0 0 auto;
}

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

.hero__services strong {
  color: #eff8fa;
  font-size: 0.94rem;
  line-height: 1.4;
}

.hero__services small {
  margin-top: 0.15rem;
  color: #9eb9c5;
  font-size: 0.76rem;
  letter-spacing: 0.025em;
  line-height: 1.4;
}

.hero__visual {
  position: relative;
  width: 100%;
  margin: 0;
}

.hero__visual::after {
  position: absolute;
  z-index: -1;
  right: -1rem;
  bottom: -1rem;
  width: 62%;
  height: 54%;
  border: 1px solid rgba(104, 222, 201, 0.16);
  border-radius: 1.5rem;
  content: "";
}

.hero__visual img {
  width: 100%;
  height: auto;
  border-radius: 2rem;
  filter: drop-shadow(0 26px 32px rgba(0, 0, 0, 0.24));
}

.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.about .section-heading {
  margin-bottom: 0;
}

.about__content {
  padding-top: 2.75rem;
}

.about__content > p {
  color: var(--muted);
}

.about__content .about__intro {
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.65;
}

.about__facts {
  display: grid;
  margin-top: 2.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.about__facts > div {
  padding-top: 1rem;
  border-top: 2px solid var(--teal-600);
}

.about__facts span,
.about__facts strong {
  display: block;
}

.about__facts span {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.about__facts strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.services {
  border-top: 1px solid #e8eff1;
  background: var(--surface);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  display: flex;
  min-height: 24rem;
  flex-direction: column;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(14, 42, 56, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-card__icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 11px;
  background: #e3f5f1;
  color: var(--teal-700);
  place-items: center;
}

.service-card__icon svg {
  width: 2rem;
  height: 2rem;
}

.service-card__number {
  color: var(--muted);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.service-card h3 {
  margin-bottom: 1.15rem;
  font-size: 1.65rem;
}

.service-card h3 span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.055em;
}

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

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  align-self: flex-start;
  gap: 0.55rem;
  margin-top: auto;
  color: var(--teal-800);
  font-weight: 700;
  text-decoration-color: #9bc9c2;
  transition: color 180ms ease, gap 180ms ease;
}

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
}

.contact::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 5% 100%, rgba(41, 157, 150, 0.15), transparent 38%);
  content: "";
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

.contact h2 {
  color: var(--white);
}

.contact__content > p:last-child {
  max-width: 32rem;
  margin-bottom: 0;
  color: #b8ccd5;
}

.contact__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  font-style: normal;
}

.contact-card {
  display: flex;
  min-height: 15.5rem;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid rgba(213, 237, 240, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
  text-decoration: none;
}

.contact-card__icon {
  display: block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.4rem;
  color: var(--teal-500);
}

.contact-card__icon svg {
  width: 100%;
  height: 100%;
}

.contact-card__label {
  margin-bottom: 0.45rem;
  color: #a9c0ca;
  font-size: 0.8rem;
}

.contact-card strong {
  color: var(--white);
  font-size: 1.13rem;
  line-height: 1.65;
}

a.contact-card strong {
  font-size: 1.65rem;
  letter-spacing: 0.025em;
}

.contact-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--teal-500);
  font-size: 0.88rem;
  font-weight: 700;
}

a.contact-card {
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-footer {
  background: var(--navy-950);
  color: #c3d3db;
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.25rem;
  border-bottom: 1px solid rgba(213, 237, 240, 0.11);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.footer-nav a,
.back-to-top {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: #c3d3db;
  font-size: 0.9rem;
  text-decoration-color: rgba(195, 211, 219, 0.35);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
}

.site-footer__bottom p {
  margin-bottom: 0;
  color: #8fa9b5;
  font-size: 0.78rem;
  letter-spacing: 0.025em;
}

.back-to-top {
  gap: 0.5rem;
  flex: 0 0 auto;
}

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

  .button--primary:hover {
    background: #78e8cf;
    box-shadow: 0 14px 28px rgba(29, 210, 174, 0.2);
  }

  .button--secondary:hover {
    border-color: rgba(221, 239, 243, 0.68);
    background: rgba(255, 255, 255, 0.08);
  }

  .service-card:hover {
    border-color: #a9d8d1;
    box-shadow: var(--shadow);
    transform: translateY(-4px);
  }

  .text-link:hover {
    gap: 0.8rem;
    color: #034c45;
  }

  a.contact-card:hover {
    border-color: rgba(89, 223, 192, 0.5);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-3px);
  }

  .footer-nav a:hover,
  .back-to-top:hover {
    color: var(--teal-500);
  }
}

@media (max-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
    gap: 2.25rem;
  }

  .contact__grid {
    gap: 3rem;
  }

  .contact__details {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 13.5rem;
  }
}

@media (max-width: 56.25rem) {
  .hero__grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero__content {
    max-width: 46rem;
  }

  .hero__visual {
    max-width: 42rem;
    margin-inline: auto;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__content {
    max-width: 42rem;
  }

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

@media (max-width: 47.5rem) {
  html:not(.js) {
    scroll-padding-top: 11rem;
  }

  .site-header__inner {
    min-height: 4.6rem;
    flex-wrap: wrap;
    gap: 0 1rem;
    padding-block: 0.65rem;
  }

  .site-nav {
    width: 100%;
  }

  .nav-list {
    width: 100%;
    justify-content: space-between;
    gap: 0.25rem;
    padding-top: 0.5rem;
  }

  .nav-list a {
    padding-inline: 0.6rem;
    font-size: 0.88rem;
  }

  .js .site-header__inner {
    flex-wrap: nowrap;
  }

  .js .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .js .site-nav {
    width: auto;
  }

  .js .nav-list {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    display: flex;
    width: min(17rem, calc(100vw - 2.5rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.65rem;
    border: 1px solid rgba(213, 237, 240, 0.17);
    border-radius: 10px;
    background: #102d3e;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: hidden;
  }

  .js .nav-list[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .js .nav-list a {
    width: 100%;
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
  }

  .js .nav-list a::after {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__content {
    padding-top: 0;
  }

  .site-footer__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 40rem) {
  .services__grid,
  .contact__details {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 22rem;
  }

  .contact-card {
    min-height: 13rem;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-width: 30rem) {
  .section {
    padding-block: 4rem;
  }

  .brand__zh {
    font-size: 0.95rem;
  }

  .brand__en {
    font-size: 0.64rem;
    letter-spacing: 0.09em;
  }

  .hero {
    padding-block: 3.75rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9vw, 2.65rem);
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__services {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero__visual::after {
    display: none;
  }

  .hero__visual img {
    border-radius: 1.4rem;
  }

  .about__facts {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-heading h2,
  .contact h2 {
    font-size: 2rem;
  }

  .footer-nav {
    gap: 0.25rem 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
