:root {
  --primary: #a50034;
  --primary-dark: #7f0128;
  --text: #111111;
  --muted: #5f6368;
  --line: #e6e7eb;
  --surface: #ffffff;
  --surface-soft: #f6f7f9;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(17, 17, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 92%);
}

.section {
  padding: 78px 0;
}

.section-soft {
  background: var(--surface-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 12px;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 1.4px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 24px;
}

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

.section-head-btn {
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 84px;
  color: var(--white);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #0a0a0c;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: calc(100% * 16 / 9);
  height: calc(100% * 9 / 16);
  aspect-ratio: 16 / 9;
  border: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(7, 7, 8, 0.72) 0%,
    rgba(7, 7, 8, 0.65) 46%,
    rgba(7, 7, 8, 0.84) 100%
  );
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 46px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.logo-icon {
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: #f2f2f2;
  font-weight: 600;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.lead {
  color: #e2e2e2;
  max-width: 700px;
}

.hero-cta {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.highlights span {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.88rem;
  color: #f2f2f2;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stat {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.stat span {
  font-size: 0.82rem;
  color: #f0f0f0;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 252, 0.97) 100%);
  color: var(--text);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 22px 46px rgba(17, 17, 17, 0.2);
  backdrop-filter: blur(3px);
}

.hero-card-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(165, 0, 52, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-card h2 {
  margin-bottom: 8px;
}

.hero-card-subtitle {
  margin-bottom: 14px;
  color: #4a4d53;
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-card-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.hero-card-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: #2f3136;
  font-weight: 500;
}

.hero-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(165, 0, 52, 0.12);
}

.hero-card-note {
  margin: 0 0 16px;
  padding-top: 12px;
  border-top: 1px dashed #e3e5ea;
  color: #5b5f66;
  font-size: 0.9rem;
}

.hero-card .btn-primary {
  box-shadow: 0 10px 22px rgba(165, 0, 52, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

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

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ปุ่ม outline บนการ์ดพื้นขาว (price-card) ต้องใช้สีเข้ม ไม่ใช่สีขาว) */
.price-card .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.price-card .btn-outline:hover {
  background: rgba(165, 0, 52, 0.1);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.full {
  width: 100%;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px;
  margin-bottom: 12px;
}

.product-card h3 {
  margin-bottom: 8px;
}

.product-card p {
  color: var(--muted);
  margin-bottom: 12px;
}

.product-card a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(165, 0, 52, 0.08);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
}

.catalog-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
}

.catalog-content {
  padding: 14px;
}

.catalog-content h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.catalog-price {
  color: var(--primary);
  font-weight: 800;
}

.catalog-category {
  font-size: 0.8rem;
  color: var(--muted);
}

.catalog-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

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

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  position: relative;
}

.price-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #f0f1f4;
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 8px;
}

.price-card.featured {
  border-color: rgba(165, 0, 52, 0.45);
  box-shadow: 0 14px 36px rgba(165, 0, 52, 0.13);
}

.best {
  position: absolute;
  right: 15px;
  top: -11px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.plan-name {
  margin-bottom: 8px;
  color: #333333;
  font-weight: 700;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.price span {
  font-size: 0.98rem;
  color: var(--muted);
  font-weight: 500;
}

.price-card ul {
  margin: 0 0 18px 18px;
  padding: 0;
}

.price-card li {
  color: #4a4a4a;
  margin-bottom: 8px;
}

.steps {
  display: grid;
  gap: 10px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface);
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 9px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--surface);
}

.faq-question {
  width: 100%;
  border: 0;
  background: #fbfbfc;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  max-height: 180px;
}

.cta-section {
  padding-bottom: 120px;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
}

.sticky-cta p {
  margin: 0;
  color: #222222;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .hero-content,
  .grid-3,
  .product-grid,
  .pricing,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    max-width: 560px;
    padding: 22px;
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head-btn {
    width: 100%;
  }

  .sticky-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
