:root {
  color-scheme: dark;
  --bg: #030306;
  --ink: #f7f5ff;
  --muted: rgba(247, 245, 255, 0.66);
  --line: rgba(255, 255, 255, 0.14);
  --violet: #9d4dff;
  --pink: #ff4fd8;
  --blue: #60cfff;
  --max: 1560px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 5%, rgba(157, 77, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 84% 12%, rgba(96, 207, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #050508 0%, #030306 50%, #07070d 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, transparent, black 14%, black 84%, transparent);
}

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

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

.page-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.seo-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(calc(100% - 28px), 1480px);
  min-height: 68px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 10, 0.66);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: 78px;
}

.brand-mark img {
  width: 100%;
}

.product-back {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: rgba(247, 245, 255, 0.82);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(0) scale(1);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
  white-space: nowrap;
}

.product-back:hover,
.product-back:focus-visible {
  border-color: rgba(110, 211, 255, 0.48);
  background: rgba(110, 211, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 24px rgba(110, 211, 255, 0.16);
  color: #fff;
  transform: translateY(-1px) scale(1.015);
}

.product-back:active {
  transform: translateY(0) scale(0.982);
}

.seo-nav {
  display: none;
  justify-content: flex-end;
  gap: 22px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.seo-nav a:hover {
  color: #c38cff;
}

.seo-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(157, 77, 255, 0.7);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), #6c24ff 55%, var(--pink));
  box-shadow: 0 0 28px rgba(157, 77, 255, 0.34);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
  transform: translateY(0) scale(1);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
  will-change: transform;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.seo-cta:hover,
.button:hover {
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 0 34px rgba(157, 77, 255, 0.44),
    0 16px 42px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px) scale(1.018);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 34px rgba(96, 207, 255, 0.12);
}

.seo-cta:active,
.button:active {
  box-shadow:
    0 0 20px rgba(157, 77, 255, 0.32),
    0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(0) scale(0.982);
}

.seo-cta:focus-visible,
.button:focus-visible {
  outline: 2px solid rgba(96, 207, 255, 0.84);
  outline-offset: 4px;
}

.service-hero {
  display: grid;
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  min-height: calc(100svh - 96px);
  padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 80px);
}

.service-hero > div {
  min-width: 0;
}

.kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

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

h1 {
  max-width: min(100%, 760px);
  margin-bottom: 24px;
  overflow-wrap: normal;
  font-size: clamp(2.8rem, 3.8vw, 4.2rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.96;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  font-weight: 620;
  line-height: 1.55;
}

.hero-copy .thai-line,
.seo-copy .thai-line,
.feature-copy .thai-line {
  display: block;
  margin-top: 0.72em;
  color: rgba(247, 245, 255, 0.58);
  font-size: 0.86em;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: min(82svh, 920px);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 14%, rgba(157, 77, 255, 0.28), transparent 34%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 100px rgba(0, 0, 0, 0.38);
}

.hero-visual img {
  width: 100%;
  max-height: min(84svh, 940px);
  object-fit: contain;
  padding: clamp(8px, 1.2vw, 16px);
}

.hero-visual img.js-lightbox-image,
.spec-media img.js-lightbox-image {
  cursor: zoom-in;
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    transform 260ms ease;
}

.hero-visual img.js-lightbox-image:hover,
.spec-media img.js-lightbox-image:hover {
  filter: brightness(1.06) contrast(1.04);
  transform: scale(1.012);
}

.hero-visual img.js-lightbox-image:focus-visible,
.spec-media img.js-lightbox-image:focus-visible {
  outline: 2px solid rgba(96, 207, 255, 0.84);
  outline-offset: 6px;
}

.seo-copy {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 0%, rgba(96, 207, 255, 0.11), transparent 38%),
    rgba(255, 255, 255, 0.04);
  color: rgba(247, 245, 255, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 600;
  line-height: 1.72;
}

.seo-copy h2,
.spec-sheet h2,
.features h2,
.internal h2 {
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  font-weight: 1000;
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.spec-sheet,
.features,
.internal {
  padding: clamp(64px, 10vw, 120px) 0;
}

.spec-layout {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.spec-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 79, 216, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.spec-media img {
  width: 100%;
  padding: clamp(10px, 2vw, 18px);
  object-fit: contain;
}

.lightbox-lock {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  padding: clamp(16px, 4vw, 46px);
  overflow: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(157, 77, 255, 0.18), transparent 36rem),
    rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
}

.image-lightbox.is-open {
  display: grid;
  align-items: start;
  justify-items: center;
}

.image-lightbox__stage {
  display: grid;
  width: min(100%, 1440px);
  min-height: calc(100svh - clamp(32px, 8vw, 92px));
  align-items: center;
  justify-items: center;
  pointer-events: none;
}

.image-lightbox__image {
  width: auto;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow:
    0 28px 120px rgba(0, 0, 0, 0.58),
    0 0 46px rgba(157, 77, 255, 0.18);
  pointer-events: auto;
}

.image-lightbox__close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 2;
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 8, 14, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
  backdrop-filter: blur(18px);
}

.image-lightbox__close:hover {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(157, 77, 255, 0.28);
  box-shadow:
    0 0 28px rgba(157, 77, 255, 0.36),
    0 18px 60px rgba(0, 0, 0, 0.36);
  transform: scale(1.04);
}

.image-lightbox__close:active {
  transform: scale(0.94);
}

.image-lightbox__close:focus-visible {
  outline: 2px solid rgba(96, 207, 255, 0.84);
  outline-offset: 4px;
}

.spec-panel {
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 8, 14, 0.74);
}

.spec-panel p {
  color: rgba(247, 245, 255, 0.72);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  font-weight: 620;
  line-height: 1.72;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

.spec-list div {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.spec-list dt {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 0;
  color: rgba(247, 245, 255, 0.78);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  font-weight: 650;
  line-height: 1.5;
}

.spec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.feature-grid {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.feature-card {
  min-height: 210px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 14, 0.72);
  backdrop-filter: blur(18px);
}

.feature-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature-card h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.7rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.feature-card p {
  color: var(--muted);
  font-weight: 620;
  line-height: 1.55;
}

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

.seo-footer {
  display: grid;
  gap: 18px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: rgba(247, 245, 255, 0.62);
  font-size: 0.84rem;
}

.seo-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.blog-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.blog-card {
  min-width: 0;
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 0%, rgba(157, 77, 255, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.04);
}

.blog-card h2 {
  max-width: 980px;
  overflow-wrap: anywhere;
}

@media (min-width: 820px) {
  .seo-nav {
    display: flex;
  }

  .service-hero {
    grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  }

  .spec-layout {
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  }

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

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

@media (max-width: 1180px) {
  .seo-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .seo-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .product-back {
    min-height: 36px;
    padding-inline: 13px;
    font-size: 0.64rem;
  }

  .seo-cta {
    display: none;
  }

  h1 {
    overflow-wrap: normal;
    font-size: clamp(2.05rem, 9vw, 3rem);
    line-height: 0.98;
  }

  .hero-visual {
    order: -1;
    min-height: auto;
  }

  .hero-visual img {
    max-height: 68svh;
  }
}
