@font-face { font-family: "Plex Thai"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-thai-thai-400-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Thai"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-thai-thai-500-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Thai"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-thai-thai-600-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Thai"; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-thai-thai-700-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Thai"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-thai-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Thai"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-thai-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Thai"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-thai-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Thai"; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-thai-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #f4f6f9; --surface: #ffffff; --alt: #e9edf3; --ink: #0e1a2b; --muted: #526072; --line: #d5dce6;
  --blue: #1d5fd1; --blue-ink: #174fb0; --copper: #b4562a; --copper-ink: #9c4520; --ok: #1f7a4a;
  --steps-bg: #0e1a2b; --steps-ink: #e8eef6; --steps-muted: #9fb0c5; --steps-line: #27364a; --steps-code: #ffb48c;
  --hero: #0b1422; --hero-ink: #f2f6fb; --hero-muted: #aebccd; --hero-grid: rgb(120 160 210 / 0.09); --signal: #3db8ff; --signal-2: #ff9d6c;
  --sans: "Plex Thai", "Noto Sans Thai", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1725; --surface: #162130; --alt: #131d2c; --ink: #edf2f8; --muted: #a6b4c6; --line: #2a394d;
    --blue: #6ea8ff; --blue-ink: #8dbbff; --copper: #e08a5c; --copper-ink: #eb9a6f; --ok: #5fcf8f;
    --steps-bg: #0b1422; --steps-line: #27364a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--sans); overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
svg { display: block; }
code { font-family: var(--mono); }
.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.top { position: sticky; top: 0; z-index: 20; background: rgb(11 20 34 / 0.95); backdrop-filter: blur(12px); color: var(--hero-ink); border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 36px; height: 36px; }
.nb { display: inline-block; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { color: var(--hero-muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--hero-ink); }
.lang { font: 500 13px var(--mono); color: var(--hero-ink); background: none; border: 1px solid rgb(255 255 255 / 0.25); border-radius: 6px; padding: 6px 10px; min-width: 44px; min-height: 36px; cursor: pointer; }
.lang:hover { background: rgb(255 255 255 / 0.1); }

.hero { background-color: var(--hero); background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px); background-size: 32px 32px; color: var(--hero-ink); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding-block: 88px 96px; }
.eyebrow { font: 500 13px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--blue-ink); margin-bottom: 16px; }
.hero .eyebrow { color: var(--signal-2); }
h1 { font-size: clamp(36px, 4.5vw, 54px); line-height: 1.22; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.lead { margin-top: 24px; max-width: 34em; color: var(--hero-muted); font-size: clamp(17px, 1.6vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--signal); color: #071221; }
.btn-primary:hover { background: #6fcbff; }
.btn-ghost { border: 1px solid rgb(255 255 255 / 0.3); color: var(--hero-ink); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.08); }
.btn-copper { background: #b4562a; color: #fff; margin-top: 32px; }
.btn-copper:hover { background: #9c4520; }

.diagram svg { width: 100%; height: auto; }
.sld-line path, .sld-sym > * { fill: none; stroke: #7f93ad; stroke-width: 2.5; stroke-linecap: round; }
.sld-sym circle:nth-child(1), .sld-sym circle:nth-child(2) { stroke: var(--hero-ink); }
.sld-bus { fill: none; stroke: var(--signal-2); stroke-width: 8; stroke-linecap: round; }
.sld-flow path { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 22; animation: flow 2.4s linear infinite; }
.sld-flow path:nth-child(2) { animation-delay: -.6s; }
.sld-flow path:nth-child(3) { animation-delay: -1.2s; }
.sld-flow path:nth-child(4) { animation-delay: -1.8s; }
.sld-tx text { font: 500 15px var(--mono); fill: var(--hero-muted); }
.sld-tx .big { font-size: 22px; fill: var(--hero-ink); }
@keyframes flow { to { stroke-dashoffset: -64; } }

.section { padding-block: 96px; }
.section-alt { background: var(--alt); }
.section-title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; max-width: 22em; text-wrap: balance; }

.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.product-main { padding: 48px; }
.product-head { display: flex; align-items: center; gap: 20px; }
.app-icon { width: 72px; height: 72px; flex: none; }
.product h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.status { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 15px; }
.status > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.product-lead { margin-top: 28px; font-size: 18px; color: var(--muted); max-width: 36em; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 28px; }
.features li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.5; }
.features li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 2px; background: var(--copper); }

.steps { background: var(--steps-bg); color: var(--steps-ink); padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.steps-title { font-weight: 600; font-size: 20px; margin-bottom: 20px; }
.steps li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 12px; border-top: 1px solid var(--steps-line); font-size: 15px; line-height: 1.45; }
.steps code { color: var(--steps-code); font-size: 14px; white-space: nowrap; }
.steps-note { margin-top: 16px; color: var(--steps-muted); font-size: 13px; line-height: 1.55; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.principles article { border-top: 2px solid var(--ink); padding-top: 20px; }
.num { font: 500 13px var(--mono); color: var(--copper-ink); }
.principles h3 { margin-top: 12px; font-size: 21px; font-weight: 600; line-height: 1.4; }
.principles p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.mail { display: inline-block; margin-top: 20px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; color: var(--blue-ink); text-underline-offset: 5px; }
.facts > div { padding-block: 16px; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin-top: 2px; font-size: 17px; font-weight: 500; line-height: 1.55; }
.mono { font-family: var(--mono); }

.foot { background: var(--hero); color: var(--hero-muted); padding-block: 40px; font-size: 14px; line-height: 1.6; }
.foot-note { max-width: 60em; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.12); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--hero-ink); text-underline-offset: 3px; }

@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; padding-block: 64px 56px; gap: 32px; }
  .diagram { max-width: 560px; }
  .product, .contact { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .section { padding-block: 72px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .top-in { gap: 8px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 14px; }
  .top nav a:nth-child(2) { display: none; }
  .brand { font-size: 16px; }
  .product-main { padding: 28px 20px; }
  .product-head { gap: 14px; }
  .app-icon { width: 56px; height: 56px; }
  .features { grid-template-columns: 1fr; }
  .steps { padding: 32px 20px; }
  .btn { width: 100%; }
  .section { padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sld-flow path { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
@media print {
  .top, .diagram, .actions { display: none; }
  .hero, .foot { background: none; color: #000; }
}
