:root {
  --navy: #0c2340;
  --navy-2: #163457;
  --navy-3: #1f4670;
  --ink: #142133;
  --muted: #5b6878;
  --line: #dde3ea;
  --bg: #f6f8fb;
  --alt: #eef2f7;
  --accent: #0b6b63;
  --accent-soft: #e2f3f1;
  --accent-bright: #5eead4;
  --mango: #fbbf24;
  --mango-dark: #f59e0b;
  --on-navy: #cbd5e1;
  --radius: 14px;
  --shadow: 0 10px 30px rgb(16 32 56 / 8%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.3;
  text-wrap: balance;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

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

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(12 35 64 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

/* Logo: same tile + teal line-icon pattern as TM30Auto. */
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #0b2a4a;
  color: var(--accent-bright);
  box-shadow: inset 0 0 0 1px rgb(94 234 212 / 18%);
}

.top .brand-mark {
  background: rgb(255 255 255 / 10%);
}

.logo {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav a {
  color: var(--on-navy);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 8px;
}

.nav a:hover {
  color: #fff;
  background: rgb(255 255 255 / 8%);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgb(255 255 255 / 6%);
}

.lang button {
  background: transparent;
  color: var(--on-navy);
  border: 0;
  border-radius: 7px;
  padding: 4px 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: var(--navy);
  background: #fff;
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-arrow::after {
  content: "→";
  transition: transform 0.15s;
}

.btn-arrow:hover::after {
  transform: translateX(3px);
}

.btn-mango {
  background: var(--mango);
  color: var(--navy);
}

.btn-mango:hover {
  background: var(--mango-dark);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-3);
}

.btn-ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 25%);
}

.btn-ghost:hover {
  border-color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgb(11 107 99 / 45%), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgb(251 191 36 / 12%), transparent 60%),
    var(--navy);
  padding: 72px 0 96px;
}

.hero::before {
  /* faint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  pointer-events: none;
}

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

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-dark {
  color: var(--mango);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 32px;
  max-width: 560px;
  color: var(--on-navy);
  font-size: 19px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--on-navy);
}

.ticks li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--mango);
  font-weight: 700;
}

/* Hero illustration */

.demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.passport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 125 / 88;
  background: linear-gradient(160deg, #fdfaf2, #efe7d4);
  color: #4a4033;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 35%);
  transform: rotate(-4deg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pp-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #7a6a4f;
}

.pp-chip {
  width: 16px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, #d8b55a, #b58b2a);
}

.pp-body {
  display: flex;
  gap: 10px;
  flex: 1;
}

.pp-photo {
  width: 32%;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 38%, #b9a98c 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% 100%, #b9a98c 0 45%, transparent 46%),
    #e1d6bf;
}

.pp-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.pp-lines span {
  height: 5px;
  border-radius: 3px;
  background: #d3c6aa;
}

.pp-lines .short {
  width: 60%;
}

.pp-mrz {
  display: flex;
  flex-direction: column;
  font: 600 7.5px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  background: rgb(255 255 255 / 55%);
  border-radius: 4px;
  padding: 3px 5px;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgb(251 191 36 / 35%), transparent);
  border-bottom: 2px solid var(--mango);
  animation: scan 3.2s ease-in-out infinite;
}

@keyframes scan {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(340%); }
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.flow-label {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--mango);
}

.flow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mango);
  animation: pulse 1.6s ease-in-out infinite;
}

.flow-dot:last-child {
  animation-delay: 0.8s;
}

@keyframes pulse {
  50% { opacity: 0.25; transform: scale(0.7); }
}

.sheet {
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgb(0 0 0 / 35%);
  transform: rotate(3deg);
}

.sheet-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f4;
  border-bottom: 1px solid var(--line);
}

.sheet-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #1d7a46;
  color: #fff;
  font-size: 10px;
}

.sheet-ok {
  margin-left: auto;
  color: var(--accent);
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 1.3fr;
  font: 500 10px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.sheet-grid span {
  padding: 8px 8px;
  border-bottom: 1px solid #eef1f4;
  border-right: 1px solid #eef1f4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-grid .th {
  font-family: inherit;
  font-weight: 700;
  color: var(--muted);
  background: #fafbfc;
}

.sheet-grid .new {
  background: #fff7dd;
  font-weight: 700;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

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

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--navy);
}

.section-lead {
  max-width: 640px;
  margin: -4px 0 36px;
  color: var(--muted);
  font-size: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.section-lead + .grid-3 {
  margin-top: 0;
}

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

.card h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--navy);
}

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

.icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Product ---------- */

.product {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.product-name {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.product-tag {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.pill {
  display: inline-block;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--alt);
  color: var(--muted);
}

.pill-live {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

.pill-next {
  background: #fff4d1;
  color: #8a5a00;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--mango);
  font-weight: 800;
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--navy);
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.product-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}

.facts li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--accent);
}

/* ---------- Roadmap ---------- */

.road {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.road:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgb(16 32 56 / 12%);
}

.road h3 {
  margin-top: 4px;
}

/* ---------- About ---------- */

.section-navy {
  background: var(--navy);
  color: var(--on-navy);
}

.section-navy h2 {
  color: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--navy-2);
  border: 1px solid rgb(255 255 255 / 8%);
}

.principles h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #fff;
}

.principles h3::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: var(--mango);
}

.principles p {
  margin: 0;
  font-size: 15px;
}

/* ---------- Contact ---------- */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 44px;
  border-radius: 22px;
  background:
    radial-gradient(500px 260px at 100% 0%, rgb(11 107 99 / 55%), transparent 70%),
    var(--navy-2);
  color: var(--on-navy);
}

.cta-band h2 {
  margin: 0 0 6px;
  color: #fff;
}

.cta-band p {
  margin: 0;
  font-size: 18px;
}

.cta-band-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.mail {
  color: var(--on-navy);
  font-size: 15px;
}

/* ---------- Footer ---------- */

.foot {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 40px;
}

.foot p {
  margin: 6px 0 0;
}

.brand-foot {
  color: var(--navy);
  font-size: 17px;
}

.foot-links {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.foot-links a {
  color: var(--ink);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--accent);
}

.foot-legal {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .demo {
    max-width: 520px;
  }

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

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .top-right {
    margin-left: auto;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .grid-3,
  .steps,
  .principles {
    grid-template-columns: 1fr;
  }

  .product,
  .cta-band {
    padding: 26px;
  }

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

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

  .flow {
    display: none;
  }

  .passport {
    max-width: 300px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .scanline {
    display: none;
  }
}
