:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fff4d9;
  --ink: #123f3a;
  --muted: #56645f;
  --line: #06c755;
  --gold: #f6b51d;
  --gold-soft: #ffe6a3;
  --border: #eadfc6;
  --shadow: 0 18px 45px rgba(18, 63, 58, 0.12);
  font-family: "Noto Sans Thai", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

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

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0b6f43;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid rgba(234, 223, 198, 0.9);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(246, 181, 29, 0.14);
}

.hero {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96) 0%, rgba(255, 250, 240, 0.86) 39%, rgba(255, 250, 240, 0.18) 75%),
    url("public/hero.png") center bottom / cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero-inner,
.section-inner,
.page-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 640px;
  padding: 72px 0 96px;
}

.hero-logo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: #24645a;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.subtitle {
  margin: 20px 0 0;
  max-width: 620px;
  color: #2d5650;
  font-size: clamp(1.16rem, 2.2vw, 1.55rem);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--line);
  color: #062d20;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(6, 91, 41, 0.2);
}

.button:hover {
  color: #062d20;
  background: #16d864;
}

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

.small-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: #ffffff;
  border-block: 1px solid var(--border);
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 28px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(18, 63, 58, 0.07);
}

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

.examples {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.examples li {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: #244f49;
}

.privacy-strip {
  background: var(--ink);
  color: #f7fff9;
}

.privacy-strip .lead,
.privacy-strip a {
  color: #f7fff9;
}

.page-main {
  padding: 64px 0 88px;
}

.page-inner {
  max-width: 820px;
}

.page-inner.wide-page {
  max-width: 1120px;
}

.page-title {
  font-size: clamp(2.1rem, 5vw, 4rem);
  margin-bottom: 18px;
}

.content-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.content-panel p {
  margin: 0 0 18px;
}

.content-panel h2 {
  font-size: 1.28rem;
  margin: 28px 0 10px;
}

.content-panel ul {
  padding-left: 1.35rem;
}

.content-panel li + li {
  margin-top: 6px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdfa;
}

.how-grid {
  display: grid;
  gap: 28px;
  margin: 38px 0;
}

.usage-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(18, 63, 58, 0.08);
}

.usage-card.reverse .usage-copy {
  order: 2;
}

.usage-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  margin-bottom: 12px;
}

.usage-copy p {
  color: var(--muted);
  margin: 0;
}

.step-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: #0f6946;
  font-weight: 900;
}

.phone-mockup {
  max-width: 390px;
  width: 100%;
  justify-self: center;
  background: #eef6ee;
  border: 1px solid #c7dbc9;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mock-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #06c755;
  color: #062d20;
  font-weight: 900;
}

.mock-header img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
}

.chat-thread {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(rgba(238, 246, 238, 0.92), rgba(238, 246, 238, 0.92)),
    url("public/hero.png") center bottom / cover no-repeat;
}

.bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 0.98rem;
  box-shadow: 0 4px 12px rgba(18, 63, 58, 0.08);
}

.bubble.user {
  align-self: flex-end;
  background: #9ff29c;
  border-bottom-right-radius: 4px;
}

.bubble.bot {
  align-self: flex-start;
  background: #ffffff;
  border-bottom-left-radius: 4px;
}

.quick-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.quick-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #c7dbc9;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.command-panel {
  margin-top: 34px;
}

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

.command-grid h3 {
  color: #0f6946;
}

.how-cta {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 8px;
}

.example-gallery {
  margin: 72px 0 36px;
}

.gallery-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.mini-example {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.mini-example h3 {
  min-height: 2.4em;
  color: var(--ink);
}

.phone-mockup.compact {
  max-width: none;
  border-radius: 18px;
}

.phone-mockup.compact .mock-header {
  min-height: 48px;
  padding: 9px 13px;
}

.phone-mockup.compact .mock-header img {
  width: 28px;
  height: 28px;
}

.phone-mockup.compact .chat-thread {
  min-height: 300px;
  padding: 14px;
}

.phone-mockup.compact .bubble {
  max-width: 92%;
  font-size: 0.9rem;
}

.phone-mockup.compact .quick-pills span {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.8rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: #fff7e6;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    padding-inline: 10px;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.97) 0%, rgba(255, 250, 240, 0.78) 58%, rgba(255, 250, 240, 0.28) 100%),
      url("public/hero.png") center bottom / cover no-repeat;
  }

  .hero-copy {
    padding: 44px 0 180px;
  }

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

  .usage-card,
  .usage-card.reverse {
    grid-template-columns: 1fr;
  }

  .usage-card.reverse .usage-copy {
    order: 0;
  }

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

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

  .section {
    padding: 52px 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .hero-inner,
  .section-inner,
  .page-inner,
  .nav,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .hero-logo {
    width: 88px;
    height: 88px;
  }

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

  .button {
    width: 100%;
  }

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

  .mini-example h3 {
    min-height: auto;
  }
}
