:root {
  --navy: #07193e;
  --navy-2: #0b2a6b;
  --blue: #0057df;
  --blue-soft: #e8f0ff;
  --ink: #0f1b33;
  --muted: #55627a;
  --line: #e2e8f2;
  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.nb { white-space: nowrap; }
section { scroll-margin-top: 64px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.lang { font-size: 14px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--muted); }
.lang:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; text-decoration: none; min-height: 48px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0049bb; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-small { padding: 8px 16px; min-height: 40px; font-size: 15px; }

/* Mobile menu (no script) */
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel {
  display: none; flex-direction: column; position: absolute; right: 0; top: 48px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 220px;
  box-shadow: 0 12px 30px rgba(7, 25, 62, .12);
}
.menu-panel a { padding: 10px 14px; color: var(--ink); border-radius: 8px; font-weight: 500; }
.menu-panel a:hover { background: var(--bg-alt); text-decoration: none; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(0, 120, 255, .35), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 88px 0 96px; position: relative; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; letter-spacing: -.01em; }
.hero p { font-size: 19px; color: #cfdaf0; max-width: 620px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #8fb6ff; margin-bottom: 14px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 380px; justify-self: center; width: 100%; }
.hero-art .pix { position: absolute; background: #2f7bff; border-radius: 6px; }
.hero-art .p1 { width: 26px; height: 26px; left: 2%; top: 6%; }
.hero-art .p2 { width: 18px; height: 18px; left: 12%; top: 0; opacity: .7; }
.hero-art .p3 { width: 14px; height: 14px; left: 0; top: 18%; opacity: .5; }
.hero-art .p4 { width: 20px; height: 20px; right: 0; bottom: 6%; opacity: .6; }
.hero-art .card {
  position: absolute; inset: 14% 8% 14% 14%; border-radius: 22px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.hero-art .card img { width: 78%; }

/* Sections */
section { padding: 84px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p { color: var(--muted); font-size: 18px; }
.kicker { color: var(--blue); font-weight: 600; font-size: 15px; letter-spacing: .03em; margin-bottom: 6px; display: block; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.card-box h3 { font-size: 21px; }
.card-box p { color: var(--muted); margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 56px; position: relative;
}
.checks li::before {
  content: ""; position: absolute; left: 20px; top: 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding-top: 58px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }

.job h3 { margin-bottom: 4px; }
.job .tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
.apply { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--navy); color: #dfe8fa; }
.apply strong { color: #fff; }
.apply a { color: #9cc2ff; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-weight: 500; }
.note { color: var(--muted); font-size: 15px; font-weight: 400; }
.mail { font-size: 20px; font-weight: 600; word-break: break-all; }

.sub { font-size: 20px; margin: 40px 0 16px; }
.section-head + .sub { margin-top: 0; }
a.game, a.ref { display: block; color: var(--ink); transition: border-color .15s, transform .15s; }
a.game:hover, a.ref:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-2px); }
.game { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.game { display: flex; flex-direction: column; }
.game-logo { background: #000; height: 190px; padding: 18px 20px; }
.game-logo img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.game-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.game-body .go, a.ref .go { margin-top: auto; }
a.ref { display: flex; flex-direction: column; align-items: flex-start; }
.game-body h3 { font-size: 20px; margin-bottom: 6px; }
.game-body p, a.ref p { color: var(--muted); margin: 0 0 12px; }
.go { color: var(--blue); font-weight: 600; font-size: 15px; word-break: break-all; }

.feature {
  display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
  border-radius: var(--radius); padding: 28px 32px; margin-bottom: 8px; transition: transform .15s;
}
a.feature:hover { text-decoration: none; transform: translateY(-2px); }
.feature img { width: 150px; height: 150px; border-radius: 28px; }
.feature h3 { font-size: 24px; margin: 6px 0 8px; }
.feature p { color: #cfdaf0; margin: 0 0 12px; }
.feature .tag { display: inline-block; font-size: 13px; font-weight: 600; color: #cfe0ff; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 2px 10px; }
.feature .go { color: #9cc2ff; }

.map { margin-top: 20px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.map iframe { width: 100%; height: 340px; border: 0; border-radius: 10px; display: block; }
.map .btn { align-self: flex-start; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c6e0; padding: 48px 0 32px; font-size: 15px; }
.site-footer img { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: #dbe5f7; }
.site-footer .copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 20px; font-size: 14px; }

/* Phones and tablets */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > .game, .grid-3 > .ref { max-width: 560px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { padding: 0 0 0 58px; min-height: 42px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav, .site-header .lang.desk, .site-header .btn.desk { display: none; }
  .menu { display: block; }
  .site-header .wrap { height: 62px; gap: 12px; }
  .brand img { height: 32px; }
  .hero { padding: 56px 0 64px; }
  .hero p { font-size: 18px; }
  .hero .actions .btn { flex: 1 1 100%; }
  section { padding: 60px 0; }
  .grid-2, .grid-4, .contact { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; padding: 24px; gap: 16px; }
  .feature img { width: 96px; height: 96px; border-radius: 20px; }
  .card-box { padding: 22px; }
  .contact dl { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 10px; }
  .map iframe { height: 260px; }
  .map .btn { align-self: stretch; }
}
