body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #081426, #0d2b5b);
  color: white;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.box {
  padding: 40px;
}

h1 {
  font-size: 48px;
  margin-bottom: 10px;
  color: #f3cf78;
}

p {
  font-size: 20px;
  color: #dce6f5;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  background: #06c755;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 18px;
}

.btn:hover {
  opacity: 0.85;
}

.navbar {
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 50px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(5, 18, 40, 0.85);
}

.logo {
  color: #f3cf78;
  font-size: 24px;
  font-weight: bold;
}

.navbar nav {
  display: flex;
  gap: 30px;
}

.navbar nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.navbar nav a:hover {
  color: #f3cf78;
}

.hero {
  padding: 40px;
}

.hero {
  max-width: 900px;
  padding: 40px;
}

.eyebrow {
  color: #f3cf78;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.2;
  margin: 0 0 20px;
}

.subtitle {
  font-size: 20px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-outline {
  background: transparent;
  border: 2px solid #f3cf78;
  color: #f3cf78;
}

.services {
  width: 100%;
  box-sizing: border-box;
  padding: 100px 50px;
  background: #07111f;
  text-align: center;
}

.section-label {
  color: #f3cf78;
  font-size: 14px;
  font-weight: bold;
}

.services h2 {
  font-size: 38px;
  margin: 10px 0 40px;
}

.service-grid {
  max-width: 1100px;
  margin: auto;

  display: grid;

grid-template-columns: repeat(3, 1fr);
  
gap: 20px;
}

.service-card {
  padding: 35px 25px;
  background: #0d203d;
  border: 1px solid rgba(243, 207, 120, 0.2);
  border-radius: 15px;
}

.service-card h3 {
  color: #f3cf78;
  font-size: 22px;
}

.service-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {

  .navbar {
    padding: 15px 20px;
  }

  .logo {
    font-size: 18px;
  }

  .navbar nav {
    gap: 12px;
  }

  .navbar nav a {
    font-size: 13px;
  }

  .hero {
    padding: 30px 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .subtitle {
    font-size: 17px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .services {
    padding: 70px 20px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

.logo img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.about {
  width: 100%;
  box-sizing: border-box;
  padding: 100px 30px;
  background: #0a1830;
  text-align: center;
}

.about-box {
  max-width: 800px;
  margin: 0 auto;
}

.about .section-label {
  color: #f3cf78;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.about h2 {
  font-size: 38px;
  color: white;
  margin: 10px 0 25px;
}

.about p {
  font-size: 18px;
  line-height: 1.8;
  color: #dce6f5;
}

body {
  display: block;
}

.hero,
.services,
.about {
  width: 100%;
  box-sizing: border-box;
}

.hero {
  min-height: 100vh;
}

.services {
  min-height: 650px;
}

.about {
  min-height: 500px;
}


.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 80px;
  background:
    radial-gradient(circle at top, rgba(30, 110, 255, 0.35), transparent 45%),
    linear-gradient(135deg, #07111f, #0d2b5b);
}

.eyebrow {
  color: #f3cf78;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero h1 {
  max-width: 900px;
  font-size: 58px;
  line-height: 1.15;
  margin: 0 0 20px;
  color: #f3cf78;
  text-shadow: 0 0 25px rgba(243, 207, 120, 0.15);
}

.subtitle {
  font-size: 20px;
  color: #dce6f5;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.hero .btn {
  min-width: 140px;
  transition: 0.2s ease;
}

.hero .btn:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #f3cf78;
  color: #f3cf78;
}

/* แก้ Navbar และ Hero ไม่ให้ทับกัน */

.navbar {
  min-height: 100px;
  padding: 12px 35px;
  z-index: 1000;
}

.logo img {
  width: 70px;
  height: 70px;
}

.hero {
  min-height: 100vh;
  padding: 150px 30px 80px;
  box-sizing: border-box;
}

.hero h1 {
  max-width: 850px;
  font-size: 52px;
  line-height: 1.2;
}

.eyebrow {
  margin-top: 0;
}

/* จัด Hero ให้อยู่กึ่งกลางหน้าจอ */

.hero {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 140px 30px 80px;
}

.hero h1 {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;

  font-size: 52px;
  line-height: 1.2;
  text-align: center;
}

.eyebrow,
.subtitle {
  width: 100%;
  text-align: center;
}

.hero-buttons {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* ===== SERVICE CARDS ===== */

.service-card {
  position: relative;
  padding: 35px 25px;
  background: linear-gradient(145deg, #102c58, #0b1f3e);
  border: 1px solid rgba(243, 207, 120, 0.3);
  border-radius: 18px;
  transition: 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #f3cf78;
}

.price {
  color: #f3cf78;
  font-size: 22px;
  font-weight: bold;
  margin: 25px 0;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.small-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #06c755;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
}

.outline-btn {
  background: transparent;
  border: 1px solid #f3cf78;
  color: #f3cf78;
}


/* ===== REVIEWS ===== */

.reviews {
  width: 100%;
  box-sizing: border-box;
  padding: 100px 40px;
  text-align: center;
  background: #0a1830;
}

.reviews h2 {
  font-size: 38px;
  margin: 10px 0 40px;
}

.review-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  padding: 30px;
  background: #0d203d;
  border-radius: 16px;
  border: 1px solid rgba(243, 207, 120, 0.2);
}

.review-card p {
  font-size: 16px;
  line-height: 1.7;
}

.review-card strong {
  color: #f3cf78;
}

.stars {
  color: #f3cf78;
  font-size: 22px;
  margin-bottom: 15px;
}


/* ===== FAQ ===== */

.faq {
  width: 100%;
  box-sizing: border-box;
  padding: 100px 30px;
  background: #07111f;
  text-align: center;
}

.faq h2 {
  font-size: 38px;
  margin: 10px 0 40px;
}

.faq-box {
  max-width: 850px;
  margin: auto;
  text-align: left;
}

.faq details {
  margin-bottom: 15px;
  padding: 20px;
  background: #0d203d;
  border: 1px solid rgba(243, 207, 120, 0.2);
  border-radius: 12px;
}

.faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: bold;
  color: #f3cf78;
}

.faq details p {
  margin: 15px 0 0;
  color: #dce6f5;
  font-size: 15px;
  line-height: 1.7;
}


/* ===== MOBILE ===== */

@media (max-width: 768px) {

  .review-grid {
    grid-template-columns: 1fr;
  }

  .card-actions {
    flex-direction: column;
  }

  .small-btn {
    text-align: center;
  }

  .services,
  .reviews,
  .faq {
    padding: 70px 20px;
  }
}

.line-float {
  position: fixed;
  right: 20px;
  bottom: 20px;

  width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #06c755;
  color: white;
  text-decoration: none;
  font-weight: bold;

  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);

  z-index: 2000;
  transition: 0.2s ease;
}

.line-float:hover {
  transform: scale(1.08);
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {

  .navbar {
    min-height: 80px;
    padding: 10px 15px;
  }

  .logo img {
    width: 55px;
    height: 55px;
  }

  .navbar nav {
    gap: 10px;
  }

  .navbar nav a {
    font-size: 12px;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .eyebrow {
    font-size: 13px;
  }

  .subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero .btn {
    width: 220px;
    box-sizing: border-box;
  }

  .service-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .review-card {
    width: 100%;
    box-sizing: border-box;
  }

  .about h2,
  .contact h2,
  .services h2,
  .reviews h2,
  .faq h2 {
    font-size: 30px;
  }

  .line-float {
    width: 55px;
    height: 55px;
    right: 15px;
    bottom: 15px;
    font-size: 14px;
  }
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

@media (max-width: 768px) {

  .navbar {
    min-height: 76px;
    padding: 10px 16px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 2100;
  }

  .navbar nav {
    display: none;
    position: absolute;

    top: 76px;
    left: 0;

    width: 100%;
    box-sizing: border-box;

    flex-direction: column;
    gap: 0;

    padding: 10px 16px 18px;

    background: rgba(5, 18, 40, 0.98);
    border-top: 1px solid rgba(243, 207, 120, 0.2);
  }

  .navbar nav.show {
    display: flex;
  }

  .navbar nav a {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 10px;

    font-size: 15px;
    text-align: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar nav a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 768px) {

  .services,
  .reviews,
  .faq,
  .about,
  .contact {
    padding: 60px 18px;
  }

  .services h2,
  .reviews h2,
  .faq h2,
  .about h2,
  .contact h2 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 28px;
  }

  .section-label {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .service-grid,
  .review-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card,
  .review-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .service-card h3 {
    font-size: 21px;
  }

  .service-card p,
  .review-card p {
    font-size: 15px;
    line-height: 1.65;
  }

  .price {
    font-size: 20px;
    margin: 20px 0;
  }

  .card-actions {
    flex-direction: column;
    gap: 10px;
  }

  .small-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 16px;
  }

  .faq-box {
    width: 100%;
  }

  .faq details {
    padding: 16px;
  }

  .faq summary {
    font-size: 15px;
    line-height: 1.5;
  }

  .about-box,
  .contact-box {
    max-width: 100%;
  }

  .about p,
  .contact p {
    font-size: 15px;
    line-height: 1.7;
  }

  .footer {
    padding: 20px 15px;
  }

  .footer p {
    font-size: 12px;
  }
}

.contact {
  padding: 80px 20px;
  background: #07111f;
  text-align: center;
}

.contact-box {
  max-width: 700px;
  margin: 0 auto;
}

.contact-box h2 {
  font-size: 36px;
  margin: 10px 0 20px;
}

.contact-box p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer {
  padding: 25px 20px;
  text-align: center;
  background: #050c16;
  font-size: 14px;
}

/* ===== PRODUCT DETAILS ===== */

.product-details {
  padding: 80px 20px;
  background: #0b1f3f;
  text-align: center;
}

.product-details > h2 {
  font-size: 36px;
  margin: 10px 0 40px;
}

.product-detail-card {
  max-width: 850px;
  margin: 0 auto 30px;
  padding: 35px 30px;
  background: #112f5c;
  border: 1px solid rgba(243, 207, 120, 0.35);
  border-radius: 18px;
  text-align: left;
}

.product-detail-card h3 {
  color: #f3cf78;
  font-size: 26px;
  margin: 0 0 10px;
  text-align: center;
}

.product-detail-card .price {
  text-align: center;
  font-size: 24px;
  color: #f3cf78;
  font-weight: bold;
  margin: 15px 0;
}

.product-detail-card > p {
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
}

.product-detail-card ul {
  list-style: none;
  padding: 0;
  margin: 25px auto;
  max-width: 450px;
}

.product-detail-card li {
  padding: 7px 0;
  font-size: 16px;
  line-height: 1.5;
}

.product-detail-card .btn {
  display: block;
  width: fit-content;
  margin: 25px auto 0;
}

/* เลื่อนมาที่สินค้าแล้วไม่โดน Navbar บัง */
#psn-detail,
#upnlm-detail,
#share-detail {
  scroll-margin-top: 130px;
}

@media (max-width: 768px) {
  .product-details {
    padding: 60px 15px;
  }

  .product-details > h2 {
    font-size: 28px;
  }

  .product-detail-card {
    padding: 25px 20px;
  }

  .product-detail-card h3 {
    font-size: 22px;
  }
}

.product-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 14px;
}

.detail-price {
  text-align: center;
  color: #f3cf78;
  font-size: 24px;
  font-weight: bold;
  margin: 15px 0;
}

.product-detail-card ul {
  list-style: none;
  padding: 0;
  margin: 25px auto;
  width: fit-content;
  text-align: left;
}

.product-detail-card li {
  margin: 6px 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .product-image {
    width: 88%;
    max-width: 360px;
    margin: 15px auto 20px;
  }
}

.detail-anchor {
    display: block;
    height: 140px;
    margin-top: -140px;
    visibility: hidden;
    pointer-events: none;
}

@media (min-width: 769px) {
  .product-details {
    padding-top: 180px;
  }
}