@font-face { font-family: 'Sarabun'; font-weight: 400; font-display: swap; src: url('/assets/fonts/sarabun-regular.woff2') format('woff2'); }
@font-face { font-family: 'Sarabun'; font-weight: 700; font-display: swap; src: url('/assets/fonts/sarabun-bold.woff2') format('woff2'); }

:root {
  --brand: #6A1FE8;
  --brand-600: #5915CC;
  --brand-50: #F4EEFF;
  --brand-100: #E8DDFD;
  --ink: #16163A;
  --text: #2A2A44;
  --muted: #62627E;
  --line: #E6E3F0;
  --bg: #FFFFFF;
  --soft: #F8F6FD;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Sarabun', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.top { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .08em; font-size: 15px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--brand); }
@media (max-width: 520px) { .nav { display: none; } .brand img { height: 30px; } }

.hero { padding: 80px 0 72px; background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.hero .th { color: var(--muted); font-size: 16px; margin-top: -4px; }
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 10px; }
.btn:hover { background: var(--brand-600); color: #fff; }

section { padding: 64px 0; }
section.alt { background: var(--soft); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 22px; height: 22px; }

.product { display: flex; gap: 18px; align-items: flex-start; text-decoration: none; color: inherit; }
.product img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.product h3 { margin-bottom: 4px; }
.product:hover h3 { color: var(--brand); }
.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-50); border-radius: 999px; padding: 2px 10px; margin-top: 10px; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

.doc { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.doc h2 { font-size: 22px; margin-top: 1.8em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--muted); font-size: 15px; }

@font-face { font-family: 'Sora Wordmark'; font-weight: 600; font-display: swap; src: url('/assets/fonts/sora-600-wordmark.woff2') format('woff2'); }
@font-face { font-family: 'Sora Wordmark'; font-weight: 700; font-display: swap; src: url('/assets/fonts/sora-700-wordmark.woff2') format('woff2'); }
.ar { font-family: 'Sora Wordmark', 'Sarabun', sans-serif; font-weight: 600; font-size: .9em; letter-spacing: .02em; white-space: nowrap; }
h1 .ar, h2 .ar, h3 .ar, b .ar, strong .ar { font-weight: 700; }

.muted { color: var(--muted); }
.tag-plain { color: var(--muted); background: var(--soft); border: 1px solid var(--line); margin-top: 4px; }
.work { display: flex; gap: 32px; align-items: flex-start; padding: 28px; }
.work-body { flex: 1; min-width: 0; }
.work-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.work-head img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.work-head h3 { margin: 0; }
.work p { color: var(--muted); }
.work-links { display: flex; gap: 18px; margin: 0; font-weight: 700; }
.work-shot { width: 180px; height: auto; border-radius: 16px; flex: none; box-shadow: 0 8px 24px rgba(22,22,58,.18); }
.work-diagram { width: 300px; height: auto; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sld-w { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.sld-eq { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.sld-tr { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.sld-bus { stroke: var(--brand); stroke-width: 5; }
.sld-lv { stroke-width: 4; }
.sld-t { font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.sld-s { font-size: 11.5px; fill: var(--muted); }
.sld-sym { font-size: 15px; font-weight: 700; fill: var(--ink); }
@media (max-width: 720px) { .work { flex-direction: column; } .work-shot { width: 200px; align-self: center; } .work-diagram { width: 100%; max-width: 360px; align-self: center; } }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.case { display: grid; grid-template-columns: 110px 1fr; gap: 10px 20px; margin: 4px 0 20px; }
.case dt { font-weight: 700; color: var(--ink); }
.case dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .case { grid-template-columns: 1fr; gap: 2px; } .case dd { margin-bottom: 12px; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 28px 0 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.stat b { display: block; font-size: 28px; line-height: 1.15; color: var(--brand); margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 15px; line-height: 1.45; display: block; }
.grid-cap { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-cap .card h3 { margin-bottom: 10px; }
.cap { margin: 0; padding-left: 1.1em; color: var(--muted); }
.cap li { margin-bottom: 8px; }
.cap li:last-child { margin-bottom: 0; }
.cap-p { color: var(--muted); margin: 0 0 12px; }
.cap-p:last-child { margin-bottom: 0; }
.small { font-size: 14px; margin: 20px 0 0; }
@media (max-width: 400px) { .grid-cap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; gap: 12px; } .stat { padding: 14px; } .stat b { font-size: 21px; } .stat span { font-size: 13.5px; } }
.work-ic { width: 56px; height: 56px; border-radius: 14px; flex: none; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; }
.work-ic svg { width: 30px; height: 30px; }
.steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-50); color: var(--ink); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; flex: none; }
.stats-sm { margin: 0 0 20px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stats-sm .stat { background: var(--soft); padding: 12px 14px; }
.stats-sm .stat b { font-size: 20px; margin-bottom: 2px; }
.stats-sm .stat span { font-size: 13.5px; }
.case dd ul { margin: 0; padding-left: 1.1em; }
.case dd li { margin-bottom: 6px; }
.case dd li:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .stats-sm { grid-template-columns: 1fr 1fr; } }
.work-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.work-flow { list-style: none; margin: 0; padding: 4px 0 0; width: 210px; flex: none; position: relative; counter-reset: ph; }
.work-flow::before { content: ''; position: absolute; left: 11px; top: 18px; bottom: 18px; width: 2px; background: var(--brand-100); }
.work-flow li { counter-increment: ph; position: relative; padding: 0 0 18px 38px; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.work-flow li:last-child { padding-bottom: 0; }
.work-flow li::before { content: counter(ph); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; }
@media (max-width: 720px) { .work-flow { width: auto; align-self: stretch; margin-top: 4px; } }

.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 28px; max-width: 860px; }
.trio div { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.trio b { display: block; color: var(--brand); margin-bottom: 2px; }
.trio span { color: var(--muted); font-size: 15px; line-height: 1.5; display: block; }
@media (max-width: 520px) { .trio { gap: 8px; margin-top: 20px; } .trio div { padding: 10px 14px; } .trio span { font-size: 14px; } .hero { padding: 48px 0 44px; } }

.leader { display: flex; gap: 24px; align-items: flex-start; padding: 28px; }
.leader h3 { margin: 0 0 6px; font-size: 21px; }
.leader p { color: var(--muted); margin: 14px 0 0; max-width: 720px; }
.leader .leader-edu { font-size: 15px; margin-top: 12px; }
.leader-mark { width: 72px; height: 72px; border-radius: 50%; flex: none; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 24px; letter-spacing: .04em; }
@media (max-width: 560px) { .leader { flex-direction: column; gap: 16px; padding: 22px; } .leader-mark { width: 56px; height: 56px; font-size: 19px; } }
.sub-h { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 24px 0 0; }
.trio div { position: relative; padding-right: 64px; }
.trio-ic { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-style: normal; }
.trio-ic svg { width: 22px; height: 22px; }
@media (max-width: 520px) { .trio div { padding-right: 58px; } .trio-ic { top: 10px; right: 10px; width: 34px; height: 34px; } .trio-ic svg { width: 20px; height: 20px; } }
