:root {
  color-scheme: light;
  --navy: #142666;
  --navy-dark: #122053;
  --ink: #15224d;
  --muted: #515b79;
  --cream: #fffaf2;
  --white: #fff;
  --orange: #ff8a39;
  --orange-ink: #aa3d04;
  --violet: #eae2ff;
  --line: #e4dfef;
  --blue-tint: #f0ebff;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 system-ui, 'Noto Sans Thai', 'Microsoft YaHei', 'PingFang TC', sans-serif;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #737fb9; outline-offset: 4px; }
[id] { scroll-margin-top: 2rem; }
.frame { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 3; top: 12px; left: 12px; padding: 10px 14px; border-radius: 6px; color: var(--white); background: var(--navy); }

.site-header { border-bottom: 1px solid #f0e7dc; }
.header-inner, .site-nav, .header-actions, .brand { display: flex; align-items: center; }
.header-inner { min-height: 76px; justify-content: space-between; gap: 24px; }
.brand { width: fit-content; flex-shrink: 0; gap: 8px; color: var(--navy); }
.brand img { display: block; object-fit: contain; }
.brand .brand-symbol { width: 37px; height: 36px; }
.brand .brand-word { width: 111px; height: auto; }
.brand span { font-size: .9rem; font-weight: 700; }
.brand span:empty { display: none; }
.site-nav, .header-actions { gap: clamp(12px, 2vw, 28px); color: var(--navy-dark); }
.site-nav { flex-wrap: wrap; min-width: 0; }
.site-nav a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.site-nav a span:last-child, .button { overflow-wrap: anywhere; }
.site-nav a, .admin-link { font-size: .91rem; font-weight: 650; }
.site-nav a:hover, .footer-inner > a:hover { text-decoration: underline; text-underline-offset: .24em; }
.language { position: relative; display: inline-flex; }
.language::after { content: ''; position: absolute; right: 12px; top: calc(50% - 5px); width: 7px; height: 7px; border: solid var(--navy); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.language select { appearance: none; max-width: 100%; padding: 7px 30px 7px 10px; border: 1px solid #d8dceb; border-radius: 7px; color: var(--navy-dark); background: #ffffff9e; font-size: .875rem; }
.admin-link { border: 1px solid var(--navy); border-radius: 8px; padding: 8px 13px; text-align: center; line-height: 1.35; }
.admin-link:hover { background: var(--blue-tint); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(28px, 5.2vw, 76px);
  padding-block: 56px 64px;
}
.eyebrow { color: var(--navy); font-weight: 760; font-size: .89rem; margin-bottom: 16px; }
.eyebrow::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--orange); vertical-align: .1em; }
.hero h1 { color: var(--navy-dark); font-size: clamp(2.6rem, 5.45vw, 5.1rem); line-height: 1.12; letter-spacing: -.062em; font-weight: 850; overflow-wrap: anywhere; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--orange-ink); }
:lang(th) .hero h1, :lang(vi) .hero h1 { letter-spacing: -.032em; line-height: 1.19; }
.hero-summary { max-width: 48ch; margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.12rem); }
.hero-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1.17;
  border-radius: 38px;
  background: radial-gradient(circle at 77% 17%, #fff0da, transparent 45%), linear-gradient(145deg, #f4edff, #dfd2ff);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#573fb226 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(115deg, #000, transparent 75%);
}
.hero-orbit {
  position: absolute;
  inset: 14% 11%;
  transform: rotate(-19deg);
  border: 1px solid #7458ce46;
  border-radius: 50%;
  box-shadow: 0 0 0 19px #ffffff40, 0 0 0 20px #7458ce26;
}
.hero-visual img {
  position: relative;
  width: 79%;
  height: auto;
  transform: rotate(-3deg);
  filter: drop-shadow(0 18px 24px #1a246333);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 8px 17px; border: 1px solid transparent; border-radius: 13px; text-align: center; font-size: .93rem; font-weight: 750; cursor: pointer; transition: background .15s ease; }
.button.primary { background: var(--orange); color: #331a0a; }
.button.primary:hover { background: #fa7723; }
.button.outline { border-color: #dcd1ef; color: var(--navy-dark); background: var(--white); }
.button.outline:hover { background: var(--blue-tint); }
.button.text-link { color: var(--navy-dark); text-decoration: underline; text-underline-offset: .25em; padding-inline: 9px; }
.button:disabled { opacity: .65; cursor: wait; }

.product { background: var(--white); padding-block: 62px 68px; }
.section-heading h2 { color: var(--navy-dark); font-size: clamp(1.75rem, 3.15vw, 2.65rem); font-weight: 780; line-height: 1.25; letter-spacing: -.038em; }
.section-heading p { margin-top: 8px; color: var(--muted); }
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.audience { padding: clamp(21px, 3.5vw, 38px); border: 1px solid #f3dccb; border-radius: 27px; background: #fff0e4; }
.audience.employers { border-color: #e6d9fa; background: #f1ebff; }
.audience-symbol { display: grid; width: 47px; height: 47px; margin-bottom: 16px; place-items: center; border-radius: 15px; background: #ff9853; color: #472006; }
.audience.employers .audience-symbol { background: var(--navy); color: var(--white); }
.symbol-search { position: relative; width: 14px; height: 14px; margin: 0 3px 3px 0; border: 2px solid currentColor; border-radius: 50%; }
.symbol-search::after { content: ''; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.symbol-briefcase { position: relative; width: 19px; height: 13px; margin-top: 4px; border: 2px solid currentColor; border-radius: 3px; }
.symbol-briefcase::before { content: ''; position: absolute; top: -6px; left: 4px; width: 7px; height: 5px; border: 2px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.audience h3 { color: var(--navy-dark); font-size: 1.43rem; line-height: 1.3; }
.audience p { margin-top: 6px; color: var(--muted); }
.audience ul { display: grid; gap: 7px; margin: 13px 0 0; padding-inline-start: 1.17rem; }
.audience li::marker { color: var(--navy); }
.audience-actions { margin-top: 15px; }
.android-download { gap: 8px; }

.opportunities { padding-block: 57px 62px; }
.jobs-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.job-status { color: var(--muted); }
.job-status:not([hidden]) { padding: 17px 18px; border: 1px dashed #d4d9e4; border-radius: 12px; background: #ffffff95; }
.job-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.job { border: 1px solid var(--line); border-radius: 19px; padding: 19px; background: var(--white); }
.job h3 { color: var(--navy-dark); font-size: 1.13rem; overflow-wrap: anywhere; }
.job p { margin-top: 6px; color: var(--muted); overflow-wrap: anywhere; }
.job .salary { color: var(--navy); font-weight: 720; }
.job button { margin-top: 13px; }

.faq { background: var(--white); border-top: 1px solid #f0e7dc; padding-block: 55px 61px; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.5fr; align-items: start; gap: 34px; }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { position: relative; padding: 14px 38px 14px 0; list-style: none; color: var(--navy-dark); font-weight: 720; cursor: pointer; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; position: absolute; right: 9px; color: var(--navy); font-size: 1.22rem; line-height: 1.2; }
.questions details[open] summary::after { content: '−'; }
.questions details p { color: var(--muted); padding: 0 30px 14px 0; }
.site-footer { border-top: 1px solid #f0e7dc; padding-block: 26px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-inner p { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.footer-inner > a { color: var(--navy-dark); font-weight: 650; }

dialog { width: min(620px, calc(100% - 28px)); max-height: 85dvh; overflow: auto; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); }
dialog::backdrop { background: #13224990; }
.dialog-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dialog-bar h2 { color: var(--navy-dark); font-size: 1.35rem; line-height: 1.35; overflow-wrap: anywhere; }
#job-detail p + p { margin-top: 8px; }
.detail-description { margin-top: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; padding-block: 12px; }
  .site-nav { width: 100%; order: 1; }
}

@media (max-width: 820px) {
  .frame { width: calc(100% - 48px); }
  .header-inner { flex-wrap: wrap; column-gap: 12px; row-gap: 9px; padding-block: 12px 9px; }
  .site-nav { width: 100%; order: 1; gap: 18px; }
  .header-actions { gap: 8px; }
  .hero { gap: 23px; padding-block: 37px 46px; }
  .hero h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); }
  .job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .frame { width: calc(100% - 30px); }
  .brand .brand-word { width: 85px; }
  .brand .brand-symbol { width: 26px; height: 28px; }
  .brand { gap: 5px; }
  .header-actions { flex: 1; justify-content: flex-end; }
  .language select { width: clamp(73px, 25vw, 112px); }
  .admin-link { font-size: .82rem; padding: 7px 8px; }
  .site-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 6px 10px; }
  .site-nav a { font-size: .86rem; padding: 5px 0; }
  .hero { grid-template-columns: 1fr; padding-block: 30px 37px; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 3.6rem); }
  .hero-visual { aspect-ratio: 1.42; border-radius: 25px; }
  .hero-visual img { width: 70%; }
  .hero-summary { margin-top: 12px; }
  .actions { margin-top: 16px; }
  .product, .opportunities, .faq { padding-block: 37px; }
  .audiences, .job-list, .faq-layout { grid-template-columns: 1fr; gap: 12px; }
  .audience { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
