:root {
  --navy: #07111f;
  --navy-2: #0c1a2e;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --white: #ffffff;
  --indigo: #4f46e5;
  --indigo-2: #6366f1;
  --teal: #2dd4bf;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --rose: #fb7185;
  --ok: #10b981;
  --shadow: 0 24px 80px rgba(7, 17, 31, 0.18);
  --radius: 22px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sarabun", "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

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

button,
.lang-btn,
.nav-cta {
  font-family: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 12px;
  z-index: 80;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.is-light {
  background: rgba(248, 250, 252, 0.86);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.site-header.is-light .brand {
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

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

.nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.site-header.is-light .nav a {
  color: var(--muted);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-light .lang-switch {
  background: #e2e8f0;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-header.is-light .lang-btn {
  color: var(--muted);
}

.lang-btn.is-active {
  background: var(--indigo);
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--indigo);
  color: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  width: 42px;
  height: 42px;
}

.site-header.is-light .menu-toggle {
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(45, 212, 191, 0.18), transparent 50%),
    radial-gradient(700px 420px at 10% 20%, rgba(79, 70, 229, 0.35), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, #0a1830 68%, #10233f 100%);
  color: #fff;
  padding: 72px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 14px;
  font-family: "DM Sans", "Sarabun", sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 38rem;
  color: #cbd5e1;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 650;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(180deg, var(--indigo-2), var(--indigo));
  color: #fff;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.35);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: #94a3b8;
  font-size: 0.86rem;
}

.trust-row strong {
  color: #e2e8f0;
}

/* Product stage */
.stage {
  position: relative;
  min-height: 520px;
}

.dash {
  background: #0f2744;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dash-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #0b1d33;
  color: #94a3b8;
  font-size: 0.78rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

.dot.g {
  background: #22c55e;
}

.dot.a {
  background: #f59e0b;
}

.dot.r {
  background: #fb7185;
}

.dash-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 320px;
}

.stats {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
}

.stat span {
  display: block;
  color: #94a3b8;
  font-size: 0.72rem;
}

.stat b {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.map-pane {
  position: relative;
  background:
    radial-gradient(circle at 30% 40%, rgba(45, 212, 191, 0.18), transparent 28%),
    linear-gradient(180deg, #12304f, #0c223b);
}

.map-svg {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.18);
}

.pin.offline {
  background: #64748b;
  box-shadow: 0 0 0 8px rgba(100, 116, 139, 0.18);
}

.pin-label {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #0b1220;
  color: #fff;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
}

.phone {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 210px;
  background: #020617;
  border: 6px solid #1e293b;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.phone-notch {
  width: 78px;
  height: 12px;
  margin: 8px auto 0;
  background: #0f172a;
  border-radius: 999px;
}

.phone-body {
  padding: 12px;
  color: #e2e8f0;
}

.job {
  background: #111827;
  border-radius: 14px;
  padding: 10px;
  margin-top: 8px;
}

.job small {
  color: #94a3b8;
}

.chip {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

/* Sections */
section {
  padding: 84px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.kicker {
  color: var(--indigo);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 8px 0 10px;
  font-family: "DM Sans", "Sarabun", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section-head p {
  color: var(--muted);
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  min-height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.icon-blob {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: #eef2ff;
  color: var(--indigo);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

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

.card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.personas {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.persona {
  border-radius: 22px;
  padding: 24px;
  color: #fff;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.persona.fleet {
  background: linear-gradient(160deg, #312e81, #1e1b4b);
}

.persona.factory {
  background: linear-gradient(160deg, #134e4a, #115e59);
}

.persona.driver {
  background: linear-gradient(160deg, #1e3a8a, #0f172a);
}

.persona ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.persona h3 {
  margin: 10px 0 0;
}

.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.platform {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
}

.platform.wide {
  grid-column: 1 / -1;
  background:
    linear-gradient(180deg, rgba(79, 70, 229, 0.06), transparent 40%),
    #fff;
}

.os-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.os {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--indigo);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--line);
}

.num {
  font-family: "DM Sans", sans-serif;
  font-size: 1.4rem;
  color: var(--indigo);
  font-weight: 800;
}

.cta-band {
  background: linear-gradient(120deg, #1e1b4b, #0f766e);
  color: #fff;
}

.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
}

footer {
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .dash-body,
  .feature-grid,
  .persona-grid,
  .platforms,
  .steps,
  .cta-band .wrap,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-actions .nav-cta {
    display: none;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    flex-direction: column;
    padding: 16px 20px 22px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .phone {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 18px auto 0;
  }

  .stage {
    min-height: 0;
  }

  .cta-band .wrap,
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

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