:root {
  --ink: #071711;
  --forest: #0b2119;
  --paper: #f4f7f4;
  --surface: #ffffff;
  --green: #17bd72;
  --green-bright: #74ed9a;
  --muted: #5e7069;
  --line: #cdd8d2;
  --dark-line: #28443a;
  --font-thai: "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --font-display: "Space Grotesk", "IBM Plex Sans Thai", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-thai);
  letter-spacing: 0;
  overflow-x: hidden;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

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

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

.scroll-meter {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: transparent;
}

.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  left: 0;
  min-height: 72px;
  padding: 12px 4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(244, 247, 244, 0.96);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.wordmark strong,
.wordmark small {
  display: block;
  letter-spacing: 0;
}

.wordmark strong {
  font-family: var(--font-display);
  font-size: 19px;
}

.wordmark small {
  margin-top: 1px;
  color: var(--green-bright);
  font-size: 11px;
}

.site-header.scrolled .wordmark small {
  color: #168c5a;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.site-header nav a {
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-header nav a:hover {
  color: var(--green-bright);
  border-color: currentColor;
}

.site-header.scrolled nav a:hover {
  color: #087443;
}

.header-action {
  justify-self: end;
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.header-action:hover {
  color: var(--ink);
  background: var(--green-bright);
  border-color: var(--green-bright);
}

.site-header.scrolled .header-action {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.hero {
  position: relative;
  height: 94svh;
  padding: 144px 6vw 38px;
  display: grid;
  grid-template-rows: auto minmax(250px, 1fr) auto;
  color: #fff;
  background: var(--forest);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-color: rgba(116, 237, 154, 0.12);
  border-style: solid;
}

.hero::before {
  inset: 0 28%;
  border-width: 0 1px;
}

.hero::after {
  inset: 31% 0 auto;
  border-width: 1px 0 0;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green-bright);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: #087443;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 92px;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: #dbe9e3;
  font-size: 24px;
  line-height: 1.55;
}

.hero-actions,
.closing-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  min-height: 50px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.primary-action {
  color: var(--ink);
  background: var(--green-bright);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.text-action {
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  font-weight: 600;
}

.hero-product {
  position: relative;
  z-index: 2;
  width: min(1160px, 90vw);
  height: 430px;
  margin: 42px auto -150px;
  align-self: end;
  border: 1px solid #547067;
  border-radius: 8px 8px 0 0;
  background: #eef2ef;
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.36);
  transform: perspective(1600px) rotateX(4deg);
  transform-origin: bottom;
}

.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 7px 7px 0 0;
}

.hero-facts {
  position: relative;
  z-index: 4;
  margin: 0 -6vw -38px;
  padding: 14px 6vw 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #d7e5df;
  background: var(--forest);
  border-top: 1px solid var(--dark-line);
  font-size: 13px;
  font-weight: 600;
}

.hero-facts span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 9px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
}

.opening {
  min-height: 92svh;
  padding: 120px 7vw;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 40px 5vw;
  align-content: center;
  background: var(--paper);
}

.section-index {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-display);
}

.section-index span {
  color: #087443;
  font-size: 14px;
  font-weight: 700;
}

.section-index p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.opening-copy {
  max-width: 880px;
}

.opening h2,
.feature-heading h2,
.result-copy h2,
.login-copy h2,
.closing h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: 0;
}

.opening-copy > p:last-child,
.result-copy > p,
.login-copy > p {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.flow-line {
  grid-column: 2;
  margin: 70px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line);
}

.flow-line li {
  min-width: 0;
  padding: 24px 24px 0 0;
  position: relative;
}

.flow-line li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px var(--paper);
}

.flow-line span,
.flow-line strong,
.flow-line small {
  display: block;
}

.flow-line span {
  color: #168c5a;
  font-family: var(--font-display);
  font-size: 12px;
}

.flow-line strong {
  margin-top: 14px;
  font-size: 22px;
}

.flow-line small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.story {
  color: #fff;
  background: var(--forest);
}

.story-stage {
  width: min(1280px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 6vw;
  align-items: start;
}

.story-screen {
  position: sticky;
  top: 10vh;
  height: 80vh;
  margin: 10vh 0;
  border: 1px solid #476158;
  border-radius: 8px;
  background: #e8eeea;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.window-bar {
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d4e5de;
  background: #132b22;
  border-bottom: 1px solid #385247;
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #638078;
}

.window-bar span:first-child {
  background: var(--green);
}

.window-bar small {
  margin-left: 8px;
  font-family: var(--font-display);
}

.screen-stack {
  position: relative;
  height: calc(100% - 86px);
  overflow: hidden;
}

.screen-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 520ms ease, transform 820ms cubic-bezier(.2, .8, .2, 1);
}

.screen-stack img.active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

.screen-caption {
  height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.screen-caption span {
  color: #168c5a;
  font-family: var(--font-display);
  font-weight: 700;
}

.story-copy {
  padding: 20vh 0;
}

.story-step {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transform: translateY(24px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.story-step.active {
  opacity: 1;
  transform: translateY(0);
}

.story-step h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.08;
}

.story-step > p:not(.eyebrow) {
  margin: 24px 0 0;
  color: #bed0c8;
  font-size: 17px;
  line-height: 1.75;
}

.story-step ul {
  margin: 26px 0 0;
  padding: 20px 0 0;
  display: grid;
  gap: 13px;
  border-top: 1px solid var(--dark-line);
  list-style: none;
}

.story-step li {
  position: relative;
  padding-left: 20px;
  color: #e8f2ee;
  line-height: 1.5;
}

.story-step li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--green);
}

.feature-band {
  padding: 120px 7vw;
  color: #fff;
  background: #101312;
}

.feature-heading {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 5vw;
}

.section-index.light {
  color: #98aaa3;
}

.section-index.light span {
  color: var(--green-bright);
}

.feature-heading h2 {
  max-width: 900px;
}

.feature-grid {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #35413c;
  border-bottom: 1px solid #35413c;
}

.feature-item {
  min-height: 320px;
  padding: 28px;
  border-right: 1px solid #35413c;
}

.feature-item:last-child {
  border-right: 0;
}

.feature-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--green-bright);
  font-family: var(--font-display);
  font-weight: 700;
}

.feature-item h3 {
  margin: 72px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
}

.feature-item p {
  margin: 16px 0 0;
  color: #abb9b3;
  line-height: 1.7;
}

.result-story {
  min-height: 100svh;
  padding: 120px 4vw;
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  gap: 4vw;
  align-items: center;
  background: #fff;
}

.result-copy .section-index {
  margin-bottom: 68px;
}

.result-visual {
  margin: 0;
  align-self: center;
}

.result-visual img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(14, 41, 31, 0.14);
}

.result-visual figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.export-chips {
  margin-top: 34px;
  display: flex;
  gap: 8px;
}

.export-chips span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #087443;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.login-story {
  min-height: 100svh;
  padding: 110px 4vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 4vw;
  align-items: center;
  color: #fff;
  background: #121c18;
}

.login-visual {
  margin: 0;
  border: 1px solid #436057;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.login-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.login-copy > p {
  color: #b7c8c1;
}

.light-link {
  margin-top: 28px;
  color: var(--green-bright);
  border-color: #43725e;
}

.closing {
  min-height: 86svh;
  padding: 110px 7vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--green-bright);
}

.closing-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border: 1px solid var(--forest);
  font-family: var(--font-display);
  font-weight: 700;
}

.closing .eyebrow {
  color: #087443;
}

.closing > p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: #245342;
  font-size: 18px;
}

.primary-action.inverse {
  color: #fff;
  background: var(--forest);
}

.secondary-action {
  color: var(--forest);
  border: 1px solid #427563;
}

footer {
  min-height: 140px;
  padding: 30px 5vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: #d9e5df;
  background: #08140f;
  border-top: 1px solid #254137;
  font-size: 13px;
}

.footer-mark img {
  width: 38px;
  height: 38px;
}

footer p {
  margin: 0;
  color: #8fa39b;
  text-align: center;
}

footer > div {
  justify-self: end;
  display: flex;
  gap: 18px;
}

footer > div a:hover {
  color: var(--green-bright);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 720ms cubic-bezier(.2, .75, .25, 1), transform 720ms cubic-bezier(.2, .75, .25, 1);
}

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

@media (max-width: 1120px) {
  .hero h1 {
    font-size: 76px;
  }

  .opening h2,
  .feature-heading h2,
  .result-copy h2,
  .login-copy h2,
  .closing h2 {
    font-size: 52px;
  }

  .story-stage {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 4vw;
  }

  .story-step h2 {
    font-size: 42px;
  }

  .login-story {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  }

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

  .feature-item:nth-child(2) {
    border-right: 0;
  }

  .feature-item:nth-child(-n+2) {
    border-bottom: 1px solid #35413c;
  }
}

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

  .site-header nav {
    display: none;
  }

  .hero {
    height: 92svh;
    padding: 122px 24px 28px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .hero-product {
    width: 112%;
    height: 330px;
    margin: 42px -6% -72px;
    transform: none;
  }

  .hero-facts {
    margin: 0 -24px -28px;
    padding: 13px 24px 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opening,
  .feature-heading {
    grid-template-columns: 1fr;
  }

  .opening {
    padding: 90px 24px;
  }

  .opening h2,
  .feature-heading h2,
  .result-copy h2,
  .login-copy h2,
  .closing h2 {
    font-size: 44px;
  }

  .flow-line {
    grid-column: 1;
  }

  .story-stage {
    width: auto;
    margin: 0;
    display: block;
  }

  .story-screen {
    z-index: 4;
    top: 74px;
    width: calc(100% - 32px);
    height: 42svh;
    margin: 0 16px;
  }

  .story-copy {
    padding: 0 24px 60px;
  }

  .story-step {
    min-height: 86svh;
    padding-top: 46svh;
  }

  .story-step h2 {
    font-size: 40px;
  }

  .feature-band,
  .result-story,
  .login-story,
  .closing {
    padding: 90px 24px;
  }

  .result-story,
  .login-story {
    grid-template-columns: 1fr;
  }

  .result-copy .section-index {
    margin-bottom: 58px;
  }

  .login-visual {
    order: 2;
  }

  .login-copy {
    order: 1;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  footer p {
    text-align: left;
  }

  footer > div {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
    padding: 9px 16px;
  }

  .wordmark img {
    width: 38px;
    height: 38px;
  }

  .wordmark small {
    display: none;
  }

  .header-action {
    min-height: 38px;
    padding: 8px 12px;
  }

  .hero {
    height: 92svh;
    padding: 108px 18px 24px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-actions {
    gap: 16px;
  }

  .hero-facts {
    margin: 0 -18px -24px;
    padding: 12px 18px 16px;
    font-size: 11px;
  }

  .hero-product {
    width: 150%;
    height: 270px;
    margin-right: -25%;
    margin-left: -25%;
  }

  .opening h2,
  .feature-heading h2,
  .result-copy h2,
  .login-copy h2,
  .closing h2 {
    font-size: 38px;
  }

  .flow-line {
    margin-top: 48px;
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .flow-line li {
    padding: 0 0 34px 26px;
  }

  .flow-line li::before {
    top: 5px;
    left: -5px;
  }

  .flow-line strong {
    margin-top: 5px;
  }

  .story-screen {
    top: 66px;
    height: 34svh;
  }

  .story-step {
    min-height: 82svh;
    padding-top: 39svh;
  }

  .story-step h2 {
    font-size: 34px;
  }

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

  .feature-item,
  .feature-item:nth-child(2) {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid #35413c;
  }

  .feature-item:last-child {
    border-bottom: 0;
  }

  .feature-item h3 {
    margin-top: 48px;
  }

  .result-visual {
    width: 142%;
    margin-left: -21%;
  }

  .login-visual {
    width: 130%;
    margin-left: -15%;
  }

  .closing-actions {
    width: 100%;
    display: grid;
  }

  footer > div {
    flex-wrap: wrap;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
