:root {
  --bg: #080b10;
  --bg-soft: #101722;
  --panel: rgba(17, 25, 36, 0.78);
  --panel-strong: rgba(21, 34, 49, 0.94);
  --text: #f3f7fb;
  --muted: #aab7c7;
  --line: rgba(171, 191, 215, 0.18);
  --cyan: #77e7ff;
  --blue: #6aa8ff;
  --copper: #d8a560;
  --cream: #f7efe1;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-display: "Sora", "Space Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-body: "Noto Sans SC", "Noto Sans TC", "PingFang SC", "PingFang HK", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(119, 231, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 80% 10%, rgba(216, 165, 96, 0.13), transparent 28rem),
    linear-gradient(135deg, #07090d 0%, #0a111a 52%, #0d1118 100%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(8, 11, 16, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
}

.brand-logo {
  display: block;
  width: clamp(132px, 14vw, 178px);
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(119, 231, 255, 0.5);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(119, 231, 255, 0.08);
}

.brand-text {
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.language-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.language-switcher button {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  min-width: 38px;
  padding: 7px 9px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.language-switcher button.is-active {
  color: #061017;
  background: var(--cyan);
}

.menu-toggle {
  display: none;
}

.section-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section-block {
  padding: 96px 0;
}

.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font: 700 12px var(--font-display);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.04;
}

h1 {
  font-size: clamp(52px, 9vw, 112px);
  letter-spacing: -0.07em;
  max-width: 900px;
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.045em;
  max-width: 880px;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.section-lede {
  font-size: clamp(18px, 2vw, 22px);
  max-width: 820px;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: 48px;
  padding: 86px 0;
}

.hero-subtitle {
  color: var(--cream);
  font-size: clamp(24px, 3vw, 38px);
  font-family: var(--font-display);
  margin: 24px 0 0;
}

.hero-body {
  max-width: 720px;
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #061017;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: 42px;
  background: transparent;
}

.hero-visual::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(rgba(119, 231, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 231, 255, 0.028) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle, #000 0 56%, transparent 78%);
}

.hero-image-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 600px);
  max-height: min(68vh, 620px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 40px;
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 0 70%, rgba(0, 0, 0, 0.86) 84%, rgba(0, 0, 0, 0.45) 94%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 0 70%, rgba(0, 0, 0, 0.86) 84%, rgba(0, 0, 0, 0.45) 94%, transparent 100%);
  filter: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 0 72%, rgba(0, 0, 0, 0.88) 86%, rgba(0, 0, 0, 0.48) 94%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 0 72%, rgba(0, 0, 0, 0.88) 86%, rgba(0, 0, 0, 0.48) 94%, transparent 100%);
  filter: drop-shadow(0 28px 70px rgba(119, 231, 255, 0.08));
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metric-strip span {
  display: grid;
  gap: 6px;
  padding: 22px;
  background: rgba(12, 18, 28, 0.88);
  font: 700 16px var(--font-display);
  color: var(--cream);
}

.metric-direction {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-direction--lower {
  color: #052117;
  background: linear-gradient(135deg, #7dffca, var(--cyan));
  box-shadow: 0 0 22px rgba(125, 255, 202, 0.2);
}

.metric-direction--higher {
  color: #181004;
  background: linear-gradient(135deg, var(--copper), #9fd1ff);
  box-shadow: 0 0 22px rgba(216, 165, 96, 0.22);
}

.pillar-grid,
.comparison-grid,
.roadmap-grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.pillar-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.roadmap-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pillar-card,
.comparison-card,
.roadmap-card,
.role-card,
.why-section,
.apply-section,
.contact-section,
.careers-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.pillar-card,
.comparison-card,
.roadmap-card {
  padding: 28px;
}

.accent-card {
  background: linear-gradient(145deg, rgba(119, 231, 255, 0.16), rgba(216, 165, 96, 0.10));
}

.muted-card {
  background: var(--panel-strong);
}

.roadmap-index {
  display: inline-flex;
  color: var(--copper);
  font: 700 13px var(--font-display);
  margin-bottom: 20px;
}

.roadmap-spec-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.roadmap-spec-list li {
  position: relative;
  padding: 8px 10px 8px 14px;
  border-left: 2px solid rgba(119, 231, 255, 0.56);
  border-radius: 12px;
  background: rgba(119, 231, 255, 0.055);
  color: var(--cream);
  font-size: 13px;
  line-height: 1.45;
}

.roadmap-spec-list .roadmap-spec-item--new {
  border-left-color: var(--cyan);
  background: linear-gradient(135deg, rgba(119, 231, 255, 0.26), rgba(216, 165, 96, 0.16));
  color: #ffffff;
  box-shadow: 0 0 22px rgba(119, 231, 255, 0.16);
}

.careers-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
}

.contact-section {
  padding: 40px;
}

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

.page-careers {
  background:
    radial-gradient(circle at 16% 4%, rgba(119, 231, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(216, 165, 96, 0.16), transparent 30rem),
    linear-gradient(180deg, #08101a 0%, #111923 34rem, #f4efe6 62rem, #f4efe6 100%);
}

.page-careers .section-block {
  padding: 70px 0;
}

.page-careers .roles-section,
.page-careers .apply-section {
  color: #17202a;
}

.page-careers .roles-section p,
.page-careers .apply-section p,
.role-card li {
  color: #435160;
}

.page-careers .why-section,
.page-careers .apply-section {
  padding: clamp(34px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(23, 32, 42, 0.12);
  color: #17202a;
}

.page-careers .why-section + .roles-section,
.page-careers .roles-section + .apply-section {
  margin-top: 28px;
}

.page-careers .why-section p,
.page-careers .apply-section p {
  color: #435160;
}

.page-careers .site-footer {
  color: #435160;
  border-top-color: rgba(23, 32, 42, 0.16);
}

.page-careers .site-footer span:first-child {
  color: #17202a;
}

.role-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 28px;
}

.career-controls {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 70px rgba(20, 27, 36, 0.10);
  color: #17202a;
}

.career-controls label {
  display: grid;
  gap: 8px;
  color: #17202a;
  font-weight: 700;
}

.career-controls input,
.career-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(23, 32, 42, 0.14);
  border-radius: 16px;
  color: #17202a;
  background: rgba(244, 239, 230, 0.72);
  font: inherit;
}

.career-controls input {
  padding: 0 18px;
}

.career-controls select {
  padding: 0 42px 0 18px;
}

.career-controls input:focus,
.career-controls select:focus {
  outline: 2px solid rgba(13, 111, 133, 0.28);
  border-color: rgba(13, 111, 133, 0.42);
}

.career-search input {
  font-size: 17px;
}

.career-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.filter-reset {
  width: 100%;
  min-height: 48px;
  color: #061017;
  border-color: rgba(13, 111, 133, 0.28);
  background: rgba(119, 231, 255, 0.16);
}

.job-results-summary {
  margin: 22px 0 0;
  color: #435160;
  font-weight: 700;
}

.role-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.94);
  color: #17202a;
  box-shadow: 0 20px 70px rgba(20, 27, 36, 0.12);
}

.job-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.role-card h3 {
  font-size: clamp(26px, 3vw, 38px);
}

.role-card h4 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
}

.role-type {
  display: inline-flex;
  color: #0d6f85;
  font-weight: 700;
  margin-bottom: 12px;
}

.role-card ul {
  padding-left: 20px;
  line-height: 1.7;
}

.role-card .button-secondary {
  color: #061017;
  border-color: rgba(13, 111, 133, 0.28);
  background: rgba(119, 231, 255, 0.16);
}

.role-card .button-secondary:hover {
  border-color: rgba(13, 111, 133, 0.48);
  background: rgba(119, 231, 255, 0.24);
}

.role-card-header {
  display: grid;
  gap: 10px;
}

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

.job-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  color: #0d4f61;
  background: rgba(119, 231, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
}

.job-tag--employment {
  color: #74501a;
  background: rgba(216, 165, 96, 0.18);
}

.job-tag--domain {
  color: #23446d;
  background: rgba(106, 168, 255, 0.16);
}

.job-card-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.job-card-actions .button-primary {
  min-width: 86px;
}

.job-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.job-pagination button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(23, 32, 42, 0.14);
  border-radius: 999px;
  color: #17202a;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  cursor: pointer;
}

.job-pagination button:hover:not(:disabled),
.job-pagination button.is-active {
  color: #061017;
  border-color: rgba(13, 111, 133, 0.38);
  background: rgba(119, 231, 255, 0.24);
}

.job-pagination button:disabled {
  color: #9aa6b2;
  cursor: not-allowed;
}

.job-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(86vh, 900px);
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  color: #17202a;
  background: transparent;
}

.job-dialog::backdrop {
  background: rgba(4, 8, 13, 0.72);
  backdrop-filter: blur(12px);
}

.job-dialog-shell {
  position: relative;
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: clamp(30px, 4vw, 44px);
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(119, 231, 255, 0.14), transparent 18rem),
    #fbf8f1;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.job-dialog-close {
  position: sticky;
  top: 0;
  float: right;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 999px;
  color: #17202a;
  background: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  cursor: pointer;
}

[data-job-dialog-content] {
  clear: both;
  padding: 12px clamp(8px, 2vw, 18px) 0;
}

.job-detail {
  display: grid;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.job-detail-header {
  display: grid;
  gap: 12px;
  padding-right: 52px;
}

.job-detail-header h3 {
  font-size: clamp(30px, 4vw, 52px);
}

.job-detail-header p,
.job-detail-section li {
  color: #435160;
}

.job-detail-section {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 32, 42, 0.12);
}

.job-detail-section h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
}

.job-detail-section ul {
  margin: 0;
  padding-left: 24px;
  line-height: 1.75;
}

.job-detail-section li {
  padding-left: 4px;
}

.job-detail-apply {
  justify-self: start;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    border: 1px solid var(--line);
    color: var(--text);
    background: transparent;
    border-radius: 999px;
    padding: 9px 14px;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

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

  .language-switcher {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero,
  .pillar-grid,
  .comparison-grid,
  .roadmap-grid,
  .career-filter-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .careers-preview,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-card {
    flex-direction: column;
  }

  .job-card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 28px, 1160px);
  }

  .section-block {
    padding: 68px 0;
  }

  h1 {
    font-size: clamp(44px, 16vw, 72px);
  }

  .hero-visual {
    min-height: 300px;
    border-radius: 28px;
  }

  .hero-image-frame {
    width: min(100%, 360px);
    max-height: 360px;
    border-radius: 24px;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .role-card {
    padding: 24px;
  }

  .career-controls {
    padding: 18px;
  }

  .job-card-actions {
    width: 100%;
  }

  .job-card-actions .button {
    width: 100%;
  }

  .job-dialog-shell {
    padding: 24px 20px;
  }

  [data-job-dialog-content] {
    padding: 10px 2px 0;
  }

  .job-detail-header {
    padding-right: 0;
  }
}
