:root {
  --ink: #202842;
  --deep: #101728;
  --navy: #293452;
  --muted: #66728e;
  --surface: #f3f6fb;
  --line: rgba(32, 40, 66, 0.12);
  --cyan: #a8eff4;
  --header-height: 88px;
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: var(--header-height);
  padding: 0 clamp(24px, 4vw, 72px);
  color: #fff;
  transition:
    color 300ms ease,
    background 300ms ease,
    box-shadow 300ms ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 19, 34, 0.56), rgba(13, 19, 34, 0));
  pointer-events: none;
  transition: opacity 300ms ease;
}

.site-header.is-scrolled {
  color: var(--navy);
  background: rgba(244, 247, 255, 0.84);
  box-shadow: 0 16px 50px rgba(19, 27, 49, 0.12);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.brand {
  position: relative;
  z-index: 2;
  width: clamp(168px, 13vw, 220px);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter 300ms ease;
}

.site-header.is-scrolled .brand-logo {
  filter: none;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-nav a {
  opacity: 0.9;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  opacity: 1;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

.top-action,
.hero-copy a,
.link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.top-action {
  padding: 0 22px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
}

.front-hero {
  position: relative;
  min-height: 620px;
  height: 88svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--deep);
}

.front-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.03);
  animation: heroFloat 14s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 20, 36, 0.9) 0%, rgba(13, 20, 36, 0.58) 48%, rgba(13, 20, 36, 0.18) 100%),
    linear-gradient(180deg, rgba(13, 20, 36, 0.1), rgba(13, 20, 36, 0.62));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 44px));
  margin-left: clamp(22px, 8vw, 132px);
  padding-top: 64px;
}

.hero-copy p,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.16;
  letter-spacing: 0.04em;
}

.hero-copy span {
  display: block;
  width: min(650px, 100%);
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.72;
}

.hero-copy a {
  margin-top: 34px;
  padding: 0 28px;
  color: var(--deep);
  background: var(--cyan);
  box-shadow: 0 20px 52px rgba(168, 239, 244, 0.24);
}

.front-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(34px, 8vw, 110px);
  padding: clamp(58px, 8vw, 120px) clamp(22px, 7vw, 118px);
  border-bottom: 1px solid var(--line);
}

.front-section:nth-child(odd) {
  background: #fff;
}

.front-section h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.front-section p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.9;
}

.front-section .section-body > p + p {
  margin-top: 18px;
}

.credential-groups,
.content-cards {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.credential-group {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.credential-group h3,
.content-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.credential-group ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.credential-group li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.content-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.content-card {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(32, 40, 66, 0.06);
}

.front-section:nth-child(odd) .content-card {
  background: #f8faff;
}

.content-card .card-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.content-card p:not(.card-kicker) {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
}

.content-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background: var(--navy);
}

.section-note {
  margin-top: 24px !important;
  padding: 16px 18px;
  border-left: 4px solid var(--cyan);
  color: var(--ink) !important;
  background: rgba(168, 239, 244, 0.18);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.link-row a {
  padding: 0 22px;
  color: #fff;
  background: var(--navy);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(24px, 6vw, 100px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--deep);
}

.site-footer .brand-logo {
  width: 180px;
  filter: brightness(0) invert(1);
}

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

@keyframes heroFloat {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-1.4%, 0, 0);
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 78px;
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    position: relative;
    z-index: 30;
    display: grid;
    gap: 7px;
    width: 48px;
    height: 48px;
    place-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: currentColor;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition:
      transform 200ms ease,
      opacity 200ms ease;
  }

  .site-header.nav-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 25;
    display: grid;
    justify-items: start;
    gap: 22px;
    padding: 110px 28px 34px;
    color: var(--navy);
    background: rgba(246, 249, 255, 0.96);
    box-shadow: 0 18px 60px rgba(17, 24, 40, 0.16);
    transform: translateY(-110%);
    transition: transform 280ms ease;
  }

  .site-header.nav-open .site-nav {
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    padding-inline: 20px;
  }

  .front-hero {
    min-height: 620px;
  }

  .hero-copy {
    width: calc(100% - 36px);
    margin-left: 18px;
    padding-top: 132px;
  }

  .front-section {
    grid-template-columns: 1fr;
    padding-inline: 22px;
  }

  .site-footer {
    display: grid;
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
