/* ==========================================================================
   FM5 CITY — หน้า Landing
   สไตล์เว็บเซิร์ฟเวอร์ GTA RP: ภาพถนนเมืองต่อเนื่องโทนเทา-แดง, รถสปอร์ตไฟท้ายแดง,
   ขั้นตอน STEP พร้อมลูกศร, ปุ่มเทาเข้ม, แผ่นโซเชียลลายเซลล์ 3D, FAQ แบบกริด
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #0c0c0e;
  --bg-2: #111114;
  --panel: rgba(20, 20, 23, 0.82);
  --panel-solid: #161619;
  --btn: #2a2a2e;
  --btn-hover: #38383d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --red: #0ea5ff;
  --red-2: #2563eb;
  --red-glow: rgba(14, 165, 255, 0.45);

  --text: #f5f5f7;
  --text-2: #b9b9c2;
  --text-3: #80808b;

  --font: 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-en: 'Outfit', 'Kanit', system-ui, sans-serif;

  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 6.5rem);
  --nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

code {
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.05em 0.4em;
  border-radius: 3px;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--red);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------------- หัวข้อ ---------------- */
.heading-line,
.heading-plain {
  font-family: var(--font-en), var(--font);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

/* เส้นใต้สีแดงแบบในตัวอย่าง (ABOUT US) */
.heading-line {
  display: inline-block;
  position: relative;
  padding-bottom: 0.35rem;
}

.heading-line::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 0.6em);
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 70%, transparent 100%);
}

.section-sub {
  margin-top: 0.5rem;
  color: var(--text-3);
  font-size: 0.92rem;
}

/* ---------------- ปุ่ม (เทาเข้มแบบตัวอย่าง) ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-en), var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--btn);
  border-radius: 4px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.8);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--btn-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  min-width: 200px;
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px -12px var(--red-glow);
}

.btn-red:hover {
  background: #38b6ff;
  box-shadow: 0 14px 36px -10px rgba(14, 165, 255, 0.6);
}

.btn-disabled {
  color: var(--text-3);
  background: rgba(42, 42, 46, 0.5);
  cursor: default;
  box-shadow: none;
}

.btn-disabled:hover {
  background: rgba(42, 42, 46, 0.5);
}

/* ---------------- ส่วนหัว ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.is-scrolled,
.nav.menu-open {
  background: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav-row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 6px;
}

/* โลโก้ ZERO CITY แนวนอน: สูงคงที่ กว้างตามสัดส่วน ไม่ถูกบีบ/ครอปในแถว flex */
.nav-brand img,
.nav-brand .nav-brand-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 0 10px rgba(14, 165, 255, 0.35)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-brand:hover .nav-brand-logo,
.nav-brand:focus-visible .nav-brand-logo {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 0 16px rgba(14, 165, 255, 0.6)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.nav-brand:focus-visible {
  outline: 2px solid rgba(14, 165, 255, 0.8);
  outline-offset: 4px;
}

@media (max-width: 560px) {
  .nav-brand img,
  .nav-brand .nav-brand-logo {
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-brand .nav-brand-logo { transition: none; }
  .nav-brand:hover .nav-brand-logo { transform: none; }
}

.nav-brand-name {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.nav-brand-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--red);
  align-self: flex-end;
  margin-bottom: 0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

/* ---- ปุ่มบนแถบเมนู: ชุดปุ่มทรงแคปซูลสูงเท่ากัน + ไอคอน (ร้านค้า ขาว · เข้าสู่ระบบ กระจก · สมัครสมาชิก ไล่ฟ้า-น้ำเงิน) ---- */
.nav-links {
  gap: 0.6rem;
}

.nav-links .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-links .nav-btn .nav-ic {
  flex: none;
}

.nav-links .nav-btn:hover {
  transform: translateY(-1px);
}

.nav-links .nav-btn:focus-visible {
  outline: 2px solid #5cc8ff;
  outline-offset: 3px;
}

.nav-links .nav-store {
  color: #0b6fd6;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.nav-links .nav-store:hover {
  color: #2563eb;
  background: #eaf6ff;
}

.nav-links .nav-login {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.nav-links .nav-login:hover {
  color: #fff;
  background: rgba(14, 165, 255, 0.14);
  border-color: rgba(92, 200, 255, 0.6);
}

/* ปุ่มชื่อผู้ใช้ (แทน เข้าสู่ระบบ/สมัครสมาชิก เมื่อล็อกอินแล้ว — js/landing.js) */
.nav-links .nav-user {
  max-width: 15rem;
}

.nav-links .nav-user span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links .nav-signup {
  color: #fff;
  background: linear-gradient(135deg, #22b8ff 0%, #0ea5ff 40%, #2563eb 100%);
  box-shadow: 0 0 0 1px rgba(92, 200, 255, 0.35) inset, 0 8px 22px rgba(14, 165, 255, 0.38);
}

.nav-links .nav-signup:hover {
  color: #fff;
  box-shadow: 0 0 0 1px rgba(140, 215, 255, 0.55) inset, 0 10px 28px rgba(14, 165, 255, 0.55);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--btn);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- ฉากหลักต่อเนื่อง ----------------
   ภาพถนนเมืองเดียวไหลยาวตั้งแต่ HERO ถึงส่วนเกี่ยวกับเรา (เหมือนตัวอย่าง) */
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.stage-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #141012;
}

.stage-bg img {
  width: 100%;
  height: max(115svh, 820px);
  object-fit: cover;
  object-position: 50% 85%;
  /* โทนเทาอมชมพูแบบในตัวอย่าง */
  filter: grayscale(1) sepia(0.45) hue-rotate(175deg) saturate(1.7) contrast(1.12) brightness(0.62);
  /* ไล่จางด้านล่างให้กลืนกับพื้นหลัง ไม่มีขอบตัด */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}

/* ย้อมถนนเป็นชมพู-แดง + มืดด้านซ้ายให้อ่านง่าย + ไล่เข้าพื้นหลังด้านล่าง */
.stage-bg::before,
.stage-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-bg::before {
  height: max(115svh, 820px);
  background:
    linear-gradient(180deg, rgba(140, 215, 255, 0.35) 0%, rgba(14, 165, 255, 0.55) 60%, rgba(37, 99, 235, 0.7) 100%);
  mix-blend-mode: color;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}

.stage-bg::after {
  background:
    /* แสงไฟท้ายสะท้อนบนถนนใต้รถ */
    radial-gradient(ellipse 30% 9% at 70% min(88svh, 640px), rgba(14, 165, 255, 0.35), transparent 70%),
    linear-gradient(90deg, rgba(12, 12, 14, 0.85) 0%, rgba(12, 12, 14, 0.45) 38%, rgba(12, 12, 14, 0.05) 65%),
    linear-gradient(180deg, rgba(12, 12, 14, 0.55) 0, transparent 90px);
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

.hero-title {
  margin: 1rem 0 1.1rem;
  font-family: var(--font-en);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.hero-title span {
  color: var(--red);
}

.hero-lead {
  max-width: 460px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--text-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* รถสปอร์ต */
.hero-car {
  position: relative;
  justify-self: end;
  width: min(118%, 780px);
  margin-right: -12%;
  margin-bottom: -3.5rem;
}

.car {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.65));
}

/* แสงไฟท้ายสีแดงสะท้อนบนถนน (หายใจช้า ๆ) */
.car-glow {
  position: absolute;
  z-index: 0;
  left: 40%;
  right: -4%;
  bottom: -4%;
  height: 34%;
  background: radial-gradient(ellipse at 45% 50%, rgba(14, 165, 255, 0.45), rgba(37, 99, 235, 0.16) 45%, transparent 72%);
  filter: blur(14px);
  animation: tail-glow 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tail-glow {
  50% {
    opacity: 0.7;
  }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  color: var(--text-3);
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translate(-50%, 6px);
  }
}

/* ---------------- ขั้นตอน + เกี่ยวกับเรา ---------------- */
.start {
  position: relative;
  padding: 3rem 0 2rem;
}

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
}

.step-label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--red);
}

.step-title {
  margin: 0.15rem 0 0.4rem;
  font-family: var(--font-en), var(--font);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
}

.step p {
  max-width: 340px;
  font-size: 0.9rem;
  color: var(--text-2);
}

.step .btn {
  margin-top: 1.3rem;
}

.step-arrow {
  display: flex;
  padding: 1.4rem 0 1.4rem 3.2rem;
  color: var(--text-3);
}

.about {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  padding-top: 0.5rem;
}

.about-inner p {
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 0.98rem;
  max-width: 560px;
}

.about-stats {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-top: 1.8rem;
}

.about-stats li {
  display: flex;
  flex-direction: column;
  padding-left: 0.9rem;
  border-left: 2px solid var(--red);
}

.about-stats b {
  font-family: var(--font-en);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
}

.about-stats span {
  font-size: 0.8rem;
  color: var(--text-3);
}

.about-photo {
  position: relative;
  margin-top: 2.2rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.05) brightness(0.8);
  transition: filter 0.5s ease, transform 0.8s ease;
}

.about-photo:hover img {
  filter: none;
  transform: scale(1.04);
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 12, 14, 0.9) 0%, transparent 55%);
}

.about-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 1.1rem;
  bottom: 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
}

/* ---------------- ส่วนทั่วไป ---------------- */
.section {
  padding: var(--section) 0;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* ---------------- ดาวน์โหลด ---------------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.platform {
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.platform:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.platform.is-live {
  border-color: rgba(14, 165, 255, 0.45);
  background: linear-gradient(160deg, rgba(14, 165, 255, 0.12), var(--panel-solid) 55%);
}

.platform-badge {
  align-self: flex-start;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.platform.is-live .platform-badge {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.platform h3 {
  margin-top: 1.1rem;
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.platform-meta {
  font-size: 0.82rem;
  color: var(--text-3);
}

.ticks {
  display: grid;
  gap: 0.5rem;
  margin: 1.2rem 0 1.6rem;
  flex: 1;
}

.ticks li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--red);
}

.platform:not(.is-live) .ticks li::before {
  background: var(--text-3);
}

.platform .btn {
  align-self: flex-start;
}

/* ---------------- ภาพในเกม ---------------- */
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 15vw, 200px);
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.shot {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
}

.shot-lg {
  grid-column: span 2;
  grid-row: span 2;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.8);
  transition: filter 0.4s ease, transform 0.6s ease;
}

.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 12, 14, 0.9) 0%, transparent 50%);
  pointer-events: none;
}

.shot:hover img,
.shot:focus-visible img {
  filter: none;
  transform: scale(1.05);
}

.shot-cap {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 0.8rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.shot-cap b {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--red);
}

.shot-lg .shot-cap {
  left: 1.4rem;
  bottom: 1.2rem;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
}

/* ---------------- โซเชียล (แผ่นลายเซลล์ 3D) ---------------- */
.socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, 96px);
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.social {
  position: relative;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  border-radius: 3px;
  overflow: hidden;
  background-color: #151518;
  /* ลายเซลล์แบบ 3D (วาดด้วย SVG) */
  background-image:
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%234a4a52'/%3E%3Cstop offset='1' stop-color='%23101013'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' stroke-width='9' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M-5 30 L28 18 L52 40 L40 72 L8 70 Z'/%3E%3Cpath d='M52 40 L88 22 L118 44 L104 78 L70 82 Z'/%3E%3Cpath d='M118 44 L145 30'/%3E%3Cpath d='M28 18 L34 -5'/%3E%3Cpath d='M88 22 L84 -5'/%3E%3Cpath d='M8 70 L-5 96'/%3E%3Cpath d='M40 72 L70 82 L62 116 L26 120 L14 96 Z'/%3E%3Cpath d='M104 78 L136 92 L128 124 L96 128 L62 116'/%3E%3Cpath d='M26 120 L22 145'/%3E%3Cpath d='M96 128 L100 145'/%3E%3Cpath d='M136 92 L145 90'/%3E%3C/g%3E%3Cg fill='none' stroke='%23000' stroke-opacity='0.55' stroke-width='2'%3E%3Cpath d='M-5 30 L28 18 L52 40 L40 72 L8 70 Z' transform='translate(3 4)'/%3E%3Cpath d='M52 40 L88 22 L118 44 L104 78 L70 82 Z' transform='translate(3 4)'/%3E%3Cpath d='M40 72 L70 82 L62 116 L26 120 L14 96 Z' transform='translate(3 4)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, 140px 140px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  opacity: 0;
  mix-blend-mode: color;
  transition: opacity 0.3s ease;
}

.social:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: 0 14px 30px -14px var(--red-glow);
}

.social:hover::before {
  opacity: 1;
}

.social-tall {
  grid-row: span 2;
}

/* ---------------- FAQ (กริดกล่องเล็กแบบตัวอย่าง) ---------------- */
.section-faq {
  padding-top: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.faq {
  padding: 1.1rem 1.2rem 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(20, 20, 23, 0.5);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq:hover {
  border-color: rgba(14, 165, 255, 0.6);
  background: rgba(14, 165, 255, 0.05);
}

.faq h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

.faq p {
  font-size: 0.85rem;
  color: var(--text-2);
}

.faq a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- ส่วนท้าย ---------------- */
.footer {
  padding: 0 0 2.2rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-strong);
  font-size: 0.78rem;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links > * {
  padding: 0 1rem;
  border-left: 1px solid var(--line-strong);
}

.footer-links > *:first-child {
  padding-left: 0;
  border-left: 0;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-credit {
  flex-basis: 100%;
  font-size: 0.72rem;
  color: var(--text-3);
  opacity: 0.8;
}

.footer-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 4.5rem;
  background: rgba(5, 5, 7, 0.94);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: 100%;
  max-width: 1200px;
}

.lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox figcaption {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--text-2);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 4px;
  background: var(--btn);
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--red);
}

.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.1rem;
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  z-index: 250;
  left: 50%;
  bottom: 1.5rem;
  padding: 0.85rem 1.3rem;
  background: #1d1d21;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  font-size: 0.92rem;
  transform: translate(-50%, 200%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0.35s;
  pointer-events: none;
}

.toast.is-show {
  transform: translate(-50%, 0);
  visibility: visible;
}

/* ---------------- แอนิเมชันเมื่อเลื่อนถึง ----------------
   มองเห็นเสมอโดยค่าเริ่มต้น — ซ่อนก่อนเฉพาะเมื่อ JS ทำงาน (class .js บน <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .nav-brand-tag {
    display: none;
  }

  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--pad) 1.5rem;
    background: rgba(12, 12, 14, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }

  .nav-links.is-open {
    transform: none;
    visibility: visible;
  }

  .nav-links a {
    padding: 0.9rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .nav-btn,
  .nav-links .nav-btn:first-child {
    display: flex;
    width: 100%;
    height: 48px;
    margin: 0.6rem 0 0;
    padding: 0 1rem;
    font-size: 1rem;
    border-bottom: 1px solid transparent;
  }

  .nav-links .nav-login {
    border-color: rgba(255, 255, 255, 0.22);
  }

  .nav-links .nav-user {
    max-width: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-grid,
  .start-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-car {
    justify-self: center;
    width: 100%;
    margin: 1.5rem 0 0;
  }

  .about {
    position: static;
  }

  .stage-bg img {
    object-position: 50% 40%;
  }

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

  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(120px, 28vw, 200px);
  }
}

@media (max-width: 560px) {
  .cta-row .btn {
    flex: 1 1 100%;
  }

  .step-arrow {
    padding-left: 2rem;
  }

  .shots {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .shot-lg {
    grid-column: auto;
    grid-row: auto;
  }

  .socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 70px);
  }

  .socials .social:nth-child(3),
  .socials .social:nth-child(4) {
    grid-column: span 1;
  }

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

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox {
    padding: 4.5rem 0.75rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   ฉากแรกแบบตัวอย่าง: STEP ซ้าย · รถ + เกี่ยวกับเรา ขวา (ทับคลาส hero เดิม)
   ========================================================================== */
.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;
}

.hero {
  display: block;
  min-height: 0;
  padding: calc(var(--nav-h) + 1rem) 0 var(--section);
}

.hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
}

/* STEP เริ่มต่ำลงมาเหมือนตัวอย่าง (รถอยู่สูงกว่า STEP 1) */
.hero .steps {
  padding-top: clamp(9rem, 26vh, 15rem);
}

.hero-right {
  position: relative;
  min-width: 0;
}

/* รถอยู่ช่วงกลางถนน ระยะกลาง */
.hero .hero-car {
  justify-self: auto;
  width: min(100%, 760px);
  /* วางล้อรถให้แตะถนน (~80% ของความสูงจอ) */
  margin: max(10rem, calc(80svh - 21rem)) 0 0 auto;
  transform: translateX(4%);
}

.hero .car-glow {
  left: 42%;
  right: -2%;
  bottom: -6%;
  height: 34%;
}

/* เกี่ยวกับเรา + ปืนประกอบฉาก */
.hero .about {
  position: relative;
  top: auto;
  margin-top: clamp(5rem, 14vh, 8rem);
  padding-left: clamp(4rem, 14vw, 13rem);
}

.prop-rifle {
  position: absolute;
  z-index: 0;
  left: -2%;
  top: -11rem;
  width: clamp(240px, 26vw, 360px);
  height: auto;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.hero .about-inner {
  position: relative;
  z-index: 1;
}

.hero .about-inner p {
  font-size: 0.92rem;
  max-width: 520px;
}

@media (max-width: 900px) {
  .hero .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* มือถือ: รถขึ้นก่อน แล้ว STEP แล้วค่อยเกี่ยวกับเรา */
  .hero-right {
    display: contents;
  }

  .hero .hero-car {
    order: -1;
    width: 100%;
    /* มือถือ: วางรถลงบนช่วงถนนของภาพพื้นหลัง */
    margin: max(12rem, calc(58svh - 10rem)) 0 0;
    transform: none;
  }

  .hero .steps {
    padding-top: 1rem;
  }

  .hero .about {
    margin-top: 3.5rem;
    padding-left: 0;
  }

  .prop-rifle {
    display: none;
  }
}


/* ==========================================================================
   ปรับให้ใกล้ตัวอย่างยิ่งขึ้น: ปืนใหญ่ทับหัวข้อ, STEP/ปุ่มใหญ่ขึ้น, พื้นหลังสว่างอมชมพู
   ========================================================================== */
.stage-bg img {
  filter: grayscale(1) sepia(0.5) hue-rotate(175deg) saturate(1.9) contrast(1.08) brightness(0.8);
}

.stage-bg::before {
  opacity: 0.8;
}

.hero .step-label {
  font-size: 1rem;
}

.hero .step-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.hero .step p {
  font-size: 0.9rem;
}

.hero .step .btn {
  min-width: 240px;
  padding: 1.05rem 2rem;
  font-size: 1.15rem;
}

/* ปืน: ใหญ่ เฉียง วางทับด้านขวาของหัวข้อ "เกี่ยวกับเรา" ข้อความวิ่งทับด้ามปืนเหมือนตัวอย่าง */
.hero .about {
  margin-top: clamp(13rem, 30vh, 17rem);
  padding-left: clamp(3rem, 10vw, 9rem);
}

.prop-rifle {
  left: clamp(9rem, 22vw, 19rem);
  right: auto;
  top: -12.5rem;
  width: clamp(280px, 30vw, 430px);
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, 0.8));
}

.hero .about-inner p {
  text-shadow: 0 1px 8px rgba(12, 12, 14, 0.9);
}

@media (max-width: 900px) {
  .hero .step .btn {
    min-width: 200px;
  }
}


/* GT-R R35: ภาพสูงกว่าเดิม — ย่อความกว้างให้สัดส่วนบนจอใกล้เคียงคันเดิม และย้ายแสงสะท้อนใต้ไฟท้าย */
.hero .hero-car {
  width: min(78%, 600px);
  margin-top: max(7rem, calc(80svh - 27rem));
}

.hero .car-glow {
  left: 22%;
  right: 12%;
  bottom: 4%;
  height: 26%;
}

@media (max-width: 900px) {
  .hero .hero-car {
    width: 88%;
    margin: max(9rem, calc(56svh - 12rem)) auto 0;
  }
}


/* ==========================================================================
   หัวรถในภาพต้นฉบับหลุดเฟรม — ไล่จางด้านหน้าให้เหมือนรถโผล่ออกมาจากความมืด
   ========================================================================== */
.hero .car {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 9%, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 9%, #000 24%);
}

/* ==========================================================================
   มือถือ (≤ 900px) — ชุดสไตล์เฉพาะ เขียนไว้ท้ายสุดเพื่อทับค่าของจอคอม
   ========================================================================== */
@media (max-width: 900px) {

  /* --- ฉากแรก: รถกลางถนน --- */
  .hero {
    padding-bottom: 3.5rem;
  }

  .hero .hero-car {
    width: 96%;
    margin: max(8rem, calc(50svh - 11rem)) auto 0;
  }

  .hero .car-glow {
    left: 20%;
    right: 8%;
    bottom: 2%;
    height: 30%;
  }

  /* --- STEP: การ์ดโปร่งเรียงแนวตั้ง ปุ่มกว้างเต็ม --- */
  .hero .steps {
    padding-top: 1.5rem;
  }

  .hero .step {
    padding: 1.2rem 1.2rem 1.35rem;
    background: rgba(12, 12, 14, 0.62);
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: 4px;
    backdrop-filter: blur(6px);
  }

  .hero .step-title {
    font-size: 1.75rem;
  }

  .hero .step p {
    max-width: none;
  }

  .hero .step p br {
    display: none;
  }

  .hero .step .btn {
    width: 100%;
    min-width: 0;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
  }

  .hero .step-arrow {
    padding: 0.7rem 0 0.7rem 1.5rem;
  }

  /* --- เกี่ยวกับเรา: ปืนวางเฉียงทับมุมขวาของหัวข้อแบบตัวอย่าง --- */
  .hero .about {
    margin-top: 9.5rem;
    padding-left: 0;
  }

  .prop-rifle {
    display: block;
    left: auto;
    right: -0.75rem;
    top: -8.5rem;
    width: min(56vw, 240px);
  }

  .hero .heading-line {
    font-size: 2rem;
  }

  .hero .about-inner p {
    font-size: 0.92rem;
  }

  /* --- ภาพในเกม: กริด 2 คอลัมน์ ภาพแรกเต็มแถว --- */
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 118px;
    gap: 0.55rem;
  }

  .shot-lg {
    grid-column: span 2;
    grid-row: span 2;
  }

  .shot-cap {
    left: 0.6rem;
    bottom: 0.5rem;
    font-size: 0.78rem;
  }

  .shot-lg .shot-cap {
    left: 0.9rem;
    bottom: 0.8rem;
    font-size: 1.15rem;
  }

  /* --- ส่วนท้าย: ลิงก์เป็นกริด ไม่มีเส้นคั่นที่หักบรรทัดเพี้ยน --- */
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 0.5rem 1.5rem;
  }

  .footer-links > * {
    padding: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 104px;
  }

  .shot-lg {
    grid-column: span 2;
    grid-row: span 2;
  }

  .socials {
    grid-template-rows: repeat(3, 78px);
  }
}

/* สีพื้นฉากแรกเท่ากับพื้นเว็บ — ไม่มีขอบเส้นตรงตรงรอยต่อ */
.stage-bg {
  background: var(--bg);
}


/* GT-R SpecV (เห็นทั้งคัน มุมต่ำ หัวชี้ซ้ายแบบตัวอย่าง): ไม่ต้องไล่จางหัวรถ, วางกลางถนนระยะกลาง */
.hero .car {
  -webkit-mask-image: none;
  mask-image: none;
}

.hero .hero-car {
  width: min(100%, 740px);
  margin-top: max(10rem, calc(80svh - 20rem));
}

.hero .car-glow {
  left: 58%;
  right: -2%;
  bottom: 2%;
  height: 30%;
}

@media (max-width: 900px) {
  .hero .hero-car {
    width: 100%;
    margin: max(9rem, calc(54svh - 9rem)) auto 0;
  }

  .hero .car-glow {
    left: 55%;
    right: 0;
  }
}


/* ==========================================================================
   เงาใต้รถ + แสงไฟท้ายกระทบถนน + ปรับพื้นหลังให้รถเด่น
   ========================================================================== */
.hero .hero-car {
  position: relative;
  overflow: visible;
}

.car-fx {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.car-fx .fx-light {
  mix-blend-mode: screen;
  animation: tail-glow 3.5s ease-in-out infinite;
}

.hero .car {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55));
}

/* พื้นหลัง: ท้องฟ้าหม่นลง โทนพลบค่ำ + ขอบมืดรอบภาพ ให้สายตาไปจบที่รถ */
.stage-bg img {
  filter: grayscale(1) sepia(0.5) hue-rotate(175deg) saturate(1.7) contrast(1.15) brightness(0.62);
}

.stage-bg::after {
  background:
    radial-gradient(ellipse 75% 60% at 66% 70%, transparent 35%, rgba(8, 8, 10, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.7) 0%, rgba(8, 8, 10, 0.15) 22%, transparent 45%),
    linear-gradient(90deg, rgba(12, 12, 14, 0.85) 0%, rgba(12, 12, 14, 0.4) 36%, rgba(12, 12, 14, 0.05) 62%),
    linear-gradient(180deg, rgba(12, 12, 14, 0.55) 0, transparent 90px);
}

/* ถนนเปียก: แสงแดงสะท้อนบาง ๆ ทั่วพื้นถนนช่วงล่าง */
.stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  height: max(115svh, 820px);
  background: radial-gradient(ellipse 60% 22% at 70% 88%, rgba(14, 165, 255, 0.16), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (max-width: 900px) {
  .stage-bg::after {
    background:
      linear-gradient(180deg, rgba(8, 8, 10, 0.65) 0%, rgba(8, 8, 10, 0.1) 25%, transparent 45%),
      radial-gradient(ellipse 90% 50% at 50% 62%, transparent 40%, rgba(8, 8, 10, 0.5) 100%);
  }

  .stage::after {
    background: radial-gradient(ellipse 80% 16% at 60% 66%, rgba(14, 165, 255, 0.16), transparent 70%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .car-fx .fx-light {
    animation: none;
  }
}


/* ==========================================================================
   แถบเลื่อน (scrollbar) สีชมพู
   ========================================================================== */
/* Firefox ใช้ scrollbar-color; Chrome/Edge ใช้ ::-webkit-scrollbar ด้านล่าง (ถ้าตั้ง scrollbar-color ใน Chrome ลายไล่สีจะหาย) */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: #0ea5ff #141417;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #141417;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5cc8ff 0%, #0ea5ff 45%, #2563eb 100%);
  border: 2px solid #141417;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(14, 165, 255, 0.55);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8bd8ff 0%, #38b6ff 45%, #0ea5ff 100%);
}

::-webkit-scrollbar-corner {
  background: #141417;
}

/* ---------------- สถานะยังไม่เปิดใช้งาน (ดาวน์โหลด/โซเชียล) ---------------- */
.platform-note {
  margin: -0.6rem 0 1.1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-3);
}

.platform-note[hidden] {
  display: none;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.65;
}

.social.is-disabled,
.social[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.social.is-disabled:hover,
.social[aria-disabled="true"]:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.social.is-disabled:hover::before,
.social[aria-disabled="true"]:hover::before {
  opacity: 0;
}

/* ===== จุดเด่น 3 การ์ด (layout ตาม section.features) ===== */
.features { padding: 2rem 0 1rem; }
.features-list {
  list-style: none;
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.fcard {
  counter-increment: steps;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #0e0e0f;
  border: 1px solid var(--line);
}
.fcard-img { width: 100%; aspect-ratio: 612 / 502; overflow: hidden; }
.fcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fcard-body { position: relative; padding: 1rem 1.25rem 2.5rem; text-align: center; }
.fcard-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
  max-width: 20rem;
  margin: 0 auto 0.75rem;
}
.fcard-title::before {
  content: "#" counter(steps);
  display: block;
  width: fit-content;
  margin: 0 auto 1rem;
  padding: 0.35rem 1rem;
  font-size: 1.1rem;
  line-height: 1;
  color: #fff;
  background: var(--red-2);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}
.fcard-desc { max-width: 23rem; margin: 0 auto; color: var(--text-3); }
@media (max-width: 900px) {
  .features-list { grid-template-columns: 1fr; }
  .fcard-body { padding-bottom: 1.75rem; }
}

/* ===== สตาร์ทเตอร์แพ็ก (layout ตาม section.join) ===== */
.join { padding: 4rem 0 2rem; }
.join-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 3.5rem 3rem;
  background: #0e0e0f;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.join-content { display: grid; gap: 1.5rem; width: 22rem; justify-items: start; }
.join-headline { font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.25; font-weight: 700; }
.join-headline mark { background: none; color: var(--red); padding: 0 0.3em; }
.join-img { position: absolute; bottom: 0; inset-inline-start: 24rem; width: 22%; height: auto; z-index: 2; pointer-events: none; }
.join-items { list-style: none; margin-inline-start: auto; width: 40%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.join-item { position: relative; overflow: hidden; border-radius: 16px; background: #18181a; aspect-ratio: 249 / 324; padding: 1rem; text-align: center; }
.join-item p { position: relative; z-index: 1; font-size: 0.875rem; }
.join-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
@media (max-width: 1100px) {
  .join-img { display: none; }
  .join-items { width: 55%; }
}
@media (max-width: 900px) {
  .join-card { flex-direction: column; align-items: stretch; padding: 2rem 1.25rem; gap: 1.5rem; text-align: center; }
  .join-content { width: auto; justify-items: center; }
  .join-items { width: 100%; margin: 0; }
  .join-item { aspect-ratio: 249 / 360; padding: 0.75rem; }
  .join-item p { font-size: 0.75rem; }
}

/* ===== จุดเด่น: เต็มความกว้างตาม ref ===== */
.features { padding: 1rem 0 2rem; min-height: 0; display: block; }
.features > .wrap { max-width: none; padding: 0 2rem; display: block; }
.features-list { gap: 1.25rem; width: auto; }
.fcard { display: block; min-height: 0; border: 0; border-radius: 24px; }
.fcard:last-child { border: 0; }
.fcard-img { position: relative; flex: none; aspect-ratio: 612 / 502; }
.fcard-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, #0e0e0f, transparent); }
.fcard-img img { object-position: center top; }
.fcard-body { margin-top: -2.5rem; z-index: 1; padding: 0 1rem 4rem; }
.fcard-title { font-size: clamp(1.6rem, 2.4vw, 2.25rem); }
@media (max-width: 900px) {
  .features > .wrap { padding: 0 1rem; }
  .fcard-body { padding-bottom: 2rem; }
}
.fcard-title { max-width: 100%; font-size: clamp(1.4rem, 1.9vw, 1.9rem); white-space: nowrap; }
@media (max-width: 900px) { .fcard-title { white-space: normal; } }

/* ===== สตาร์ทเตอร์แพ็ก: เต็มความกว้างตาม ref ===== */
.join > .wrap { max-width: none; padding: 0 2rem; }
.join-card { border: 0; border-radius: 24px; padding: 3.5rem 3rem; min-height: 21.5rem; }
.join-content { width: 25rem; }
.join-headline { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.join-img { inset-inline-start: 25rem; width: 35%; height: auto; }
.join-items { width: 44%; }
.join-item { aspect-ratio: 249 / 324; }
@media (max-width: 1400px) { .join-img { inset-inline-start: 23rem; width: 30%; } .join-content { width: 22rem; } }
@media (max-width: 1100px) { .join-img { display: none; } .join-items { width: 55%; } }
@media (max-width: 900px) {
  .join > .wrap { padding: 0 1rem; }
  .join-card { padding: 2rem 1.25rem; }
  .join-content { width: auto; }
  .join-items { width: 100%; }
}

/* ===== FAQ ตาม ref (section.faq) ===== */
.qa { position: relative; margin-top: -2rem; }
.qa-wrapper { position: relative; max-width: none; margin: 0 auto; padding: 4rem 2rem 7.5rem; }
.qa-bg { position: absolute; inset: 0 0 auto 0; min-height: 100%; width: 100%; overflow: hidden; }
.qa-bg-img { position: relative; }
.qa-bg-img img { width: 100%; aspect-ratio: 1920 / 906; object-fit: cover; opacity: 0.55; }
.qa-bg-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10rem; background: linear-gradient(to top, var(--bg), transparent); }
.qa-bg-img::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8rem; background: linear-gradient(to bottom, var(--bg), transparent); z-index: 1; }
.qa-man { position: absolute; bottom: 0; right: 0; width: 32%; max-width: 38rem; height: auto; }
.qa-main { position: relative; z-index: 1; }
.qa-headline { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.2; }
.qa-list { list-style: none; margin-top: 3rem; width: 71%; display: grid; gap: 0.5rem; }
.qa-panel { background: #111112; border-radius: 14px; border: 1px solid var(--line); }
.qa-button { display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 1.375rem 1.5rem; font: inherit; font-size: 1.2rem; text-align: start; color: var(--text); background: none; border: 0; cursor: pointer; transition: color 0.2s ease; }
.qa-button:hover { color: var(--text-3); }
.qa-panel.open .qa-button { color: var(--red); }
.qa-icon { margin-inline-start: auto; display: inline-flex; transition: transform 0.2s ease; }
.qa-panel.open .qa-icon { transform: rotate(45deg); }
.qa-content { height: 0; padding: 0 1.5rem; overflow: hidden; opacity: 0; transform: scale(0.98); transform-origin: top center; transition: opacity 0.3s ease, transform 0.3s ease; color: var(--text-2); }
.qa-panel.open .qa-content { height: auto; opacity: 1; padding: 0 1.5rem 1.375rem; transform: none; }
.qa-content a { color: var(--red); }
@media (max-width: 900px) {
  .qa-wrapper { padding: 3rem 1rem 5rem; }
  .qa-list { width: 100%; }
  .qa-man { display: none; }
  .qa-button { font-size: 1rem; padding: 1.1rem 1.1rem; }
}
/* แก้ footer โดนบัง: จำกัดพื้นหลัง FAQ ให้อยู่ในกรอบ section */
.qa { overflow: hidden; }
.qa-bg { inset: 0; min-height: 0; }
.qa-bg-img { position: absolute; inset: 0; }
.qa-bg-img img { height: 100%; aspect-ratio: auto; }
.footer { position: relative; z-index: 2; }
/* FAQ: ไม่ซ้อนทับส่วนก่อนหน้า + เว้นที่ให้ header ตอนกดลิงก์ #faq */
.qa { margin-top: 0; scroll-margin-top: 68px; isolation: isolate; }
/* FAQ: ตัวละครต้องอยู่เหนือพื้นหลังและเงาไล่สีทั้งหมด */
.qa-bg-img::before, .qa-bg-img::after { z-index: 0; }
.qa-man { z-index: 2; pointer-events: none; }
.qa-main { z-index: 3; pointer-events: none; }
.qa-main > * { pointer-events: auto; }
.qa-main .qa-list { pointer-events: auto; }
/* FAQ: ให้กรอบสูงพอดีกับตัวละคร หัวจะไม่โดนตัดบนจอกว้าง */
.qa-wrapper { min-height: calc(min(32vw, 38rem) * 1.5 + 2rem); }
@media (max-width: 900px) { .qa-wrapper { min-height: 0; } }
/* FAQ→footer: ตัวละครไล่เลือนหายก่อนถึง footer ไม่ให้ตัดแข็งทับเส้น footer */
.qa-man { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.qa-wrapper { padding-bottom: 9rem; }
.footer { background: var(--bg); }
/* โซเชียลย้ายไปท้ายหน้า (ต่อจาก FAQ ก่อน footer) */
#socials { padding-top: 2rem; padding-bottom: var(--section); position: relative; z-index: 1; }
.qa-wrapper { padding-bottom: 5rem; }
