/* PMax Lab company homepage — mobile first. CI: Navy #0F2A5A, Red #D7263D, Gray #808080. */
:root {
  --navy: #0F2A5A;
  --red: #D7263D;
  --gray: #808080;
  --white: #ffffff;
  --paper: #f4f5f8;
  --ink: #1c1c1c;
  --muted: #4a4a4a;
  --line: #e3e6ed;
  --navy-soft: #e8eef6;
  --shadow: 0 10px 30px rgba(15, 42, 90, 0.07);
  --radius: 16px;
  --header-h: 64px;
  --max: 1120px;
  --font: "Pretendard", "Noto Sans Thai", "Noto Sans SC", "Poppins", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans SC", sans-serif;
  --font-latin: "Poppins", "Pretendard", sans-serif;
}

@font-face {
  font-family: "Pretendard";
  src: url("../assets/fonts/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("../assets/fonts/Pretendard-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("../assets/fonts/Pretendard-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Thai";
  src: url("../assets/fonts/NotoSansThai-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Thai";
  src: url("../assets/fonts/NotoSansThai-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Thai";
  src: url("../assets/fonts/NotoSansThai-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("../assets/fonts/NotoSansSC-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3000-303F, U+4E00-9FFF, U+3400-4DBF, U+FF00-FFEF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("../assets/fonts/NotoSansSC-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3000-303F, U+4E00-9FFF, U+3400-4DBF, U+FF00-FFEF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { word-break: keep-all; overflow-wrap: break-word; }
html[lang="ko"] body { line-height: 1.7; }
html[lang="th"] body { line-height: 1.85; }
html[lang="en"] body { line-height: 1.65; }
html[lang="zh"] body { word-break: normal; line-break: strict; line-height: 1.85; font-family: "Noto Sans SC", "Pretendard", sans-serif; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 200;
  background: var(--white);
  color: var(--navy);
  padding: 8px 14px;
  font-weight: 700;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 10px 0;
  margin-inline-end: auto;
}
.logo .logo-full { display: none; width: 148px; height: auto; }
.logo .logo-mark { display: block; width: 36px; height: 36px; }
.logo:focus-visible { border-radius: 8px; }

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 7px;
  cursor: pointer;
  line-height: 1.2;
  min-width: 32px;
}
.lang button + button { border-left: 1px solid var(--line); }
.lang button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}
.lang button:hover:not([aria-pressed="true"]) { color: var(--navy); background: var(--paper); }

.nav-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span { transition: transform .2s ease, opacity .2s ease; }

.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px;
}
.nav.open { display: block; }
.nav a {
  display: block;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
.nav a:last-child { border-bottom: 0; }
.nav a:hover { color: var(--red); }

@media (min-width: 860px) {
  :root { --header-h: 76px; }
  .logo .logo-full { display: block; width: 176px; }
  .logo .logo-mark { display: none; }
  .nav-toggle { display: none; }
  .header-inner { width: min(var(--max), calc(100% - 48px)); }
  .nav {
    display: flex;
    position: static;
    border: 0;
    padding: 0;
    margin-inline-end: 16px;
    gap: 4px;
    background: transparent;
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    border: 0;
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .nav a:hover { background: var(--paper); }
  .lang button { padding: 7px 10px; font-size: 0.8125rem; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 56px 0 72px;
  min-height: 70svh;
  display: flex;
  align-items: center;
}
.hero-mark {
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: min(72vw, 520px);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-logo {
  width: 180px;
  margin-bottom: 28px;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 6.4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 18em;
}
html[lang="th"] .hero h1 { line-height: 1.4; letter-spacing: 0; }
.hero-rule {
  width: 56px;
  height: 3px;
  background: var(--red);
  border: 0;
  margin: 0 0 22px;
}
.hero .lede {
  margin: 0 0 32px;
  max-width: 34em;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  min-height: 48px;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: #be1f34; border-color: #be1f34; color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--white); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: #0b2148; color: var(--white); }

@media (min-width: 860px) {
  .hero { padding: 96px 0 108px; min-height: 78svh; }
  .hero-logo { width: 220px; margin-bottom: 36px; }
  .hero .lede { font-size: 1.25rem; }
}

/* Sections */
section, #top { scroll-margin-top: calc(var(--header-h) + 12px); }
section { padding: 72px 0; }
.section-head { margin-bottom: 32px; max-width: 40em; }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
html[lang="en"] .eyebrow { letter-spacing: 0.08em; text-transform: uppercase; }
h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.section-head p, .lead {
  margin: 0;
  color: var(--muted);
}

/* About */
.about { background: var(--white); }
.about-grid {
  display: grid;
  gap: 28px;
}
.about-copy p { margin: 0 0 1em; color: var(--muted); }
.about-copy p:last-child { margin-bottom: 0; }
.base {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px 22px;
  align-self: start;
}
.base dt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray);
  margin: 0 0 6px;
}
.base dd { margin: 0; color: var(--navy); font-weight: 700; font-size: 1.125rem; line-height: 1.4; }
.base + .base { margin-top: 12px; }

@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1.4fr 0.8fr; gap: 48px; align-items: start; }
}

/* Projects */
.projects { background: var(--paper); }
.cards {
  display: grid;
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.35;
}
.card p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.card-featured {
  padding: 28px 22px 24px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.chip:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-soft); }
.chip-x { border-color: var(--navy); }

.chars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  margin: 8px 0 16px;
  min-height: 160px;
}
.chars img {
  width: 46%;
  max-width: 220px;
  height: auto;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card-featured { grid-column: 1 / -1; }
  .card-featured .card-body { max-width: 46rem; }
  .chars { margin: 0; }
}

/* Why */
.why { background: var(--white); }
.reasons {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.reasons li {
  border-top: 1px solid var(--line);
  padding: 22px 0 8px;
}
.reasons .num {
  display: block;
  font-family: var(--font-latin);
  font-weight: 700;
  color: var(--red);
  font-size: 0.875rem;
  margin-bottom: 6px;
}
.reasons h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.25rem;
}
.reasons p { margin: 0; color: var(--muted); }

@media (min-width: 800px) {
  .why .section-head { margin-bottom: 8px; }
  .reasons { grid-template-columns: 1fr 1fr 1fr; gap: 28px; margin-top: 28px; }
  .reasons li { border-top: 3px solid var(--red); padding-top: 20px; }
}

/* LINE CTA */
.line-cta {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0;
}
.line-box {
  display: grid;
  gap: 28px;
  justify-items: start;
}
.line-cta h2 { color: var(--white); }
.line-cta p { color: rgba(255,255,255,0.86); margin: 0 0 20px; }
.line-handle {
  display: block;
  font-family: var(--font-latin);
  color: rgba(255,255,255,0.72);
  font-weight: 600;
  margin: 14px 0 0;
  letter-spacing: 0.02em;
}
.qr-wrap {
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  justify-self: center;
}
.qr-wrap img { width: 200px; height: 200px; }
.qr-cap {
  text-align: center;
  color: var(--gray);
  font-size: 0.8125rem;
  margin: 8px 0 0;
}

@media (min-width: 800px) {
  .line-box { grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
  .qr-wrap { justify-self: end; padding: 20px; }
  .qr-wrap img { width: 220px; height: 220px; }
}

/* Footer */
.footer {
  background: #0b1f42;
  color: rgba(255,255,255,0.78);
  padding: 36px 0 40px;
  font-size: 1rem;
}
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  gap: 16px;
}
.footer .brand {
  width: 140px;
  margin-bottom: 8px;
}
.footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer .copy { color: rgba(255,255,255,0.6); margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-links { justify-content: flex-end; }
}


/* Hero intro video (muted, decorative). Vertical clip is mobile-only;
   desktop uses the full reversed wordmark, where width allows. */
.hero-brand { margin-bottom: 24px; }
.hero-video {
  display: block;
  height: 220px;
  width: auto;
  max-width: 180px;
  margin-inline: auto;
  background: transparent;
}
.hero-logo { width: 180px; }
.hero-brand:has(.hero-video) .hero-logo { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none !important; }
  .hero-brand:has(.hero-video) .hero-logo { display: block; }
}
@media (min-width: 860px) {
  .hero-video { display: none !important; }
  .hero-brand:has(.hero-video) .hero-logo { display: block; width: 220px; }
}

/* Package — centerpiece */
.package { background: var(--white); }
.pkg-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 20px 24px;
}
.pkg-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pkg-card h2 { margin-bottom: 12px; }
.pkg-lede { color: var(--muted); margin: 0 0 24px; }
.price-box {
  background: var(--white);
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}
.price-was {
  margin: 0 0 4px;
  color: var(--gray);
  font-size: 1rem;
}
.price-was s { text-decoration: line-through; }
.price-now {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.price-now .unit { font-size: 0.45em; font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.price-off {
  margin: 8px 0 0;
  color: var(--red);
  font-weight: 700;
  font-size: 1.125rem;
}
.price-note { margin: 8px 0 0; color: var(--gray); font-size: 0.9375rem; }

.includes {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.includes li {
  background: var(--white);
  border-radius: 14px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
}
.includes h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.0625rem;
}
.includes p { margin: 0; color: var(--muted); font-size: 1rem; }

.gift {
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 24px;
}
.gift strong { display: block; font-size: 1.125rem; margin-bottom: 4px; }
.gift p { margin: 0; color: rgba(255,255,255,0.86); }

.addons h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.125rem;
}
.addons ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.addons li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.addons li:last-child { border-bottom: 0; }
.addons li strong { color: var(--navy); font-weight: 700; }

.fineprint {
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.pkg-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy-soft); color: var(--navy); }

@media (min-width: 800px) {
  .pkg-card { padding: 40px 36px 32px; }
  .includes { grid-template-columns: 1fr 1fr; gap: 14px; }
  .price-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
  .price-box > * { margin: 0; }
}

/* Games badge */
.badge {
  display: inline-block;
  margin-left: 8px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}

/* Contact extras */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.email-link {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.email-link:hover { color: var(--white); border-bottom-color: var(--white); }


/* Portfolio / 프로젝트 */
.portfolio { background: var(--paper); }
.port-cards {
  display: grid;
  gap: 16px;
}
.port-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow);
}
.port-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.port-icon svg { width: 24px; height: 24px; display: block; }
.port-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.35;
}
.port-card p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.port-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: 10px;
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.6;
}
@media (min-width: 720px) {
  .port-cards { grid-template-columns: 1fr 1fr; }
}
