@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Archivo-Variable.woff2') format('woff2');
}

/* General Sans (Indian Type Foundry, ITF Free Font License) — wordmark only.
     700 is the heaviest weight the family ships; the wordmark's superscript
     asks for 900, which the browser synthesizes from this face. */
  @font-face {
  font-family: 'General Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/GeneralSans-Bold.woff2') format('woff2');
}

/* IBM Plex Sans Thai (IBM, SIL OFL 1.1) — Thai script only.
     These are the Thai-subset files, and unicode-range keeps them off every
     Latin glyph, so Archivo still renders all English text even inside a Thai
     sentence that names the product. Nothing is downloaded until Thai appears
     on the page, which for an English visitor is never.
     700 is the heaviest weight the family ships; the 700-900 descriptor range
     lets the 800 headings match this face directly instead of the browser
     synthesizing a heavier one. */
  @font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/IBMPlexSansThai-Regular.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/IBMPlexSansThai-SemiBold.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'IBM Plex Sans Thai';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('fonts/IBMPlexSansThai-Bold.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  --navy:#14355F;
  --ink:#14355F;
  --muted:#605D5D;
  --info-bg:#DCE9FA;
  --link:#1258B8;
  --line:#dce4ee;
  --paper:#ffffff;
  --brand-grad:linear-gradient(45deg, #5E9CF0 0%, #4BC97E 100%);
  --wash:radial-gradient(circle at 12% 16%, rgba(24, 119, 242, 0.2), transparent 40%),
    radial-gradient(circle at 88% 14%, rgba(7, 181, 59, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(240, 246, 255, 0.72) 0%, rgba(240, 253, 244, 0.58) 46%, rgba(255, 255, 255, 0.95) 80%);
  --font-wordmark:'General Sans','Archivo',system-ui,sans-serif;
  --font-heading:'Archivo','IBM Plex Sans Thai',system-ui,sans-serif;
  --font-body:'Archivo','IBM Plex Sans Thai',system-ui,sans-serif;
}

* {
  box-sizing:border-box;
}

html {
  scroll-padding-top:110px;
  -webkit-text-size-adjust:100%;
}

body {
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
}

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

button,input,select {
  font:inherit;
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}

button,a,select {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible {
  outline:3px solid #5E9CF0;
  outline-offset:5px;
}

::selection {
  background:#DCE9FA;
  color:#14355F;
}

section {
  padding:104px 5%;
}

.wrap {
  max-width:1220px;
  margin:0 auto;
}

.skip-link {
  position:fixed;
  top:10px;
  left:12px;
  transform:translateY(-150%);
  z-index:100;
  background:var(--ink);
  color:white;
  padding:12px 20px;
  border-radius:6px;
}

.skip-link:focus {
  transform:translateY(0);
}

nav {
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:21px 5%;
  background:#ffffffee;
  border-bottom:1px solid #e4ebf3;
  backdrop-filter:blur(18px);
}

.wordmark {
  font:700 28px/1 var(--font-wordmark);
  letter-spacing:-0.025em;
  white-space:nowrap;
}

.wordmark .go {
  background:var(--brand-grad);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
}

.wordmark sup {
  font-size:0.8em;
  vertical-align:.38em;
  line-height:1;
  margin-left:-0.18em;
  font-weight:900;
}

.nav-links {
  display:flex;
  gap:32px;
}

.nav-links a {
  font-size:15px;
  font-weight:600;
  transition:color .2s;
}

.nav-links a:hover {
  color:var(--link);
}

.nav-right {
  display:flex;
  align-items:center;
  gap:18px;
}

.lang-select {
  appearance:none;
  border:0;
  padding:8px 18px 8px 0;
  color:var(--ink);
  font-size:14px;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='m1 1 3 3 3-3' fill='none' stroke='%2314355F'/%3E%3C/svg%3E") no-repeat right center;
  cursor:pointer;
  font-family:var(--font-heading);
  font-weight:600;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  font-size:16px;
  font-weight:700;
  border-radius:7px;
  border:1px solid transparent;
  transition:transform .25s var(--ease-out),background .2s,box-shadow .25s var(--ease-out);
  line-height:1.3;
  font-family:var(--font-heading);
}

.btn:hover {
  transform:translateY(-2px);
  box-shadow:0 5px 14px #14355F14;
}

.btn-md {
  padding:12px 21px;
  font-size:15px;
}

.btn-lg {
  padding:17px 24px;
}

.btn-primary {
  background:var(--ink);
  color:white;
}

.btn-primary:hover {
  background:#0F2A4C;
}

.btn-hero {
  background:var(--info-bg);
  color:var(--ink);
}

.btn-hero:hover {
  background:#c9dff9;
}

.btn-ghost {
  border-color:#b9cce2;
  background:transparent;
  color:var(--ink);
}

.btn-ghost:hover {
  background:#f0f6ff;
}

.btn-block {
  width:100%;
  margin-top:auto;
}

.arrow-link>span:last-child {
  font-size:23px;
  line-height:.8;
}

.eyebrow {
  font-size:12px;
  font-weight:700;
  letter-spacing:0.06em;
  display:block;
  line-height:1.6;
  margin-bottom:22px;
}

.live-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#57C287;
  display:inline-block;
  flex-shrink:0;
}

.hero-section {
  position:relative;
  overflow:hidden;
  background:var(--wash);
  padding-top:78px;
  padding-bottom:0;
}

.hero-orbit {
  position:absolute;
  border:1px solid #96b8df38;
  width:1000px;
  height:1000px;
  border-radius:50%;
  top:-360px;
  right:-100px;
  pointer-events:none;
}

.hero-orbit:after {
  content:'';
  position:absolute;
  inset:70px;
  border:1px solid #96b8df33;
  border-radius:50%;
}

.hero-grid {
  display:grid;
  grid-template-columns:1fr 1.05fr;
  gap:44px;
  align-items:center;
  position:relative;
}

.hero-eyebrow {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 25px;
  letter-spacing:0.06em;
}

.hero-eyebrow .live-dot {
  box-shadow:0 0 0 4px #57C28720;
}

.hero-grid h1 {
  font-size:clamp(55px,5.7vw,81px);
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.055;
  margin:0;
  font-family:var(--font-heading);
}

.hero-accent {
  color:#3273CF;
}

.hero-copy>p {
  font-size:18px;
  line-height:1.8;
  color:#605D5D;
  max-width:460px;
  margin:26px 0 0;
}

.hero-ctas {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:24px;
  margin:30px 0 17px;
}

.demo-link {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  font-weight:700;
  padding:0;
  border:0;
  color:var(--ink);
  background:transparent;
  font-family:var(--font-heading);
}

.demo-link:hover {
  color:var(--link);
}

.hero-chat-icon {
  flex-shrink:0;
}

html.chat-dialog-open {
  overflow:hidden;
}

.chat-dialog {
  --line-green:#06C755;
  --messenger-blue:#0866FF;
  box-sizing:border-box;
  width:calc(100% - 32px);
  max-width:432px;
  max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px);
  margin:auto;
  padding:28px;
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 16px 45px #14355f24;
  font-family:var(--font-body);
}

.chat-dialog:focus {
  outline:none;
}

.chat-dialog::backdrop {
  background:#14355f66;
  backdrop-filter:blur(3px);
}

.chat-dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

#chat-dialog-title {
  margin:0;
  font-family:var(--font-heading);
  font-size:24px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:-.015em;
}

.chat-dialog-close {
  display:grid;
  place-items:center;
  flex:0 0 44px;
  height:44px;
  margin-right:-8px;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
}

.chat-dialog-close:hover {
  background:var(--info-bg);
}

.chat-dialog-description {
  margin:8px 0 24px;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.chat-line-desktop {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  padding:20px;
  border:1px solid #bfeecf;
  border-radius:12px;
  background:#f3fcf7;
}

.chat-line-heading {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-family:var(--font-heading);
  font-size:15px;
  line-height:1.4;
  font-weight:700;
}

.chat-line-heading img,
.chat-channel-link img {
  display:block;
  flex-shrink:0;
  object-fit:contain;
}

.chat-qr-link {
  display:block;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}

.chat-qr-link img {
  display:block;
  width:184px;
  height:184px;
}

.chat-line-desktop p {
  margin:0;
  color:var(--muted);
  text-align:center;
  font-size:12px;
  line-height:1.5;
}

.chat-dialog-divider {
  display:flex;
  align-items:center;
  gap:14px;
  margin:20px 0;
  color:var(--muted);
  font-size:12px;
}

.chat-dialog-divider::before,
.chat-dialog-divider::after {
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}

.chat-channel-link {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  min-height:64px;
  padding:12px 16px;
  border-radius:7px;
  background:var(--line-green);
  color:var(--ink);
  font-family:var(--font-heading);
  font-size:15px;
  line-height:1.4;
  font-weight:700;
  text-align:center;
}

.chat-channel-link:hover {
  box-shadow:inset 0 0 0 100px #00000012;
}

.chat-messenger {
  background:var(--messenger-blue);
  color:#fff;
}

.chat-external-icon {
  flex-shrink:0;
  font-size:20px;
}

.chat-line-mobile,
.chat-dialog-mobile-note {
  display:none;
}

@media(max-width:767px) {
  .chat-dialog {
    max-width:400px;
    padding:22px 20px;
    border-radius:18px;
  }
  #chat-dialog-title {
    font-size:23px;
  }
  .chat-line-desktop,
  .chat-dialog-divider {
    display:none;
  }
  .chat-line-mobile {
    display:flex;
    margin-bottom:12px;
    color:#fff;
  }
  .chat-channel-link {
    padding:12px;
    gap:10px;
    font-size:14px;
  }
  .chat-dialog-mobile-note {
    display:block;
    margin:16px 0 0;
    color:var(--muted);
    text-align:center;
    font-size:12px;
    line-height:1.5;
  }
}

.hero-notes {
  display:flex;
  gap:20px;
  font-size:13px;
  color:#605D5D;
}

.hero-notes span:before {
  content:'✓';
  padding-right:5px;
  color:#328456;
}

.product-scene {
  position:relative;
  padding:85px 0 90px;
  min-width:0;
  scroll-margin-top:95px;
}

.scene-grid {
  position:absolute;
  inset:0 -36px;
  background-image:radial-gradient(#5E9CF03d .7px,transparent .7px);
  background-size:18px 18px;
  mask-image:radial-gradient(ellipse,#000 25%,transparent 70%);
  pointer-events:none;
}

.workspace {
  position:relative;
  background:#14355F;
  border:1px solid #32557e;
  border-radius:13px;
  box-shadow:0 25px 55px -20px #14355F5c,0 4px 8px #14355F10;
  transform:rotate(-1.4deg);
  isolation:isolate;
}

.workspace-bar {
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 17px;
  color:#dce8f8;
  font-size:13px;
  letter-spacing:.2px;
}

.workspace-mark {
  font-size:21px;
  font-weight:700;
  color:#a8cdfa;
  line-height:1;
}

.workspace-mark span {
  font-size:12px;
  vertical-align:top;
}

.demo-badge {
  margin-left:auto;
  font-size:11px;
  letter-spacing:1px;
  padding:5px 6px;
  background:#ffffff0d;
  color:#b7cce6;
  border:1px solid #ffffff14;
  border-radius:4px;
}

.workspace-content {
  display:flex;
  padding:0 8px 8px 0;
}

.workspace-rail {
  width:49px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:18px;
  padding-top:14px;
  color:#a0bad9;
  font-size:20px;
}

.workspace-rail span {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
}

.workspace-rail .rail-active {
  background:#b6d5ff20;
  color:#b6d5ff;
  border-radius:7px;
}

.rail-bottom {
  margin-top:auto;
  margin-bottom:14px;
}

.chat-panel {
  background:#fff;
  flex:1;
  min-width:0;
  border-radius:7px;
  overflow:hidden;
}

.chat-header {
  display:flex;
  align-items:center;
  padding:17px 17px 14px;
  gap:10px;
  border-bottom:1px solid #edf1f6;
}

.agent-avatar {
  width:33px;
  height:33px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#DCE9FA;
  font-size:26px;
  color:#3273CF;
}

.chat-header strong {
  font-size:15px;
  font-weight:700;
}

.status-dot {
  display:flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  color:#63738a;
  margin-top:5px;
}

.status-dot .live-dot {
  width:4px;
  height:4px;
}

.chat-menu {
  margin-left:auto;
  font-size:22px;
  align-self:flex-start;
}

.chat-messages {
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:19px 20px 16px;
  min-height:277px;
}

.bubble {
  font-size:14px;
  line-height:1.65;
  padding:11px 13px;
  max-width:89%;
  border-radius:9px;
}

.bubble-bot {
  align-self:flex-start;
  background:#f0f4fa;
  border-bottom-left-radius:2px;
  color:#14355F;
}

.bubble-user {
  align-self:flex-end;
  background:#14355F;
  color:white;
  border-bottom-right-radius:2px;
}

.answer-source {
  display:flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  color:#1258B8;
  border-top:1px solid #dce5f0;
  margin-top:9px;
  padding-top:8px;
}

.answer-source>span:last-child {
  margin-left:auto;
}

.demo-prompts {
  display:flex;
  gap:6px;
  padding:0 18px 11px;
  flex-wrap:wrap;
}

.demo-prompts button {
  background:white;
  color:#335f92;
  border:1px solid #dce5f0;
  border-radius:5px;
  font-size:13px;
  padding:6px 10px;
  transition:background .2s;
}

.demo-prompts button:hover,.demo-prompts button[aria-pressed=true] {
  background:#edf5ff;
  border-color:#abc9ed;
}

.composer {
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid #dce5ef;
  border-radius:6px;
  margin:0 15px;
  padding:5px 6px 5px 10px;
}

.composer input {
  min-width:0;
  width:100%;
  background:transparent;
  border:0;
  font-size:16px;
  padding:6px 0;
  color:var(--ink);
}

.composer input::placeholder {
  color:#7c899a;
}

.composer input:focus-visible {
  outline-offset:1px;
  outline-width:1px;
}

.composer button {
  border:0;
  border-radius:5px;
  width:26px;
  height:26px;
  flex-shrink:0;
  background:var(--ink);
  color:white;
  font-size:18px;
}

.demo-disclaimer {
  text-align:center;
  font-size:12px;
  color:#64748b;
  padding:11px 8px;
}

.source-float {
  position:absolute;
  z-index:2;
  top:5px;
  left:4px;
  display:flex;
  gap:10px;
  align-items:center;
  padding:13px 15px;
  border:1px solid #fff;
  border-radius:9px;
  background:#ffffff;
  box-shadow:0 8px 26px #14355F16;
  transform:rotate(-4deg);
}

.source-float strong,.resolved-float strong {
  display:block;
  font-size:14px;
  font-weight:700;
}

.source-float div>span,.resolved-float div>span {
  display:block;
  margin-top:5px;
  font-size:12px;
  color:#63738a;
}

.file-icon {
  background:#edf5ff;
  color:#3273CF;
  border:1px solid #d6e5f7;
  width:29px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:4px;
  font-size:20px;
}

.source-check {
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e7f6ed;
  color:#328456;
  width:17px;
  height:17px;
  font-size:10px;
  margin-left:8px;
}

.resolved-float {
  position:absolute;
  bottom:8px;
  right:-15px;
  background:#ffffff;
  border:1px solid white;
  border-radius:9px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:15px 19px;
  box-shadow:0 10px 35px #14355F1c;
  transform:rotate(3deg);
}

.resolved-icon {
  display:grid;
  place-items:center;
  background:#e7f6ed;
  width:30px;
  height:30px;
  color:#328456;
  border-radius:50%;
}

.mini-spark {
  color:#5E9CF0;
  font-size:30px;
  line-height:1;
  padding-left:13px;
}

.channel-strip {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  border-top:1px solid #a8bed866;
  padding:31px 0;
  margin-top:55px;
  position:relative;
}

.channel-strip>span {
  font-size:12px;
  letter-spacing:1.3px;
  color:#63738a;
}

.channel-brands {
  display:flex;
  align-items:center;
  gap:38px;
}

.channel-brands>span {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:16px;
  letter-spacing:-.4px;
  font-weight:600;
  color:#526986;
}

.channel-brands i {
  font-style:normal;
  font-size:22px;
}

.channel-brands .channel-line {
  font-size:10px;
  display:grid;
  place-items:center;
  border-radius:6px;
  background:#637c9d;
  color:#edf5ff;
  width:20px;
  height:20px;
}

.channel-brands .channel-messenger {
  font-size:19px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#637c9d;
  color:#edf5ff;
  width:20px;
  height:20px;
}

h2 {
  font-size:clamp(34px,3.4vw,48px);
  font-weight:800;
  letter-spacing:-0.015em;
  line-height:1.12;
  margin:0;
  max-width:650px;
  font-family:var(--font-heading);
}

.section-sub {
  font-size:18px;
  color:var(--muted);
  line-height:1.7;
  max-width:500px;
  margin:18px 0 0;
}

.features {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:28px;
  margin-top:43px;
}

.feature-card {
  padding:28px 40px;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  transition:transform .4s var(--ease-out),box-shadow .4s var(--ease-out);
}

.feature-card:hover {
  transform:translateY(-5px);
  box-shadow:0 12px 28px #14355F0a;
}

.feature-row {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:center;
  gap:clamp(28px,4vw,56px);
}

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

.feature-row.reverse .feature-img {
  order:2;
}

.feature-img {
  display:block;
  width:100%;
  max-width:480px;
  height:auto;
  aspect-ratio:1;
  justify-self:center;
  border:0;
  border-radius:16px;
  background:#f7faff;
}

.feature-text {
  padding:20px 0;
}

.feature-label {
  display:block;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.08em;
  color:#7c899a;
  margin-bottom:14px;
}

.feature-text h3 {
  font-size:28px;
  letter-spacing:normal;
  font-weight:700;
  margin:0;
  font-family:var(--font-heading);
}

.feature-text p {
  max-width:46ch;
  font-size:17px;
  line-height:1.8;
  color:var(--muted);
  margin:13px 0 0;
}

.how-section {
  background:#14355F;
  color:#edf5ff;
  position:relative;
  overflow:hidden;
}

.how-section:after {
  content:'\2733\FE0E';
  position:absolute;
  right:3%;
  top:42px;
  font-size:240px;
  line-height:1;
  color:#DCE9FA0a;
  pointer-events:none;
}

.how-section h2 {
  max-width:670px;
}

.how-grid {
  --how-gap:42px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--how-gap);
  margin-top:60px;
}

.step-head {
  display:flex;
  align-items:center;
}

.how-step:not(:last-child) .step-head:after {
  content:'';
  flex:1;
  height:2px;
  margin:0 calc(-1 * var(--how-gap) + 14px) 0 18px;
  background:repeating-linear-gradient(90deg,#ffffff40 0 6px,transparent 6px 12px);
  -webkit-mask:linear-gradient(90deg,#000 70%,transparent);
  mask:linear-gradient(90deg,#000 70%,transparent);
}

.step-icon {
  position:relative;
  flex-shrink:0;
  width:58px;
  height:58px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#eaf3ff;
  background:#ffffff12;
  border:1px solid #ffffff26;
}

.step-icon svg {
  width:28px;
  height:28px;
}

.step-num {
  position:absolute;
  top:-10px;
  right:-10px;
  width:26px;
  height:26px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:800;
  line-height:1;
  color:#fff;
  background:var(--brand-grad);
  border:2px solid #14355F;
}

.how-step h3 {
  font-size:21px;
  font-weight:700;
  letter-spacing:normal;
  margin:28px 0 14px;
  font-family:var(--font-heading);
}

.how-step p {
  font-size:16px;
  line-height:1.8;
  color:#b5c9e2;
  max-width:290px;
  margin:0;
}

#pricing {
  text-align:center;
}

#pricing h2,#pricing .section-sub {
  margin-left:auto;
  margin-right:auto;
}

.pricing-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  text-align:left;
  margin-top:48px;
}

.pricing-card {
  position:relative;
  display:flex;
  flex-direction:column;
  padding:32px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
}

.pricing-card h3 {
  font-size:20px;
  font-weight:700;
  margin:0;
  font-family:var(--font-heading);
}

.price-row {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:8px;
  margin-top:24px;
}

.amount {
  font-size:37px;
  letter-spacing:normal;
  font-weight:800;
  font-family:var(--font-heading);
}

.period {
  font-size:15px;
  color:var(--muted);
}

.pricing-card>p {
  font-size:16px;
  color:var(--muted);
  line-height:1.6;
  min-height:38px;
  margin:14px 0 0;
}

.plan-list {
  border-top:1px solid var(--line);
  padding-top:23px;
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:21px 0 30px;
}

.plan-list div {
  font-size:16px;
  line-height:1.5;
}

.pricing-card .btn {
  font-size:16px;
  padding:14px;
}

.pricing-card.card-raised {
  background:#f0f6ff;
  border-color:#8bb7ee;
  box-shadow:0 6px 22px #14355F08;
}

.pricing-card.card-raised .btn {
  background:var(--ink);
  color:white;
}

.most-popular {
  position:absolute;
  top:-13px;
  right:23px;
  padding:7px 12px;
  border-radius:5px;
  background:#DCE9FA;
  color:#1258B8;
  font-size:12px;
  letter-spacing:.5px;
  font-weight:800;
}

/* Share row heights across the 3-column cards so dividers and buttons line up
   even when one description or feature wraps more than the others. */
@supports (grid-template-rows:subgrid) {
  @media (min-width:861px) {
    .pricing-card {
      display:grid;
      grid-row:span 5;
      grid-template-rows:subgrid;
      row-gap:0;
    }
  }
}

.cta-section {
  margin:0 3% 35px;
  background:#eaf2fd;
  border:1px solid #d4e4f8;
  border-radius:13px;
  text-align:center;
  position:relative;
  padding:68px 30px;
  overflow:hidden;
}

.cta-row {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:22px;
}

.cta-star {
  font-size:49px;
  line-height:1;
  color:#5E9CF0;
}

.cta-row h2 {
  max-width:660px;
  margin:auto;
}

.cta-row p {
  max-width:420px;
  font-size:18px;
  line-height:1.8;
  margin:20px auto 3px;
  color:#526986;
}

.cta-row .btn {
  background:var(--ink);
  color:white;
}

.cta-section:before,.cta-section:after {
  content:'';
  position:absolute;
  width:380px;
  height:380px;
  border:1px solid #afc9ea70;
  border-radius:50%;
  top:35%;
  pointer-events:none;
}

.cta-section:before {
  left:-210px;
}

.cta-section:after {
  right:-210px;
}

footer {
  padding:30px 5% 38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.copyright {
  font-size:14px;
  color:#7D7979;
}

/* Motion: short, eased, opacity + `translate` only. Animating `translate`
   (not `transform`) leaves the rotate() tilts and hover lifts untouched. */
:root {
  --ease-out:cubic-bezier(.22,1,.36,1);
}

@keyframes arrive {
  from {
    opacity:0;
    translate:0 18px;
  }
}

@keyframes drift {
  50% {
    translate:0 -6px;
  }
}

@keyframes pulse {
  0% {
    box-shadow:0 0 0 0 #57C28766;
  }
  70%,100% {
    box-shadow:0 0 0 5px #57C28700;
  }
}

@keyframes spin {
  to {
    rotate:360deg;
  }
}

.hero-copy>* {
  animation:arrive .9s var(--ease-out) backwards;
}

.hero-copy>:nth-child(2) { animation-delay:.07s; }
.hero-copy>:nth-child(3) { animation-delay:.14s; }
.hero-copy>:nth-child(4) { animation-delay:.21s; }
.hero-copy>:nth-child(5) { animation-delay:.28s; }

.product-scene {
  animation:arrive 1.1s .2s var(--ease-out) backwards;
}

.chat-messages .bubble {
  animation:arrive .6s .7s var(--ease-out) backwards;
}

.chat-messages .bubble:nth-child(2) { animation-delay:1s; }
.chat-messages .bubble:nth-child(3) { animation-delay:1.35s; }

.source-float,.resolved-float {
  animation:arrive .8s .55s var(--ease-out) backwards,drift 7s 1.4s ease-in-out infinite;
}

.resolved-float {
  animation-delay:.75s,2.6s;
}

.live-dot {
  animation:pulse 2.4s ease-out infinite;
}

.cta-star {
  animation:spin 40s linear infinite;
}

/* Scroll reveal: landing.js adds .motion, then .reveal as each block enters. */
@media(prefers-reduced-motion:no-preference) {
  .motion :is(.feature-card,.how-step,.pricing-card,.cta-row):not(.reveal) {
    opacity:0;
  }
}

.reveal {
  animation:arrive .9s var(--ease-out) backwards;
}

.how-step.reveal:nth-child(2),.pricing-card.reveal:nth-child(2) { animation-delay:.1s; }
.how-step.reveal:nth-child(3),.pricing-card.reveal:nth-child(3) { animation-delay:.2s; }

nav {
  transition:box-shadow .3s var(--ease-out);
}

nav.scrolled {
  box-shadow:0 8px 24px -16px #14355F40;
}

.nav-links a {
  padding-bottom:3px;
  background:linear-gradient(currentColor,currentColor) 0 100%/0 1.5px no-repeat;
  transition:color .2s,background-size .35s var(--ease-out);
}

.nav-links a:hover {
  background-size:100% 1.5px;
}

.btn:active {
  transform:translateY(0) scale(.98);
}

.arrow-link>span:last-child {
  transition:transform .3s var(--ease-out);
}

.arrow-link:hover>span:last-child {
  transform:translate(2px,-2px);
}

.pricing-card {
  transition:transform .4s var(--ease-out),box-shadow .4s var(--ease-out);
}

.pricing-card:hover {
  transform:translateY(-4px);
  box-shadow:0 14px 32px #14355F12;
}

html[lang=th] .hero-grid h1 {
  font-size:clamp(49px,5.1vw,71px);
  line-height:1.3;
  letter-spacing:-0.02em;
}

html[lang=th] .eyebrow {
  letter-spacing:.8px;
}

html[lang=th] .hero-copy>p {
  line-height:1.9;
}

html[lang=th] .hero-notes {
  flex-wrap:wrap;
  gap:7px 16px;
}

@media(min-width:1500px) {
  nav {
    padding-left:max(5%,calc((100vw - 1320px)/2));
    padding-right:max(5%,calc((100vw - 1320px)/2));
  }
  .hero-section {
    padding-top:95px;
  }
  .hero-grid {
    gap:66px;
  }
}

@media(max-width:1100px) {
  .hero-grid {
    gap:30px;
    grid-template-columns:1fr 1fr;
  }
  .hero-grid h1 {
    font-size:64px;
    letter-spacing:-0.02em;
  font-family:var(--font-heading);
  font-weight:800;
}
  .hero-ctas {
    gap:17px;
  }
  .btn-lg {
    padding:16px 19px;
  }
  .hero-copy>p {
    font-size:18px;
  }
  .hero-notes {
    font-size:13px;
    gap:12px;
  }
  .workspace-rail {
    width:37px;
  }
  .chat-messages {
    padding:17px 14px 15px;
  }
  .chat-header {
    padding:14px 12px;
  }
  .bubble {
    font-size:14px;
  }
  .chat-header strong {
    font-size:15px;
  font-weight:700;
}
  .resolved-float {
    right:-8px;
    padding:12px 14px;
  }
  .channel-brands {
    gap:26px;
  }
  .channel-brands>span {
    font-size:16px;
  }
  .feature-card {
    padding:24px 30px;
  }
  .pricing-card {
    padding:27px;
  }
  .amount {
    font-size:32px;
  font-family:var(--font-heading);
  font-weight:800;
  letter-spacing:normal;
}
}

@media(max-width:860px) {
  section {
    padding:75px 6%;
  }
  nav {
    padding:18px 6%;
  }
  .nav-links {
    gap:20px;
  }
  .hero-section {
    padding-top:58px;
  }
  .hero-grid {
    grid-template-columns:1fr;
    gap:25px;
  }
  .hero-copy {
    text-align:center;
  }
  .hero-eyebrow,.hero-ctas,.hero-notes {
    justify-content:center;
  }
  .hero-grid h1 {
    font-size:76px;
    letter-spacing:-0.02em;
  font-family:var(--font-heading);
  font-weight:800;
}
  .hero-copy>p {
    margin:24px auto 0;
    max-width:430px;
    font-size:18px;
  }
  .hero-ctas {
    margin-top:25px;
  }
  .product-scene {
    width:100%;
    max-width:520px;
    margin:auto;
    padding-top:85px;
  }
  .bubble {
    font-size:14px;
  }
  .chat-header strong {
    font-size:15px;
  font-weight:700;
}
  .chat-messages {
    min-height:267px;
  }
  .chat-header {
    padding:18px;
  }
  .workspace-rail {
    width:48px;
  }
  .channel-strip {
    margin-top:25px;
    flex-direction:column;
    gap:24px;
    padding:27px 0 32px;
  }
  .channel-brands {
    gap:32px;
  }
  .feature-card {
    padding:22px;
  }
  .feature-text h3 {
    font-size:24px;
  font-family:var(--font-heading);
  font-weight:700;
  letter-spacing:normal;
}
  .feature-text p {
    font-size:17px;
  }
  .how-grid {
    --how-gap:24px;
  }
  .how-step h3 {
    font-size:18px;
  font-family:var(--font-heading);
  font-weight:700;
  letter-spacing:normal;
}
  .pricing-grid {
    gap:13px;
  }
  .pricing-card {
    padding:25px 19px;
  }
  .amount {
    font-size:28px;
  font-family:var(--font-heading);
  font-weight:800;
  letter-spacing:normal;
}
  .price-row {
    gap:5px;
  }
  .plan-list div {
    font-size:16px;
  }
  .period {
    font-size:15px;
  }
  .pricing-card h3 {
    font-size:20px;
  font-family:var(--font-heading);
  font-weight:700;
}
  html[lang=th] .hero-grid h1 {
    font-size:64px;
  letter-spacing:-0.02em;
}
}

@media(max-width:600px) {
  html {
    scroll-padding-top:115px;
  }
  nav {
    padding:15px 6%;
    gap:14px;
    flex-wrap:wrap;
  }
  .wordmark {
    font-size:24px;
  letter-spacing:-0.025em;
}
  .nav-right {
    gap:15px;
  }
  .nav-right .btn {
    padding:10px 15px;
  }
  .nav-links {
    order:3;
    justify-content:center;
    width:100%;
    gap:30px;
    padding-top:8px;
  }
  .nav-links a {
    font-size:15px;
  font-weight:600;
}
  .hero-section {
    padding-top:38px;
  }
  .hero-eyebrow {
    font-size:12px;
    letter-spacing:0.06em;
    margin-bottom:21px;
  }
  .hero-grid h1 {
    font-size:clamp(47px,11.8vw,66px);
    letter-spacing:-0.02em;
    line-height:1.08;
  font-family:var(--font-heading);
  font-weight:800;
}
  .hero-copy>p {
    font-size:18px;
    line-height:1.8;
    max-width:400px;
    margin-top:22px;
  }
  .hero-ctas {
    gap:19px;
    margin-top:24px;
  }
  .hero-ctas .btn {
    font-size:16px;
    padding:15px 18px;
    gap:17px;
  }
  .demo-link {
    font-size:16px;
    gap:8px;
  font-weight:700;
}
  .hero-notes {
    font-size:13px;
    gap:15px;
  }
  .product-scene {
    margin-top:12px;
    padding-top:80px;
    padding-bottom:90px;
  }
  .workspace {
    transform:rotate(-1deg);
    border-radius:10px;
  }
  .workspace-rail {
    display:none;
  }
  .workspace-content {
    padding:0 7px 7px;
  }
  .workspace-bar {
    padding:12px;
    font-size:13px;
  }
  .demo-badge {
    font-size:11px;
  }
  .chat-header {
    padding:14px 12px;
  }
  .chat-header strong {
    font-size:15px;
  font-weight:700;
}
  .chat-messages {
    padding:17px 14px;
    min-height:284px;
  }
  .bubble {
    font-size:14px;
    max-width:89%;
    padding:10px 12px;
  }
  .source-float {
    top:0;
    left:4px;
    padding:10px 11px;
    gap:8px;
  }
  .source-float strong,.resolved-float strong {
    font-size:14px;
  font-weight:700;
}
  .source-float div>span,.resolved-float div>span {
    font-size:12px;
  }
  .file-icon {
    height:28px;
    width:24px;
  }
  .source-check {
    width:15px;
    height:15px;
  }
  .resolved-float {
    bottom:8px;
    right:-3px;
    gap:8px;
    padding:12px;
  }
  .mini-spark {
    font-size:25px;
    padding-left:4px;
  }
  .channel-strip {
    margin-top:14px;
    gap:19px;
  }
  .channel-brands {
    gap:17px;
    justify-content:center;
    flex-wrap:wrap;
  }
  .channel-brands>span {
    font-size:16px;
    gap:5px;
  }
  .channel-brands i {
    font-size:18px;
  }
  .channel-brands .channel-line,.channel-brands .channel-messenger {
    width:16px;
    height:16px;
    font-size:10px;
  }
  .channel-strip>span {
    font-size:12px;
  }
  .eyebrow {
    font-size:12px;
    letter-spacing:0.06em;
    margin-bottom:16px;
  font-weight:700;
}
  section {
    padding:62px 6%;
  }
  h2 {
    font-size:35px;
    letter-spacing:-0.015em;
    line-height:1.2;
  font-family:var(--font-heading);
  font-weight:800;
}
  .section-sub {
    font-size:18px;
  }
  .features {
    grid-template-columns:1fr;
    gap:20px;
    margin-top:30px;
  }
  .feature-card {
    padding:16px;
  }
  .feature-row,.feature-row.reverse {
    grid-template-columns:minmax(0,1fr);
    gap:8px;
  }
  .feature-row.reverse .feature-img {
    order:0;
  }
  .feature-img {
    max-width:360px;
    aspect-ratio:1;
  }
  .feature-text {
    padding:20px 5px 10px;
  }

  .feature-text h3 {
    font-size:21px;
  font-family:var(--font-heading);
  font-weight:700;
  letter-spacing:normal;
}
  .feature-text p {
    font-size:17px;
    line-height:1.8;
  }
  .how-grid {
    --how-gap:31px;
    grid-template-columns:1fr;
    margin-top:36px;
  }
  .how-step {
    display:grid;
    grid-template-columns:58px 1fr;
    column-gap:20px;
  }
  .step-head {
    grid-row:span 2;
    flex-direction:column;
    align-self:stretch;
  }
  .how-step:not(:last-child) .step-head:after {
    width:2px;
    height:auto;
    margin:14px 0 calc(-1 * var(--how-gap) + 10px);
    background:repeating-linear-gradient(180deg,#ffffff40 0 6px,transparent 6px 12px);
    -webkit-mask:none;
    mask:none;
  }
  .how-step h3 {
    font-size:22px;
    margin-top:14px;
  font-family:var(--font-heading);
  font-weight:700;
  letter-spacing:normal;
}
  .how-step p {
    font-size:16px;
    max-width:100%;
  }
  .how-section:after {
    top:50px;
    right:-70px;
    font-size:220px;
  }
  .pricing-grid {
    grid-template-columns:1fr;
    gap:26px;
    margin-top:36px;
  }
  .pricing-card {
    padding:30px;
  }
  .pricing-card h3 {
    font-size:20px;
  font-family:var(--font-heading);
  font-weight:700;
}
  .amount {
    font-size:39px;
  font-family:var(--font-heading);
  font-weight:800;
  letter-spacing:normal;
}
  .period {
    font-size:15px;
  }
  .pricing-card>p {
    font-size:16px;
    min-height:0;
  }
  .plan-list div {
    font-size:16px;
  }
  .pricing-card .btn {
    font-size:16px;
  }
  .cta-section {
    margin:0 4% 15px;
    padding:45px 22px;
  }
  .cta-row h2 {
    font-size:31px;
  }
  .cta-row p {
    font-size:18px;
  }
  .cta-star {
    font-size:39px;
  }
  footer {
    padding:27px 6%;
    flex-direction:column;
    gap:18px;
  }
  .copyright {
    font-size:14px;
  }
  html[lang=th] .hero-grid h1 {
    font-size:clamp(43px,11vw,61px);
    letter-spacing:-0.02em;
  }
  html[lang=th] h2 {
    font-size:31px;
    line-height:1.35;
  }
  html[lang=th] .hero-notes {
    justify-content:center;
  }
  html[lang=th] .chat-messages {
    min-height:310px;
  }
  html[lang=th] .chat-header strong {
    font-size:15px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
  }
}

/* Give the live demo comfortable pointer targets without losing its compact scale. */
.demo-prompts button {
  font-size:13px;
  min-height:30px;
}

.composer input {
  font-size:16px;
  min-height:30px;
}

.composer button {
  width:30px;
  height:30px;
}

.demo-disclaimer {
  font-size:12px;
}

.demo-link,.nav-links a {
  min-height:30px;
  display:inline-flex;
  align-items:center;
}

@media(max-width:600px) {
  .demo-prompts button {
    min-height:36px;
  }
  .composer input {
    font-size:16px;
  }
  .composer button {
    width:36px;
    height:36px;
  }
  .source-float {
    top:0;
  }
}


/* Keep readable type comfortable inside the product preview at narrow widths. */
.hero-notes {
  flex-wrap:wrap;
  row-gap:8px;
}
.chat-header > div:nth-child(2) {
  min-width:0;
  flex:1;
}
.chat-header strong {
  display:block;
  line-height:1.4;
  font-weight:700;
}
.chat-messages {
  min-height:0;
}
.source-float,.resolved-float {
  max-width:100%;
}
.source-float strong,.resolved-float strong {
  line-height:1.4;
  font-weight:700;
}
.source-float div>span,.resolved-float div>span {
  line-height:1.5;
}
.source-check,.resolved-icon {
  flex-shrink:0;
}
.demo-prompts button {
  min-height:40px;
}
.composer button {
  width:36px;
  height:36px;
}
.channel-strip {
  flex-wrap:wrap;
}
.hero-accent {
  display:inline-block;
}
@media (max-width:1100px) and (min-width:861px) {
  .hero-grid h1 {
    font-size:clamp(49px,5.6vw,61px);
    letter-spacing:-0.02em;
  font-family:var(--font-heading);
  font-weight:800;
}
}
@media (max-width:860px) {
  .pricing-grid {
    grid-template-columns:1fr;
    gap:28px;
    max-width:540px;
    margin-left:auto;
    margin-right:auto;
  }
  .price-row .amount {
    font-size:37px;
  }
  .how-grid {
    --how-gap:24px;
  }
}
@media (max-width:600px) {
  .hero-grid h1 {
    font-size:clamp(40px,10vw,60px);
    letter-spacing:-0.02em;
  font-family:var(--font-heading);
  font-weight:800;
}
  .hero-copy>p,.section-sub,.cta-row p {
    font-size:17px;
  }
  .source-float,.resolved-float {
    transform:none;
    right:0;
    left:0;
    width:100%;
    padding:10px 12px;
  }
  .source-float div,.resolved-float div {
    flex:1;
    min-width:0;
  }
  .source-float strong,.resolved-float strong {
    font-size:13px;
  font-weight:700;
}
  .mini-spark,.source-check {
    display:none;
  }
  .chat-header {
    gap:8px;
  }
  .agent-avatar {
    flex-shrink:0;
  }
  .bubble {
    max-width:95%;
  }
  .demo-disclaimer {
    line-height:1.5;
  }
  .hero-notes {
    gap:8px 14px;
  }
  .hero-eyebrow {
    letter-spacing:0.06em;
  }
  .channel-brands {
    gap:16px 24px;
  }
  .nav-links {
    gap:24px;
  }
  .copyright {
    text-align:center;
    line-height:1.5;
  }
}
