:root {
  --navy: #0b1f3a;
  --blue: #1769e0;
  --blue-dark: #0c55c6;
  --sky: #40b7ff;
  --pale: #eaf5ff;
  --muted: #52657a;
  --line: #d7e9f8;
  --white: #fff;
  --shell: 1380px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--navy);
  background: var(--white);
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.shell {
  width: min(calc(100% - 96px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

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

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand > span > span { color: var(--blue); }

.brand-mark {
  width: 42px;
  height: 49px;
  flex: 0 0 auto;
  fill: var(--blue);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(23, 105, 224, .2);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.button:hover {
  background: var(--blue-dark);
  box-shadow: 0 16px 34px rgba(23, 105, 224, .28);
  transform: translateY(-2px);
}

.button:focus-visible,
.brand:focus-visible {
  outline: 4px solid var(--sky);
  outline-offset: 4px;
}

.button-small {
  min-width: 214px;
  padding: 12px 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 32%, rgba(64, 183, 255, .16), transparent 34%),
    linear-gradient(110deg, #fff 0%, #fff 42%, #f5fbff 100%);
}

.hero::after {
  position: absolute;
  right: -12%;
  bottom: -70px;
  width: 70%;
  height: 170px;
  border-radius: 50% 0 0 0;
  background: rgba(217, 239, 255, .55);
  content: "";
  transform: rotate(-5deg);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 585px;
  grid-template-columns: minmax(600px, 1fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 24px;
  padding-block: 58px 40px;
}

.hero-copy { padding-left: 20px; }

.hero h1 {
  max-width: 670px;
  margin: 0;
  font-size: clamp(3rem, 3.6vw, 4rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.16;
}

.hero-copy > p {
  margin: 26px 0 32px;
  color: var(--muted);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.7;
}

.button-primary {
  min-width: 280px;
  min-height: 72px;
  padding: 16px 32px;
  font-size: 1.35rem;
}

.button-primary svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  transition: transform .2s ease;
}

.button-primary:hover svg { transform: translateX(4px); }

.route-scene { min-width: 0; }

.route-scene > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.map-grid {
  stroke: #b9daf3;
  stroke-linecap: round;
  stroke-width: 2;
  opacity: .54;
}

.route-halo,
.route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-halo { stroke: #fff; stroke-width: 26; }
.route-line { stroke: var(--blue); stroke-width: 12; }

.vehicle { animation: vehicleFloat 3.4s ease-in-out infinite; }

.features {
  position: relative;
  z-index: 2;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 52px;
}

.feature {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: center;
  padding: 8px 44px;
}

.feature + .feature { border-left: 1px solid var(--line); }

.feature-icon {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border: 1px solid #c9e4f8;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8fcff, #dff1ff);
  box-shadow: inset 0 0 24px rgba(23, 105, 224, .06);
}

.feature-icon svg {
  width: 42px;
  height: 42px;
  fill: var(--blue);
}

.feature-icon .stroke {
  fill: none;
  stroke: var(--blue);
  stroke-dasharray: 2 3;
  stroke-linecap: round;
  stroke-width: 2;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.35;
}

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

.site-footer { background: var(--white); }

.footer-inner {
  display: flex;
  min-height: 98px;
  align-items: center;
  gap: 44px;
}

.brand-footer { font-size: 1.3rem; }
.brand-footer .brand-mark { width: 32px; height: 38px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .92rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes vehicleFloat {
  0%, 100% { transform: translate(342px, 256px); }
  50% { transform: translate(342px, 248px); }
}

@media (max-width: 1100px) {
  .shell { width: min(calc(100% - 56px), var(--shell)); }
  .hero-layout { grid-template-columns: .95fr 1.05fr; min-height: 540px; }
  .hero h1 { font-size: clamp(2.65rem, 4.5vw, 3.7rem); }
  .feature { grid-template-columns: 68px 1fr; gap: 18px; padding-inline: 24px; }
  .feature-icon { width: 64px; height: 64px; }
  .feature-icon svg { width: 34px; height: 34px; }
}

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 40px), var(--shell)); }
  .header-inner { min-height: 78px; }
  .brand { font-size: 1.35rem; gap: 8px; }
  .brand-mark { width: 32px; height: 38px; }
  .button-small { min-width: auto; min-height: 46px; padding: 8px 15px; font-size: .98rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 12px; padding-block: 54px 24px; text-align: center; }
  .hero-copy { padding-left: 0; }
  .hero h1 { margin-inline: auto; font-size: clamp(2.3rem, 8.4vw, 3.7rem); line-height: 1.2; }
  .hero-copy > p { margin: 20px auto 28px; font-size: 1.15rem; }
  .button-primary { min-height: 62px; min-width: 250px; font-size: 1.16rem; }
  .route-scene { width: min(100%, 650px); margin: -24px auto -14px; }
  .feature-list { grid-template-columns: 1fr; padding-block: 18px; }
  .feature { grid-template-columns: 68px 1fr; padding: 24px 8px; text-align: left; }
  .feature + .feature { border-top: 1px solid var(--line); border-left: 0; }
  .footer-inner { justify-content: space-between; gap: 24px; }
}

@media (max-width: 480px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { gap: 8px; }
  .brand { gap: 5px; font-size: 1rem; }
  .brand-mark { width: 25px; height: 31px; }
  .button-small { min-width: 0; padding-inline: 10px; font-size: .78rem; white-space: nowrap; }
  .hero-layout { min-height: auto; padding-top: 46px; }
  .hero h1 { max-width: 100%; font-size: clamp(1.88rem, 9.2vw, 2.18rem); letter-spacing: -.04em; }
  .hero-copy > p { font-size: 1.02rem; line-height: 1.65; }
  .desktop-break { display: none; }
  .route-scene { width: 118%; margin-left: -9%; margin-top: -28px; }
  .feature { padding-inline: 4px; }
  .feature h3 { font-size: 1.1rem; }
  .feature p { font-size: .9rem; }
  .footer-inner { min-height: 112px; flex-direction: column; justify-content: center; gap: 6px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
