:root {
  --primary: #0075EA;
  --primary-dark: #0D549B;
  --primary-light: #1EB1FF;
  --accent-cyan: #01EAFF;
  --accent-green: #78FF79;
  --bg: #F4F6F9;
  --white: #FFFFFF;
  --text-primary: rgba(0, 0, 0, 0.87);
  --text-secondary: rgba(0, 0, 0, 0.60);
  --text-tertiary: rgba(0, 0, 0, 0.50);
  --divider: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 117, 234, 0.08);
  --shadow-md: 0 8px 32px rgba(13, 84, 155, 0.12);
  --shadow-lg: 0 24px 48px rgba(13, 84, 155, 0.16);
  --radius: 16px;
  --radius-pill: 32px;
  --font: "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --max-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section[id] {
  scroll-margin-top: 72px;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav a:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(0, 117, 234, 0.35);
}

.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 117, 234, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn--outline:hover { background: rgba(0, 117, 234, 0.06); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background: linear-gradient(160deg, #0D549B 0%, #0075EA 45%, #1EB1FF 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(1, 234, 255, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(120, 255, 121, 0.15), transparent);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  max-width: 520px;
}

.hero__subtitle-en {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
  max-width: 520px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
  min-width: 160px;
}

.store-badge:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.store-badge svg { flex-shrink: 0; }

.store-badge__text { line-height: 1.2; }
.store-badge__label { font-size: 0.65rem; opacity: 0.8; }
.store-badge__name { font-size: 0.95rem; font-weight: 600; }

.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero__screenshot {
  width: min(100%, 300px);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── Screenshots gallery ── */
.screenshots {
  padding: 64px 0 80px;
  background: var(--white);
}

.screenshots .section-header {
  margin-bottom: 32px;
}

.screenshots__wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.screenshots__nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.screenshots__nav:hover:not(:disabled) {
  background: rgba(0, 117, 234, 0.06);
  border-color: var(--primary);
}

.screenshots__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.screenshots__track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) transparent;
}

.screenshots__track::-webkit-scrollbar {
  height: 6px;
}

.screenshots__track::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}

.screenshots__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--divider);
  transition: transform 0.2s, box-shadow 0.2s;
}

.screenshots__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.screenshots__item img {
  display: block;
  width: 220px;
  height: auto;
}

/* ── Stats bar ── */
.stats {
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stats__item {
  background: var(--white);
  padding: 28px 20px;
  text-align: center;
}

.stats__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stats__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Sections ── */
section { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.section-header .en {
  display: block;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ── Features ── */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 117, 234, 0.1), rgba(30, 177, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.feature-card .en {
  display: block;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ── Use cases ── */
.use-cases { background: var(--white); }

.use-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.use-case {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.use-case:hover { border-color: rgba(0, 117, 234, 0.2); }

.use-case__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.use-case h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.use-case p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ── Security ── */
.security {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: var(--white);
}

.security .section-header h2 { color: var(--white); }
.security .section-header p { color: rgba(255, 255, 255, 0.8); }
.security .section-header .en { color: rgba(255, 255, 255, 0.55); }

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

.security-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(4px);
}

.security-card__icon { font-size: 2rem; margin-bottom: 16px; }

.security-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.security-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 80px 0;
}

.cta__box {
  background: var(--white);
  border-radius: 24px;
  padding: 56px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--divider);
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  margin-inline: auto;
}

/* ── Footer ── */
.footer {
  background: #0A2540;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
  font-size: 0.88rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer ul { list-style: none; }

.footer li { margin-bottom: 10px; }

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle, .hero__subtitle-en { margin-inline: auto; }
  .store-badges { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__screenshot { width: min(100%, 260px); }
  .screenshots__item img { width: 200px; }
  .screenshots__nav { width: 36px; height: 36px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: 1fr; }
  .use-cases__grid { grid-template-columns: 1fr; }
  .security__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--divider);
    gap: 16px;
  }
  .menu-toggle { display: block; }
  .header__inner { position: relative; }
  .hero { padding: 48px 0 72px; }
  section { padding: 56px 0; }
  .stats { margin-top: -24px; }
  .cta__box { padding: 40px 24px; }
}
