:root {
  --ink: #11213f;
  --muted: #53617a;
  --paper: #f5f8ff;
  --surface: #ffffff;
  --blue: #246df4;
  --blue-dark: #174db4;
  --cyan: #4bd5ef;
  --violet: #7457ed;
  --gold: #f3b64a;
  --navy: #081a38;
  --line: #d8e2f3;
  --soft-blue: #eaf1ff;
  --soft-gold: #fff4db;
  --shadow: 0 22px 60px rgba(24, 55, 112, 0.15);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans Thai", "Leelawadee UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--blue-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 14px; background: #fff; }
.skip-link:focus { left: 8px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 226, 243, 0.92);
  background: rgba(245, 248, 255, 0.94);
  backdrop-filter: blur(14px);
}
.nav-inner { min-height: 72px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 900; letter-spacing: -0.02em; }
.brand img { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 7px 18px rgba(36, 109, 244, 0.22); }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 19px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 780; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue); }
.language-switch { display: inline-flex; min-height: 40px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 850; }

.hero { position: relative; overflow: hidden; padding: 70px 0 64px; background: var(--navy); color: #fff; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; opacity: 0.22; }
.hero::before { width: 300px; height: 300px; right: -95px; top: -145px; background: var(--cyan); }
.hero::after { width: 210px; height: 210px; left: -90px; bottom: -130px; border: 34px solid var(--violet); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr); gap: 54px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #eef4ff; font-size: 13px; font-weight: 820; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.hero .eyebrow { color: #78e4f7; }
h1, h2, h3 { margin-top: 0; line-height: 1.22; letter-spacing: -0.025em; }
h1 { max-width: 680px; margin-bottom: 20px; font-size: clamp(39px, 5.5vw, 66px); }
h2 { font-size: clamp(29px, 4vw, 44px); }
h3 { font-size: 20px; }
.hero-copy { max-width: 650px; margin: 0; color: rgba(255, 255, 255, 0.78); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 19px; border-radius: 14px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 900; box-shadow: 0 12px 26px rgba(36, 109, 244, 0.25); }
.button:hover, .button:focus-visible { background: var(--blue-dark); }
.button.secondary { border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: #fff; box-shadow: none; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 700; }
.hero-trust li::before { content: "✓"; margin-right: 7px; color: #78e4f7; font-weight: 950; }

.hero-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 28px; background: #dce8ff; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28); }
.hero-stage::before { content: ""; position: absolute; inset: 19px; border: 1px solid rgba(36, 109, 244, 0.16); border-radius: 20px; }
.hero-shot { position: absolute; overflow: hidden; border: 6px solid #fff; border-radius: 22px; background: #fff; box-shadow: 0 18px 40px rgba(23, 58, 121, 0.23); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-shot.primary { width: 65%; height: 85%; left: 5%; top: 8%; }
.hero-shot.secondary { width: 34%; height: 72%; right: 5%; top: 14%; transform: rotate(2deg); }
.hero-badge { position: absolute; right: 7%; bottom: 6%; padding: 8px 12px; border-radius: 999px; background: var(--gold); color: #4e3500; font-size: 12px; font-weight: 900; box-shadow: 0 8px 20px rgba(78, 53, 0, 0.2); }

section { padding: 72px 0; }
.section-head { max-width: 780px; margin-bottom: 30px; }
.section-head p:last-child { color: var(--muted); font-size: 17px; }
.steps, .feature-grid, .plan-grid, .boundary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-grid, .boundary-grid, .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .plan-card, .boundary-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 27px rgba(24, 55, 112, 0.07); }
.step-number { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 13px; background: var(--soft-blue); color: var(--blue-dark); font-weight: 950; }
.card p, .plan-card p, .boundary-card p { margin-bottom: 0; color: var(--muted); }
.features { background: #edf3ff; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 13px; background: var(--soft-blue); color: var(--blue-dark); font-size: 20px; font-weight: 950; }

.gallery { overflow: hidden; background: #fff; }
.screen-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.screen-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.screen-card:first-child { grid-column: 1 / -1; }
.screen-open { position: relative; width: 100%; padding: 12px; border: 0; cursor: zoom-in; background: #eaf1ff; text-align: left; }
.screen-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #dce8ff; }
.screen-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.screen-zoom { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(8, 26, 56, 0.84); color: #fff; font-size: 12px; font-weight: 850; }
.screen-copy { padding: 20px 22px 22px; }
.screen-copy p { margin-bottom: 0; color: var(--muted); }

.plans { background: var(--paper); }
.plan-card.featured { border-color: rgba(36, 109, 244, 0.48); background: #f7faff; }
.plan-label { color: var(--blue-dark); font-weight: 950; }
.plan-name { margin: 7px 0 16px; font-size: 30px; font-weight: 950; }
.plan-card ul { margin: 0; padding-left: 21px; color: var(--muted); }
.plan-card li + li { margin-top: 8px; }
.plan-note { margin-top: 20px; padding: 15px 17px; border: 1px solid #efd391; border-radius: 14px; background: var(--soft-gold); color: #644707; }

.boundaries { background: #eaf1ff; }
.boundary-card strong { color: var(--blue-dark); }
.faq-list { display: grid; gap: 12px; max-width: 880px; }
details { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
summary { cursor: pointer; padding: 18px 20px; font-weight: 880; }
details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

.support-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.support-band::after { content: ""; position: absolute; width: 230px; height: 230px; right: -90px; bottom: -120px; border-radius: 50%; background: var(--violet); opacity: 0.18; }
.support-band .wrap { position: relative; z-index: 1; }
.support-band .eyebrow { color: #78e4f7; }
.support-band .section-head p, .support-band p { color: rgba(255, 255, 255, 0.8); }
.support-links { display: flex; flex-wrap: wrap; gap: 12px; }
.support-links a { display: inline-flex; min-height: 48px; align-items: center; padding: 11px 16px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 13px; color: #fff; font-weight: 850; text-decoration: none; }
.support-links a:first-child { background: #fff; color: var(--blue-dark); }
.availability { margin-top: 24px; padding: 17px 18px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 16px; background: rgba(255, 255, 255, 0.08); }
.availability strong { color: #fff; }

footer { padding: 28px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

.policy { padding: 62px 0 84px; }
.policy article { max-width: 900px; margin: 0 auto; padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.policy .updated { color: var(--muted); }
.policy h1 { font-size: clamp(34px, 5vw, 52px); }
.policy h2 { margin-top: 34px; font-size: 25px; }
.policy li + li { margin-top: 8px; }
.notice { padding: 15px 17px; border-left: 4px solid var(--gold); border-radius: 10px; background: var(--soft-gold); color: #59400c; }

.image-dialog { width: min(940px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36); }
.image-dialog::backdrop { background: rgba(4, 13, 31, 0.78); }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-head strong { font-size: 15px; }
.dialog-close { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; font-size: 20px; }
.dialog-image-wrap { padding: 16px; background: var(--paper); }
.dialog-image-wrap img { width: auto; max-height: calc(100vh - 112px); margin: 0 auto; border-radius: 14px; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 760px; }
  .nav-links { display: none; }
  .language-switch { margin-left: auto; }
}

@media (max-width: 680px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .nav-inner { min-height: 64px; }
  .brand small { display: none; }
  .hero { padding: 44px 0 38px; }
  .hero-grid { gap: 34px; }
  h1 { font-size: clamp(35px, 11vw, 48px); }
  section { padding: 52px 0; }
  .hero-actions, .support-links { align-items: stretch; flex-direction: column; }
  .button, .support-links a { width: 100%; }
  .steps, .feature-grid, .screen-gallery, .plan-grid, .boundary-grid { grid-template-columns: 1fr; }
  .screen-card:first-child { grid-column: auto; }
  .card, .plan-card, .boundary-card { padding: 20px; }
  .hero-stage { aspect-ratio: 4 / 3; }
  .hero-shot.primary { width: 72%; height: 84%; left: 3%; }
  .hero-shot.secondary { width: 36%; right: 3%; }
  .screen-open { padding: 9px; }
  .policy { padding: 38px 0 58px; }
  .policy article { padding: 25px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
