:root {
  --teal-950: #063b38;
  --teal-900: #084c47;
  --teal-800: #0b5d57;
  --teal-700: #0f746b;
  --teal-600: #168c80;
  --teal-100: #def3ee;
  --teal-50: #f0faf7;
  --coral-600: #e86851;
  --coral-500: #f17f68;
  --coral-100: #ffebe6;
  --ink: #152c29;
  --muted: #60716e;
  --line: #dce8e5;
  --surface: #ffffff;
  --bg: #f5faf8;
  --shadow: 0 24px 60px rgba(7, 66, 61, .12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Sarabun", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .brand, .btn, .nav-link, .eyebrow { font-family: "Kanit", sans-serif; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--teal-900);
  box-shadow: var(--shadow);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(220, 232, 229, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.topnav-inner {
  max-width: var(--container);
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--teal-950);
  text-decoration: none;
  font-weight: 600;
}
.brand-logo { width: 112px; height: auto; }
.brand-divider { width: 1px; height: 28px; background: var(--line); }
.brand-text { white-space: nowrap; font-size: 14px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 15px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav-link:hover { transform: translateY(-1px); }
.nav-about { color: var(--muted); }
.nav-about:hover, .nav-assessment:hover { background: var(--teal-50); color: var(--teal-800); }
.nav-assessment { color: var(--teal-800); }
.nav-login { background: var(--teal-800); color: #fff; box-shadow: 0 10px 24px rgba(11, 93, 87, .18); }
.nav-login:hover { background: var(--teal-950); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 24px clamp(76px, 9vw, 120px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.13), transparent 25%),
    linear-gradient(135deg, var(--teal-950) 0%, var(--teal-800) 48%, #159083 100%);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-decor { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero-decor-one { width: 390px; height: 390px; right: -130px; top: -160px; background: rgba(255,255,255,.09); }
.hero-decor-two { width: 260px; height: 260px; left: -110px; bottom: -100px; background: rgba(241,127,104,.18); }
.hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}
.hero-copy { max-width: 670px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.badge-icon { font-size: 17px; }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.13;
  letter-spacing: -.7px;
}
.hero h1 span { color: #c9fff2; }
.lead {
  max-width: 62ch;
  margin: 0 0 30px;
  color: rgba(255,255,255,.84);
  font-size: clamp(16px, 1.7vw, 18px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral-500); color: #fff; box-shadow: 0 16px 32px rgba(96, 31, 18, .22); }
.btn-primary:hover { background: var(--coral-600); }
.btn-secondary { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.1); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,.17); }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.meta-item { padding-left: 16px; border-left: 2px solid rgba(255,255,255,.18); }
.meta-item strong { display: block; font-family: "Kanit", sans-serif; font-size: 16px; }
.meta-item span { display: block; color: rgba(255,255,255,.65); font-size: 12px; }

.hero-visual { position: relative; }
.visual-glow { position: absolute; inset: 10% -4% -8%; border-radius: 50%; background: rgba(104,255,226,.2); filter: blur(55px); }
.assessment-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 34px 80px rgba(4, 45, 42, .35);
  backdrop-filter: blur(20px);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-label { color: var(--teal-700); font-weight: 700; font-size: 12px; }
.panel-head h2 { margin: 2px 0 0; color: var(--teal-950); font-size: 22px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: #2cb67d; box-shadow: 0 0 0 4px rgba(44,182,125,.12); }
.entry-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 15px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.entry-card:hover { transform: translateY(-2px); border-color: #a8d7cf; box-shadow: 0 16px 34px rgba(6,59,56,.09); }
.entry-primary { border-color: #f7c8bd; background: linear-gradient(135deg, #fff, #fff7f5); }
.entry-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--coral-100); font-size: 24px; }
.entry-school { background: var(--teal-100); }
.entry-content strong { display: block; font-family: "Kanit", sans-serif; color: var(--teal-950); font-size: 15.5px; }
.entry-content small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.entry-arrow { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); font-weight: 700; }
.panel-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding: 13px 14px; border-radius: 14px; background: #f6faf9; color: var(--muted); font-size: 11.5px; line-height: 1.55; }

.section { max-width: var(--container); margin: 0 auto; padding: clamp(70px, 8vw, 110px) 24px; }
.section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 8px; color: var(--coral-600); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.section h2 { margin: 0 0 12px; color: var(--teal-950); font-size: clamp(27px, 3vw, 40px); line-height: 1.25; }
.section-head p, .how-intro p { margin: 0; color: var(--muted); font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 12px 36px rgba(7,66,61,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: #badfd7; box-shadow: 0 22px 50px rgba(7,66,61,.09); }
.feature-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 15px; font-size: 23px; }
.icon-rq { background: #e9f7f3; }
.icon-who { background: #fff5d9; }
.icon-phq { background: #eaf2ff; }
.icon-stress { background: #ffebe6; }
.feature-card h3 { margin: 0 0 8px; color: var(--teal-950); font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; }

.how { max-width: none; background: #edf7f4; }
.how-layout { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.how-intro { max-width: 440px; }
.text-link { display: inline-flex; gap: 8px; margin-top: 22px; color: var(--teal-800); font-family: "Kanit", sans-serif; font-weight: 600; text-decoration: none; }
.how-list { display: grid; gap: 14px; }
.how-step { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 22px; border: 1px solid rgba(255,255,255,.9); border-radius: 20px; background: rgba(255,255,255,.8); box-shadow: 0 12px 32px rgba(6,59,56,.05); }
.step-number { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--teal-800); color: #fff; font-family: "Kanit", sans-serif; font-weight: 700; }
.how-step h3 { margin: 0 0 4px; color: var(--teal-950); font-size: 16px; }
.how-step p { margin: 0; color: var(--muted); font-size: 13px; }

.trust { margin-top: clamp(70px, 8vw, 110px); margin-bottom: clamp(70px, 8vw, 110px); padding: 34px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--teal-950), var(--teal-700)); color: #fff; box-shadow: var(--shadow); }
.trust-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 20px; background: rgba(255,255,255,.12); font-size: 30px; }
.trust .eyebrow { color: #aef1e2; }
.trust h2 { margin-bottom: 6px; color: #fff; font-size: clamp(23px, 2.6vw, 32px); }
.trust p { margin: 0; max-width: 68ch; color: rgba(255,255,255,.72); font-size: 13px; }
.btn-light { background: #fff; color: var(--teal-900); white-space: nowrap; }

.site-footer { padding: 46px 24px 24px; background: #052f2d; color: #fff; }
.footer-inner, .footer-bottom { max-width: var(--container); margin: 0 auto; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 30px; }
.footer-brand-group { display: flex; align-items: center; gap: 18px; }
.footer-logo { width: 112px; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand-group strong { display: block; font-family: "Kanit", sans-serif; font-size: 16px; }
.footer-brand-group p { margin: 3px 0 0; color: rgba(255,255,255,.58); font-size: 12px; }
.footer-hotline { text-align: right; }
.hotline-label { display: block; color: rgba(255,255,255,.55); font-size: 11px; }
.footer-hotline a { display: inline-flex; align-items: baseline; gap: 9px; color: #fff; text-decoration: none; }
.footer-hotline a span { font-size: 13px; }
.footer-hotline a strong { color: #ff9b86; font-family: "Kanit", sans-serif; font-size: 28px; }
.footer-hotline small { display: block; color: rgba(255,255,255,.55); font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.48); font-size: 11px; }

:focus-visible { outline: 3px solid rgba(241,127,104,.45); outline-offset: 3px; }

@media (max-width: 980px) {
  .hero-container { grid-template-columns: 1fr; gap: 54px; }
  .hero-copy { max-width: 760px; text-align: center; margin: 0 auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { max-width: 620px; margin: 0 auto; text-align: left; }
  .hero-visual { max-width: 650px; width: 100%; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .how-layout { grid-template-columns: 1fr; }
  .how-intro { max-width: 680px; }
}

@media (max-width: 720px) {
  .topnav { padding: 10px 16px; }
  .brand-divider, .brand-text, .nav-about { display: none; }
  .brand-logo { width: 96px; }
  .nav-links { gap: 5px; }
  .nav-link { min-height: 38px; padding: 7px 11px; font-size: 12px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: clamp(34px, 11vw, 50px); }
  .hero-meta { grid-template-columns: 1fr; gap: 12px; max-width: 360px; }
  .meta-item { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; }
  .assessment-panel { padding: 18px; border-radius: 24px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: auto 1fr; }
  .trust .btn { grid-column: 1 / -1; width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-hotline { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 5px; }
}

@media (max-width: 480px) {
  .nav-assessment { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-badge { font-size: 11px; }
  .panel-head { flex-direction: column; }
  .entry-card { grid-template-columns: 46px 1fr auto; padding: 13px; }
  .entry-icon { width: 46px; height: 46px; }
  .entry-content strong { font-size: 14px; }
  .entry-content small { font-size: 11px; }
  .how-step { grid-template-columns: 46px 1fr; gap: 14px; padding: 18px; }
  .step-number { width: 42px; height: 42px; }
  .trust { grid-template-columns: 1fr; text-align: center; }
  .trust-icon { margin: 0 auto; }
  .footer-brand-group { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}