/* ================= Global Video Background ================= */

.global-video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.global-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.global-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.8)
  );
}

.hero-section,
.install-hero,
.register-section,
.pricing-section {
  position: relative;
  z-index: 1;
}

/* ================= Hero Section ================= */

.hero-section {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.75)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 1000px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary-color);
  text-shadow:
    0 0 12px rgba(127, 209, 185, 0.35),
    0 0 40px rgba(127, 209, 185, 0.15);
}

.hero-title span {
  display: block;
  margin-top: 12px;
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 500;
  opacity: 0.9;
}

/* ================= Install Hero ================= */

.install-hero {
  padding: clamp(60px, 10vw, 120px) 20px;
  text-align: center;
}

.install-header h1 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: clamp(40px, 6vw, 80px);
  color: var(--primary-color);
}

.install-header span {
  display: block;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  opacity: 0.75;
  margin-top: 8px;
}

.install-grid {
  max-width: 1500px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 60px);
}

.icon-fix-macos {
  transform: translateY(-10%);
}

.install-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 220px;
  width: 100%;
  min-width: 0;
}

.install-item img {
  width: clamp(80px, 10vw, 140px);
  height: auto;
  object-fit: contain;
}

.install-readmore {
  width: 100%;
  text-align: center;
}

.install-readmore-btn {
  border: none;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--white-color);
  color: var(--primary-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.install-readmore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.install-extra-text {
  margin-top: 14px;
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.7;
  text-align: left;

  width: 100%;
  max-width: 420px;
  margin-inline: auto;

  padding-inline: 16px;
  box-sizing: border-box;

  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;

  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.install-readmore.is-open .install-extra-text {
  max-height: 260px;
  opacity: 1;
  pointer-events: auto;
}

/* ================= Register Section ================= */

.register-section {
  background-color: transparent;
  color: #fff;
  padding: clamp(64px, 10vw, 120px) 20px;
  text-align: center;
}

.register-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  color: #7fd1b9;
  margin-bottom: clamp(32px, 6vw, 64px);
}

.register-title span {
  display: block;
  font-size: clamp(14px, 2vw, 16px);
  opacity: 0.8;
}

.register-steps {
  max-width: 1500px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(32px, 4vw, 80px);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.step-icon {
  width: auto;
  height: auto;
  border: none;
  background: none;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-icon img {
  width: 128px;
  height: 128px;
  object-fit: contain;
}

.step-item p {
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.5;
  opacity: 0.9;
}

/* ================= Pricing Section ================= */

.pricing-section {
  background: transparent;
  padding: clamp(60px, 8vw, 120px) 20px;
  color: var(--white-color);
  font-family: "Kanit", sans-serif;
  margin-bottom: clamp(80px, 10vw, 160px);
}

.pricing-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  color: #7fd1b9;
  margin-bottom: 48px;
}

.pricing-title span {
  text-align: center;
  display: block;
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.75;
}

.table-wrapper {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  border-collapse: collapse;
  border-right: 1px solid rgba(255,255,255,0.12);
  color: var(--white-color);
  background: transparent;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.pricing-table th:not(:last-child),
.pricing-table td:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.12);
}

.pricing-table th:first-child,
.pricing-table td:first-child {
  text-align: left;
}

.pricing-table th {
  background: #7fd1b9;
  color: #000;
  font-weight: 600;
}

.pricing-table th:first-child {
  background: transparent;
}

.pricing-table td {
  font-size: 18px;
}

.price-row td {
  font-weight: 600;
}
.price-row span {
  display: block;
  font-weight: 400;
  opacity: 0.8;
  font-size: 14px;
}

/* ================= Table Scroll Hint ================= */

.table-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-bottom: 12px;

  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);

  user-select: none;
  pointer-events: none;
}

.table-scroll-hint .arrow {
  font-size: 24px;
  font-weight: 600;
  color: #7fd1b9;
  animation: hint-move 1.6s ease-in-out infinite;
}

.table-scroll-hint .arrow.right {
  animation-delay: 0.8s;
}

@keyframes hint-move {
  0%   { transform: translateX(0);   opacity: 0.4; }
  50%  { transform: translateX(6px); opacity: 1;   }
  100% { transform: translateX(0);   opacity: 0.4; }
}

/* ================= Responsive ================= */

@media (max-width: 1024px) {
  .hero-title {
    line-height: 1.4;
  }

  .hero-title span {
    margin-top: 8px;
  }

  .install-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .install-header {
    margin-bottom: 64px;
  }

  .install-item {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    padding-bottom: 12px;
    width: 100%;
    max-width: 100%;
  }

  .install-readmore {
  width: 100%;
  text-align: center;
  }

  .install-extra-text {
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  padding-inline: 16px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, max-height 0.3s ease;
  }

  .install-readmore.is-open .install-extra-text {
  opacity: 1;
  max-height: 500px;
  pointer-events: auto;
  }

  .register-section {
    padding: clamp(48px, 8vw, 80px) 20px;
  }

  .register-title {
    margin-bottom: 64px;
  }

  .register-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .step-item {
    gap: 12px;
  }

  .step-icon img {
    width: 64px;
    height: 64px;
  }

  .step-item p {
    font-size: 16px;
  }

  .pricing-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-table {
    min-width: 480px;
  }

  .pricing-table th,
  .pricing-table td {
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  .table-scroll-hint {
    display: none;
  }
}