:root {
  --bg: #07050f;
  --bg-soft: #100a22;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #ffffff;
  --muted: #cfc6dd;
  --subtle: #9e91b5;
  --pink: #c68af6;
  --purple: #7a50ee;
  --deep: #40299b;
  --stroke: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(40, 22, 100, 0.42);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(198, 138, 246, 0.22), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(122, 80, 238, 0.20), transparent 30rem),
    linear-gradient(140deg, #05040a 0%, #100723 52%, #07050f 100%);
  color: var(--text);
  font-family: Inter, "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body[data-lang="th"] { font-family: "Noto Sans Thai", Inter, system-ui, sans-serif; }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  background: rgba(7, 5, 15, 0.72);
  backdrop-filter: blur(22px);
}

.site-header.is-elevated { border-color: var(--stroke); }

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img, .footer-brand img { border-radius: 10px; }

.nav-links, .header-actions, .site-footer nav, .social-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a, .social-link, .site-footer a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 160ms ease;
}

.nav-links a:hover, .social-link:hover, .site-footer a:hover { color: var(--text); }

.lang-toggle {
  min-width: 46px;
  min-height: 38px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.section-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(38px, 6vw, 84px);
  min-height: calc(100vh - 74px);
  padding: 68px 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.4vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.tagline {
  margin-bottom: 18px;
  color: var(--pink);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
}

.hero-text, .section-heading p, .highlight-list p, .download-panel p {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-actions, .store-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button, .secondary-button, .social-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  background: linear-gradient(135deg, var(--pink), var(--purple) 54%, var(--deep));
  color: #fff;
  box-shadow: 0 16px 40px rgba(122, 80, 238, 0.38);
}

.secondary-button, .social-actions a {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  overflow: hidden;
  background: #140b2b;
  box-shadow: var(--shadow);
}

.cover-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.render-card {
  position: absolute;
  width: min(230px, 44%);
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(9, 6, 21, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.render-card span {
  display: block;
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 700;
}

.render-card strong { font-size: 1.1rem; }

.render-card-a { left: 22px; bottom: 24px; }
.render-card-b { right: 22px; top: 24px; }

.trusted-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--stroke);
}

.trusted-strip div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.trusted-strip strong { color: var(--pink); }
.trusted-strip span { color: var(--muted); font-weight: 700; }

.split-section, .visual-plan, .requirements, .download-panel { padding: 110px 0; }

.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.compact { margin-bottom: 24px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.image-placeholder {
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--panel);
}

.placeholder-frame {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-bottom: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(198, 138, 246, 0.18), rgba(64, 41, 155, 0.32)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 10px, transparent 10px 20px);
}

.placeholder-frame span {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.image-placeholder p { color: var(--muted); margin-bottom: 0; }

.feature-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--panel);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink), var(--deep));
  font-weight: 900;
}

.feature-card p { color: var(--muted); margin-bottom: 0; }

.highlight-band {
  border-block: 1px solid var(--stroke);
  background:
    linear-gradient(135deg, rgba(64, 41, 155, 0.78), rgba(122, 80, 238, 0.30)),
    rgba(255, 255, 255, 0.04);
}

.highlight-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  padding: 96px 0;
}

.highlight-list {
  display: grid;
  gap: 20px;
}

.highlight-list div {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--stroke);
}

.highlight-list div:last-child { border-bottom: 0; padding-bottom: 0; }

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.requirements-grid div {
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--panel);
}

.requirements-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--pink);
  font-size: 0.84rem;
  font-weight: 800;
}

.requirements-grid strong { display: block; line-height: 1.35; }

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  margin-bottom: 80px;
  padding: 36px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.store-badge { width: 190px; }
body[data-lang="en"] .store-badge-th { display: none; }
body[data-lang="th"] .store-badge-en { display: none; }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--stroke);
  color: var(--muted);
}

.site-footer nav { justify-content: center; }
.site-footer p { margin: 0; font-size: 0.9rem; }

.legal-page, .help-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.content-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: var(--panel);
}

.content-card p, .content-card li { color: var(--muted); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero, .highlight-layout, .download-panel { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 48px; }
  .feature-grid, .placeholder-grid, .requirements-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .site-footer nav { justify-content: center; }
}

@media (max-width: 640px) {
  .site-header { gap: 12px; padding-inline: 16px; }
  .social-link { display: none; }
  .section-shell { width: min(100% - 28px, 1160px); }
  h1 { font-size: clamp(2.55rem, 15vw, 4.4rem); }
  .hero-visual, .cover-image { min-height: 360px; }
  .render-card { width: calc(100% - 44px); }
  .render-card-b { top: 18px; right: 18px; }
  .render-card-a { left: 18px; bottom: 18px; }
  .trusted-strip, .feature-grid, .placeholder-grid, .requirements-grid { grid-template-columns: 1fr; }
  .split-section, .visual-plan, .requirements, .download-panel { padding-block: 72px; }
  .download-panel { padding: 24px; margin-bottom: 50px; }
  .hero-actions, .store-actions, .social-actions { align-items: stretch; flex-direction: column; }
  .primary-button, .secondary-button, .social-actions a { width: 100%; }
}


.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(1040px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(12, 8, 28, 0.94);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.cookie-banner.is-visible { display: grid; }

.cookie-copy h2 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.cookie-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-panel {
  display: none;
  gap: 10px;
  margin-top: 12px;
}

.cookie-panel.is-open { display: grid; }

.cookie-panel label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
  align-content: start;
}

.cookie-actions button {
  min-height: 40px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.cookie-actions button:first-child,
.cookie-actions button:last-child {
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

@media (max-width: 760px) {
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-actions { grid-template-columns: 1fr; }
}


.content-card h1 {
  font-size: clamp(1.75rem, 3vw, 2.55rem) !important;
  line-height: 1.12;
}

.content-card h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  line-height: 1.22;
}
