:root {
  --header-height: 76px;
  --ink: #16212f;
  --muted: #607080;
  --line: #dce5e8;
  --paper: #f7faf9;
  --white: #ffffff;
  --teal: #168f9b;
  --teal-dark: #0f6874;
  --cobalt: #2750b8;
  --amber: #d89a2b;
  --coral: #d96858;
  --shadow: 0 18px 50px rgba(31, 47, 64, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid rgba(220, 229, 232, 0.9);
  box-shadow: 0 8px 22px rgba(25, 42, 58, 0.08);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(25, 42, 58, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 184px;
  min-width: 0;
  filter: none;
}

.brand img {
  width: 184px;
  height: auto;
}

.site-nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  margin-left: auto;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after,
.nav-menu-button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--amber);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.nav-menu-button:hover::after,
.nav-menu-button:focus-visible::after {
  transform: scaleX(1);
}

.nav-menu-item {
  position: relative;
}

.nav-menu-button {
  position: relative;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-menu-button::before {
  display: inline-block;
  width: 0;
  height: 0;
  margin-top: 2px;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
  vertical-align: middle;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  display: grid;
  min-width: 176px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-menu-item:hover .nav-dropdown,
.nav-menu-item:focus-within .nav-dropdown,
.nav-menu-item.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-dropdown a::after {
  content: none;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  color: var(--teal-dark);
  background: #edf7f7;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.lang-toggle {
  min-width: 54px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: #edf7f7;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(740px, 90vh);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background: url("assets/hero.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 28, 38, 0.84), rgba(18, 51, 68, 0.55) 46%, rgba(14, 35, 44, 0.28)),
    linear-gradient(180deg, rgba(10, 18, 26, 0.36), rgba(10, 18, 26, 0.3));
}

.hero-content {
  align-self: center;
  width: min(820px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding-top: calc(var(--header-height) + 22px);
}

.eyebrow,
.section-kicker,
.label {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 670px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero-strip {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(247, 250, 249, 0.94);
  color: var(--ink);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.hero-strip span {
  min-height: 82px;
  padding: 24px clamp(16px, 3vw, 36px);
  border-right: 1px solid var(--line);
  font-weight: 800;
}

.hero-strip span:last-child {
  border-right: 0;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 118px) 0;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.split-heading p,
.feature-content p,
.career-copy p,
.contact p {
  color: var(--muted);
  font-size: 17px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metrics div {
  min-height: 150px;
  padding: 26px;
  background: var(--white);
}

.metrics strong {
  display: block;
  color: var(--teal-dark);
  font-size: 38px;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.services {
  padding-top: 38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.service-card {
  min-height: 286px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(36, 51, 66, 0.07);
}

.service-card.highlight {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.service-card.highlight img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.service-card.highlight div {
  padding: 30px 32px 30px 0;
}

.service-index {
  margin-bottom: 50px;
  color: var(--coral);
  font-weight: 900;
}

.service-card p:not(.service-index):not(.label) {
  margin-top: 16px;
  color: var(--muted);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1fr);
  min-height: 620px;
  background: var(--white);
}

.feature-visual {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(22, 33, 47, 0.05), rgba(22, 33, 47, 0.14)),
    url("assets/privacy.png") center / cover no-repeat;
}

.feature-content {
  align-self: center;
  padding: clamp(46px, 7vw, 88px);
}

.feature-content h2 {
  max-width: 760px;
}

.feature-content p {
  margin-top: 24px;
  max-width: 680px;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.capability-list span {
  padding: 10px 14px;
  border: 1px solid #bed4d8;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #edf7f7;
  font-size: 14px;
  font-weight: 800;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.principle-grid article {
  min-height: 260px;
  padding: 30px;
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.principle-grid article:nth-child(2) {
  border-color: var(--cobalt);
}

.principle-grid article:nth-child(3) {
  border-color: var(--amber);
}

.principle-grid span {
  display: block;
  margin-bottom: 50px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.principle-grid p {
  margin-top: 16px;
  color: var(--muted);
}

.careers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.career-copy p {
  margin-top: 22px;
  max-width: 720px;
}

.career-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.career-panel div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 20px;
  background: var(--white);
}

.career-panel strong {
  color: var(--coral);
  font-size: 22px;
}

.career-panel span {
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding-top: 0;
}

.contact p {
  margin-top: 20px;
}

.contact-list {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-style: normal;
}

.contact-list a,
.contact-list span {
  display: block;
  overflow-wrap: anywhere;
}

.contact-list a {
  color: #aee7ea;
  font-weight: 800;
}

.policy-hero {
  padding: 138px clamp(20px, 6vw, 80px) 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 34, 49, 0.82), rgba(20, 67, 78, 0.56)),
    url("assets/privacy.png") center / cover no-repeat;
}

.policy-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.policy-content {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 96px;
}

.policy-content article {
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(36, 51, 66, 0.08);
}

.policy-content h2 {
  margin-top: 34px;
  font-size: 24px;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  margin-top: 12px;
  color: var(--muted);
}

.recruit-hero {
  position: relative;
  min-height: 520px;
  padding: calc(var(--header-height) + 86px) clamp(20px, 6vw, 96px) 76px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 28, 39, 0.86), rgba(17, 62, 77, 0.58) 48%, rgba(14, 35, 44, 0.32)),
    url("assets/hero.png") center / cover no-repeat;
}

.recruit-hero-content {
  width: min(760px, 100%);
}

.recruit-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.9vw, 50px);
  line-height: 1.02;
  letter-spacing: 0;
}

.recruit-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 23px);
}

.recruit-intro {
  padding-bottom: 58px;
}

.recruit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.recruit-tabs a {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #bed4d8;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #edf7f7;
  font-size: 14px;
  font-weight: 900;
}

.jobs-table {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(36, 51, 66, 0.08);
}

.jobs-head,
.job-row {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(130px, 0.55fr) minmax(90px, 0.38fr) minmax(100px, 0.38fr);
  gap: 20px;
  align-items: center;
}

.jobs-head {
  min-height: 58px;
  padding: 0 28px;
  color: var(--muted);
  background: #eef5f5;
  font-size: 13px;
  font-weight: 900;
}

.job-row {
  padding: 24px 28px;
  border-top: 1px solid var(--line);
}

.job-row h3 {
  margin-top: 8px;
}

.job-row p {
  margin-top: 10px;
  color: var(--muted);
}

.job-row > span {
  color: var(--ink);
  font-weight: 800;
}

.job-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  background: var(--coral);
  font-size: 11px;
  font-weight: 900;
}

.job-row:nth-child(n+4) .job-badge {
  background: var(--teal);
}

.recruit-process {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(420px, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 72px;
}

.process-grid {
  display: grid;
  gap: 16px;
}

.process-grid article {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.process-grid strong {
  grid-row: span 2;
  color: var(--coral);
  font-size: 24px;
}

.process-grid p {
  margin-top: 8px;
  color: var(--muted);
}

.recruit-apply {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding-top: 20px;
}

.recruit-apply p:not(.section-kicker) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 32px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
}

.site-footer img {
  width: 150px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.site-footer > p {
  text-align: right;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    order: 4;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .header-actions {
    margin-left: auto;
  }

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

  .site-nav a {
    padding: 14px 10px;
  }

  .nav-menu-item {
    display: grid;
  }

  .nav-menu-button {
    padding: 14px 10px;
    text-align: left;
  }

  .nav-menu-button::after {
    content: none;
  }

  .nav-menu-button::before {
    display: none;
  }

  .nav-dropdown {
    position: static;
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 0 0 8px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown a {
    padding: 10px 12px;
  }

  .hero-content {
    margin-right: 20px;
  }

  .hero-strip,
  .metrics,
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-heading,
  .feature-band,
  .careers,
  .contact,
  .recruit-process,
  .recruit-apply,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .service-card.highlight {
    grid-column: auto;
  }

  .site-footer,
  .site-footer > p {
    text-align: left;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .jobs-head {
    display: none;
  }

  .job-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .job-row > span {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf7f7;
    color: var(--teal-dark);
    font-size: 13px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 10px 14px;
  }

  .brand {
    width: 142px;
  }

  .brand img {
    width: 142px;
    height: auto;
  }

  .site-nav {
    top: var(--header-height);
  }

  .lang-toggle,
  .nav-toggle {
    min-height: 40px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px;
    padding-top: calc(var(--header-height) + 24px);
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 17px;
  }

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

  .button {
    width: 100%;
  }

  .hero-strip,
  .metrics,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .hero-strip span {
    min-height: 62px;
    padding: 17px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    width: min(100% - 32px, 1160px);
    padding: 58px 0;
  }

  .service-grid,
  .principle-grid {
    gap: 16px;
  }

  .service-card,
  .principle-grid article {
    padding: 24px;
  }

  .service-card.highlight {
    grid-template-columns: 1fr;
  }

  .service-card.highlight div {
    padding: 0 26px 28px;
  }

  .service-card.highlight img {
    min-height: 220px;
  }

  .feature-content {
    padding: 48px 20px;
  }

  .recruit-hero {
    min-height: 500px;
    padding: calc(var(--header-height) + 56px) 16px 54px;
  }

  .recruit-hero h1 {
    font-size: 28px;
  }

  .jobs-table {
    border-radius: 8px;
  }

  .job-row {
    padding: 22px;
  }

  .process-grid article {
    grid-template-columns: 48px 1fr;
    padding: 22px;
  }

  .career-panel div {
    grid-template-columns: 50px 1fr;
  }
}
