/* =========================================================
   Ad)venture Thailand
   ========================================================= */
:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --soft: #F2F2EE;
  --ink: #1C1D20;
  --ink-2: #26282C;
  --text: #2A2B2E;
  --muted: #6B6E74;
  --line: #E5E5E0;
  --accent: #F25C2A;
  --accent-600: #D94A1B;
  --accent-soft: #FDEBE3;
  --on-dark: #F5F5F2;
  --on-dark-muted: rgba(245, 245, 242, 0.64);
  --line-dark: rgba(255, 255, 255, 0.12);

  --display: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --thai: "Noto Sans Thai", "Inter", system-ui, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(28, 29, 32, 0.04), 0 8px 24px -12px rgba(28, 29, 32, 0.12);
  --shadow-lg: 0 2px 4px rgba(28, 29, 32, 0.04), 0 24px 60px -24px rgba(28, 29, 32, 0.28);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.th { font-family: var(--thai); }
.accent { color: var(--accent); }
.paren { color: var(--accent); font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px;
  border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(242, 92, 42, 0.55); }
.btn--accent:hover { background: var(--accent-600); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--line { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 30px; font-size: clamp(15px, 2.2vw, 18px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 250, 248, 0.92); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo img { height: 40px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 32px; font-family: var(--display); font-weight: 500; font-size: 15px; }
.nav__menu a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__menu a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; }

@media (max-width: 880px) {
  .nav__logo img { height: 34px; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 76px;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(28, 29, 32, 0.2);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .nav__menu .btn { margin-top: 18px; height: 50px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 4vw, 56px); align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink);
  box-shadow: var(--shadow);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.hero__title {
  margin-top: 24px;
  font-size: clamp(44px, 6.2vw, 78px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero__lede { margin-top: 24px; max-width: 520px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink); }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23F25C2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Stage (hero visual) */
.stage { position: relative; min-height: 560px; display: grid; place-items: center end; padding-right: 7%; }
.stage__glow {
  position: absolute; inset: 4% 0 4% 6%;
  border-radius: 40px;
  background:
    radial-gradient(60% 55% at 70% 30%, rgba(242, 92, 42, 0.22), transparent 70%),
    radial-gradient(55% 60% at 25% 80%, rgba(28, 29, 32, 0.10), transparent 70%),
    linear-gradient(160deg, #F4F3EF, #ECEBE6);
  border: 1px solid var(--line);
}
.stage__paren {
  position: absolute; right: 2%; top: 50%; transform: translateY(-54%);
  font-family: var(--display); font-weight: 300; font-size: 520px; line-height: 1;
  color: rgba(28, 29, 32, 0.05);
  pointer-events: none; user-select: none;
}

.phone {
  position: relative; z-index: 2;
  width: 272px;
  background: var(--surface);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(28, 29, 32, 0.06);
}
.phone__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 14px;
  border-bottom: 1px solid var(--line);
}
.phone__bar strong { display: block; font-family: var(--display); font-size: 14px; color: var(--ink); line-height: 1.2; }
.phone__bar small { font-size: 11.5px; color: var(--muted); }
.phone__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px;
}
.phone__chat {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 6px 8px;
  background: linear-gradient(180deg, #F7F7F4, #F1F1ED);
  border-radius: 0 0 26px 26px;
  margin: 0 -12px -12px; padding-left: 16px; padding-right: 16px; padding-bottom: 18px;
}
.bubble { max-width: 84%; padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.5; }
.bubble--in { align-self: flex-start; background: var(--surface); color: var(--ink); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.bubble--out { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble--code { font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; background: var(--accent); }
.phone__meta { display: inline-flex; align-items: center; gap: 6px; align-self: flex-end; margin-top: 2px; font-size: 11px; color: var(--muted); }
.ai-dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }

.float {
  position: absolute; z-index: 3;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
}
.float__label { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.float--loc { left: 0; top: 15%; width: 232px; }
.float__en { font-size: 13px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107, 110, 116, 0.5); }
.float__arrow { color: var(--accent); font-weight: 700; line-height: 1.2; margin: 2px 0; }
.float__th { font-size: 15px; font-weight: 600; color: var(--ink); }
.float--chart { left: 3%; bottom: 13%; width: 196px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.bars span { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: #E4E3DE; }
.bars span:nth-last-child(-n+2) { background: var(--accent); }
.float__foot { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Channels */
.channels {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
  margin-top: clamp(56px, 7vw, 88px);
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.channels__label { font-size: 13px; font-weight: 500; color: var(--muted); }
.channels__list { display: flex; flex-wrap: wrap; gap: 12px 36px; font-family: var(--display); font-weight: 650; font-size: 18px; color: #9A9CA1; letter-spacing: -0.03em; }

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stage { min-height: 500px; max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 1100px) {
  .stage { place-items: center; padding-right: 0; }
  .float--loc { left: 2%; }
  .float--chart { left: auto; right: 2%; bottom: 12%; }
}
@media (max-width: 640px) {
  .stage { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px; }
  .stage__glow { inset: 0; border-radius: 28px; }
  .stage__paren { display: none; }
  .float { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; max-width: 300px; }
  .float--loc { order: -1; }
  .phone { width: 100%; max-width: 300px; }
  .bars { height: 48px; }
  .channels__list { font-size: 16px; gap: 10px 24px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 136px) 0; position: relative; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 64px); }
.head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.eyebrow .paren { font-size: 18px; letter-spacing: 0; }
.eyebrow--light { color: var(--on-dark); }
.title { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; line-height: 1.06; letter-spacing: -0.04em; }
.section--dark .title { color: #fff; }
.lede { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 580px; }
.head--split .lede { margin-top: 0; }
.section--dark .lede { color: var(--on-dark-muted); }

@media (max-width: 860px) { .head--split { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #D9D9D3; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 28px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; }
.card > p { margin-top: 10px; color: var(--muted); }

.checks { display: grid; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23F25C2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

@media (max-width: 980px) { .cards--3 { grid-template-columns: 1fr; max-width: 640px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step__num { display: block; font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -0.05em; color: var(--ink); line-height: 1; margin-bottom: 40px; }
.step__num .paren { font-weight: 500; margin-left: 2px; }
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step__num { margin-bottom: 20px; font-size: 34px; } }

/* Dark: Why Thailand */
.dark__mark {
  position: absolute; right: -60px; bottom: -80px;
  width: min(46vw, 520px); height: auto;
  opacity: 0.045; pointer-events: none;
}
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; position: relative; }
.fact {
  padding: 32px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition: background .25s ease, border-color .25s ease;
}
.fact:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.fact__num { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--accent); margin-bottom: 20px; letter-spacing: 0.04em; }
.fact h3 { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.fact p { color: var(--on-dark-muted); max-width: 460px; }

@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .fact { padding: 26px; } }

/* Plans */
.plan {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.plan__tag {
  align-self: flex-start;
  padding: 5px 12px; border-radius: 999px;
  background: var(--soft);
  font-family: var(--display); font-weight: 600; font-size: 12.5px; color: var(--ink);
  margin-bottom: 24px;
}
.plan h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; margin-bottom: 10px; }
.plan > p:not(.plan__tag) { color: var(--muted); }
.plan .checks { margin-bottom: 28px; }
.plan__link { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--accent); display: inline-flex; gap: 6px; transition: gap .2s ease; }
.plan__link:hover { gap: 10px; }

.plan--featured { background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan--featured h3 { color: #fff; }
.plan--featured > p:not(.plan__tag) { color: var(--on-dark-muted); }
.plan--featured .plan__tag { background: var(--accent); color: #fff; }
.plan--featured .checks { border-color: var(--line-dark); color: var(--on-dark); }
.plan--featured .checks li::before { background-color: rgba(242, 92, 42, 0.18); }

.industries { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.industries > p { font-size: 14px; font-weight: 500; color: var(--muted); }
.industries ul { display: flex; flex-wrap: wrap; gap: 10px; }
.industries li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink); }

/* ---------- Contact ---------- */
.contact { padding: 0 0 clamp(80px, 10vw, 120px); }
.contact__card {
  position: relative; overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 88px);
  color: var(--on-dark);
}
.contact__card::before {
  content: ""; position: absolute; right: -10%; top: -40%;
  width: 70%; height: 180%;
  background: radial-gradient(closest-side, rgba(242, 92, 42, 0.35), transparent 70%);
  pointer-events: none;
}
.contact__mark { position: absolute; right: clamp(24px, 6vw, 88px); bottom: -40px; width: clamp(160px, 24vw, 300px); height: auto; opacity: 0.08; pointer-events: none; }
.contact__title { position: relative; color: #fff; font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; }
.contact__lede { position: relative; margin-top: 20px; max-width: 540px; font-size: 18px; color: var(--on-dark-muted); }
.contact__cta { position: relative; margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand img { height: 40px; width: auto; }
.footer__brand p { margin-top: 16px; max-width: 300px; color: var(--muted); }
.footer h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
