@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3efe6;
  --ink: #1c1a16;
  --muted: #5c564c;
  --faint: #7a7368;
  --paper: #fffdf8;
  --dark: #12141a;
  --dark-2: #1c2030;
  --line: rgba(28, 26, 22, 0.12);
  --line-strong: rgba(28, 26, 22, 0.22);
  --gold: #8a6232;
  --gold-soft: #f4e7cf;
  --red: #c4322a;
  --red-deep: #9d241e;
  --green: #0e6b52;
  --shadow: 0 24px 60px rgba(28, 26, 22, 0.08);
  --nav: 70px;
  --max: 1120px;
  --sans: "Outfit", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans TC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Malgun Gothic", "Noto Sans KR", "Thonburi", "Noto Sans Thai", "Noto Sans Devanagari", "Segoe UI", sans-serif;
  --ar: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", sans-serif;
  --he: "Arial Hebrew", "Noto Sans Hebrew", "Geeza Pro", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  min-width: 320px;
}
html[lang="ar"] body { font-family: var(--ar); line-height: 1.75; }
html[lang="he"] body { font-family: var(--he); line-height: 1.7; }
html[lang="th"] body { line-height: 1.75; }
html[lang="zh-CN"] body,
html[lang="zh-Hant"] body,
html[lang="ja"] body,
html[lang="ko"] body { letter-spacing: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--gold-soft);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
html[lang="ar"] .kicker,
html[lang="he"] .kicker,
html[lang="zh-CN"] .kicker,
html[lang="zh-Hant"] .kicker,
html[lang="ja"] .kicker,
html[lang="ko"] .kicker,
html[lang="th"] .kicker { letter-spacing: 0.04em; text-transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 20, 26, 0.94);
  color: #f6f3ee;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 248, 236, 0.08);
}
.header-inner {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  min-height: var(--nav);
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 14px;
  flex: 0 0 auto;
}
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 10px;
  color: #c9c2b6;
  font-size: 14.5px;
  font-weight: 550;
  border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.06); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 14.5px;
  text-align: center;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-deep); }
.btn-dark { background: var(--dark); color: white; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-line { background: transparent; border-color: rgba(255,255,255,0.2); color: #f6f3ee; }
.btn-wa { background: var(--green); color: white; }
.lang-btn, .menu-toggle {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: #f6f3ee;
  padding: 0 12px;
  font-weight: 650;
  font-size: 14px;
}
.menu-toggle { display: none; width: 44px; padding: 0; }
.menu-toggle span, .menu-toggle span:before, .menu-toggle span:after {
  display: block; height: 1.5px; width: 16px; background: currentColor; position: relative;
}
.menu-toggle span:before, .menu-toggle span:after { content: ""; position: absolute; left: 0; }
.menu-toggle span:before { top: -6px; }
.menu-toggle span:after { top: 6px; }

.lang-panel {
  position: fixed;
  inset-inline-end: 12px;
  top: 76px;
  width: min(420px, calc(100vw - 24px));
  max-height: min(70vh, 560px);
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  z-index: 50;
}
.lang-panel[hidden] { display: none; }
.lang-panel input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.lang-list { display: grid; gap: 4px; }
.lang-list button {
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.lang-list button strong { font-size: 15px; font-weight: 650; }
.lang-list button span { color: var(--faint); font-size: 12px; }
.lang-list button:hover, .lang-list button.is-on { background: var(--gold-soft); }
.lang-empty { color: var(--muted); padding: 8px 10px; }

.mobile-panel {
  display: none;
  background: var(--dark);
  color: #f6f3ee;
  padding: 8px 18px 22px;
}
.mobile-panel a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.nav-open .mobile-panel { display: block; }

.hero { padding: 54px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: center;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 650;
}
html[lang="zh-CN"] h1,
html[lang="zh-Hant"] h1,
html[lang="ja"] h1,
html[lang="ko"] h1,
html[lang="ar"] h1,
html[lang="he"] h1,
html[lang="th"] h1 { letter-spacing: 0; line-height: 1.25; }
.lede { margin: 0 0 18px; color: var(--muted); font-size: 18px; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.note { margin: 0; color: var(--faint); font-size: 14px; max-width: 62ch; }

.brief {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}
.brief-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 8px;
}
.brief-top strong { letter-spacing: 0.08em; font-size: 12px; }
.brief dl { margin: 0; display: grid; gap: 8px; }
.brief div { display: grid; grid-template-columns: 108px 1fr; gap: 8px; }
.brief dt { color: var(--faint); font-size: 13px; }
.brief dd { margin: 0; font-weight: 600; }
.brief ul { margin: 8px 0 14px; padding-inline-start: 18px; color: var(--muted); }
.brief li { margin: 4px 0; }

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-bottom: 10px;
}
.trust article, .card, .step, .role, .doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.trust h2, .card h3, .step h3, .role h3, .doc h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}
.trust p, .card p, .step p, .role p, .doc p, .check li, .faq p { margin: 0; color: var(--muted); }

.section { padding: 42px 0; }
.section h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.sub { margin: 0 0 20px; color: var(--muted); max-width: 68ch; }

.jobs, .roles, .docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card .fit { margin-top: 10px; color: var(--gold); font-weight: 650; font-size: 14px; }
a.card:hover { border-color: var(--gold); }

.matcher {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
}
fieldset { border: 0; margin: 0 0 16px; padding: 0; }
legend { font-weight: 700; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.choice input:checked + span { background: var(--gold-soft); border-color: var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.match-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result {
  background: var(--dark);
  color: #f6f3ee;
  border-radius: 18px;
  padding: 18px;
  min-height: 220px;
}
.result .kicker { color: #e4c48a; }
.result h3 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.result p { color: #d9d3c8; }
.result .role-note { color: #f6f3ee; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fine { font-size: 13px; color: #b7b1a6 !important; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dark);
  color: #f4e7cf;
  margin-bottom: 10px;
  font-size: 14px;
}
.check { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.check li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px 12px 42px;
  position: relative;
}
.check li:before {
  content: "";
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  position: absolute;
  inset-inline-start: 16px;
  top: 16px;
  transform: rotate(-45deg);
}

.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin-top: 8px; }

.contact-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  background: var(--dark);
  color: #f6f3ee;
  border-radius: 22px;
  padding: 22px;
}
.contact-band h2 { color: white; }
.contact-band p, .contact-band a { color: #d9d3c8; }
.contact-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.contact-actions a { color: white; }

.page-hero { padding: 36px 0 10px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 52px); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--faint); font-weight: 650; }
td:first-child { font-weight: 650; }

.joint-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.joint-row a {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  min-height: 72px;
}
.joint-row a:hover { border-color: var(--gold); }
.joint-row strong { display: block; }

.quote-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
form.panel, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }
input, select, textarea {
  width: 100%;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px;
  font-weight: 450;
}
textarea { min-height: 120px; resize: vertical; }
.form-error { color: var(--red); min-height: 1.2em; margin: 0; }
.brief-out {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  background: #171a22;
  color: #f6f3ee;
  border-radius: 14px;
  padding: 14px;
}
.out-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.site-footer { padding: 28px 0 40px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; }
.site-footer h2 { font-size: 14px; margin: 0 0 8px; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a:hover { color: var(--ink); }
.legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; }

.callout {
  background: var(--gold-soft);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 14px;
}
.callout h2 { font-size: 22px; }
.callout p { margin: 0; color: var(--ink); }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero-grid, .trust, .jobs, .roles, .docs, .matcher, .steps, .contact-band, .quote-grid, .footer-grid, .form-row, .joint-row {
    grid-template-columns: 1fr;
  }
  .trust { grid-template-columns: 1fr 1fr; }
  .header-actions .btn-primary { display: none; }
  h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .trust, .brief div { grid-template-columns: 1fr; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
}

@media print {
  .site-header, .mobile-panel, .lang-panel, .no-print, .site-footer { display: none !important; }
  body { background: white; }
  .brief-out, .result, .contact-band { color: black; background: white; }
}
