:root {
  color-scheme: light;
  --rf-ink: #192640;
  --rf-muted: #687892;
  --rf-line: #e3e9f3;
  --rf-paper: #fff;
  --rf-canvas: #f5f7fc;
  --rf-blue: #165dff;
  --rf-indigo: #3737c8;
  --rf-violet: #9b4dff;
  --rf-cyan: #22d8e9;
  --rf-shadow: 0 24px 70px rgba(20, 40, 86, .11);
  --ink: var(--rf-ink);
  --muted: #8290a8;
  --line: var(--rf-line);
  --paper: #fff;
  --canvas: var(--rf-canvas);
  --accent: var(--rf-blue);
  --accent-strong: var(--rf-indigo);
  --accent-soft: #edf3ff;
  --green: #2eaa83;
  --shadow: 0 16px 42px rgba(20, 40, 86, .08);
  --rf-font: "Noto Sans Thai", "Noto Sans", sans-serif;
  font-family: var(--rf-font);
  color: var(--rf-ink);
  background: var(--rf-canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; color: var(--rf-ink); background: var(--rf-canvas); font-family: inherit; font-size: 15px; line-height: 1.72; }
html:lang(en) { --rf-font: "Noto Sans", "Noto Sans Thai", sans-serif; }
body, button, input, select, textarea { font-family: var(--rf-font); }
img { display: block; max-width: 100%; }
a { color: var(--rf-blue); text-underline-offset: 3px; }
a:hover { color: var(--rf-indigo); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(22, 93, 255, .34); outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; transform: translateY(-150%); padding: 8px 14px; color: #fff; background: var(--rf-indigo); border-radius: 10px; }
.skip-link:focus { transform: none; }

.top { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(218, 227, 240, .78); background: rgba(250, 251, 255, .84); backdrop-filter: blur(18px); transition: box-shadow .22s ease, background .22s ease; }
.top.is-scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 8px 28px rgba(26, 45, 82, .08); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--rf-ink); text-decoration: none; }
.brand:hover { color: var(--rf-ink); }
.brand-icon { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(22, 93, 255, .22)); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.16; }
.brand-copy strong { color: #172744; font-size: 16px; font-weight: 900; letter-spacing: -.035em; }
.brand-copy small { margin-top: 4px; color: #72819a; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 2vw, 25px); }
.links a { color: #52627b; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .18s ease, transform .18s ease; }
.links a:hover { color: var(--rf-blue); transform: translateY(-1px); }
.links .nav-download, .links .button { padding: 10px 17px; color: #fff; background: linear-gradient(115deg, var(--rf-blue), #6949ea); border: 0; border-radius: 12px; box-shadow: 0 8px 20px rgba(57, 70, 214, .2); }
.links .nav-download:hover, .links .button:hover { color: #fff; box-shadow: 0 12px 28px rgba(57, 70, 214, .28); }
.lang { padding-left: 13px; border-left: 1px solid var(--rf-line); }
.mobile-menu-button { display: none; }
.top.has-mobile-menu .mobile-menu-button { display: none; }
.top.has-mobile-menu .mobile-menu-button { align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--rf-line); border-radius: 12px; color: var(--rf-ink); background: #fff; font: inherit; font-size: 20px; cursor: pointer; }
@media (max-width: 760px) {
  .top.has-mobile-menu .nav { position: relative; min-height: 66px; align-items: center; }
  .top.has-mobile-menu .mobile-menu-button { display: inline-flex; }
  .top.has-mobile-menu .links { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: min(340px, calc(100vw - 28px)); max-width: calc(100vw - 28px); padding: 10px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 3px; border: 1px solid var(--rf-line); border-radius: 15px; background: rgba(255,255,255,.98); box-shadow: 0 18px 42px rgba(20,40,86,.16); }
  .top.has-mobile-menu .links.is-open { display: flex; }
  .top.has-mobile-menu .links a { display: block; padding: 11px 12px; border-radius: 9px; color: var(--rf-ink); font-size: 14px; white-space: normal; }
  .top.has-mobile-menu .links .nav-download { margin-top: 5px; text-align: center; color: #fff; }
  .top.has-mobile-menu .links .lang { padding-left: 12px; border: 0; border-top: 1px solid var(--rf-line); border-radius: 0; color: var(--rf-muted); }
}

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; color: #fff; background: linear-gradient(112deg, var(--rf-blue), #7249e9); border: 1px solid transparent; border-radius: 13px; box-shadow: 0 10px 25px rgba(43, 76, 217, .2); font-size: 14px; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 15px 30px rgba(43, 76, 217, .26); filter: saturate(1.08); }
.button.secondary { color: #344669; background: rgba(255,255,255,.84); border-color: #dce5f2; box-shadow: 0 6px 18px rgba(31, 49, 86, .06); }
.button.secondary:hover { color: var(--rf-blue); background: #fff; border-color: #c4d6fb; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--rf-blue); font-size: 11px; font-weight: 900; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.eyebrow .dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: linear-gradient(145deg, var(--rf-cyan), var(--rf-violet)); box-shadow: 0 0 0 4px rgba(52, 115, 255, .1); }
.gradient-text { color: var(--rf-blue); background: linear-gradient(100deg, #2783ff 0%, #664bf0 57%, #ac43e9 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.footer { margin-top: 80px; padding: 36px 0 28px; color: #e9efff; background: #111c36; }
.footerrow { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footerrow > span:first-child { color: #aebbd4; font-size: 12px; }
.footerlinks { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 11px 22px; }
.footerlinks a { color: #d4def2; font-size: 12px; text-decoration: none; }
.footerlinks a:hover { color: #fff; }

.page { max-width: 890px; padding-top: 58px; padding-bottom: 10px; }
.pagehead { margin: 0 0 24px; padding: 0 0 24px; border-bottom: 1px solid var(--rf-line); }
.pagehead .eyebrow { margin-bottom: 12px; }
.pagehead h1 { margin: 0; color: #182642; font-size: clamp(36px, 5vw, 54px); font-weight: 900; letter-spacing: -.06em; line-height: 1.1; }
.pagehead p { margin: 11px 0 0; color: var(--rf-muted); font-size: 14px; }
.doc { padding: clamp(23px, 5vw, 46px); color: #40506b; background: #fff; border: 1px solid var(--rf-line); border-radius: 22px; box-shadow: 0 12px 36px rgba(22, 45, 90, .055); }
.doc > :first-child { margin-top: 0; }
.doc p, .doc li { font-size: 14px; line-height: 1.9; }
.doc h2 { margin: 35px 0 10px; color: #1c2d4b; font-size: 20px; letter-spacing: -.03em; }
.doc h3 { margin: 25px 0 8px; color: #25385a; font-size: 16px; }
.doc li + li { margin-top: 8px; }
.doc a { font-weight: 700; }
.doc .note { padding: 16px 18px; color: #445b7d; background: #f0f5ff; border: 1px solid #dce7ff; border-radius: 14px; }
.pill { display: inline-flex; padding: 5px 10px; margin: 4px 4px 8px 0; color: #3854a8; background: #eef3ff; border: 1px solid #dbe5ff; border-radius: 999px; font-size: 12px; font-weight: 800; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 20px; padding: 21px 24px; background: linear-gradient(120deg, #eef4ff, #f7f1ff); border: 1px solid #e2e8fa; border-radius: 18px; }
.contact strong { color: #1c2e4d; }
.contact p { margin: 3px 0 0; color: var(--rf-muted); font-size: 13px; }
.contact > a { font-weight: 800; white-space: nowrap; }
.card { background: #fff; border: 1px solid var(--rf-line); border-radius: 18px; box-shadow: 0 12px 34px rgba(19, 41, 81, .055); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: #305bea; font-weight: 800; text-decoration: none; }
.text-link:hover { color: #8f40dd; }

@media (max-width: 820px) {
  .wrap { width: min(100% - 32px, 680px); }
  .nav { min-height: 68px; gap: 12px; }
  .brand-icon { width: 39px; height: 39px; flex-basis: 39px; }
  .links { gap: 8px 12px; flex-wrap: wrap; }
  .links a { font-size: 12px; }
  .links .nav-download { padding: 9px 12px; }
  .footerrow { align-items: flex-start; flex-direction: column; }
  .footerlinks { justify-content: flex-start; }
  .page { padding-top: 40px; }
}
@media (max-width: 520px) {
  body { font-size: 14px; }
  .wrap { width: calc(100% - 28px); }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 9px; }
  .links { gap: 7px 9px; }
  .links a { font-size: 11px; }
  .links .lang { display: none; }
  .links .nav-download { padding: 9px 10px; }
  .pagehead h1 { font-size: 38px; }
  .doc { padding: 22px 19px; border-radius: 17px; }
  .contact { align-items: flex-start; flex-direction: column; }
}
