:root {
  color-scheme: light;
  --brand: #35d34f;
  --brand-strong: #1fbe32;
  --brand-deep: #0a7f4f;
  --mint: #dffad0;
  --cyan: #d9f7f5;
  --gold: #f6bd3c;
  --ink: #12211c;
  --muted: #63746d;
  --line: #dce9df;
  --paper: #ffffff;
  --soft: #f6fbf6;
  --shadow: 0 24px 60px rgba(16, 80, 44, .14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, "Noto Sans Thai", Arial, Tahoma, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(110deg, rgba(223, 250, 208, .74), rgba(217, 247, 245, .58) 42%, rgba(255, 255, 255, .88) 72%),
    #f7fbf5;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 42px rgba(19, 59, 35, .10);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.nav-links,
.header-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-links a,
.legal-shortcut,
.site-footer a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #29413a;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-links a:hover,
.legal-shortcut:hover,
.site-footer a:hover {
  background: #edf9ec;
  color: var(--brand-deep);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border-radius: 6px;
  font-size: 12px;
}

.language-toggle .is-active {
  background: var(--ink);
  color: #fff;
}

.band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 56px 0 72px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.16;
  font-weight: 900;
}

h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.lead,
.range-copy p,
.contact-copy p {
  margin: 22px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.hero-stats div,
.feature-card,
.range-panel,
.step-item,
.trust-item,
.document-links a,
.contact-panel {
  border: 1px solid rgba(220, 233, 223, .9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 42px rgba(18, 33, 28, .06);
}

.hero-stats div {
  min-height: 104px;
  padding: 18px;
}

.hero-stats strong {
  display: block;
  color: var(--brand-deep);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  min-height: 690px;
}

.screen-stack {
  position: relative;
  height: min(760px, 78vh);
  min-height: 610px;
}

.screen {
  position: absolute;
  overflow: hidden;
  width: min(340px, 70vw);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.screen-main {
  right: 18%;
  top: 0;
  z-index: 3;
  animation: floatMain 5.5s ease-in-out infinite;
}

.screen-one {
  right: 0;
  top: 74px;
  z-index: 2;
  transform: scale(.76) rotate(5deg);
  opacity: .78;
  animation: floatBack 6.2s ease-in-out infinite;
}

.screen-two {
  left: 0;
  top: 120px;
  z-index: 1;
  transform: scale(.7) rotate(-4deg);
  opacity: .72;
  animation: floatBack 6.8s ease-in-out infinite reverse;
}

.product,
.steps,
.compliance,
.documents,
.contact {
  padding: 74px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.feature-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.trust-item,
.step-item {
  padding: 24px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #efffe9;
  color: var(--brand-deep);
  font-weight: 900;
}

.feature-card p,
.trust-item p,
.step-item p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 490px);
  gap: 26px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(17, 42, 33, .96), rgba(10, 127, 79, .9)),
    var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.range .eyebrow {
  color: #bdf9b1;
}

.range-copy p {
  color: rgba(255, 255, 255, .74);
}

.range-panel {
  padding: 10px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
}

.range-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.range-row:last-child {
  border-bottom: 0;
}

.range-row span {
  color: var(--muted);
  font-weight: 800;
}

.range-row strong {
  text-align: right;
}

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

.step-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #412c00;
  font-weight: 900;
}

.gallery {
  overflow: hidden;
  padding: 34px 0 70px;
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 16px;
  align-items: start;
}

.gallery-track img {
  width: 100%;
  aspect-ratio: 9 / 18.8;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(19, 80, 36, .12);
  object-fit: cover;
  transform: translateY(0);
}

.gallery-track img:nth-child(2),
.gallery-track img:nth-child(4) {
  margin-top: 38px;
}

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

.document-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.document-links a {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.document-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 190, 50, .45);
  box-shadow: 0 18px 48px rgba(18, 88, 42, .12);
}

.document-links span {
  font-size: 20px;
  font-weight: 900;
}

.document-links small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 26px;
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 14px;
  padding: 26px;
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}

.contact-panel strong {
  display: block;
  color: var(--ink);
}

.contact-panel a {
  color: var(--brand-deep);
  font-weight: 800;
}

.site-footer {
  display: grid;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer .copyright {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.js .reveal.is-visible,
.reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatMain {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes floatBack {
  0%, 100% { margin-top: 0; }
  50% { margin-top: 18px; }
}

@keyframes floatMainCentered {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-16px); }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .range,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    min-height: 560px;
  }

  .screen-stack {
    height: 560px;
    min-height: 560px;
  }

  .screen-main {
    left: 50%;
    right: auto;
    animation-name: floatMainCentered;
  }

  .screen-one {
    right: 8%;
  }

  .screen-two {
    left: 8%;
  }

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

  .section-heading,
  .timeline,
  .trust-grid,
  .document-links {
    grid-template-columns: 1fr;
  }

  .gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
  }

  .gallery-track img {
    flex: 0 0 min(72vw, 310px);
    scroll-snap-align: start;
  }

  .gallery-track img:nth-child(2),
  .gallery-track img:nth-child(4) {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .site-header,
  .band,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    margin-top: 10px;
    gap: 10px;
  }

  .brand span,
  .legal-shortcut {
    display: none;
  }

  .hero {
    padding: 36px 0 52px;
  }

  h1 {
    font-size: 42px;
  }

  .lead,
  .range-copy p,
  .contact-copy p {
    font-size: 16px;
  }

  .hero-stats,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-height: auto;
  }

  .hero-visual {
    min-height: 470px;
  }

  .screen-stack {
    height: 470px;
    min-height: 470px;
  }

  .screen {
    width: 245px;
  }

  .screen-one,
  .screen-two {
    opacity: .5;
  }

  .product,
  .steps,
  .compliance,
  .documents,
  .contact {
    padding: 56px 0;
  }

  .range {
    padding: 30px 18px;
  }

  .range-row {
    display: grid;
    gap: 6px;
  }

  .range-row strong {
    text-align: left;
  }

  .site-footer {
    display: grid;
  }

  .footer-main {
    display: grid;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
