:root {
  --navy: #071a4d;
  --navy-2: #0a2a8c;
  --blue: #0a57d0;
  --blue-2: #0a74e8;
  --sky: #5fc8ff;
  --orange: #f58a00;
  --orange-2: #ffab1f;
  --ink: #0d1b3d;
  --muted: #4a5878;
  --line: #dfe6f3;
  --soft: #f3f6fc;
  --r: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Anuphan", "Leelawadee UI", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 5vw, 64px);
  background: rgba(7, 26, 77, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-size: 22px; font-weight: 700; }
.brand b { color: var(--sky); }
.nav nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 28px); }
.nav nav a:not(.btn) { color: #c9d8ff; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:not(.btn):hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 12px;
  background: linear-gradient(135deg, #e07800, var(--orange-2));
  color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(245, 138, 0, .34);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245, 138, 0, .42); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1.5px #fff; }
.btn-off { background: #e7ecf6; color: #4a5878; box-shadow: none; cursor: default; }
.btn-off:hover { transform: none; box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(760px 420px at 86% 12%, rgba(95, 200, 255, .26), transparent 64%),
    radial-gradient(620px 420px at 6% 100%, rgba(245, 138, 0, .2), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 56%, var(--blue) 100%);
  overflow: hidden;
}
.hero-in {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(28px, 4.5vw, 64px); align-items: center;
  padding: clamp(44px, 7vw, 96px) clamp(16px, 5vw, 64px) clamp(56px, 8vw, 112px);
}
.tag { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 14px; color: #dbe6ff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #35d07f; display: inline-block; flex: none; }
.dot.off { background: #9aa6c0; }
h1 { margin-top: 20px; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.hl { background: linear-gradient(100deg, var(--sky), #fff 60%, var(--orange-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; max-width: 34em; font-size: clamp(16px, 1.45vw, 19px); color: #d3defa; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; font-size: 14px; color: #c9d8ff; }
.facts li::before { content: "✓"; margin-right: 7px; color: var(--orange-2); font-weight: 700; }

/* app mock */
.shot { position: relative; }
.shot::before { content: ""; position: absolute; inset: 10% -6% -8% 8%; border-radius: 40px; background: linear-gradient(135deg, rgba(245, 138, 0, .5), rgba(95, 200, 255, .35)); filter: blur(46px); }
.app { position: relative; border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); font-size: 12px; line-height: 1.4; box-shadow: 0 34px 80px rgba(0, 0, 0, .42); transform: perspective(1500px) rotateY(-6deg) rotateX(2.5deg); }
.app-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; background: var(--navy); color: #fff; }
.wc { margin-left: auto; display: flex; gap: 12px; }
.wc i { width: 9px; height: 9px; border: 1.5px solid #9db4ff; border-radius: 2px; }
.app-head { display: flex; align-items: center; gap: 18px; padding: 14px 18px; color: #fff; background: linear-gradient(90deg, var(--navy), #0a3fbf 55%, var(--blue-2)); }
.app-head small { display: block; font-size: 10px; color: #c9d8ff; }
.app-head strong { font-size: clamp(17px, 1.9vw, 24px); font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.app-head .pw { font-size: clamp(13px, 1.3vw, 16px); letter-spacing: .08em; }
.vr { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .22); }
.ver { margin-left: auto; font-size: 10px; color: #c9d8ff; white-space: nowrap; }
.app-body { padding: 14px 16px; display: grid; gap: 12px; }
.connect { display: flex; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; }
.field { flex: 1; min-width: 0; padding: 8px 12px; border: 1.5px solid #c3d0ea; border-radius: 8px; color: #5d6b8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go { padding: 8px 16px; border-radius: 8px; background: #0071ff; color: #fff; font-weight: 600; white-space: nowrap; }
.more { width: 34px; border: 1px solid var(--line); border-radius: 8px; }
.tabs { display: flex; gap: 4px; white-space: nowrap; overflow: hidden; }
.tabs span { padding: 5px 10px; border-radius: 8px; color: #4a5878; }
.tabs .on { background: #e0ecff; color: #0a4fc0; font-weight: 600; }
.peers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.peers > div { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.peers b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peers small { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #4a5878; }
.th { height: 46px; border-radius: 7px; }
.th.a { background: linear-gradient(135deg, #1c3a66, #3a6aa6); }
.th.b { background: linear-gradient(135deg, #cfe0ff, #eef4ff); }
.th.c { background: linear-gradient(135deg, #ffe2bd, #fff4e2); }
.app-foot { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--line); color: #4a5878; }

/* ---------- strip ---------- */
.strip { max-width: 1180px; margin: clamp(-46px, -4vw, -28px) auto 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 18px 44px rgba(7, 26, 77, .12); width: calc(100% - clamp(32px, 10vw, 128px)); }
.strip div { padding: 20px 22px; background: #fff; }
.strip b { display: block; font-weight: 600; color: var(--navy); }
.strip span { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
.sec { padding: clamp(60px, 8vw, 108px) clamp(16px, 5vw, 64px); }
.sec > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.sec.soft { background: var(--soft); }
.sec.dark { color: #fff; background: linear-gradient(160deg, var(--navy), var(--navy-2) 70%, #0a3fbf); }
.eyebrow { text-align: center; color: var(--orange); font-weight: 600; font-size: 15px; }
.dark .eyebrow { color: var(--orange-2); }
h2 { margin-top: 6px; text-align: center; font-size: clamp(26px, 3.1vw, 40px); line-height: 1.28; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.dark h2 { color: #fff; }
.sub { margin-top: 12px; text-align: center; color: var(--muted); font-size: 17px; }
.dark .sub { color: #d3defa; }
.left { text-align: left; }
h3 { font-size: 19px; font-weight: 600; color: var(--navy); }

.grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid article { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.grid article:hover { transform: translateY(-4px); border-color: #b7cdf8; box-shadow: 0 18px 40px rgba(10, 87, 208, .13); }
.grid svg { width: 48px; height: 48px; padding: 11px; border-radius: 13px; margin-bottom: 16px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: #e6efff; }
.grid article:nth-child(even) svg { stroke: #b85a00; background: #fff0db; }
.grid p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* program panels */
.panels { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.panels figure { display: grid; gap: 14px; align-content: start; }
.panels figcaption { text-align: center; font-size: 15px; color: #d3defa; }
.mini { height: 232px; border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); font-size: 12px; line-height: 1.4; box-shadow: 0 22px 50px rgba(0, 0, 0, .34); display: flex; flex-direction: column; }
.mini-nav, .mini-tool { display: flex; gap: 4px; padding: 8px 10px; white-space: nowrap; overflow: hidden; }
.mini-nav { border-bottom: 1px solid var(--line); }
.mini-nav span, .mini-tool span { padding: 5px 9px; border-radius: 7px; }
.mini-nav span { color: #4a5878; }
.mini-nav .on { background: #e0ecff; color: #0a4fc0; font-weight: 600; }
.mini-tool { color: #fff; background: linear-gradient(90deg, #0a2f9c, var(--blue)); }
.mini-tool .on { background: rgba(255, 255, 255, .2); font-weight: 600; }
.mini-tool .x { margin-left: auto; background: #d92d20; font-weight: 600; }
.mini-cols { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; background: var(--soft); }
.mini .card { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: grid; gap: 6px; align-content: start; }
.mini .card p, .consent p { display: flex; align-items: center; gap: 8px; }
.rd { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #9aa6c0; flex: none; }
.rd.on { border: 4px solid #0071ff; }
.sw { width: 28px; height: 15px; border-radius: 8px; background: #b4c1da; position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.sw.on { background: #0071ff; }
.sw.on::after { left: 15px; }
.sel { padding: 4px 9px; border: 1.5px solid #c3d0ea; border-radius: 7px; }
.remote { flex: 1; position: relative; background: linear-gradient(135deg, #17335c, #2c5a92); }
.remote i { position: absolute; border-radius: 6px; background: #f4f6fa; border: 1px solid #b9c3d6; }
.remote i:first-child { left: 9%; top: 14%; width: 52%; height: 58%; }
.remote i:last-child { left: 44%; top: 44%; width: 40%; height: 42%; }
.consent { padding: 14px; gap: 9px; }
.who { display: flex; align-items: center; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.who small { display: block; color: #4a5878; }
.av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 600; background: linear-gradient(135deg, var(--blue), #00b4ee); flex: none; }
.acts { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acts span { padding: 8px; border-radius: 8px; text-align: center; font-weight: 600; }
.acts .no { color: #b42318; box-shadow: inset 0 0 0 1.5px #e5a19b; }
.acts .yes { color: #fff; background: #0071ff; }

/* steps */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.steps span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 19px; background: linear-gradient(135deg, var(--navy-2), var(--blue-2)); }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* security */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.checks { margin-top: 26px; display: grid; gap: 18px; }
.checks li { position: relative; padding-left: 40px; color: var(--muted); }
.checks li b { display: block; color: var(--navy); font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.flow { display: grid; justify-items: center; padding: 32px 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.node { width: min(100%, 260px); padding: 15px; text-align: center; border-radius: 14px; border: 1.5px solid #c9dafc; background: #fff; font-weight: 600; color: var(--navy); }
.node.mid { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.node small { display: block; font-weight: 400; font-size: 13px; color: #c9d8ff; }
.pipe { position: relative; width: 3px; height: 56px; background: repeating-linear-gradient(180deg, var(--orange) 0 7px, transparent 7px 13px); }
.pipe span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: #b85a00; white-space: nowrap; }

/* privacy */
.two { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.two .card { padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.two .ok { border-top: 4px solid var(--blue); }
.two .no { border-top: 4px solid var(--orange); }
.two ul { margin-top: 12px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.two li { position: relative; padding-left: 20px; }
.two li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.two .no li::before { background: var(--orange); }

/* download */
.dl { text-align: center; background: var(--soft); }
.dl > img { margin: 0 auto 16px; filter: drop-shadow(0 14px 24px rgba(10, 87, 208, .3)); }
.dl-row { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 20px; }
.dl-card { padding: 28px 24px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; display: grid; gap: 6px; justify-items: center; }
.dl-card p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

footer { display: grid; gap: 10px; justify-items: center; padding: 34px clamp(16px, 5vw, 64px); background: var(--navy); color: #c9d8ff; text-align: center; font-size: 14px; }
footer a { color: #9fd0ff; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-in, .split { grid-template-columns: minmax(0, 1fr); }
  .app { transform: none; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .steps, .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .grid, .steps, .panels, .two, .dl-row, .strip { grid-template-columns: minmax(0, 1fr); }
  .app-head { gap: 12px; padding: 12px; }
  .ver { display: none; }
  .tabs span:nth-child(n+3) { display: none; }
  .peers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .peers > div:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .grid article { transition: none; }
}

/* ---------- document page ---------- */
.doc { min-height: 60vh; }
.doc > * { max-width: 760px; }
.doc h1 { margin-top: 0; font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); }
.doc h2 { margin-top: 36px; text-align: left; font-size: 22px; }
.doc p { margin-top: 10px; color: var(--muted); }
.doc ul { margin-top: 10px; display: grid; gap: 8px; color: var(--muted); }
.doc li { position: relative; padding-left: 20px; }
.doc li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
