:root {
  --bg: #080808;
  --panel: #121212;
  --panel-soft: #1b1b1b;
  --gold: #f5c542;
  --gold-dark: #b88916;
  --text: #ffffff;
  --muted: #b8b8b8;
  --green: #22c55e;
  --blue: #3b82f6;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 18px 48px rgba(0,0,0,0.36);
  --radius: 18px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -12%, rgba(245,197,66,0.14), transparent 38%),
    linear-gradient(180deg, #090909 0%, var(--bg) 56%, #050505 100%);
  color: var(--text);
  font-family: "Tahoma", "Noto Sans Thai", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 7vw, 4rem);
}

h2 {
  font-size: clamp(1.45rem, 4.5vw, 2.35rem);
}

h3 {
  font-size: 1.1rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

li + li {
  margin-top: 0.45rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold);
  font-weight: 700;
  background: rgba(245,197,66,0.05);
}

td {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 99;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-weight: 700;
}

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

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  white-space: nowrap;
}

.brand-logo {
  width: auto;
  height: 52px;
  max-width: min(220px, 54vw);
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245,197,66,0.45);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  color: #111;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

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

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

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-apk {
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  color: #101010;
  box-shadow: 0 12px 28px rgba(245,197,66,0.18);
}

.btn-ios {
  background: rgba(59,130,246,0.14);
  border-color: rgba(59,130,246,0.55);
  color: #dceaff;
}

.btn-line {
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.55);
  color: #d7ffe4;
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
  color: var(--text);
}

.desktop-only {
  display: inline-flex;
}

.hero {
  position: relative;
  padding: 3rem 0 2.2rem;
  overflow: hidden;
}

.hero-portal {
  min-height: min(720px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  background-color: #0c0c0c;
  background-position: center;
  background-size: cover;
}

.hero-portal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,8,0.94) 0%, rgba(8,8,8,0.72) 50%, rgba(8,8,8,0.38) 100%),
    linear-gradient(180deg, rgba(8,8,8,0.12) 0%, rgba(8,8,8,0.88) 100%);
}

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

.hero-panel {
  max-width: 760px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(245,197,66,0.38);
  border-radius: 999px;
  background: rgba(245,197,66,0.08);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
}

.subtitle {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: #d7d7d7;
}

.hero-actions,
.card-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero-media {
  position: relative;
  min-height: 330px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #171717, #0d0d0d);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  opacity: 0.92;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0.02), rgba(8,8,8,0.58));
}

.hero-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(8,8,8,0.78);
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34,197,94,0.12);
}

.section {
  padding: 2.6rem 0;
}

.section-soft {
  background: rgba(255,255,255,0.025);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.section-head p {
  max-width: 680px;
  margin-top: 0.55rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  box-shadow: 0 10px 26px rgba(0,0,0,0.20);
}

.card-pad {
  padding: 1.1rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.app-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 1px solid rgba(245,197,66,0.22);
  border-radius: 18px;
  background: #0d0d0d;
  object-fit: cover;
}

.app-logo-lg {
  width: 118px;
  height: 118px;
  justify-self: center;
  border: 1px solid rgba(245,197,66,0.28);
  border-radius: 24px;
  background: #0d0d0d;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #d7d7d7;
  font-size: 0.88rem;
  background: rgba(255,255,255,0.045);
}

.feature-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin: 0;
  padding: 0.95rem 1rem 0.95rem 2.6rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  color: #d8d8d8;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.45rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 32px;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: #d7ffe4;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
}

.faq-item h3 {
  margin-bottom: 0.4rem;
  color: var(--gold);
}

.note {
  padding: 1rem;
  border: 1px solid rgba(245,197,66,0.28);
  border-radius: var(--radius);
  background: rgba(245,197,66,0.08);
}

.note p:last-child {
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--gold);
}

.breadcrumb span::before {
  content: "/";
  margin-right: 0.45rem;
  color: rgba(255,255,255,0.35);
}

.page-hero {
  padding: 1.8rem 0 2.4rem;
}

.app-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(245,197,66,0.09), rgba(255,255,255,0.025));
}

.content-flow {
  max-width: 850px;
}

.content-flow h2,
.content-flow h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.65rem;
}

.content-flow p,
.content-flow li {
  color: #d2d2d2;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-card {
  min-height: 100%;
}

.floating-line {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  min-width: 58px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34,197,94,0.62);
  border-radius: 999px;
  background: var(--green);
  color: #06120a;
  box-shadow: 0 14px 30px rgba(34,197,94,0.24);
  font-weight: 900;
}

.site-footer {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border);
  background: #050505;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-grid h2,
.footer-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  min-height: 34px;
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
  outline: none;
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: #8f8f8f;
  font-size: 0.92rem;
}

@media (max-width: 940px) {
  .desktop-only {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(18,18,18,0.98);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    border-radius: 12px;
    padding: 0.8rem;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .hero-media {
    min-height: 250px;
  }

  .hero-media img {
    min-height: 250px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .nav-wrap {
    min-height: 66px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    height: 46px;
    max-width: min(210px, 58vw);
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-portal {
    min-height: 660px;
    padding: 3rem 0 2.4rem;
  }

  .hero-actions,
  .card-actions,
  .page-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .app-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-logo-lg {
    width: 96px;
    height: 96px;
    margin-inline: auto;
  }

  .app-card-top {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  th,
  td {
    padding: 0.78rem;
    min-width: 160px;
  }

  .floating-line {
    right: 14px;
    bottom: 14px;
    min-width: 54px;
    min-height: 54px;
  }
}
