:root {
  --ink: #18132d;
  --muted: #68627b;
  --paper: #fffdfc;
  --wash: #f5f1ff;
  --violet: #4220b7;
  --violet-deep: #25106f;
  --pink: #f044a5;
  --peach: #ffb187;
  --line: rgba(37, 16, 111, 0.12);
  --shadow: 0 28px 80px rgba(52, 25, 135, 0.14);
}

* { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Aptos", "Segoe UI", "Noto Sans Thai", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--violet-deep); color: #fff; }
.skip-link:focus { top: 16px; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark { display: inline-flex; min-height: 48px; align-items: center; gap: 11px; color: var(--violet-deep); font-size: 23px; font-weight: 850; letter-spacing: -0.045em; text-decoration: none; }
.wordmark img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 7px 16px rgba(66, 32, 183, 0.2); }
.site-header nav { display: flex; align-items: center; gap: 7px; }
.site-header nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 13px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { background: var(--wash); color: var(--violet-deep); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 72px;
  padding: 76px 72px;
  overflow: hidden;
  border: 1px solid rgba(66, 32, 183, 0.08);
  border-radius: 38px;
  background:
    radial-gradient(circle at 83% 17%, rgba(240, 68, 165, 0.21), transparent 30%),
    radial-gradient(circle at 100% 90%, rgba(87, 58, 235, 0.20), transparent 39%),
    linear-gradient(145deg, #fff9f6 0%, #f2efff 58%, #e7e5ff 100%);
  box-shadow: var(--shadow);
}
.hero::before { content: ""; position: absolute; width: 300px; height: 300px; left: -170px; bottom: -180px; border: 58px solid rgba(255, 177, 135, 0.34); border-radius: 50%; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 15px; color: var(--violet); font-size: 12px; font-weight: 850; letter-spacing: 0.12em; }
h1, h2, h3 { margin-top: 0; font-family: "Aptos Display", "Aptos", "Segoe UI", "Noto Sans Thai", sans-serif; }
h1 { max-width: 700px; margin-bottom: 25px; font-size: clamp(44px, 6.3vw, 78px); line-height: 0.99; letter-spacing: -0.065em; }
h2 { margin-bottom: 14px; font-size: clamp(31px, 4vw, 49px); line-height: 1.07; letter-spacing: -0.055em; }
h3 { margin-bottom: 8px; font-size: 20px; line-height: 1.2; letter-spacing: -0.025em; }
.hero-lede { max-width: 660px; margin: 0; color: #4f4963; font-size: 19px; line-height: 1.72; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 34px; }
.play-store-link { display: inline-flex; align-items: center; overflow: hidden; border-radius: 8px; line-height: 0; }
.play-store-link img { display: block; width: 180px; max-width: 100%; height: auto; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--violet); font-weight: 800; text-underline-offset: 4px; }
.hero-art { position: relative; min-height: 450px; display: grid; place-items: center; }
.hero-art img { position: relative; z-index: 2; width: min(340px, 77%); border-radius: 28%; box-shadow: 0 28px 52px rgba(37, 16, 111, 0.28); transform: rotate(3deg); }
.icon-halo { position: absolute; width: 390px; height: 390px; border-radius: 45% 55% 55% 45%; background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(156, 118, 255, 0.32)); transform: rotate(-11deg); }
.phrase-card { position: absolute; z-index: 3; min-width: 138px; padding: 13px 17px; border: 1px solid rgba(255,255,255,0.7); border-radius: 17px; background: rgba(255,255,255,0.91); box-shadow: 0 15px 35px rgba(37, 16, 111, 0.16); color: var(--violet-deep); font-weight: 800; text-align: center; backdrop-filter: blur(10px); }
.phrase-card-a { top: 42px; right: -6px; transform: rotate(4deg); }
.phrase-card-b { left: -18px; bottom: 61px; transform: rotate(-5deg); }

.feature-panel, .routes-section, .trust-section, .support-panel { margin-top: 34px; border-radius: 30px; }
.feature-panel { padding: 74px 70px 70px; background: var(--violet-deep); color: #fff; }
.feature-panel .eyebrow { color: #d0c4ff; }
.section-heading { max-width: 720px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 43px 0 0; padding: 0; list-style: none; }
.steps li { min-height: 245px; padding: 25px; border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; background: rgba(255,255,255,0.07); }
.step-number { display: block; margin-bottom: 51px; color: #d0c4ff; font-size: 12px; font-weight: 850; letter-spacing: 0.12em; }
.steps p { margin: 0; color: #d9d2eb; }

.routes-section { padding: 72px 70px; background: #fff8f4; border: 1px solid rgba(255, 177, 135, 0.32); }
.compact-heading > p:last-child { max-width: 660px; color: var(--muted); font-size: 18px; }
.route-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 39px; }
.route-card { min-height: 210px; padding: 22px; border-radius: 20px; background: var(--paper); box-shadow: 0 10px 30px rgba(87, 54, 42, 0.08); }
.language-code { display: grid; width: 48px; height: 48px; margin-bottom: 36px; place-items: center; border-radius: 14px; background: var(--wash); color: var(--violet); font-weight: 900; }
.route-card p { margin: 0; color: var(--muted); }

.trust-section { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; padding: 72px 70px; border: 1px solid var(--line); background: var(--paper); }
.trust-copy p { margin: 0 0 17px; color: var(--muted); font-size: 17px; }
.trust-copy .text-link { margin-top: 7px; }
.support-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 64px 70px; background: linear-gradient(135deg, #f6f2ff, #fff2f7); }
.support-links { display: grid; gap: 7px; }
.support-links a { display: flex; min-height: 52px; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--violet-deep); font-weight: 750; text-decoration: none; }
.support-links a::after { content: "↗"; color: var(--pink); }
.support-links a:hover { background: rgba(255,255,255,0.55); }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 4px 52px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 25px; padding: 62px 50px 37px; }
  .hero-art { min-height: 385px; }
  .hero-art img { width: min(300px, 66%); }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-section, .support-panel { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 680px) {
  .site-header { width: min(100% - 28px, 1180px); min-height: 74px; }
  .site-header nav a:not(:last-child) { display: none; }
  .site-header nav a { padding-inline: 11px; }
  main, footer { width: min(100% - 24px, 1180px); }
  .hero { min-height: auto; padding: 47px 24px 27px; border-radius: 25px; }
  h1 { font-size: clamp(41px, 13vw, 58px); }
  .hero-lede { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-art { min-height: 300px; }
  .hero-art img { width: 210px; border-radius: 59px; }
  .icon-halo { width: 270px; height: 270px; }
  .phrase-card { min-width: 112px; padding: 10px 12px; font-size: 13px; }
  .phrase-card-a { top: 13px; right: -10px; }
  .phrase-card-b { left: -9px; bottom: 34px; }
  .feature-panel, .routes-section, .trust-section, .support-panel { margin-top: 17px; border-radius: 23px; padding: 47px 24px; }
  .steps, .route-grid { grid-template-columns: 1fr; }
  .steps { margin-top: 30px; }
  .steps li, .route-card { min-height: auto; }
  .step-number, .language-code { margin-bottom: 25px; }
  footer { flex-direction: column; padding: 30px 4px 42px; }
}

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