:root {
  --ink: #25302f;
  --muted: #5f6e6b;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --teal: #009b8a;
  --teal-dark: #087568;
  --coral: #f26b4f;
  --amber: #d98a00;
  --blue: #2f6fed;
  --line: #dbe6e2;
  --shadow: 0 18px 50px rgba(37, 48, 47, 0.12);
  font-family: "Inter", "Noto Sans Thai", "Tahoma", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.sr-only {
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  position: absolute;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(251, 252, 248, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 230, 226, 0.8);
}

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

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 21%;
  mix-blend-mode: multiply;
}

.brand-name {
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 128px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(70px, 12vw, 136px) clamp(20px, 6vw, 88px) clamp(56px, 8vw, 92px);
  background: #eef9f7;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 252, 248, 0.96) 0%, rgba(251, 252, 248, 0.86) 42%, rgba(251, 252, 248, 0.18) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: #40514e;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line);
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 88px);
}

.section-heading,
.split {
  max-width: 1180px;
  margin: 0 auto 44px;
}

.section-heading p,
.split p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 470px);
  gap: 34px;
  align-items: end;
}

.intro-section {
  background: var(--paper);
}

.video-section {
  background: #ffffff;
}

.video-frame {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 155, 138, 0.22);
  border-radius: 8px;
  background: #0e2422;
  box-shadow: var(--shadow);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #0e2422;
}

.problem-grid,
.insight-grid,
.trust-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

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

.problem-card,
.insight-card,
.timeline-item,
.trust-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.problem-card {
  min-height: 260px;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(37, 48, 47, 0.07);
}

.problem-card span {
  color: var(--coral);
  font-weight: 900;
}

.problem-card p,
.insight-card p,
.timeline-item p,
.trust-grid p,
.cta-box p {
  color: var(--muted);
  margin: 0;
}

.insight-section {
  background: #ffffff;
}

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

.insight-card {
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.insight-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 22px;
}

.process-section {
  background: #f7fbff;
}

.timeline {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.timeline-item {
  position: relative;
  min-height: 230px;
  padding: 30px;
}

.timeline-item span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: #ffffff;
  background: var(--coral);
  border-radius: 50%;
  font-weight: 900;
}

.trust-section {
  background: var(--ink);
  color: #ffffff;
}

.trust-section .eyebrow {
  color: #7ce2d5;
}

.trust-panel {
  max-width: 1180px;
  margin: 0 auto;
}

.trust-panel > div:first-child {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.trust-grid article {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  padding: 22px;
}

.trust-grid p {
  color: rgba(255, 255, 255, 0.74);
}

.cta-section {
  background: linear-gradient(135deg, #eef9f7 0%, #fff7ea 100%);
}

.cta-box {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 56px);
  border: 1px solid rgba(0, 155, 138, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-list a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 88px);
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 960px) {
  .problem-grid,
  .insight-grid,
  .timeline,
  .trust-grid,
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    align-items: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    padding: 12px 18px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: calc(100svh - 118px);
    padding: 72px 20px 48px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(251, 252, 248, 0.95) 0%, rgba(251, 252, 248, 0.84) 62%, rgba(251, 252, 248, 0.34) 100%);
  }

  .hero-actions,
  .contact-list,
  .site-footer {
    flex-direction: column;
  }

  .button,
  .contact-list a {
    width: 100%;
  }

  .problem-grid,
  .insight-grid,
  .timeline,
  .trust-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .problem-card,
  .timeline-item {
    min-height: auto;
  }
}

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

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