:root {
  color-scheme: dark;
  --ink: #eef8ff;
  --muted: rgba(222, 243, 255, 0.74);
  --soft: rgba(222, 243, 255, 0.56);
  --navy-990: #020b14;
  --navy-970: #031423;
  --navy-940: #06243a;
  --navy-900: #083052;
  --cyan: #38d5ff;
  --sky: #3aa8ff;
  --sky-soft: #b7ecff;
  --orange: #ff7a1a;
  --orange-strong: #ff9b3d;
  --line: rgba(183, 236, 255, 0.18);
  --glass: rgba(5, 28, 48, 0.62);
  --glass-strong: rgba(7, 38, 64, 0.82);
  --white-glass: rgba(244, 251, 255, 0.92);
  --radius: 30px;
  --radius-lg: 42px;
  --shadow: 0 30px 110px rgba(0, 0, 0, 0.36);
  --cyan-shadow: 0 24px 80px rgba(56, 213, 255, 0.2);
  font-family:
    "Avenir Next",
    "Noto Sans Thai",
    "Noto Sans",
    "Segoe UI",
    system-ui,
    sans-serif;
  background: var(--navy-990);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--navy-990);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #020b14 0%, #031423 42%, #06243a 68%, #020b14 100%);
  color: var(--ink);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  content: "";
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(183, 236, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 236, 255, 0.12) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #201006;
  font-weight: 900;
  transform: translateY(-150%);
}

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

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 28px));
  min-height: 68px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(183, 236, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 11, 20, 0.68);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(170%);
}

.brand,
.desktop-nav,
.nav-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(183, 236, 255, 0.38);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--sky));
  color: #061523;
  font-size: 12px;
  font-weight: 950;
}

.desktop-nav {
  gap: 28px;
  color: rgba(238, 248, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.desktop-nav a,
.lang-link,
.text-link {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.lang-link:hover,
.text-link:hover {
  color: var(--cyan);
}

.nav-actions {
  gap: 12px;
}

.lang-link {
  color: rgba(238, 248, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button:active {
  transform: translateY(1px);
}

.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(255, 122, 26, 0.48);
  outline-offset: 4px;
}

.button.primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-strong));
  color: #210f04;
  box-shadow: 0 18px 44px rgba(255, 122, 26, 0.28);
}

.button.secondary {
  border-color: rgba(183, 236, 255, 0.28);
  background: rgba(5, 28, 48, 0.62);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: rgba(56, 213, 255, 0.52);
  background: rgba(7, 48, 82, 0.72);
}

.button.small {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  width: min(1320px, calc(100% - 32px));
  min-height: min(850px, calc(100dvh - 104px));
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(183, 236, 255, 0.18);
  border-radius: var(--radius-lg);
  background: var(--navy-970);
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 11, 20, 0.96) 0%, rgba(2, 11, 20, 0.78) 38%, rgba(2, 11, 20, 0.2) 72%),
    linear-gradient(180deg, rgba(2, 11, 20, 0.05) 0%, rgba(2, 11, 20, 0.54) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(790px, 100%);
  padding: clamp(34px, 8vw, 94px);
}

.signal {
  width: fit-content;
  margin: 0 0 22px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: clamp(3.7rem, 6.8vw, 6rem);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: 0;
}

html[lang="th"] h1 {
  font-size: clamp(3.1rem, 6vw, 5.35rem);
  line-height: 1;
}

h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: clamp(2.7rem, 5.4vw, 5.5rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  color: #ffffff;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.chat-demo {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: clamp(18px, 5vw, 62px);
  z-index: 3;
  width: min(330px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(183, 236, 255, 0.28);
  border-radius: 24px;
  background: rgba(4, 24, 42, 0.78);
  box-shadow: var(--cyan-shadow);
  backdrop-filter: blur(22px) saturate(160%);
}

.chat-demo span,
.plan-name {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
}

.chat-demo p {
  margin: 0;
  color: #ffffff;
  font-weight: 850;
  line-height: 1.35;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(183, 236, 255, 0.18);
  border-radius: 24px;
  background: rgba(183, 236, 255, 0.14);
}

.proof-strip p {
  min-height: 78px;
  margin: 0;
  padding: 20px 14px;
  display: grid;
  place-items: center;
  background: rgba(5, 28, 48, 0.68);
  color: rgba(238, 248, 255, 0.86);
  text-align: center;
  font-weight: 850;
}

.story,
.pricing,
.faq,
.final-cta,
.process,
.build-map {
  padding: clamp(82px, 11vw, 142px) 0 0;
}

.section-intro {
  max-width: 900px;
}

.section-intro.narrow {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.section-intro p,
.map-copy p,
.process-copy p,
.final-panel p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.section-intro.narrow p {
  margin-inline: auto;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 36px;
}

.story-panel {
  min-height: 255px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(183, 236, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.story-panel:first-child {
  grid-row: span 2;
  min-height: 530px;
}

.story-panel p {
  max-width: 520px;
  margin-bottom: 0;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.6;
}

.panel-blue {
  background:
    linear-gradient(135deg, rgba(56, 213, 255, 0.95), rgba(58, 168, 255, 0.72) 54%, rgba(255, 122, 26, 0.18)),
    #083052;
  color: #04111e;
}

.panel-blue h3 {
  color: #04111e;
}

.panel-light {
  background: rgba(238, 248, 255, 0.92);
  color: #06243a;
}

.panel-light h3 {
  color: #06243a;
}

.panel-light p {
  color: rgba(6, 36, 58, 0.72);
}

.panel-navy {
  background:
    linear-gradient(135deg, rgba(4, 20, 35, 0.96), rgba(8, 48, 82, 0.9)),
    var(--navy-940);
  color: rgba(238, 248, 255, 0.82);
}

.build-map {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.map-visual {
  display: grid;
  gap: 14px;
}

.map-card {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(183, 236, 255, 0.18);
  border-radius: 24px;
  background: rgba(5, 28, 48, 0.68);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.map-card.active {
  transform: translateX(34px);
  border-color: rgba(56, 213, 255, 0.48);
  background: linear-gradient(135deg, rgba(56, 213, 255, 0.22), rgba(8, 48, 82, 0.88));
  box-shadow: var(--cyan-shadow);
}

.map-card strong {
  color: #ffffff;
  font-size: 1.22rem;
}

.map-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--cyan);
  font-weight: 950;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px;
  border: 1px solid rgba(183, 236, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(238, 248, 255, 0.92);
  color: #06243a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.price-card.featured {
  border-color: rgba(255, 122, 26, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(222, 246, 255, 0.94)),
    #ffffff;
  box-shadow: 0 28px 90px rgba(255, 122, 26, 0.18);
}

.price-card h3 {
  margin-bottom: 12px;
  color: #06243a;
}

.price-card h3 span {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
}

.price-card > p:not(.plan-name) {
  color: rgba(6, 36, 58, 0.68);
  line-height: 1.6;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 24px;
  color: rgba(6, 36, 58, 0.82);
  line-height: 1.45;
}

.price-card li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--sky);
  content: "";
}

.price-card .button {
  margin-top: auto;
}

.price-card .button.secondary {
  border-color: rgba(6, 36, 58, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #06243a;
}

.process {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 40px;
  align-items: start;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.timeline div {
  position: relative;
  min-height: 220px;
  padding: 26px;
  border: 1px solid rgba(183, 236, 255, 0.18);
  border-radius: 24px;
  background: rgba(5, 28, 48, 0.72);
}

.timeline strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.18rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 32px auto 0;
}

details {
  border: 1px solid rgba(183, 236, 255, 0.18);
  border-radius: 22px;
  background: rgba(5, 28, 48, 0.7);
}

summary {
  padding: 22px 24px;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.6;
}

.final-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid rgba(183, 236, 255, 0.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(56, 213, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(5, 28, 48, 0.98), rgba(8, 48, 82, 0.94));
  box-shadow: var(--shadow);
}

.final-panel h2 {
  max-width: 780px;
  margin-bottom: 12px;
}

.final-panel p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 0 34px;
  color: var(--soft);
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.redirect-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
}

.redirect-card {
  width: min(420px, calc(100% - 32px));
  padding: 32px;
  border: 1px solid rgba(183, 236, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(5, 28, 48, 0.8);
  box-shadow: var(--shadow);
  text-align: center;
}

.redirect-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

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

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

.hero .reveal {
  opacity: 1;
  transform: 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;
  }
}

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

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(2, 11, 20, 0.94) 0%, rgba(2, 11, 20, 0.7) 55%, rgba(2, 11, 20, 0.38) 100%);
  }

  .hero-copy {
    width: 100%;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: clamp(28px, 7vw, 72px);
  }

  .chat-demo {
    right: 22px;
    bottom: 22px;
  }

  .build-map,
  .process {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .story-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .story-panel:first-child {
    grid-row: auto;
    min-height: 330px;
  }

  .map-card.active {
    transform: none;
  }

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

  .final-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: calc(100vw - 28px);
  }

  .site-header {
    width: calc(100vw - 20px);
    min-height: 62px;
    padding-left: 12px;
    justify-content: flex-start;
    gap: 12px;
  }

  .nav-actions {
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-actions .button {
    position: absolute;
    top: 11px;
    right: 10px;
    z-index: 2;
    display: inline-flex !important;
    min-height: 40px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .site-header .nav-actions .button.primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-strong)) !important;
    color: #210f04 !important;
  }

  .brand span:last-child,
  .lang-link {
    display: none;
  }

  .hero {
    width: calc(100vw - 20px);
    border-radius: 28px;
  }

  .hero-copy {
    min-height: 640px;
    padding: 34px 22px 160px;
    justify-content: flex-start;
  }

  h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(2.9rem, 13vw, 4rem);
    line-height: 0.98;
  }

  html[lang="th"] h1 {
    font-size: clamp(2.05rem, 8.5vw, 2.75rem);
    line-height: 1.06;
  }

  h2 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions,
  .redirect-actions {
    flex-direction: column;
  }

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

  .chat-demo {
    width: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .story-panel,
  .map-card,
  .timeline div,
  .price-card {
    padding: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
