:root {
  color-scheme: light;
  --text: #071119;
  --muted: #64748b;
  --primary: #14b8a6;
  --primary-strong: #0f766e;
  --blue: #5b7cfa;
  --bg: #f7fffc;
  --surface: rgba(255, 255, 255, .74);
  --surface-strong: rgba(255, 255, 255, .92);
  --border: rgba(15, 23, 42, .10);
  --shadow: 0 28px 80px rgba(15, 23, 42, .14);
  --soft-shadow: 0 18px 48px rgba(15, 23, 42, .08);
  --radius: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at -10% -10%, rgba(185, 255, 241, .82), transparent 34%),
    radial-gradient(circle at 104% 18%, rgba(216, 226, 255, .78), transparent 32%),
    linear-gradient(180deg, var(--bg), #ffffff 58%, #f8fafc);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  word-break: keep-all;
  line-break: loose;
}

body::before {
  content: "";
  position: fixed;
  inset: -40%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 184, 166, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 124, 250, .06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 18%, #000, transparent 62%);
}

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

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0 18px;
}

.nav,
.wrap,
.hero-inner,
.content {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  padding: 7px;
  border: 1px solid rgba(20, 184, 166, .20);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .18), rgba(91, 124, 250, .12));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:not(.button) {
  color: var(--muted);
  padding: 10px 13px;
  border-radius: 999px;
  transition: .22s var(--ease);
}

.nav-links a:not(.button):hover {
  color: var(--text);
  background: rgba(20, 184, 166, .09);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0fbba6, #2dd4bf);
  box-shadow: 0 18px 38px rgba(20, 184, 166, .25);
  font-weight: 900;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.button::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -45%;
  width: 40%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .58), transparent);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(20, 184, 166, .31);
}

.hero {
  min-height: 86vh;
  display: grid;
  align-items: center;
  padding: 146px 0 66px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--primary-strong);
  background: rgba(20, 184, 166, .11);
  border: 1px solid rgba(20, 184, 166, .18);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 7px rgba(20, 184, 166, .12);
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.24;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

h1::first-line {
  background: linear-gradient(120deg, #0f766e, #22d3ee, #5b7cfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.86;
  text-wrap: pretty;
}

.hero-card {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 46px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .28), rgba(91, 124, 250, .18));
  filter: blur(42px);
}

.hero-card img {
  position: relative;
  display: block;
  width: min(420px, 88%);
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78));
  padding: 12px;
  box-shadow: var(--shadow);
}

.content {
  max-width: 980px;
  padding: 34px 0 80px;
}

.toc,
.note,
.faq-item,
.card,
.cta {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  backdrop-filter: blur(22px) saturate(1.2);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.toc {
  padding: 24px;
  margin-bottom: 30px;
}

.toc strong {
  color: var(--primary-strong);
  font-size: 18px;
}

.toc ul,
.checklist {
  margin: 12px 0 0;
  padding-left: 22px;
}

h2 {
  margin: 48px 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

h3 {
  margin: 0 0 9px;
  font-size: 20px;
  letter-spacing: 0;
}

p {
  margin: 0 0 15px;
  color: #334155;
  text-wrap: pretty;
  font-weight: 400;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.card,
.faq-item {
  padding: 24px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.card:hover,
.faq-item:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, .30);
  box-shadow: 0 24px 66px rgba(15, 23, 42, .12);
}

.card h3::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .20), rgba(91, 124, 250, .13));
  border: 1px solid rgba(20, 184, 166, .18);
}

.faq-item {
  margin: 14px 0;
}

.faq-item h2 {
  margin-top: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.cta {
  margin-top: 48px;
  padding: 36px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(45, 212, 191, .24), transparent 38%),
    linear-gradient(135deg, rgba(236, 253, 247, .96), rgba(239, 246, 255, .92));
}

.cta h2 {
  margin-top: 0;
}

.cta p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(18px);
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: var(--primary-strong);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 138px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    padding: 0 10px;
  }

  .nav,
  .wrap,
  .hero-inner,
  .content {
    width: min(100% - 24px, 1160px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
    padding: 10px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-links a:not(.button) {
    padding: 9px 10px;
  }

  .nav-links .button {
    width: 100%;
    min-height: 46px;
  }

  .hero {
    padding-top: 174px;
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(31px, 9vw, 44px);
    line-height: 1.31;
  }

  .lead {
    font-size: 16px;
    line-height: 1.82;
  }

  .hero-card {
    min-height: 430px;
  }

  .hero-card img {
    width: min(360px, 94%);
    border-radius: 24px;
  }

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

  .content {
    padding-top: 26px;
    padding-bottom: 60px;
  }

  .card,
  .faq-item,
  .toc,
  .cta {
    border-radius: 22px;
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 188px;
  }

  .brand {
    font-size: 16px;
  }

  .nav-links {
    font-size: 13px;
  }
}
