/* ============ DMA — Water Loss Management System ============ */
:root {
  /* Soft surfaces */
  --bg:        #f4f8f6;
  --bg-2:      #eaf3ee;
  --surface:   #ffffff;
  --surface-2: #f7fbf9;

  /* Pastels */
  --mint:      #c9ead9;
  --mint-2:    #b1dec7;
  --sky:       #c8def8;
  --sky-2:     #aacaf2;

  /* Accents (oklch — same chroma/lightness, hue varies) */
  --green:     oklch(0.68 0.12 165);
  --green-ink: oklch(0.42 0.10 168);
  --blue:      oklch(0.66 0.12 235);
  --blue-ink:  oklch(0.40 0.10 240);

  /* Text */
  --ink:       #0d2a26;
  --ink-2:     #1f3b37;
  --muted:     #5a6f6b;
  --muted-2:   #8a9c98;
  --line:      #dbe6e2;
  --line-soft: #e9f0ed;

  /* Status */
  --ok:        #2fae72;
  --warn:      #e0a93b;
  --alert:     #d8553a;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(13,42,38,.04), 0 2px 8px rgba(13,42,38,.04);
  --shadow:    0 1px 2px rgba(13,42,38,.04), 0 10px 30px -10px rgba(13,42,38,.10);
  --shadow-lg: 0 1px 2px rgba(13,42,38,.04), 0 30px 60px -20px rgba(13,42,38,.14);
  --glass:     rgba(255,255,255,0.62);
  --glass-line: rgba(255,255,255,0.85);

  --radius:    18px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --maxw:      1240px;
  --pad:       clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', 'Noto Sans Thai', 'Noto Sans SC', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="th"] body { font-family: 'Noto Sans Thai', 'Manrope', system-ui, sans-serif; line-height: 1.6; }
html[lang="zh"] body { font-family: 'Noto Sans SC', 'Manrope', system-ui, sans-serif; }
html[lang="km"] body { font-family: 'Noto Sans Khmer', 'Manrope', system-ui, sans-serif; line-height: 1.7; }
html[lang="lo"] body { font-family: 'Noto Sans Lao', 'Manrope', system-ui, sans-serif; line-height: 1.65; }
html[lang="th"] .h-display, html[lang="th"] .h-section { letter-spacing: -0.01em; }
html[lang="zh"] .h-display, html[lang="zh"] .h-section { letter-spacing: 0; }

/* Language switcher */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 3px;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.lang-switch button {
  font-family: inherit;
  padding: 6px 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--muted-2);
  letter-spacing: -0.01em;
  transition: background .2s ease, color .2s ease;
  min-width: 36px;
  white-space: nowrap;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active {
  background: var(--ink); color: #f1f8f5;
}
@media (max-width: 640px) {
  .lang-switch { padding: 2px; }
  .lang-switch button { padding: 5px 7px; font-size: 11.5px; min-width: 28px; }
}
@media (max-width: 380px) {
  .lang-switch button { padding: 4px 6px; font-size: 11px; min-width: 24px; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.mono { font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

/* ===== Layout helpers ===== */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
section { position: relative; padding-block: clamp(72px, 9vw, 130px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-ink); font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(178, 222, 199, 0.35);
  border: 1px solid rgba(178, 222, 199, 0.7);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(47,174,114,.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,174,114,.35); }
  50%      { box-shadow: 0 0 0 6px rgba(47,174,114,0); }
}

.h-display {
  font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
  font-size: clamp(44px, 6.0vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "wght" 600;
  text-wrap: balance;
}
.h-display em {
  font-family: 'Instrument Serif', 'Bricolage Grotesque', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--green-ink) 0%, var(--blue-ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[lang="th"] .h-display { font-family: 'Bai Jamjuree', 'Noto Sans Thai', sans-serif; font-weight: 700; letter-spacing: -0.015em; line-height: 1.05; }
html[lang="th"] .h-display em { font-family: 'Bai Jamjuree', 'Noto Sans Thai', sans-serif; font-style: normal; font-weight: 500; }
html[lang="zh"] .h-display { font-family: 'Bricolage Grotesque', 'Noto Sans SC', sans-serif; letter-spacing: -0.02em; line-height: 1.1; }
html[lang="zh"] .h-display em { font-family: 'Noto Sans SC', sans-serif; font-style: normal; font-weight: 500; }
html[lang="km"] .h-display { font-family: 'Bricolage Grotesque', 'Noto Sans Khmer', sans-serif; letter-spacing: -0.01em; line-height: 1.15; }
html[lang="km"] .h-display em { font-family: 'Noto Sans Khmer', sans-serif; font-style: normal; font-weight: 600; }
html[lang="lo"] .h-display { font-family: 'Bricolage Grotesque', 'Noto Sans Lao', sans-serif; letter-spacing: -0.01em; line-height: 1.2; }
html[lang="lo"] .h-display em { font-family: 'Noto Sans Lao', sans-serif; font-style: normal; font-weight: 600; }
.h-section {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.lede {
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 600; font-size: 14.5px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--ink);
  color: #f1f8f5;
  box-shadow: 0 6px 20px -8px rgba(13,42,38,.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(13,42,38,.55); }
.btn-ghost {
  background: rgba(255,255,255,0.7);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-link {
  color: var(--green-ink); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-link:hover .arrow { transform: translateX(3px); }

/* ===== Utility Bar ===== */
.utility-bar {
  position: sticky; top: 0; z-index: 51;
  background: rgba(11, 26, 23, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  color: rgba(241, 248, 245, 0.7);
  font-size: 12px; line-height: 1;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.utility-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 36px; gap: 16px;
}
.util-left, .util-right { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.util-status { display: inline-flex; align-items: center; gap: 7px; color: rgba(241,248,245,0.85); font-weight: 500; letter-spacing: 0.01em; }
.util-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47,174,114,0.18); animation: pulse 2.4s ease-in-out infinite; }
.util-tag { color: rgba(241,248,245,0.55); letter-spacing: 0.04em; font-size: 11.5px; }
.util-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.14); display: inline-block; }
.util-link { color: rgba(241,248,245,0.7); transition: color .15s ease; font-weight: 500; }
.util-link:hover { color: rgba(255,255,255,1); }
.utility-bar .lang-switch {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px;
}
.utility-bar .lang-switch button {
  color: rgba(241,248,245,0.6);
  padding: 4px 8px; font-size: 11.5px;
}
.utility-bar .lang-switch button:hover { color: rgba(255,255,255,1); }
.utility-bar .lang-switch button.is-active {
  background: rgba(255,255,255,0.92); color: var(--ink);
}
.brand-name { font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
@media (max-width: 880px) {
  .util-tag, .util-link, .util-sep { display: none; }
  .utility-bar .container { height: 34px; gap: 10px; }
}
@media (max-width: 560px) {
  .utility-bar { font-size: 11px; }
  .utility-bar .container { height: 32px; }
  .site-header { top: 32px; }
  .utility-bar .lang-switch button { padding: 3px 6px; font-size: 11px; min-width: 24px; }
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 36px; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(244, 248, 246, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  border-color: var(--line-soft);
  background: rgba(244, 248, 246, 0.85);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 18px;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 4px 14px -6px rgba(13,42,38,.18);
}
.brand-mark svg { width: 18px; height: 18px; color: var(--ink); }
.brand small {
  font-weight: 500; color: var(--muted); font-size: 12px;
  margin-left: 2px; letter-spacing: 0;
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  white-space: nowrap;
  transition: background .2s ease;
}
.nav a:hover { background: rgba(255,255,255,0.7); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Hamburger */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  transition: background .2s ease;
  flex-shrink: 0;
}
.hamburger:hover { background: #fff; }
.hamburger span {
  display: block; width: 18px; height: 1.8px;
  background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .3s ease, opacity .2s ease;
}
.hamburger span::before, .hamburger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.8px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s ease;
}
.hamburger span::before { top: -6px; }
.hamburger span::after  { top:  6px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; left: 0; right: 0; top: 72px;
  background: rgba(244, 248, 246, 0.96);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 18px var(--pad) 24px;
  z-index: 49;
  transform: translateY(-12px); opacity: 0;
  visibility: hidden;
  transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
  pointer-events: none;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; transition: transform .3s ease, opacity .3s ease, visibility 0s; }
.mobile-drawer .m-nav { display: grid; gap: 2px; margin-bottom: 14px; }
.mobile-drawer .m-nav a {
  display: block; padding: 12px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  border: 1px solid transparent;
}
.mobile-drawer .m-nav a:hover { background: rgba(255,255,255,0.8); border-color: var(--line-soft); }
.mobile-drawer .m-ctas { display: grid; gap: 8px; }
.mobile-drawer .m-ctas .btn { justify-content: center; padding: 14px 20px; }

/* Header breakpoints */
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .brand small { display: none; }
  .hamburger { display: inline-flex; }
}
@media (max-width: 640px) {
  .nav-cta .btn-primary {
    padding: 10px 14px; font-size: 13.5px;
  }
}
@media (max-width: 460px) {
  /* hide primary CTA text below super-narrow, leave only arrow */
  .site-header .nav-cta .btn-primary { padding: 10px 12px; }
  .site-header .nav-cta .btn-primary span:not(.arrow) { display: none; }
}

/* ===== Animated gradient blobs (page bg) ===== */
.bg-aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  overflow: hidden;
}
.bg-aurora::before, .bg-aurora::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .55;
}
.bg-aurora::before {
  width: 60vw; height: 60vw; left: -10vw; top: -20vw;
  background: radial-gradient(circle at 30% 30%, var(--mint) 0%, transparent 60%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.bg-aurora::after {
  width: 55vw; height: 55vw; right: -15vw; top: 10vh;
  background: radial-gradient(circle at 70% 30%, var(--sky) 0%, transparent 60%);
  animation: drift2 26s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vw) scale(1.1); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6vw, 8vw) scale(1.15); }
}

/* ===== HERO ===== */
.hero { padding-top: clamp(36px, 6vw, 88px); padding-bottom: 60px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 70px);
  align-items: center;
}
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy .h-display { margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 32px; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 36px;
  display: flex; align-items: center; gap: 18px;
  color: var(--muted); font-size: 13px;
}
.hero-trust .iso-badges { display: flex; gap: 14px; }
.hero-trust .iso-badges span {
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.7);
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-2);
}

/* Hero dashboard mockup */
.hero-mock {
  position: relative;
  aspect-ratio: 11/9;
}
.mock-frame {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.65));
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.hero-mock:hover .mock-frame { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }

.mock-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 9px; height: 9px; border-radius: 50%; background: #d8e2de; }
.mock-dots span:nth-child(1) { background: #f1bdac; }
.mock-dots span:nth-child(2) { background: #f1d8a3; }
.mock-dots span:nth-child(3) { background: #b9dec8; }
.mock-url {
  flex: 1; font-size: 11px; color: var(--muted); padding: 4px 10px;
  background: var(--bg-2); border-radius: 6px; font-family: 'JetBrains Mono', monospace;
}
.mock-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; color: var(--ok); letter-spacing: 0.08em;
}
.mock-live::before {
  content:''; width: 6px; height: 6px; border-radius:50%; background: var(--ok);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(0.7); }
}

.mock-body {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 12px; padding: 14px;
  height: calc(100% - 50px);
}
.mock-map {
  position: relative;
  border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, #d6ecdf 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, #d5e6f5 0%, transparent 50%),
    #eaf2ee;
  border: 1px solid var(--line-soft);
}
.mock-map svg { width: 100%; height: 100%; }
.map-grid { stroke: rgba(13,42,38,0.06); stroke-width: 1; fill: none; }
.map-zone {
  fill: rgba(178, 222, 199, 0.32);
  stroke: var(--green); stroke-width: 1.2; stroke-dasharray: 4 3;
}
.map-zone.alert { fill: rgba(216, 85, 58, 0.18); stroke: var(--alert); }
.map-pipe {
  fill: none; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 6 4;
  animation: flowDash 1.2s linear infinite;
}
.map-pipe.blue   { stroke: var(--blue-ink); opacity: .55; }
.map-pipe.green  { stroke: var(--green-ink); opacity: .55; }
@keyframes flowDash { to { stroke-dashoffset: -100; } }
.map-pin {
  fill: var(--surface); stroke: var(--green-ink); stroke-width: 2;
}
.map-pin.alert { stroke: var(--alert); }
.pin-pulse {
  transform-origin: center; transform-box: fill-box;
  animation: pinPulse 2.2s ease-out infinite;
}
@keyframes pinPulse {
  0% { opacity: .8; r: 6; }
  100% { opacity: 0; r: 22; }
}

.mock-side { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; min-height: 0; }
.mock-kpi {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.mock-kpi .label { font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.mock-kpi .value { font-size: 22px; font-weight: 700; margin-top: 2px; letter-spacing: -0.02em; }
.mock-kpi .value small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.mock-kpi .trend { font-size: 11px; color: var(--ok); font-weight: 600; }
.mock-kpi .trend.down { color: var(--alert); }
.mock-chart {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 12px;
  min-height: 0;
  display: flex; flex-direction: column;
}
.mock-chart .ch-head { display:flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mock-chart .ch-title { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.mock-chart svg { width: 100%; flex: 1; min-height: 0; }
.flow-line {
  fill: none; stroke: var(--blue-ink); stroke-width: 1.8;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: drawLine 4s ease-out forwards infinite;
}
.flow-area { fill: url(#flowGrad); opacity: 0; animation: fadeArea .8s ease-out 1.2s forwards infinite; }
@keyframes drawLine { 0% { stroke-dashoffset: 1000; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes fadeArea { 0%, 100% { opacity: .55; } }

/* Floating cards on hero */
.float-card {
  position: absolute; z-index: 2;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.float-card.fc-1 { top: 14%; left: -4%; animation-delay: -1s; }
.float-card.fc-2 { bottom: 14%; right: -2%; animation-delay: -3s; }
@media (max-width: 1100px) {
  .float-card.fc-1 { left: 4%; }
  .float-card.fc-2 { right: 4%; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.float-card .row { display:flex; align-items:center; gap:10px; }
.float-card .icon {
  width: 30px; height: 30px; border-radius: 8px;
  display:grid; place-items:center; flex-shrink: 0;
}
.float-card .icon.green { background: rgba(178,222,199,.55); color: var(--green-ink); }
.float-card .icon.blue  { background: rgba(170,202,242,.55); color: var(--blue-ink); }
.float-card .label { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.float-card .value { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.float-card .value small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 2px; }

/* ===== TRUST BAR ===== */
.trust-bar { padding-block: 48px; }
.trust-bar .container {
  display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center;
}
@media (max-width: 1020px) { .trust-bar .container { grid-template-columns: 1fr; } }
.trust-bar .label {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.trust-logos {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 24px; align-items: center;
}
@media (max-width: 1180px) { .trust-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .trust-logos { grid-template-columns: repeat(2, 1fr); } }
.trust-logos .org {
  color: var(--muted); font-weight: 600;
  font-size: 14px; letter-spacing: -0.01em;
  opacity: .75; transition: opacity .2s ease;
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.trust-logos .org span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trust-logos .org:hover { opacity: 1; }
.trust-logos .org .glyph { width: 22px; height: 22px; flex-shrink: 0; }

/* ===== FEATURES ===== */
.features-head { display:flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; }
.features-head .lede { margin: 0; }
@media (max-width: 760px) { .features-head { flex-direction: column; align-items: start; } }

.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1020px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .features-grid { grid-template-columns: 1fr; } }

.feature {
  position: relative;
  padding: 26px 24px;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.feature::before {
  content:''; position:absolute; inset:0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(178,222,199,.35), transparent 50%);
  opacity: 0; transition: opacity .35s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint-2); }
.feature:hover::before { opacity: 1; }
.feature .ficon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(178,222,199,.6), rgba(170,202,242,.4));
  border: 1px solid rgba(255,255,255,0.8);
  color: var(--ink);
  margin-bottom: 22px;
}
.feature .ficon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ===== DASHBOARD PREVIEW SECTION ===== */
.preview { padding-block: clamp(80px, 10vw, 140px); }
.preview-head { text-align: center; margin-bottom: 56px; }
.preview-head .eyebrow { margin-bottom: 18px; }
.preview-head .lede { margin-inline: auto; margin-top: 16px; }

.dash {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dash-head {
  display:flex; align-items:center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.dash-head .left { display:flex; gap:14px; align-items:center; }
.dash-head .h-title { font-weight: 600; font-size: 14.5px; }
.dash-head .crumb { color: var(--muted); font-size: 13px; }
.dash-head .crumb b { color: var(--ink); font-weight: 600; }
.dash-head .right { display:flex; gap:10px; align-items:center; }
.live-pill {
  display:inline-flex; align-items:center; gap:8px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(47,174,114,.1); color: var(--green-ink);
  font-size: 12px; font-weight: 600;
}
.live-pill::before {
  content:''; width: 7px; height: 7px; border-radius:50%; background: var(--ok);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.dash-head .time { font-size: 12px; color: var(--muted); }

.dash-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--line-soft);
}
@media (max-width: 880px) { .dash-body { grid-template-columns: 1fr; } }
.dash-cell { background: var(--surface); padding: 22px; min-height: 0; }

.kpis {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft); padding: 0;
}
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  padding: 20px 22px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
}
.kpi .label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kpi .value { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.kpi .value small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.kpi .meta { display:flex; align-items:center; gap: 8px; font-size: 12px; color: var(--muted); }
.kpi .meta .delta { font-weight: 600; }
.kpi .meta .delta.up { color: var(--ok); }
.kpi .meta .delta.down { color: var(--alert); }

/* Big map */
.dash-map {
  position: relative;
  background:
    radial-gradient(ellipse at 25% 25%, #dceee5 0%, transparent 50%),
    radial-gradient(ellipse at 75% 75%, #d8e8f6 0%, transparent 50%),
    #eef4f1;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
}
.dash-map .map-overlay {
  position: absolute; top: 16px; left: 16px;
  display:flex; gap:6px;
}
.dash-map .chip {
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line); border-radius: 8px;
  padding: 6px 10px; font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.dash-map .chip .sq { width: 8px; height: 8px; border-radius: 2px; }
.dash-map .map-legend {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line); border-radius: 10px;
  padding: 10px 12px; font-size: 11px;
}
.dash-map .map-legend .row { display:flex; align-items:center; gap:8px; margin-block: 2px; color: var(--ink-2); }
.dash-map .map-legend .sw { width: 14px; height: 6px; border-radius: 3px; }
.dash-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Right panel charts */
.right-panel { display: flex; flex-direction: column; gap: 22px; }
.panel-card {
  border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 16px;
  background: var(--surface);
}
.panel-card .h { display:flex; justify-content: space-between; align-items:center; margin-bottom: 12px; }
.panel-card .h .t { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.panel-card .h .v { font-size: 13px; font-weight: 700; }
.panel-card .h .v small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.panel-card svg { width: 100%; height: 90px; }

/* Alerts panel */
.alerts {
  grid-column: 1 / -1;
  padding: 22px;
}
.alerts .a-head { display:flex; justify-content: space-between; align-items:center; margin-bottom: 14px; }
.alerts .a-head .t { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.alerts table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.alerts thead th {
  text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.alerts tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.alerts tbody tr:last-child td { border-bottom: 0; }
.alerts tbody tr {
  transition: background .2s ease;
}
.alerts tbody tr:hover { background: var(--surface-2); }
.sev {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
}
.sev::before { content:''; width:6px; height:6px; border-radius: 50%; }
.sev.high { background: rgba(216,85,58,.12); color: var(--alert); }
.sev.high::before { background: var(--alert); animation: pulseDot 1.4s ease-in-out infinite; }
.sev.med  { background: rgba(224,169,59,.15); color: var(--warn); }
.sev.med::before { background: var(--warn); }
.sev.low  { background: rgba(47,174,114,.12); color: var(--green-ink); }
.sev.low::before { background: var(--ok); }
.alerts .id { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--muted); }
.alerts .loc b { font-weight: 600; }
.alerts .loc div { color: var(--muted); font-size: 12px; }
.alerts .ago { color: var(--muted); font-size: 12px; }

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 1020px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefits-list { display: grid; gap: 4px; margin-top: 36px; }
.benefit {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  cursor: default;
}
.benefit:last-child { border-bottom: 1px solid var(--line-soft); }
.benefit .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--green-ink); font-weight: 600;
}
.benefit h4 { margin: 0 0 2px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.benefit p  { margin: 0; font-size: 14px; color: var(--muted); }
.benefit .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--ink); font-weight: 600;
  text-align: right;
}
.benefit .meta small { display:block; font-weight: 500; color: var(--muted); font-size: 11px; }

/* Benefits visual */
.benefits-visual {
  position: sticky; top: 100px;
  background: linear-gradient(160deg, rgba(178,222,199,.32), rgba(170,202,242,.32));
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  aspect-ratio: 4/4.4;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.benefits-visual .bv-title {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-ink); font-weight: 700;
}
.bv-stat { font-family: 'Manrope', sans-serif; font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.bv-stat small { font-size: 0.4em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.bv-caption { color: var(--ink-2); font-size: 15px; max-width: 30ch; }
.bv-bars {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px;
  align-items: end; height: 110px;
}
.bv-bars span {
  background: linear-gradient(180deg, var(--blue-ink), var(--blue));
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
  transition: transform .6s ease;
}

/* ===== CTA ===== */
.cta-section {
  padding-block: clamp(60px, 8vw, 100px);
}
.cta-card {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(178,222,199,.5) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(170,202,242,.5) 0%, transparent 50%),
    var(--surface);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cta-card::after {
  content:''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 110%, rgba(178,222,199,.3) 0%, transparent 50%);
  pointer-events: none;
}
.cta-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
@media (max-width: 880px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-grid .h-section { letter-spacing: -0.025em; }
.cta-grid .lede { margin-top: 14px; }
.cta-left { min-width: 0; }
.cta-actions { display:flex; gap: 12px; flex-direction: column; margin-top: 28px; }
@media (min-width: 540px) { .cta-actions { flex-direction: row; flex-wrap: wrap; } }

/* ===== CTA visual ===== */
.cta-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  width: 100%;
  margin-left: auto;
  min-width: 0;
}
@media (max-width: 880px) {
  .cta-visual { margin: 8px auto 0; max-width: 380px; }
}
.cv-stage { position: absolute; inset: 0; }
.cv-svg { width: 100%; height: 100%; display: block; }

/* rotating ring/orbit */
.cv-orbit { transform-origin: 210px 210px; animation: cvSpin 32s linear infinite; }
@keyframes cvSpin { to { transform: rotate(360deg); } }

/* pulses */
.cv-pulse { transform-origin: 210px 210px; opacity: 0; }
.cv-pulse-1 { animation: cvPulse 4.6s ease-out infinite; }
.cv-pulse-2 { animation: cvPulse 4.6s ease-out infinite; animation-delay: 2.3s; }
@keyframes cvPulse {
  0%   { transform: scale(.4); opacity: .8; }
  80%  { opacity: 0; }
  100% { transform: scale(4.2); opacity: 0; }
}

/* flowing pipes */
.cv-pipe-flow {
  stroke-dasharray: 6 10;
  animation: cvDash 6s linear infinite;
}
.cv-flow-b { animation-duration: 8s; animation-direction: reverse; }
@keyframes cvDash { to { stroke-dashoffset: -160; } }

/* nodes */
.cv-node { filter: drop-shadow(0 0 6px rgba(47,174,114,.35)); }
.cv-node.n1 { animation: cvBlink 3.2s ease-in-out infinite; }
.cv-node.n2 { animation: cvBlink 3.2s ease-in-out infinite .8s; }
.cv-node.n3 { animation: cvBlink 3.2s ease-in-out infinite 1.6s; }
@keyframes cvBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* floating chips */
.cv-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(13,42,38,.08);
  box-shadow: 0 14px 30px -16px rgba(13,42,38,.25), 0 2px 6px -2px rgba(13,42,38,.08);
  backdrop-filter: blur(10px);
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap;
  animation: cvFloat 7s ease-in-out infinite;
}
html[lang="th"] .cv-chip, html[lang="zh"] .cv-chip { font-size: 12px; }
.cv-chip-label { color: var(--muted-2); font-weight: 500; }
.cv-chip-val { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.cv-chip-1 { top: 8%;  left: -6%;  animation-delay: -1s; }
.cv-chip-2 { top: 46%; right: -8%; animation-delay: -3s; }
.cv-chip-3 { bottom: 8%; left: 4%; animation-delay: -5s; }
@media (max-width: 880px) {
  .cv-chip-1 { left: 0; }
  .cv-chip-2 { right: 0; }
  .cv-chip-3 { left: 6%; }
}
@keyframes cvFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.cv-dot {
  width: 8px; height: 8px; border-radius: 50%;
  position: relative;
}
.cv-dot.live  { background: var(--alert); box-shadow: 0 0 0 0 rgba(216,85,58,.55); animation: cvDot 1.8s ease-out infinite; }
.cv-dot.blue  { background: var(--blue-ink); }
.cv-dot.green { background: var(--green-ink); }
@keyframes cvDot {
  0%   { box-shadow: 0 0 0 0 rgba(216,85,58,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(216,85,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(216,85,58,0); }
}
.cta-contact {
  margin-top: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px;
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  font-size: 13px;
}
.cta-contact dt { color: var(--muted); margin-bottom: 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.cta-contact dd { margin: 0; font-weight: 600; color: var(--ink); }

/* ===== FOOTER ===== */
.site-foot {
  border-top: 1px solid var(--line-soft);
  padding-block: 60px 30px;
  margin-top: 40px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h5 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 14px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-col a { font-size: 14px; color: var(--ink-2); transition: color .2s ease; }
.foot-col a:hover { color: var(--green-ink); }
.foot-blurb { color: var(--muted); font-size: 14px; max-width: 30ch; margin-top: 14px; }
.foot-bottom {
  display:flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  font-size: 12.5px; color: var(--muted);
}
.foot-bottom .iso { display: flex; gap: 12px; }
.foot-bottom .iso span {
  padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line);
  font-weight: 600; font-size: 11px; letter-spacing: 0.05em; color: var(--ink-2);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive tuning ===== */
@media (max-width: 880px) {
  section { padding-block: clamp(56px, 11vw, 90px); }
  .hero-mock { aspect-ratio: 4/3.2; }
  .float-card.fc-1 { left: 0; top: 0; }
  .float-card.fc-2 { right: 0; bottom: 0; }
  .mock-body { grid-template-columns: 1.2fr 1fr; }
  .features-grid { gap: 12px; }
  .dash-head { flex-wrap: wrap; gap: 10px; }
  .dash-head .crumb { font-size: 12px; }
  .alerts { padding: 16px 14px; overflow-x: auto; }
  .alerts table { min-width: 640px; }
  .benefit { grid-template-columns: auto 1fr; padding: 18px 0; }
  .benefit .meta { grid-column: 2; text-align: left; font-size: 12px; }
  .benefits-visual { position: static; aspect-ratio: auto; padding: 24px; }
  .cta-contact { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  :root { --pad: 18px; }
  .site-header .container { height: 64px; }
  .mobile-drawer { top: 64px; max-height: calc(100vh - 64px); }
  .h-display { font-size: clamp(32px, 8vw, 44px); }
  .h-section { font-size: clamp(26px, 6.5vw, 34px); }
  .lede { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .hero-trust { flex-direction: column; align-items: start; gap: 10px; }
  .hero-mock { display: none; } /* mock is too dense to be useful at this width */
  .features-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; padding: 22px 20px; }
  .kpi { padding: 16px 18px; }
  .kpi .value { font-size: 26px; }
  .panel-card svg { height: 70px; }
  .dash-map { min-height: 280px; }
  .dash-head .right { width: 100%; justify-content: space-between; }
  .alerts thead th, .alerts tbody td { font-size: 12.5px; padding: 8px 8px; }
  .cta-card { padding: 28px 22px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { justify-content: center; }
  .foot-bottom { flex-direction: column; align-items: start; gap: 12px; }
}
@media (max-width: 420px) {
  .nav-cta { gap: 6px; }
}
