/* =====================================================================
   หน้าแรก Tier-S IT Solution (public/landing/)
   ---------------------------------------------------------------------
   หน้าขายบริการ · ผู้เข้าชมที่ยังไม่ได้ล็อกอินเห็นหน้านี้ที่ / (src/routes/landing.ts)
   ไม่ใช้ tw.css ของแอป · หน้านี้ต้องเบาและยืนได้เอง แต่ใช้สีและฟอนต์ชุดเดียวกับระบบ

   ระบบของหน้า (โครงเดียวกับเว็บต้นแบบที่เจ้าของเลือก)
     พื้นขาว สีแบรนด์สีเดียว (น้ำเงินของ Tier-S) · หัวข้อ section สีแบรนด์ มีขีดสั้นใต้หัวข้อ
     การ์ดขาวมุมมน มีแถบสีแบรนด์ที่ขอบล่าง · แถบกว้างเต็มจอพื้นเข้มหนึ่งช่วง (ทำไมต้องเรา)
     ภาพถ่ายงานไอทีจริง (ห้องเซิร์ฟเวอร์ ช่างหน้างาน) จาก Unsplash · ทับโทนน้ำเงินแบรนด์ทุกรูป
     ไม่มีไอคอนในเนื้อหา · เจ้าของต้องการหน้าที่เน้นความสวยและภาษาธุรกิจ
     ไอคอนเหลือเฉพาะที่ทำหน้าที่ควบคุม (ปุ่มเมนู ☰ ✕ กับเครื่องหมาย + ของคำถามพบบ่อย)
   ===================================================================== */

:root {
  /* สี · ชุดเดียวกับ src/styles/tailwind.css ของแอป */
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --brand-glow: #60a5fa;
  --brand-pale: #bfdbfe;
  --brand-ink: #0b1733;
  --brand-navy: #1e3a8a;
  --ink: #0f172a;
  /* เนื้อความ · slate-700 (10.3:1) แทน slate-600 · IBM Plex Sans Thai น้ำหนัก 400 บางเกินบนพื้นขาว
     ผู้ใช้บอกว่าดูไม่หนักแน่น ไม่เป็นทางการ · ใช้ 500 เป็นน้ำหนักเนื้อความ (--text-weight) */
  --text: #334155;
  --text-weight: 500;
  --muted: #5f6d80;
  --line: #e2e8f0;
  --surface: #f6f8fb;
  --white: #fff;
  --mist: #d4e2f8;

  /* ระยะ · ฐาน 4px */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, 0.06), 0 24px 48px -16px rgba(15, 23, 42, 0.22);
  --shadow-brand: 0 16px 40px -12px rgba(37, 99, 235, 0.55);


  /* ตัวอักษร · อังกฤษ Plus Jakarta Sans (หัวข้อหนักแน่น เป็นมิตร) · ไทย IBM Plex Sans Thai (อ่านสบาย ดูเป็นทางการ)
     เบราว์เซอร์หยิบตัวไทยจาก Plex เองเมื่อ Jakarta ไม่มีตัวนั้น · ฟอนต์ระบบเป็นทางสำรองตอนโหลดไม่ขึ้น */
  --font-sans: "Plus Jakarta Sans", "IBM Plex Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --head-h: 72px;
  --wrap: 1200px;

  /* ลำดับชั้น */
  --z-head: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + var(--s-4)); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-weight: var(--text-weight);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--brand); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
::selection { background: var(--brand); color: var(--white); }
:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.45); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm);
  background: var(--brand); color: var(--white); text-decoration: none;
}
.skip:focus { top: var(--s-4); }
.nb { white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-4); }
.wrap--narrow { max-width: 840px; }
@media (min-width: 768px) { .wrap { padding: 0 var(--s-8); } }

/* ---------------------------------------------------------------------
   ปุ่ม · ทุกขนาดสูงอย่างน้อย 44px (เป้าสัมผัส)
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-6); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out),
              box-shadow 200ms var(--ease-out), translate 200ms var(--ease-out);
}
.btn--solid { background: var(--brand); color: var(--white); box-shadow: var(--shadow-brand); }
.btn--solid:hover { background: var(--brand-dark); translate: 0 -1px; }
.btn--solid:active { translate: 0 0; box-shadow: none; }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn--ghost { color: var(--brand-dark); background: transparent; }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--light { background: var(--white); color: var(--brand-dark); }
.btn--light:hover { background: var(--brand-soft); translate: 0 -1px; }
.btn--glass { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.2); }
.btn--lg { min-height: 52px; padding: 0 var(--s-8); font-size: 16px; }
.btn--sm { min-height: 44px; padding: 0 var(--s-4); font-size: 14px; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------------
   แถบบน · ติดบนสุด ขึ้นเส้นกับเงาเมื่อเลื่อนลง (landing.js ตั้ง .is-scrolled)
   --------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: var(--z-head);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.site-head.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.25); }
.site-head__row { display: flex; align-items: center; gap: var(--s-3); height: var(--head-h); }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.brand__sub { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-1); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  border-radius: var(--radius-sm); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color 150ms var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--brand); }
.nav__actions { display: flex; align-items: center; gap: var(--s-2); margin-left: var(--s-3); }

/* ปุ่มเข้าสู่ระบบนอกเมนูพับ · เฉพาะจอแคบ (จอกว้างอยู่ใน .nav__actions แล้ว) */
.head-login { display: none; margin-left: auto; }
.menu-btn {
  display: none; width: 44px; height: 44px; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn__close { display: none; }
.site-head.is-open .menu-btn__open { display: none; }
.site-head.is-open .menu-btn__close { display: block; }

@media (max-width: 1023px) {
  .head-login { display: inline-flex; }
  .menu-btn { display: grid; }
  .nav__login { display: none; }
  .nav {
    position: absolute; top: var(--head-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-2) var(--s-4) var(--s-6);
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(15, 23, 42, 0.3);
    opacity: 0; visibility: hidden; translate: 0 -8px;
    transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .site-head.is-open .nav { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
  .nav__link { min-height: 48px; border-bottom: 1px solid var(--surface); }
  .nav__actions { margin: var(--s-4) 0 0; flex-direction: column; align-items: stretch; }
  .nav__actions .btn { min-height: 48px; }
}
@media (max-width: 359px) { .brand__text { display: none; } }

/* ---------------------------------------------------------------------
   Hero · ข้อความบนพื้นขาวทางซ้าย · รูปห้อง data center เต็มฝั่งขวา
   ---------------------------------------------------------------------
     รูปไม่มีกรอบ · จางจากโปร่งใสทางซ้ายเข้าหาเต็มทางขวา (mask) จึงกลืนเข้ากับพื้นขาว
     ย้อมเป็นสองโทนน้ำเงินแบรนด์ (grayscale + ชั้นสีแบบ multiply) · รูปต้นฉบับเทาเย็น
     อยู่ข้างพื้นหมอกฟ้าแล้วดูเป็นของแปะคนละชิ้น (ผู้ใช้บอกว่า "ดูแปลก")
     จอแคบ: รูปอยู่บนสุดเต็มความกว้าง จางลงไปหาข้อความด้านล่าง
   --------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--white); }
.hero__photo { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 60%; margin: 0; }
.hero__photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
  filter: grayscale(1) contrast(1.08) brightness(1.08);
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--brand-glow) 0%, var(--brand) 55%, var(--brand-navy) 100%);
  mix-blend-mode: multiply; opacity: 0.85;
}
/* จางสองทาง: ซ้ายหาข้อความ และล่างหาส่วนโลโก้ · ไม่มีขอบแข็งตรงไหนเลย */
.hero__photo {
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 25%, #000 60%), linear-gradient(180deg, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 25%, #000 60%), linear-gradient(180deg, #000 72%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
/* 1024–1279px คอลัมน์ข้อความกว้างเกือบครึ่งจอ · รูปแคบลงและเริ่มจางช้าลง ไม่เข้าไปอยู่หลังปุ่ม */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__photo {
    width: 50%;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 35%, #000 75%), linear-gradient(180deg, #000 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 35%, #000 75%), linear-gradient(180deg, #000 72%, transparent 100%);
  }
}
.hero__body { position: relative; padding-top: var(--s-32); padding-bottom: var(--s-32); }
.hero__text { max-width: 720px; }
/* หัวข้อยาว 6 คำ · หนัก 800 ตัวชิด ให้อ่านเป็นก้อนเดียว · คำหลักเป็นสีแบรนด์ */
.hero__title {
  color: var(--ink);
  font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__accent { color: var(--brand); }
/* ย่อหน้ายาวภาษาไทย · สีเนื้อความ (ไม่ใช่น้ำเงินทั้งย่อหน้า) บรรทัดห่างพอให้อ่านสบาย */
.hero__lead {
  margin-top: var(--s-6); max-width: 52ch;
  color: var(--text); font-size: clamp(17px, 1.6vw, 19px); font-weight: var(--text-weight); line-height: 1.8;
  text-wrap: pretty;
}
.hero__cta { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-3); }

@media (max-width: 1023px) {
  .hero__photo {
    inset: 0 0 auto 0; width: 100%; height: 280px;
    mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  }
  /* หัวข้อเริ่มตรงที่รูปจางเกือบหมดแล้ว · ตัวหนังสือไม่อยู่บนรูป */
  .hero__body { padding-top: 264px; padding-bottom: var(--s-16); }
}

/* ---------------------------------------------------------------------
   แถบโลโก้ลูกค้า · เลื่อนวนช้า ๆ ไม่หยุด (เจ้าของต้องการ) ขอบซ้ายขวาจางหาย
   หยุดเฉพาะผู้ใช้ที่ตั้งเครื่องให้ลดการเคลื่อนไหว (ท้ายไฟล์) · ข้อกำหนดการเข้าถึง ไม่ใช่ทางเลือก
   --------------------------------------------------------------------- */
/* พื้นไล่จากขาวลงฟ้าอ่อน แยกแถบนี้ออกจาก hero กับส่วนถัดไปให้เห็นเป็นช่วงของตัวเอง
   หัวข้อใช้ .section-title เหมือนทุก section · เดิมเป็นป้ายเทาเล็ก ๆ ผู้ใช้บอกว่าไม่เตะตา */
.logos {
  padding: var(--s-16) 0 var(--s-12);
  background: linear-gradient(180deg, var(--white) 0%, var(--brand-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.logos__title { font-size: clamp(22px, 2.8vw, 30px); }
.logos__track {
  margin-top: var(--s-8); padding: var(--s-4) 0 var(--s-8); display: flex; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos__row {
  /* ขอบซ้ายขวาข้างละครึ่งของช่องไฟ · รอยต่อตอนวนกลับจึงห่างเท่าช่องอื่นพอดี ไม่เห็นรอย */
  list-style: none; margin: 0; padding: 0 var(--s-6); flex-shrink: 0;
  display: flex; align-items: center; gap: var(--s-12);
  animation: marquee 50s linear infinite;
}
@keyframes marquee { to { translate: -100% 0; } }

/* แผ่นโลโก้ขนาดเท่ากันทุกใบ · พื้นของแผ่นคือสีพื้นของโลโก้นั้นเอง (ตัดและจัดกรอบไว้แล้วในไฟล์ 320px)
   โลโก้พื้นขาวกับโลโก้พื้นสีจึงวางข้างกันแล้วดูเป็นชุดเดียว · ชี้แล้วยกขึ้นและขยายเล็กน้อย */
.logo-tile {
  flex-shrink: 0; width: 152px; height: 152px; overflow: hidden;
  border-radius: var(--radius-xl); background: var(--white);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), var(--shadow-lift);
  transition: scale 300ms var(--ease-out), translate 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.logo-tile:hover { scale: 1.06; translate: 0 -4px; box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25), 0 32px 56px -20px rgba(37, 99, 235, 0.45); }
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) {
  .logos { padding: var(--s-12) 0 var(--s-8); }
  .logos__row { gap: var(--s-6); padding: 0 var(--s-3); animation-duration: 36s; }
  .logo-tile { width: 104px; height: 104px; border-radius: var(--radius-lg); }
}

/* ---------------------------------------------------------------------
   หัวข้อ section · สีแบรนด์ ขีดสั้นใต้หัวข้อ (ระบบเดียวกับเว็บต้นแบบ)
   --------------------------------------------------------------------- */
.section-title {
  color: var(--brand); text-align: center;
  font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.2; letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-title::after {
  content: ""; display: block; width: 32px; height: 2px; margin: var(--s-4) auto 0;
  background: currentColor; border-radius: 2px;
}
.section-title--left { text-align: left; }
.section-title--left::after { margin-left: 0; }
.section-title--light { color: var(--white); }
.section-lead { margin: var(--s-6) auto 0; max-width: 60ch; text-align: center; }
.section-lead--light { color: var(--mist); }

/* ---------------------------------------------------------------------
   แนะนำ
   --------------------------------------------------------------------- */
.intro { padding: var(--s-24) 0 var(--s-16); text-align: center; }
.intro p { margin: var(--s-6) auto 0; max-width: 64ch; }

/* ---------------------------------------------------------------------
   บริการ · แผงไล่สีทางซ้าย การ์ด 2x2 ทางขวา
   แผงซ้ายเป็นรูปช่างหน้าตู้แร็ค ทับด้วยน้ำเงินหมึก ข้อความขาวยังอ่านชัดทั้งแผ่น
   --------------------------------------------------------------------- */
.services { padding: var(--s-8) 0 var(--s-24); }
.services__frame {
  display: grid; padding: 0; overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.35); border-radius: var(--radius-lg);
}
@media (min-width: 768px) {
  .services .wrap { padding: 0; }
  .services__frame { margin: 0 var(--s-8); width: auto; }
}
@media (min-width: 1264px) { .services__frame { margin: 0 auto; } }
.services__panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-3);
  justify-content: flex-end; min-height: 320px; padding: var(--s-12) var(--s-8);
  background: var(--brand-ink);
}
.services__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 35% 40%; }
.services__panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* ด้านบนบางพอให้เห็นช่างหน้าตู้ · ด้านล่าง (ที่มีข้อความ) เข้มพอให้ตัวขาวผ่าน 4.5:1 */
  background: linear-gradient(180deg, rgba(11, 23, 51, 0.2) 0%, rgba(11, 23, 51, 0.55) 45%, rgba(15, 31, 74, 0.94) 100%);
}
.services__title { color: var(--white); font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.services__note { color: var(--mist); max-width: 28ch; }
.services__grid { display: grid; gap: var(--s-4); padding: var(--s-6) var(--s-4); background: var(--surface); }
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s-8); } }
@media (min-width: 1024px) {
  .services__frame { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .services__panel { padding: var(--s-16) var(--s-12); }
  .services__grid { padding: var(--s-12); gap: var(--s-6); }
}

.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: var(--s-8) var(--s-6) var(--s-12);
  transition: box-shadow 250ms var(--ease-out), translate 250ms var(--ease-out);
}
/* แถบสีแบรนด์ขอบล่าง · ยืดเต็มตอนชี้ */
.card::after {
  content: ""; position: absolute; left: var(--s-6); right: var(--s-6); bottom: var(--s-6);
  height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-glow));
  scale: 0.35 1; transform-origin: left; transition: scale 400ms var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-lift); translate: 0 -4px; }
.card:hover::after { scale: 1 1; }
.card__title { color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.card__text { font-size: 15px; line-height: 1.7; }

/* ---------------------------------------------------------------------
   สิ่งที่ดูแล · การ์ดรายการสองคอลัมน์ เส้นแบ่งสีแบรนด์ตรงกลาง จุดนำหน้ารายการ
   --------------------------------------------------------------------- */
.coverage { padding: var(--s-8) 0 var(--s-24); }
.coverage__card {
  margin: var(--s-8) auto 0; max-width: 720px;
  display: grid; gap: var(--s-4);
  padding: var(--s-6); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .coverage__card { grid-template-columns: 1fr 2px 1fr; gap: var(--s-8); padding: var(--s-8) var(--s-12); } }
.coverage__rule { display: none; background: var(--brand); border-radius: 2px; }
@media (min-width: 640px) { .coverage__rule { display: block; } }
.coverage__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.coverage__list li { display: flex; align-items: center; gap: var(--s-3); color: var(--ink); font-size: 15px; }
.coverage__list li::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--brand); }

/* ---------------------------------------------------------------------
   ทำไมต้องเรา · แถบเต็มจอ รูปสวิตช์เครือข่ายทับน้ำเงินหมึก (แบบแถบรูปของเว็บต้นแบบ)
   การ์ดเป็นกระจกบนพื้นเข้ม (มีแสงข้างหลังให้เบลอจริง) ขอบบนเป็นเส้นแสง
   --------------------------------------------------------------------- */
.why { position: relative; isolation: isolate; overflow: hidden; padding: var(--s-24) 0; }
.why__bg { position: absolute; inset: 0; z-index: -1; background: var(--brand-ink); }
.why__bg img { width: 100%; height: 100%; object-fit: cover; }
/* ชั้นน้ำเงินหมึกทับรูป · ตัวอักษรขาวและ mist ต้องผ่าน 4.5:1 ทุกจุด จึงเข้มกว่าครึ่ง */
.why__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(37, 99, 235, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(11, 23, 51, 0.82), rgba(15, 31, 74, 0.9));
}
.why__grid { margin-top: var(--s-12); display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); } }
.why__item {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-8) var(--s-6); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 250ms var(--ease-out);
}
.why__item::before {
  content: ""; position: absolute; left: var(--s-6); right: var(--s-6); top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-glow), transparent);
}
.why__item:hover { background: rgba(255, 255, 255, 0.1); }
.why__title { color: var(--white); font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.why__item p { color: var(--mist); font-size: 15px; }
.cta-band__text p, .services__note, .section-lead--light { font-weight: var(--text-weight); }

/* ---------------------------------------------------------------------
   เหมาะกับใคร · สามคอลัมน์ ข้อความล้วน เส้นสีแบรนด์ด้านบน (แยกด้วยระยะ ไม่ใช่กล่อง)
   --------------------------------------------------------------------- */
.fit { padding: var(--s-24) 0; }
.fit__grid { margin-top: var(--s-12); display: grid; gap: var(--s-8); }
@media (min-width: 768px) { .fit__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-12); } }
.fit__item { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-6); border-top: 2px solid var(--brand); }
.fit__title { color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.fit__item p { max-width: 38ch; }

/* ---------------------------------------------------------------------
   เสียงจากลูกค้า · ใบใหญ่ทางซ้าย (พื้นน้ำเงิน) สองใบเล็กซ้อนทางขวา
   เครื่องหมายคำพูดตัวใหญ่เป็นตัวอักษร ไม่ใช่ไอคอน
   --------------------------------------------------------------------- */
.voices { padding: var(--s-24) 0; background: var(--surface); }
.voices__grid { margin-top: var(--s-12); display: grid; gap: var(--s-6); }
@media (min-width: 1024px) {
  .voices__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; }
  .voice--feature { grid-row: span 2; }
}
.voice {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-8);
  padding: var(--s-8); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card);
}
.voice blockquote { position: relative; color: var(--ink); font-size: 17px; line-height: 1.7; }
.voice--feature {
  overflow: hidden; isolation: isolate; padding: var(--s-12) var(--s-8);
  background: linear-gradient(150deg, var(--brand-ink) 0%, var(--brand-navy) 60%, #1e40af 100%);
  box-shadow: 0 40px 80px -40px rgba(11, 23, 51, 0.6);
}
.voice--feature::before {
  content: "“"; position: absolute; z-index: -1; left: var(--s-6); top: -24px;
  color: rgba(96, 165, 250, 0.25); font-size: 200px; font-weight: 600; line-height: 1;
}
.voice--feature blockquote { color: var(--white); font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; line-height: 1.6; }
.voice figcaption { display: flex; align-items: center; gap: var(--s-3); }
/* รูปผู้ให้คำรับรอง · ครอปใบหน้าไว้แล้วที่ 192px (voices/) · กรอบขาวบาง ๆ แยกรูปออกจากพื้น */
.voice__avatar {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; object-fit: cover;
  background: var(--surface); box-shadow: 0 0 0 3px var(--white), 0 4px 12px -4px rgba(15, 23, 42, 0.3);
}
.voice--feature .voice__avatar { width: 64px; height: 64px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 8px 20px -6px rgba(0, 0, 0, 0.5); }
.voice__who { display: flex; flex-direction: column; line-height: 1.4; }
.voice__who strong { color: var(--ink); font-weight: 600; }
.voice__who span { color: var(--muted); font-size: 14px; }
.voice--feature .voice__who strong { color: var(--white); }
.voice--feature .voice__who span { color: var(--mist); }

/* ---------------------------------------------------------------------
   แถบปิดท้าย · กล่องไล่สีน้ำเงิน ข้อความและปุ่มซ้าย รูปวิศวกรจางเข้าจากขวา
   --------------------------------------------------------------------- */
.cta-band { padding: var(--s-24) 0; }
.cta-band__box {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: var(--s-8); align-items: center;
  padding: var(--s-12) var(--s-6); border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--brand-ink) 0%, var(--brand-navy) 45%, var(--brand) 100%);
  box-shadow: 0 40px 80px -40px rgba(11, 23, 51, 0.6);
}
@media (min-width: 1024px) { .cta-band__box { padding: var(--s-16) 42% var(--s-16) var(--s-16); } }
.cta-band__box::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
/* รูปกินครึ่งขวา จางเข้าหาพื้นน้ำเงินทางซ้าย · ข้อความอยู่ในพื้นที่ที่ไม่มีรูป (padding ขวา 42%) */
.cta-band__photo {
  position: absolute; z-index: -1; top: 0; right: 0; width: 48%; height: 100%; object-fit: cover; object-position: center 35%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  opacity: 0.85; mix-blend-mode: luminosity;
}
.cta-band__text { display: flex; flex-direction: column; gap: var(--s-3); }
.cta-band__title { color: var(--white); font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.cta-band__text p { color: var(--mist); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 639px) { .cta-band__actions .btn { width: 100%; } }
/* จอแคบกว่า 1024px ข้อความเต็มความกว้าง · รูปจางเป็นพื้นทั้งกล่อง */
@media (max-width: 1023px) {
  .cta-band__photo { width: 100%; opacity: 0.22; mask-image: none; -webkit-mask-image: none; }
}

/* ---------------------------------------------------------------------
   คำถามพบบ่อย · แถวกรอบสีแบรนด์ เปิดปิดด้วย <details> (ไม่ต้องพึ่งสคริปต์)
   --------------------------------------------------------------------- */
.faq { padding: var(--s-24) 0; background: var(--surface); }
.faq__list { margin-top: var(--s-8); display: flex; flex-direction: column; gap: var(--s-3); }
.faq__item { background: var(--white); border: 1px solid rgba(37, 99, 235, 0.3); border-radius: var(--radius-sm); transition: border-color 150ms var(--ease-out); }
.faq__item[open] { border-color: var(--brand); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 56px; padding: var(--s-3) var(--s-6); cursor: pointer; list-style: none;
  color: var(--brand-dark); font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__sign { display: grid; place-items: center; flex-shrink: 0; color: var(--muted); transition: rotate 250ms var(--ease-out); }
.faq__sign svg { width: 20px; height: 20px; }
.faq__item[open] .faq__sign { rotate: 45deg; color: var(--brand); }
.faq__item p { padding: 0 var(--s-6) var(--s-6); max-width: 70ch; }

/* ---------------------------------------------------------------------
   ติดต่อ · ข้อความซ้าย การ์ดช่องทางขวา (ป้ายเล็ก + ค่าใหญ่ แทนไอคอน)
   --------------------------------------------------------------------- */
.contact { padding: var(--s-24) 0; }
.contact__row { display: grid; gap: var(--s-12); align-items: center; }
@media (min-width: 1024px) { .contact__row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-16); } }
.contact__text { display: flex; flex-direction: column; gap: var(--s-6); }
.contact__text > p { max-width: 56ch; }
.contact__card {
  display: flex; flex-direction: column; gap: var(--s-1);
  padding: var(--s-8); border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-lift);
}
.contact__label { color: var(--muted); font-size: 13px; font-weight: 500; }
.contact__value {
  display: inline-flex; align-items: baseline; gap: var(--s-2); min-height: 44px; margin-bottom: var(--s-4);
  color: var(--ink); font-size: 22px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
}
.contact__value span { color: var(--muted); font-size: 16px; font-weight: 500; }
.contact__value:hover { color: var(--brand); }

/* ---------------------------------------------------------------------
   ท้ายเว็บ · พื้นเทาอ่อน คำโปรยตัวพิมพ์ใหญ่สีแบรนด์ (ระบบเดียวกับเว็บต้นแบบ)
   --------------------------------------------------------------------- */
.site-foot { padding: var(--s-16) 0 var(--s-8); background: var(--surface); border-top: 1px solid var(--line); }
.site-foot__grid { display: grid; gap: var(--s-8); }
/* สองฝั่ง · ซ้ายตัวตน ขวาชื่อบริษัทกับช่องทางติดต่อ ชิดขอบขวาและชิดล่างให้แนวเดียวกับบรรทัดสุดท้ายของสโลแกน */
@media (min-width: 768px) {
  .site-foot__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-12); }
  .site-foot__info { text-align: right; }
  .site-foot__info .site-foot__contact { justify-content: flex-end; }
}
.site-foot__brand,
.site-foot__info { display: flex; flex-direction: column; gap: var(--s-4); }
.site-foot__tagline { color: var(--brand); font-size: 20px; font-weight: 800; line-height: 1.35; letter-spacing: 0.02em; }
.site-foot__company { color: var(--ink); font-weight: 600; }
.site-foot__company span { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.site-foot__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-3); font-size: 15px; }
.site-foot__contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.site-foot__contact a:hover { color: var(--brand); }
.site-foot__legal { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------------
   ค่อย ๆ ปรากฏตอนเลื่อนถึง · สถานะปกติคือมองเห็นเต็มที่
   landing.js ใส่ .reveal-on ที่ <html> เฉพาะเมื่อสคริปต์ทำงานและผู้ใช้ไม่ได้ปิดการเคลื่อนไหว
   --------------------------------------------------------------------- */
.reveal-on [data-reveal] { opacity: 0; translate: 0 16px; transition: opacity 600ms var(--ease-out), translate 600ms var(--ease-out); }
.reveal-on [data-reveal].is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .logos__row { animation: none !important; }
  .logos__track { flex-wrap: wrap; justify-content: center; mask-image: none; -webkit-mask-image: none; }
  .logos__row { flex-wrap: wrap; justify-content: center; gap: var(--s-8); }
  .logos__row[aria-hidden="true"] { display: none; }
  .card, .btn, .card::after, .logo-tile { transition: none; }
  .logo-tile:hover { scale: none; translate: none; }
  .card:hover, .btn--solid:hover { translate: none; }
}
