:root {
  color-scheme: dark;
  --bg: #061a10;
  --panel: rgba(10, 45, 25, 0.65);
  --accent: #33ff88;
  --accent2: #00c46a;
  --text: #eafff2;
  --muted: rgba(234, 255, 242, 0.7);
  --border: rgba(51, 255, 136, 0.25);
  --glow: 0 0 24px rgba(51, 255, 136, 0.25);
  --radius: 18px;
  --max-width: 1100px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Lao", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 64px;
  /* พื้นหลัง: ใส่ไฟล์ bg.png ไว้ที่ root โฟลเดอร์ (ข้าง index.html) */
  background: url("/bg.png") no-repeat;
  background-size: cover;
  background-position: 55% 50%;
  overflow: hidden;
}

/* เฉพาะเอฟเฟกต์เรืองเขียวอ่อน ไม่มืดทับรูป พื้นหลังด้านขวาให้เห็น bg.png ชัด */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 50%, rgba(51, 255, 136, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 85% 60%, rgba(0, 196, 106, 0.05) 0%, transparent 45%);
  pointer-events: none;
}

/* Overlay: มืดเฉพาะด้านซ้ายใต้บล็อกสมัคร ด้านขวาเปิดให้รูปพื้นหลัง (bg.png) โชว์ตรงว่างข้างบล็อก */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 20, 11, 0.92) 0%,
    rgba(4, 20, 11, 0.6) 22%,
    rgba(4, 20, 11, 0.15) 38%,
    transparent 50%
  );
  z-index: 1;
}

.nav {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(51, 255, 136, 0.35);
}

.brand--logo {
  display: inline-flex;
  align-items: center;
}

.brand--logo .logo-img {
  display: block;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand--logo .brand__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav__links {
  display: none;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--accent);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 48px 20px 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

/* แผงข้อความด้านซ้าย ไม่ทับโลโก้/ตัวละครกลาง-ขวา */
.hero__panel {
  max-width: 400px;
  background: rgba(4, 20, 11, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(51, 255, 136, 0.1);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--accent2);
  margin-bottom: 12px;
}

.hero__title,
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin: 0 0 10px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn {
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #042011;
  box-shadow: var(--glow);
}

.btn--ghost {
  border-color: var(--border);
  background: rgba(6, 26, 16, 0.4);
  color: var(--text);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(51, 255, 136, 0.4);
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.trust-card {
  background: rgba(6, 26, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px;
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  text-align: center;
  animation: floatIn 0.6s ease;
}

.section {
  padding: 80px 20px;
}

.section--alt {
  background: rgba(6, 26, 16, 0.6);
}

.section__header {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section__header h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.section__header p {
  color: var(--muted);
}

.grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border 0.2s ease;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(51, 255, 136, 0.5);
}

.benefits {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.benefits p {
  margin-top: 0;
  color: var(--muted);
}

.benefits p + p {
  margin-top: 18px;
}

.accordion {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.accordion__item {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.accordion__button {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  color: var(--text);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
}

.accordion__button::after {
  content: "+";
  position: absolute;
  right: 20px;
  color: var(--accent);
  font-size: 1.2rem;
}

.accordion__button[aria-expanded="true"]::after {
  content: "–";
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: var(--muted);
  transition: max-height 0.25s ease;
}

.accordion__panel p {
  margin: 0 0 18px;
}

.footer {
  padding: 60px 20px 30px;
  background: #04140b;
}

.footer__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer h4 {
  margin-bottom: 10px;
}

.footer__text {
  color: var(--muted);
}

.footer a {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--accent);
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 30px auto 0;
  text-align: center;
  color: rgba(234, 255, 242, 0.5);
  font-size: 0.85rem;
}

/* ปุ่ม WhatsApp / LINE: วางสูงขึ้นขวา ไม่ทับฉลาม/คนด้านล่าง */
.sticky-contact {
  position: fixed;
  right: 20px;
  bottom: 140px;
  display: grid;
  gap: 12px;
  z-index: 100;
}

.sticky-contact__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #042011;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(51, 255, 136, 0.4);
  border: 2px solid var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-contact__btn--line {
  background: #032a12;
  border-color: #00f076;
  color: #00f076;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(0, 240, 118, 0.4);
}

.sticky-contact__btn:hover,
.sticky-contact__btn:focus-visible {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(51, 255, 136, 0.35);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 500px) {
  .hero__panel {
    max-width: 100%;
    padding: 22px 18px;
  }
  .hero__trust {
    grid-template-columns: 1fr;
  }
  .sticky-contact {
    bottom: 100px;
    right: 14px;
  }
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }
  .hero__content {
    margin-left: 24px;
  }
}
