:root {
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ink: #172026;
  --muted: #63707a;
  --line: #dbe3e8;
  --paper: #fbfcfd;
  --soft: #eef5f3;
  --brand: #106a70;
  --brand-strong: #0b4d55;
  --accent: #ffb340;
  --accent-dark: #b36600;
  --rose: #fff1f3;
  --sky: #edf7ff;
  --mint: #edf8f2;
  --lemon: #fff8df;
  --white: #ffffff;
  --shadow: 0 16px 44px rgba(15, 43, 54, 0.1);
}

html[lang="th"] {
  --font-body: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

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

strong {
  color: var(--brand-strong);
  font-weight: 500;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 227, 232, 0.82);
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 174px;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 8px;
  color: #2d3b43;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--soft);
  color: var(--brand-strong);
}

.language-link {
  border: 1px solid var(--line);
  background: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 54px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 36px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(1.95rem, 3.9vw, 3.35rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.42rem, 2.45vw, 2.12rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  font-weight: 500;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 500;
}

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

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--brand-strong);
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 44px;
  padding: 42px;
  border: 1px solid #d5e6df;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mint), #ffffff 64%);
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.app-feature {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr);
  gap: 28px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 248, 223, 0.84), rgba(255, 255, 255, 0) 42%),
    var(--white);
  box-shadow: 0 12px 36px rgba(15, 43, 54, 0.08);
}

.app-feature img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 6px;
  object-fit: cover;
}

.app-details {
  padding: 18px 6px 18px 12px;
}

.badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff4dd;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 500;
}

.app-details h3 {
  margin-top: 18px;
}

.app-details p {
  margin: 16px 0 0;
  color: var(--muted);
}

.meta-list {
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.meta-list div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 2px 0 0;
  font-weight: 500;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.policy-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 43, 54, 0.06);
}

.info-card:nth-child(1) {
  background: linear-gradient(180deg, var(--sky), var(--white) 48%);
  border-color: #cfe5f5;
}

.info-card:nth-child(2) {
  background: linear-gradient(180deg, var(--lemon), var(--white) 48%);
  border-color: #eadfa8;
}

.info-card:nth-child(3) {
  background: linear-gradient(180deg, var(--mint), var(--white) 48%);
  border-color: #cfe5d8;
}

.info-card:nth-child(4) {
  background: linear-gradient(180deg, var(--rose), var(--white) 48%);
  border-color: #efd1d8;
}

.info-card:nth-child(5) {
  background: linear-gradient(180deg, #f3efff, var(--white) 48%);
  border-color: #ddd5f1;
}

.info-card:nth-child(6) {
  background: linear-gradient(180deg, #edf6f7, var(--white) 48%);
  border-color: #cfe6e8;
}

.info-card p,
.policy-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.policy-card a {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-image {
  width: min(100%, 360px);
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid #cfe5d8;
  border-radius: 8px;
  background: #f8fcfa;
  user-select: none;
  pointer-events: none;
}

.screenshots {
  width: 100%;
  padding-left: max(16px, calc((100% - 1160px) / 2));
  padding-right: 0;
}

.screenshot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 620px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px max(16px, calc((100% - 1160px) / 2)) 18px 0;
  scroll-snap-type: x mandatory;
}

.screenshot-rail img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: cover;
  scroll-snap-align: start;
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.screenshot-rail img:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 43, 54, 0.12);
}

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e9f4f1, #fff7e6);
}

.support-band p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.page-hero {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 48px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.page-hero .updated {
  color: var(--brand-strong);
  font-weight: 500;
}

.policy-layout {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 76px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.policy-card {
  min-height: auto;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer div {
  display: flex;
  gap: 16px;
  font-weight: 500;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 20, 24, 0.82);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 64px;
  font-size: 2.5rem;
  line-height: 1;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .hero,
  .intro-grid,
  .app-feature,
  .support-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .intro-grid {
    padding: 30px;
  }

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

@media (max-width: 620px) {
  .brand {
    width: 142px;
  }

  .hero,
  .section,
  .nav-shell,
  .site-footer,
  .page-hero,
  .policy-layout {
    width: min(100% - 24px, 1160px);
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .card-grid,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .app-feature {
    padding: 12px;
  }

  .app-feature img {
    min-height: 240px;
  }

  .support-band {
    padding: 24px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-nav {
    width: 42px;
    height: 54px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}
