:root {
  --paper: #f5f7f2;
  --surface: #ffffff;
  --surface-soft: #eef4ee;
  --ink: #111713;
  --ink-soft: #3e4944;
  --muted: #59645e;
  --line: rgba(17, 23, 19, 0.12);
  --line-strong: rgba(17, 23, 19, 0.22);
  --green: #126b43;
  --teal: #11645f;
  --blue: #255bd5;
  --amber: #8f5c17;
  --red: #b2362d;
  --white: #ffffff;
  --max: 1160px;
  --radius: 8px;
  --sans: "IBM Plex Sans Thai", "Noto Sans Thai", Tahoma, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --shadow: 0 18px 48px rgba(17, 23, 19, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(24, 33, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 28, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.66;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

body,
button {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid rgba(28, 143, 89, 0.5);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
  text-wrap: pretty;
}

h1 {
  max-width: 860px;
  font-size: 58px;
  line-height: 1.04;
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: 42px;
  line-height: 1.16;
  font-weight: 800;
  text-wrap: balance;
}

h3 {
  font-size: 20px;
  line-height: 1.28;
  font-weight: 800;
}

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.shell > *,
.header-inner > *,
.hero-grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.panel,
.rail > *,
.step > *,
.usecase-row > *,
.faq-item,
.final-band > *,
.footer-grid > * {
  min-width: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.topline {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--mono);
  font-size: 11px;
}

.topline .shell {
  min-height: 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.topline strong {
  color: #bff4cf;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 248, 0.84);
  backdrop-filter: blur(20px) saturate(1.15);
}

.header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-word {
  display: grid;
  line-height: 1.1;
}

.brand-word strong {
  font-size: 20px;
}

.brand-word span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav a,
.mobile-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
}

.nav a[aria-current="page"],
.nav a:hover,
.mobile-nav a:hover {
  background: rgba(17, 23, 19, 0.06);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(17, 23, 19, 0.1);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
}

.menu-button {
  display: none;
  width: 44px;
  padding: 0;
}

.menu-lines {
  width: 18px;
  display: grid;
  gap: 4px;
}

.menu-lines span {
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}

.mobile-nav[data-open="true"] {
  display: grid;
}

.mobile-nav a {
  min-height: 44px;
  border-radius: 0;
  border-bottom: 1px solid rgba(17, 23, 19, 0.08);
  width: 100%;
  padding: 0 18px;
  line-height: 1.3;
}

.page-hero {
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.76;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.visual-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.visual-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 72px 0;
}

.section.dark {
  background: var(--ink);
  color: var(--white);
}

.section.dark .section-head .lead,
.section.dark .section-head .small {
  color: rgba(255, 255, 255, 0.87);
}

.section.dark .eyebrow {
  color: #d7ffe2;
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.rail,
.step,
.usecase-row,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(17, 23, 19, 0.055);
}

.panel {
  padding: 22px;
}

.panel h3 {
  margin-top: 14px;
}

.small {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.72;
}

.icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: #eaf8ef;
  color: var(--green);
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.step {
  display: grid;
  grid-template-columns: 74px 1fr minmax(150px, 0.45fr);
  overflow: hidden;
}

.step-no {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #d7ffe2;
  font-family: var(--mono);
  font-weight: 800;
}

.step-main {
  padding: 22px;
}

.step-proof {
  border-left: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 22px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.rail {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}

.rail-title {
  display: grid;
  align-content: center;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 18px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.rail-text {
  padding: 18px;
  color: var(--ink-soft);
}

.table-list {
  display: grid;
  gap: 10px;
}

.usecase-row {
  display: grid;
  grid-template-columns: 190px 1fr 160px;
  overflow: hidden;
}

.usecase-row span,
.usecase-row a {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.usecase-row span:first-child {
  font-weight: 800;
}

.usecase-row a {
  color: var(--blue);
  font-weight: 800;
}

.warning {
  border: 1px solid rgba(178, 54, 45, 0.24);
  border-radius: var(--radius);
  background: #fff8f2;
  padding: 22px;
}

.warning strong {
  color: var(--red);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-button {
  width: 100%;
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 0 20px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  line-height: 1.35;
  white-space: normal;
  cursor: pointer;
}

.faq-content {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0 20px 20px;
  color: var(--ink-soft);
}

.faq-item[data-open="true"] .faq-content {
  display: block;
}

.final-band {
  margin: 34px 0 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #111713 0%, #16352e 60%, #0d1210 100%);
  color: var(--white);
  padding: 34px;
  box-shadow: var(--shadow);
}

.final-band .lead {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 54px 0 38px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 28px;
}

.site-footer .brand-mark {
  background: transparent;
  color: inherit;
}

.site-footer .brand-word strong,
.site-footer h3 {
  color: var(--white);
}

.site-footer .brand-word span,
.footer-note,
.footer-list {
  color: rgba(255, 255, 255, 0.87);
}

.footer-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.footer-list a:hover {
  color: #d7ffe2;
}

.footer-note {
  max-width: 760px;
  margin-top: 28px;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .topline {
    display: none;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  .header-inner {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .nav,
  .header-actions .secondary,
  .header-actions .primary {
    display: none;
  }

  .header-actions {
    justify-self: end;
    width: auto;
    gap: 0;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .page-hero {
    padding: 40px 0 30px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions .button,
  .final-band .button {
    width: 100%;
  }

  .button {
    padding-block: 10px;
  }

  .grid-4,
  .step,
  .rail,
  .usecase-row {
    grid-template-columns: 1fr;
  }

  .step-proof,
  .rail-title,
  .usecase-row span,
  .usecase-row a {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 54px 0;
  }
}

@media (max-width: 380px) {
  .shell {
    width: min(100% - 24px, var(--max));
  }

  h1 {
    font-size: 32px;
  }
}
