:root {
  --background: oklch(0.985 0.008 150);
  --surface: oklch(1 0 0);
  --surface-soft: oklch(0.96 0.02 150);
  --foreground: oklch(0.19 0.035 155);
  --muted: oklch(0.48 0.03 155);
  --primary: oklch(0.44 0.135 153);
  --primary-dark: oklch(0.275 0.09 154);
  --primary-light: oklch(0.91 0.07 151);
  --accent: oklch(0.83 0.16 94);
  --accent-soft: oklch(0.955 0.065 96);
  --border: oklch(0.89 0.025 153);
  --border-dark: oklch(0.37 0.07 154);
  --success: oklch(0.65 0.15 151);
  --line-green: #06c755;
  --danger: oklch(0.57 0.19 29);
  --shadow: 0 26px 70px oklch(0.23 0.06 154 / 0.12);
  --shadow-soft: 0 15px 45px oklch(0.23 0.04 154 / 0.08);
  --radius: 1rem;
  --container: 74rem;
  --font-sans: "Sarabun", "Noto Sans Thai Looped", "Leelawadee UI", system-ui, sans-serif;
  --font-display: "Noto Sans Thai Looped", "Sarabun", system-ui, sans-serif;
  --font-hand: "Itim", "Noto Sans Thai Looped", system-ui, sans-serif;
  --font-mono: "Sarabun", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scroll-padding-bottom: 7.5rem;
  background: var(--background);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a,
button {
  -webkit-tap-highlight-color: oklch(0.44 0.135 153 / 0.16);
  touch-action: manipulation;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.no-break {
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 1rem;
  transform: translateY(-120%);
  border-radius: 0 0 0.65rem 0.65rem;
  background: var(--foreground);
  padding: 0.8rem 1rem;
  color: white;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: color-mix(in oklab, var(--border) 75%, transparent);
  background: color-mix(in oklab, var(--background) 88%, transparent);
  box-shadow: 0 8px 32px oklch(0.25 0.04 154 / 0.06);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: 4.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid oklch(1 0 0 / 0.75);
  border-radius: 50%;
  background: oklch(0.2 0.08 262);
  box-shadow: 0 8px 22px oklch(0.22 0.09 262 / 0.24);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 0.05rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  min-height: 44px;
  border-radius: 0.65rem;
  padding: 0.72rem 0.9rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.site-nav a:hover {
  background: var(--surface-soft);
  color: var(--foreground);
}

.site-nav .nav-cta {
  margin-left: 0.5rem;
  background: var(--foreground);
  color: white;
}

.site-nav .nav-cta:hover {
  background: var(--primary);
  color: white;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--foreground);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 9.5rem 0 2.2rem;
  background:
    linear-gradient(180deg, oklch(0.99 0.009 152) 0%, var(--background) 80%),
    var(--background);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(0.45 0.06 154 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.45 0.06 154 / 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  content: "";
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-glow-one {
  top: 4rem;
  right: -13rem;
  width: 38rem;
  height: 38rem;
  background: radial-gradient(circle, oklch(0.83 0.11 151 / 0.28), transparent 67%);
}

.hero-glow-two {
  bottom: 2rem;
  left: -12rem;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, oklch(0.9 0.11 95 / 0.24), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(31rem, 0.78fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.eyebrow > span {
  width: 1.8rem;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 47rem;
  margin: 0;
  font-size: clamp(3.2rem, 6.25vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.14;
  text-wrap: balance;
}

.hero h1 em {
  position: relative;
  color: var(--primary);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: -0.22rem;
  left: 0.15rem;
  height: 0.35rem;
  border-radius: 99px;
  background: var(--accent);
  content: "";
  transform: rotate(-1deg);
  transform-origin: left;
}

.hero-lead {
  max-width: 42rem;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.9;
  text-wrap: pretty;
}

.hero-actions,
.pilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.78rem;
  padding: 0.82rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--primary);
  box-shadow: 0 12px 30px oklch(0.44 0.135 153 / 0.25);
  color: white;
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 16px 36px oklch(0.36 0.12 153 / 0.25);
}

.button-secondary {
  border-color: var(--border);
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  color: var(--foreground);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  border-color: var(--primary-light);
  background: var(--surface);
}

.promise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.8rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  list-style: none;
}

.promise-list li {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.promise-list span {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.68rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 35rem;
}

.hero-visual.is-sequenced:not(.is-complete) .message-customer,
.hero-visual.is-sequenced:not(.is-complete) .tool-event,
.hero-visual.is-sequenced:not(.is-complete) .message-assistant {
  opacity: 0;
  transform: translateY(0.85rem) scale(0.98);
}

.hero-visual.is-sequenced:not(.is-complete) .stock-card {
  opacity: 0;
  transform: translateY(0.85rem) rotate(-2.5deg) scale(0.96);
}

.hero-visual.is-sequenced:not(.is-complete) .order-card-mini {
  opacity: 0;
  transform: translateY(0.85rem) rotate(2.2deg) scale(0.96);
}

.hero-visual.is-playing .message-customer {
  animation: hero-message-in 420ms 300ms ease-out forwards;
}

.hero-visual.is-playing .tool-event {
  animation: hero-message-in 420ms 900ms ease-out forwards;
}

.hero-visual.is-playing .message-assistant {
  animation: hero-message-in 460ms 1.5s ease-out forwards;
}

.hero-visual.is-playing .stock-card {
  animation: hero-stock-in 440ms 2.1s ease-out forwards;
}

.hero-visual.is-playing .order-card-mini {
  animation: hero-order-in 440ms 2.55s ease-out forwards;
}

.hero-replay {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0.5rem;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 0.62rem 0.9rem;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.hero-replay:hover {
  border-color: color-mix(in oklab, var(--primary) 45%, var(--border));
  background: var(--surface);
  transform: translateY(-2px);
}

.hero-replay svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-window {
  position: relative;
  z-index: 2;
  width: min(100%, 29rem);
  margin: 1.3rem auto 0;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--border) 75%, transparent);
  border-radius: 1.65rem;
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  transform: rotate(1.1deg);
  backdrop-filter: blur(18px);
}

.chat-topbar,
.phone-topbar {
  display: flex;
  min-height: 4.7rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 0 1.15rem;
}

.chat-identity,
.phone-topbar > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chat-identity > span:last-child,
.phone-topbar > div > span:last-child {
  display: grid;
}

.chat-identity strong,
.phone-topbar strong {
  font-size: 0.86rem;
}

.chat-identity small,
.phone-topbar small {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.64rem;
}

.chat-identity small i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px oklch(0.65 0.15 151 / 0.15);
}

.avatar {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
}

.line-pill {
  border-radius: 99px;
  background: oklch(0.7 0.2 145);
  padding: 0.25rem 0.55rem;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.chat-body {
  min-height: 24rem;
  padding: 1rem 1.05rem 1.35rem;
  background:
    radial-gradient(circle at top right, oklch(0.92 0.055 150 / 0.65), transparent 43%),
    oklch(0.975 0.012 150);
}

.timestamp {
  margin: 0.2rem 0 1rem;
  color: var(--muted);
  font-size: 0.62rem;
  text-align: center;
}

.message {
  position: relative;
  width: fit-content;
  max-width: 82%;
  margin-bottom: 0.8rem;
  border-radius: 1rem;
  padding: 0.72rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.65;
}

.message-customer {
  margin-left: auto;
  border-bottom-right-radius: 0.25rem;
  background: var(--primary);
  color: white;
}

.read-mark {
  position: absolute;
  right: calc(100% + 0.4rem);
  bottom: 0.2rem;
  width: max-content;
  color: var(--muted);
  font-size: 0.52rem;
}

.message-assistant {
  border: 1px solid var(--border);
  border-bottom-left-radius: 0.25rem;
  background: var(--surface);
  color: var(--foreground);
  box-shadow: 0 7px 20px oklch(0.3 0.04 155 / 0.05);
}

.message-assistant strong {
  color: var(--primary-dark);
}

.message-time {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.52rem;
  text-align: right;
}

.tool-event {
  display: flex;
  width: min(92%, 21rem);
  align-items: center;
  gap: 0.55rem;
  margin: 0.2rem 0 0.8rem;
  border: 1px dashed color-mix(in oklab, var(--primary) 35%, var(--border));
  border-radius: 0.75rem;
  background: color-mix(in oklab, var(--primary-light) 30%, var(--surface));
  padding: 0.55rem 0.65rem;
}

.tool-icon {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.tool-icon svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.tool-event > span:nth-child(2) {
  min-width: 0;
}

.tool-event small,
.tool-event strong {
  display: block;
}

.tool-event small {
  color: var(--muted);
  font-size: 0.55rem;
}

.tool-event strong {
  overflow: hidden;
  margin-top: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-done {
  margin-left: auto;
  color: var(--primary);
  font-size: 0.52rem;
  font-weight: 700;
}

.chat-input {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.chat-input b {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 0.7rem;
  background: var(--primary);
  color: white;
}

.chat-input svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid color-mix(in oklab, var(--border) 75%, transparent);
  border-radius: 0.85rem;
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.float-card small,
.float-card strong {
  display: block;
}

.float-card small {
  color: var(--muted);
  font-size: 0.58rem;
}

.float-card strong {
  margin-top: 0.05rem;
  font-size: 0.75rem;
}

.stock-card {
  top: 1rem;
  right: -1.2rem;
  padding: 0.7rem 0.75rem;
  transform: rotate(-2deg);
}

.float-icon {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--accent-soft);
  color: oklch(0.52 0.13 84);
}

.float-icon svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stock-card > i {
  margin-left: 0.25rem;
  border-radius: 99px;
  background: var(--primary-light);
  padding: 0.18rem 0.42rem;
  color: var(--primary-dark);
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 700;
}

.order-card-mini {
  right: -2rem;
  bottom: 4.7rem;
  padding: 0.75rem 0.9rem;
  transform: rotate(2.2deg);
}

.pulse-dot {
  position: relative;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
}

.pulse-dot::after {
  position: absolute;
  inset: -0.35rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
  animation: pulse 1.8s ease-out infinite;
}

.orbit {
  position: absolute;
  border: 1px dashed color-mix(in oklab, var(--primary) 23%, transparent);
  border-radius: 50%;
}

.orbit-one {
  top: 2.5rem;
  right: -3rem;
  width: 29rem;
  height: 29rem;
}

.orbit-two {
  right: 1rem;
  bottom: -1rem;
  width: 21rem;
  height: 21rem;
}

.proof-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 5.5rem;
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: color-mix(in oklab, var(--surface) 84%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 0.75rem;
  list-style: none;
  backdrop-filter: blur(14px);
}

.proof-strip li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  border-radius: 0.9rem;
  background: color-mix(in oklab, var(--primary-light) 22%, transparent);
  padding: 0.85rem;
}

.proof-strip li > span {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.proof-strip li > div {
  display: grid;
  min-width: 0;
}

.proof-strip strong {
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.35;
}

.proof-strip small {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.section {
  padding: clamp(5.5rem, 10vw, 9rem) 0;
}

.section-heading,
.demo-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.65fr);
  gap: 5rem;
  align-items: end;
}

.section-heading h2,
.demo-heading h2,
.system-copy h2,
.pilot-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.section-heading > p,
.system-copy > p:last-child,
.pilot-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
}

.problem-card {
  position: relative;
  min-height: 19rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 2rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.problem-card:hover {
  border-color: color-mix(in oklab, var(--primary) 36%, var(--border));
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.problem-card::after {
  position: absolute;
  z-index: 0;
  right: -3.5rem;
  bottom: -4.5rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: var(--surface-soft);
  content: "";
  pointer-events: none;
}

.problem-card .card-number,
.problem-card .card-icon,
.problem-card h3,
.problem-card p {
  z-index: 1;
}

.problem-card .card-icon,
.problem-card h3,
.problem-card p {
  position: relative;
}

.card-number {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  color: var(--border);
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 600;
}

.card-icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--surface-soft);
  color: var(--primary);
}

.card-icon svg {
  width: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem-card h3,
.capability-card h3 {
  margin: 2.5rem 0 0.65rem;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.problem-card p,
.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.system-section {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  color: white;
}

.system-section::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 10%, oklch(0.62 0.14 150 / 0.23), transparent 32%),
    linear-gradient(to right, oklch(1 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.035) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
  content: "";
}

.system-section .container {
  position: relative;
  z-index: 1;
}

.eyebrow-light {
  color: var(--accent);
}

.system-copy {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.8fr;
  gap: 4rem;
  align-items: end;
}

.system-copy .eyebrow {
  align-self: start;
}

.system-copy > p:last-child {
  color: oklch(0.83 0.025 150);
}

.system-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 4.5rem;
}

.flow-card {
  min-height: 20rem;
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: 1rem;
  background: oklch(1 0 0 / 0.055);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.flow-card-featured {
  border-color: color-mix(in oklab, var(--accent) 60%, transparent);
  background: oklch(1 0 0 / 0.09);
  box-shadow: 0 0 50px oklch(0.8 0.12 96 / 0.08);
}

.flow-tag {
  color: oklch(0.75 0.035 150);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.flow-icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin: 2.1rem 0 1.3rem;
  place-items: center;
  border-radius: 0.85rem;
}

.flow-icon svg {
  width: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-icon {
  background: oklch(0.69 0.15 250 / 0.2);
  color: oklch(0.82 0.1 245);
}

.mate-icon {
  background: oklch(0.82 0.15 96 / 0.18);
  color: var(--accent);
}

.team-icon {
  background: oklch(0.7 0.15 150 / 0.18);
  color: oklch(0.79 0.12 150);
}

.flow-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.17rem;
}

.flow-card p {
  min-height: 5rem;
  margin: 0;
  color: oklch(0.8 0.025 150);
  font-size: 0.82rem;
  line-height: 1.75;
}

.flow-result {
  display: block;
  overflow: hidden;
  margin-top: 1.25rem;
  border-top: 1px solid oklch(1 0 0 / 0.1);
  padding-top: 1rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-arrow {
  color: oklch(1 0 0 / 0.35);
  font-family: var(--font-mono);
  font-size: 1.4rem;
}

.guardrail-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1rem;
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: 0.85rem;
  padding: 1rem 1.2rem;
  color: oklch(0.82 0.025 150);
  font-size: 0.7rem;
}

.guardrail-label {
  color: var(--accent);
  font-weight: 700;
}

.guardrail-strip b {
  margin-right: 0.35rem;
  color: oklch(1 0 0 / 0.35);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.demo-section {
  background: oklch(0.97 0.016 151);
}

.visual-guide-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, oklch(0.93 0.09 96 / 0.55), transparent 28%),
    linear-gradient(180deg, oklch(0.985 0.018 93), oklch(0.97 0.023 145));
}

.visual-guide-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(0.48 0.08 150 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.48 0.08 150 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

.visual-guide-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(26rem, 0.68fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.visual-guide-copy {
  position: sticky;
  top: 7rem;
}

.visual-guide-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 4.25rem);
  line-height: 1.17;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.visual-guide-lead {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.9;
}

.line-oa-card {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.3rem;
  align-items: center;
  margin-top: 2.4rem;
  border: 1px solid color-mix(in oklab, var(--primary) 18%, var(--border));
  border-radius: 1.1rem;
  background: color-mix(in oklab, var(--surface) 91%, transparent);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.line-oa-card img {
  display: block;
  width: 9rem;
  max-width: 100%;
  height: 7.6rem;
  border-radius: 0.85rem;
  object-fit: contain;
}

.line-oa-card span {
  color: var(--primary);
  font-family: var(--font-hand);
  font-size: 1rem;
}

.line-oa-card h3 {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.line-oa-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.guide-steps {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.guide-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  border: 1px solid color-mix(in oklab, var(--primary) 13%, var(--border));
  border-radius: 0.9rem;
  background: color-mix(in oklab, var(--surface) 78%, transparent);
  padding: 0.85rem 1rem;
}

.guide-steps li > span {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.68rem;
  background: var(--primary);
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.guide-steps strong,
.guide-steps small {
  display: block;
}

.guide-steps strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.guide-steps small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.guide-poster {
  width: min(100%, 34rem);
  margin: 0 auto;
}

.poster-frame {
  display: block;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--primary) 20%, var(--border));
  border-radius: 1.4rem;
  background: var(--surface);
  padding: 0.65rem;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.poster-frame:hover {
  box-shadow: 0 30px 80px oklch(0.23 0.06 154 / 0.18);
  transform: translateY(-4px);
}

.poster-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.95rem;
}

.guide-poster figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: center;
}

.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  padding: 0.85rem;
}

.demo-note > span {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
}

.demo-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

.demo-note strong {
  color: var(--foreground);
}

.demo-console {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.72fr);
  min-height: 42rem;
  margin-top: 4rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.demo-phone {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: oklch(0.98 0.012 150);
}

.phone-topbar {
  min-height: 5.3rem;
  padding-inline: 1.5rem;
  background: var(--surface);
}

.back-arrow {
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
}

.avatar-small {
  width: 2.35rem;
  height: 2.35rem;
}

.online-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px oklch(0.65 0.15 151 / 0.14);
}

.demo-transcript {
  display: flex;
  min-height: 27rem;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.demo-transcript .message {
  max-width: 74%;
  font-size: 0.86rem;
}

.demo-transcript .tool-event {
  margin-inline: auto;
}

.typing-indicator {
  display: flex;
  width: fit-content;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 1rem 1rem 1rem 0.25rem;
  background: var(--surface);
  padding: 0.85rem 1rem;
}

.typing-indicator i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1s ease-in-out infinite;
}

.typing-indicator i:nth-child(2) { animation-delay: 120ms; }
.typing-indicator i:nth-child(3) { animation-delay: 240ms; }

.demo-actionbar {
  display: flex;
  min-height: 6.2rem;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.1rem 1.5rem;
}

.demo-next {
  flex: 1;
  justify-content: space-between;
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  text-align: left;
}

.demo-next:hover {
  background: var(--primary-dark);
}

.demo-next:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.demo-next.is-complete {
  background: var(--primary-dark);
}

.reset-button {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  padding: 0.8rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.reset-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.demo-inspector {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--foreground);
  color: white;
}

.inspector-head {
  display: flex;
  min-height: 5.3rem;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid oklch(1 0 0 / 0.1);
  padding: 0 1.5rem;
}

.inspector-head > span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.inspector-head > span i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px oklch(0.83 0.16 94 / 0.11);
}

.inspector-head small {
  margin-top: 0.25rem;
  color: oklch(0.7 0.025 150);
  font-size: 0.66rem;
}

.trace-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 1.4rem 1.4rem 0;
  list-style: none;
}

.trace-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: 0.72rem;
  background: oklch(1 0 0 / 0.045);
  padding: 0.75rem;
}

.trace-index {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 0.5rem;
  background: oklch(1 0 0 / 0.08);
  color: oklch(0.72 0.025 150);
  font-family: var(--font-mono);
  font-size: 0.57rem;
}

.trace-item strong,
.trace-item small {
  display: block;
}

.trace-item strong {
  font-size: 0.72rem;
}

.trace-item small {
  overflow: hidden;
  margin-top: 0.15rem;
  color: oklch(0.68 0.025 150);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trace-item > i {
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-style: normal;
}

.trace-item.trace-waiting > i {
  color: oklch(0.65 0.025 150);
}

.trace-item.is-new {
  animation: trace-in 350ms ease both;
  border-color: oklch(0.83 0.16 94 / 0.36);
}

.trace-item.trace-delay-1 { animation-delay: 80ms; }
.trace-item.trace-delay-2 { animation-delay: 160ms; }

.order-preview {
  margin: auto 1.4rem 0;
  border-top: 1px solid oklch(1 0 0 / 0.1);
  padding: 1.4rem 0;
}

.empty-order {
  display: grid;
  place-items: center;
  padding: 1rem 0.5rem;
  color: oklch(0.68 0.025 150);
  text-align: center;
}

.empty-order > span {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.6rem;
  place-items: center;
  border: 1px dashed oklch(1 0 0 / 0.18);
  border-radius: 0.8rem;
}

.empty-order svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-order strong {
  color: oklch(0.8 0.025 150);
  font-size: 0.75rem;
}

.empty-order p {
  max-width: 14rem;
  margin: 0.25rem 0 0;
  font-size: 0.6rem;
  line-height: 1.6;
}

.order-summary {
  overflow: hidden;
  border: 1px solid oklch(1 0 0 / 0.13);
  border-radius: 0.8rem;
  background: oklch(1 0 0 / 0.055);
}

.order-summary-head,
.order-summary-row,
.order-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
}

.order-summary-head {
  border-bottom: 1px solid oklch(1 0 0 / 0.1);
  font-size: 0.7rem;
}

.order-summary-head i {
  border-radius: 99px;
  background: oklch(0.83 0.16 94 / 0.14);
  padding: 0.2rem 0.45rem;
  color: var(--accent);
  font-size: 0.5rem;
  font-style: normal;
}

.order-summary-head i.confirmed {
  background: oklch(0.65 0.15 151 / 0.14);
  color: oklch(0.79 0.12 150);
}

.order-summary-row {
  color: oklch(0.82 0.025 150);
  font-size: 0.65rem;
}

.order-summary-row span,
.order-summary-row strong {
  display: block;
}

.order-summary-row span small {
  display: block;
  margin-top: 0.15rem;
  color: oklch(0.62 0.025 150);
  font-size: 0.54rem;
}

.order-summary-total {
  border-top: 1px solid oklch(1 0 0 / 0.1);
  color: var(--accent);
  font-size: 0.74rem;
}

.inspector-status {
  margin: 0;
  border-top: 1px solid oklch(1 0 0 / 0.1);
  padding: 0.85rem 1.4rem;
  color: oklch(0.65 0.025 150);
  font-family: var(--font-mono);
  font-size: 0.52rem;
}

.capability-section {
  background: var(--background);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
}

.capability-card {
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.6rem;
}

.capability-kicker {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.capability-card h3 {
  margin-top: 2.1rem;
}

.mini-ui {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  padding: 0.9rem;
  font-size: 0.7rem;
}

.mini-ui span {
  color: var(--primary);
  font-size: 1.1rem;
}

.mini-ui i {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
}

.order-ui span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.order-ui b {
  font-size: 0.82rem;
}

.order-ui i {
  border-radius: 99px;
  background: var(--accent-soft);
  padding: 0.25rem 0.45rem;
  color: oklch(0.47 0.12 80);
}

.mini-bars {
  display: flex;
  height: 5.2rem;
  align-items: end;
  gap: 0.55rem;
  margin-top: 2.2rem;
  border-bottom: 1px solid var(--border);
  padding-inline: 0.4rem;
}

.mini-bars i {
  width: 100%;
  border-radius: 0.4rem 0.4rem 0 0;
  background: var(--primary-light);
}

.mini-bars i:nth-child(1) { height: 78%; }
.mini-bars i:nth-child(2) { height: 46%; }
.mini-bars i:nth-child(3) { height: 64%; }
.mini-bars i:nth-child(4) { height: 34%; }
.mini-bars i:nth-child(5) { height: 88%; }

.mini-bars i:nth-child(3),
.mini-bars i:nth-child(5) {
  background: var(--primary);
}

.wide-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: auto;
  gap: 4rem;
  align-items: center;
}

.wide-card h3 {
  margin-top: 1.5rem;
}

.mapping-ui {
  display: grid;
  gap: 0.55rem;
}

.mapping-ui > span {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--background);
  padding: 0.75rem 0.9rem;
  font-size: 0.68rem;
}

.mapping-ui i {
  color: var(--muted);
  font-style: normal;
}

.mapping-ui b {
  color: var(--primary);
}

.pilot-section {
  padding-top: 2rem;
}

.pilot-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.72fr);
  gap: 5rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--primary);
  padding: clamp(2rem, 6vw, 5rem);
  color: white;
  box-shadow: var(--shadow);
}

.pilot-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 75% 50%, black, transparent 63%);
}

.pilot-copy,
.pilot-status {
  position: relative;
  z-index: 1;
}

.pilot-copy > p {
  max-width: 40rem;
  margin-top: 1.4rem;
  color: oklch(0.9 0.025 150);
}

.button-light {
  background: white;
  color: var(--primary-dark);
}

.button-light:hover {
  box-shadow: 0 15px 30px oklch(0.2 0.06 154 / 0.15);
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.pilot-status {
  align-self: center;
  overflow: hidden;
  border: 1px solid oklch(1 0 0 / 0.18);
  border-radius: 1rem;
  background: oklch(0.24 0.075 154 / 0.58);
  backdrop-filter: blur(12px);
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.status-head i {
  border-radius: 99px;
  background: oklch(0.83 0.16 94 / 0.13);
  padding: 0.22rem 0.45rem;
  color: var(--accent);
  font-style: normal;
}

.pilot-status ol {
  margin: 0;
  padding: 0.5rem 1rem 1rem;
  list-style: none;
}

.pilot-status li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.72rem 0;
  color: oklch(0.66 0.025 150);
}

.pilot-status li:not(:last-child)::after {
  position: absolute;
  top: 2.35rem;
  bottom: -0.35rem;
  left: 0.78rem;
  width: 1px;
  background: oklch(1 0 0 / 0.14);
  content: "";
}

.pilot-status li > span {
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.5rem;
}

.pilot-status li strong,
.pilot-status li small {
  display: block;
}

.pilot-status li strong {
  font-size: 0.74rem;
}

.pilot-status li small {
  margin-top: 0.12rem;
  font-size: 0.56rem;
}

.pilot-status li > b {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  font-size: 0.6rem;
}

.pilot-status li.done {
  color: oklch(0.87 0.025 150);
}

.pilot-status li.done > span,
.pilot-status li.done > b {
  border-color: oklch(0.79 0.12 150 / 0.35);
  background: oklch(0.65 0.15 151 / 0.15);
  color: oklch(0.79 0.12 150);
}

.pilot-status li.active {
  color: white;
}

.pilot-status li.active > span {
  border-color: var(--accent);
  background: oklch(0.83 0.16 94 / 0.13);
  color: var(--accent);
  box-shadow: 0 0 0 4px oklch(0.83 0.16 94 / 0.08);
}

.pilot-status li.active > b {
  background: var(--accent);
  box-shadow: 0 0 0 4px oklch(0.83 0.16 94 / 0.1);
}

.site-footer {
  padding: 4.5rem 0 7.5rem;
  background: var(--foreground);
  color: white;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
}

.footer-brand small {
  color: oklch(0.68 0.025 150);
}

.footer-brand .brand-mark {
  width: 3.75rem;
  height: 3.75rem;
  border-color: oklch(1 0 0 / 0.18);
  box-shadow: 0 12px 28px oklch(0 0 0 / 0.3);
}

.footer-grid > div > p {
  margin: 1.2rem 0 0;
  color: oklch(0.65 0.025 150);
  font-size: 0.75rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.7rem 2.5rem;
}

.footer-links a {
  min-height: 44px;
  color: oklch(0.77 0.025 150);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3.5rem;
  border-top: 1px solid oklch(1 0 0 / 0.1);
  padding-top: 1.5rem;
  color: oklch(0.57 0.025 150);
  font-size: 0.65rem;
}

.line-contact {
  position: fixed;
  z-index: 90;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  display: flex;
  width: min(calc(100% - 1.5rem), 25rem);
  min-height: 4.5rem;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid color-mix(in oklab, var(--success) 38%, var(--border));
  border-radius: 1rem;
  background: color-mix(in oklab, white 94%, var(--primary-light));
  box-shadow: 0 18px 48px oklch(0.2 0.07 153 / 0.2);
  padding: 0.65rem;
  color: var(--foreground);
  backdrop-filter: blur(16px);
}

.line-contact:focus-within {
  border-color: var(--primary);
  box-shadow: 0 18px 52px oklch(0.2 0.07 153 / 0.25);
}

.line-contact-qr {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.7rem);
  display: grid;
  width: 10.5rem;
  height: 10.5rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 18px 52px oklch(0.2 0.07 153 / 0.24);
  padding: 0.55rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.line-contact:hover .line-contact-qr,
.line-contact.is-qr-open .line-contact-qr,
.line-contact-qr:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.line-contact-qr:hover {
  border-color: var(--primary);
}

.line-contact-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.line-contact-logo {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--line-green);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.line-contact-qr-toggle {
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.line-contact-qr-toggle:hover,
.line-contact.is-qr-open .line-contact-qr-toggle {
  border-color: var(--primary);
  background: var(--primary-light);
}

.line-contact-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  color: inherit;
  line-height: 1.3;
  text-decoration: none;
}

.line-contact-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.line-contact-copy strong {
  margin-top: 0.12rem;
  font-family: var(--font-display);
  font-size: 1rem;
  white-space: nowrap;
}

.line-contact-copy b {
  color: var(--primary);
  user-select: text;
}

.line-contact-button {
  min-width: 4.25rem;
  min-height: 44px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0.75rem;
  background: var(--primary);
  padding: 0.6rem 0.75rem;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.line-contact-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.line-contact-button.is-copied {
  background: var(--line-green);
}

/* Readable public type scale: Thai body copy stays at 16px or larger while
   labels retain clear hierarchy without shrinking into technical fine print. */
body {
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.125rem);
  line-height: 1.65;
}

h1,
h2,
h3,
.brand strong,
.button {
  font-family: var(--font-display);
}

.brand strong { font-size: 1.08rem; }
.brand small { font-size: 0.8rem; }
.site-nav a { font-size: 1rem; }
.eyebrow {
  font-family: var(--font-hand);
  font-size: clamp(0.95rem, 0.9rem + 0.18vw, 1.08rem);
  letter-spacing: 0.025em;
  line-height: 1.4;
}
.hero-lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem); }
.button { font-size: 1rem; }
.promise-list { font-size: 0.95rem; }
.chat-identity strong,
.phone-topbar strong { font-size: 0.98rem; }
.chat-identity small,
.phone-topbar small { font-size: 0.76rem; }
.line-pill { font-size: 0.75rem; }
.timestamp { font-size: 0.75rem; }
.message { font-size: 0.93rem; }
.read-mark,
.message-time { font-size: 0.75rem; }
.tool-event small,
.tool-event strong { font-size: 0.78rem; }
.tool-done { font-size: 0.75rem; }
.chat-input { font-size: 0.86rem; }
.float-card small { font-size: 0.78rem; }
.float-card strong { font-size: 0.9rem; }
.stock-card > i { font-size: 0.75rem; }
.proof-strip { font-size: 1rem; }
.section-heading > p,
.system-copy > p:last-child,
.pilot-copy > p { font-size: 1.05rem; }
.problem-card h3,
.capability-card h3 { font-size: 1.42rem; }
.problem-card p,
.capability-card p { font-size: 1.02rem; }
.flow-tag { font-size: 0.78rem; }
.flow-card h3 { font-size: 1.35rem; }
.flow-card p { font-size: 1rem; }
.flow-result { font-size: 0.88rem; }
.guardrail-strip { font-size: 0.9rem; }
.guardrail-strip b { font-size: 0.76rem; }
.demo-note p { font-size: 0.9rem; }
.demo-transcript .message { font-size: 1rem; }
.inspector-head > span { font-size: 0.85rem; }
.inspector-head small { font-size: 0.78rem; }
.trace-index { font-size: 0.75rem; }
.trace-item strong { font-size: 0.9rem; }
.trace-item small { font-size: 0.75rem; }
.trace-item > i { font-size: 0.75rem; }
.empty-order strong { font-size: 0.9rem; }
.empty-order p { font-size: 0.76rem; }
.order-summary-head { font-size: 0.85rem; }
.order-summary-head i { font-size: 0.75rem; }
.order-summary-row { font-size: 0.82rem; }
.order-summary-row span small { font-size: 0.75rem; }
.order-summary-total { font-size: 0.9rem; }
.inspector-status { font-size: 0.75rem; }
.capability-kicker { font-size: 0.8rem; }
.mini-ui { font-size: 0.85rem; }
.mini-ui i,
.order-ui span,
.order-ui i { font-size: 0.75rem; }
.mapping-ui > span { font-size: 0.82rem; }
.text-link { font-size: 1rem; }
.status-head { font-size: 0.8rem; }
.pilot-status li > span { font-size: 0.75rem; }
.pilot-status li strong { font-size: 0.9rem; }
.pilot-status li small { font-size: 0.75rem; }
.pilot-status li > b { font-size: 0.75rem; }
.footer-grid > div > p { font-size: 0.9rem; }
.footer-links a { font-size: 0.92rem; }
.footer-bottom { font-size: 0.82rem; }
.promise-list span,
.demo-note > span { font-size: 0.75rem; }

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

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

.reveal-delay { transition-delay: 120ms; }
.reveal-delay-sm { transition-delay: 90ms; }
.reveal-delay-lg { transition-delay: 180ms; }

@keyframes pulse {
  0% { opacity: 0.8; transform: scale(0.6); }
  80%, 100% { opacity: 0; transform: scale(1.3); }
}

@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

@keyframes trace-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-message-in {
  from { opacity: 0; transform: translateY(0.85rem) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hero-stock-in {
  from { opacity: 0; transform: translateY(0.85rem) rotate(-2.5deg) scale(0.96); }
  to { opacity: 1; transform: translateY(0) rotate(-2.5deg) scale(1); }
}

@keyframes hero-order-in {
  from { opacity: 0; transform: translateY(0.85rem) rotate(2.2deg) scale(0.96); }
  to { opacity: 1; transform: translateY(0) rotate(2.2deg) scale(1); }
}

@media (min-width: 1021px) {
  .hero-replay {
    left: -2.5rem;
  }
}

@media (max-width: 1020px) {
  .hero {
    padding-top: 8rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-copy {
    max-width: 48rem;
  }

  .hero-visual {
    width: min(100%, 39rem);
    margin-inline: auto;
  }

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

  .line-contact {
    width: min(calc(100% - 1.5rem), 22rem);
    min-height: 4.5rem;
  }

  .line-contact-qr {
    display: none;
  }

  .line-contact-qr-toggle {
    display: none;
  }

  .line-contact-logo {
    display: grid;
  }

  .site-footer {
    padding-bottom: 7.5rem;
  }

  .visual-guide-grid {
    grid-template-columns: 1fr;
  }

  .visual-guide-copy {
    position: static;
    max-width: 48rem;
  }

  .guide-poster {
    width: min(100%, 35rem);
  }

  .section-heading,
  .demo-heading,
  .system-copy {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .section-heading > p,
  .system-copy > p:last-child {
    max-width: 40rem;
  }

  .system-flow {
    grid-template-columns: 1fr;
  }

  .flow-card {
    min-height: auto;
  }

  .flow-card p {
    min-height: auto;
  }

  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .guardrail-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-console {
    grid-template-columns: 1fr;
  }

  .demo-phone {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .demo-inspector {
    min-height: 32rem;
  }

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

  .capability-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .wide-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pilot-card {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 2rem), var(--container));
  }

  .nav-shell {
    min-height: 4.3rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: 99;
    top: 4.3rem;
    right: 1rem;
    left: 1rem;
    display: none;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 0.6rem;
  }

  .nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    display: flex;
    align-items: center;
  }

  .site-nav .nav-cta {
    justify-content: space-between;
    margin: 0.25rem 0 0;
  }

  .hero {
    min-height: auto;
    padding-top: 7.3rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
    letter-spacing: -0.055em;
    line-height: 1.16;
  }

  .hero-lead {
    font-size: 1.05rem;
    line-height: 1.8;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .promise-list {
    gap: 0.8rem 1rem;
  }

  .hero-visual {
    min-height: 31rem;
  }

  .chat-window {
    width: calc(100% - 0.75rem);
    margin-left: 0;
    border-radius: 1.3rem;
    transform: none;
  }

  .chat-body {
    min-height: 21rem;
  }

  .stock-card {
    top: -1.2rem;
    right: -0.2rem;
    transform: none;
  }

  .order-card-mini {
    right: -0.1rem;
    bottom: 2.5rem;
    transform: none;
  }

  .orbit {
    display: none;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 3.5rem;
    padding: 0.6rem;
  }

  .visual-guide-copy h2 {
    font-size: clamp(1.85rem, 9.2vw, 2.4rem);
  }

  .visual-guide-lead {
    font-size: 1rem;
    line-height: 1.8;
  }

  .line-oa-card {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.9rem;
    margin-top: 1.8rem;
  }

  .line-oa-card h3 {
    font-size: 1.15rem;
  }

  .line-oa-card img {
    width: 6rem;
    height: 5.1rem;
  }

  .line-oa-card p {
    font-size: 0.9rem;
  }

  .guide-poster {
    margin-top: 0.5rem;
  }

  .poster-frame {
    border-radius: 1rem;
    padding: 0.35rem;
  }

  .guide-poster figcaption {
    font-size: 0.85rem;
  }

  .section {
    padding: 5.5rem 0;
  }

  .section-heading h2,
  .demo-heading h2,
  .system-copy h2,
  .pilot-copy h2 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
  }

  .problem-grid,
  .capability-grid {
    grid-template-columns: 1fr;
    margin-top: 2.7rem;
  }

  .problem-card {
    min-height: 16rem;
  }

  .problem-card h3 {
    margin-top: 1.8rem;
  }

  .system-flow,
  .demo-console {
    margin-top: 2.8rem;
  }

  .demo-heading {
    gap: 1.7rem;
  }

  .demo-console {
    margin-right: -0.3rem;
    margin-left: -0.3rem;
    border-radius: 1rem;
  }

  .phone-topbar,
  .demo-transcript,
  .demo-actionbar {
    padding-inline: 1rem;
  }

  .demo-transcript {
    min-height: 25rem;
  }

  .demo-transcript .message {
    max-width: 88%;
  }

  .demo-actionbar {
    align-items: stretch;
    flex-direction: column;
  }

  .reset-button {
    width: 100%;
  }

  .demo-inspector {
    min-height: 30rem;
  }

  .capability-card,
  .capability-card:nth-child(3) {
    grid-column: auto;
  }

  .wide-card {
    grid-column: auto;
  }

  .mapping-ui > span {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.6rem;
    font-size: 0.82rem;
  }

  .pilot-section {
    padding-top: 1rem;
  }

  .pilot-card {
    margin-inline: -0.25rem;
    gap: 2.5rem;
    border-radius: 1.2rem;
    padding: 2.2rem 1.4rem;
  }

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

  .pilot-actions .button,
  .pilot-actions .text-link {
    justify-content: center;
  }

  .footer-grid,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    gap: 0.7rem;
  }

  .site-footer {
    padding-bottom: 7.5rem;
  }

  .line-contact {
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

@media (max-width: 390px) {
  html {
    scroll-padding-top: 4.25rem;
    scroll-padding-bottom: 5.25rem;
  }

  .nav-shell {
    min-height: 3.5rem;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    top: 3.5rem;
  }

  .line-contact {
    right: 0.75rem;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    left: auto;
    width: auto;
    max-width: calc(100% - 1.5rem);
    min-height: 3.5rem;
    gap: 0.5rem;
    border-radius: 0.9rem;
    padding: 0.4rem;
  }

  .line-contact-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    font-size: 0.64rem;
  }

  .line-contact-copy small {
    display: none;
  }

  .line-contact-copy {
    flex: 0 1 auto;
  }

  .line-contact-copy strong {
    min-width: 0;
    margin-top: 0;
    overflow: hidden;
    font-size: 0.86rem;
    letter-spacing: -0.025em;
    text-overflow: clip;
  }

  .line-contact-copy strong > span {
    display: none;
  }

  .line-contact-button {
    display: none;
  }

  .stock-card {
    right: -0.4rem;
  }

  .stock-card > i {
    display: none;
  }

  .float-card {
    padding: 0.65rem;
  }

  .tool-event {
    width: 100%;
  }

  .trace-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .trace-item > i {
    display: none;
  }
}

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

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

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

  .hero-replay {
    display: none;
  }
}
