/* ===== meStock POS — Landing Page ===== */
:root {
  --orange: #1A80F8;
  --orange-dark: #0f6ad6;
  --blue: #1A80F8;
  --blue-dark: #0f6ad6;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e8edf3;
  --bg-soft: #f4f7fb;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(20, 40, 80, .05);
  --shadow-sm: 0 1px 3px rgba(20, 40, 80, .04);
  --maxw: 1200px;
  --font: "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700;
  font-size: 1rem; font-family: var(--font); cursor: pointer;
  border: 2px solid transparent; transition: .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(26,128,248,.32); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(26,128,248,.3); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- Navbar ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; }
.brand img { width: 38px; height: 38px; }
.brand img.logo-wide { width: auto; height: 44px; }
.brand span b { color: var(--orange); }
.nav-links { display: flex; gap: 30px; list-style: none; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-login { font-weight: 700; color: var(--ink); }
.nav-login:hover { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--ink); }

/* ---- Hero ---- */
.hero { padding: 76px 0 44px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.25; font-weight: 800; letter-spacing: -.5px; }
.hero h1 .hl { color: var(--orange); }
.hero p.lead { color: var(--muted); font-size: 1.12rem; margin: 22px 0 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-check { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; color: var(--muted); font-weight: 600; }
.hero-check span { display: flex; align-items: center; gap: 8px; }
.hero-check svg { color: var(--blue); flex-shrink: 0; }
.hero-media { position: relative; }
.hero-media img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---- Feature cards (overlap) ---- */
.features { padding: 20px 0 30px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .2s;
}
.feat-card:hover { border-color: var(--blue); }
.feat-ico {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(26,128,248,.1); color: var(--blue); margin-bottom: 18px;
}
.feat-ico.orange { background: rgba(26,128,248,.12); color: var(--orange); }
.feat-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feat-card p { color: var(--muted); font-size: .98rem; }

/* ---- Stats ---- */
.stats { margin: 46px 0; }
.stats-inner {
  background: var(--bg-soft); border-radius: 20px; padding: 34px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.stat { text-align: center; padding: 6px 14px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--blue); }
.stat .num.orange { color: var(--orange); }
.stat .lbl { color: var(--muted); font-size: .95rem; margin-top: 2px; }

/* ---- Section heads ---- */
.section { padding: 70px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head .kicker { color: var(--orange); font-weight: 800; letter-spacing: .5px; font-size: .92rem; }
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 10px 0 14px; letter-spacing: -.5px; }
.sec-head p { color: var(--muted); font-size: 1.06rem; }

/* ---- Segments (minimal: text over image left) ---- */
.segshow { position: relative; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.segshow-img { width: 100%; display: block; }
.segshow-text {
  position: absolute; left: 0; top: 0; bottom: 0; width: 40%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(26px, 4vw, 60px);
}
.segshow-text .kicker { color: var(--blue); font-weight: 800; letter-spacing: .5px; font-size: .9rem; }
.segshow-text h2 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 800; margin: 12px 0 14px; line-height: 1.25; letter-spacing: -.5px; }
.segshow-text p { color: var(--muted); font-size: 1.02rem; max-width: 340px; }
@media (max-width: 820px) {
  .segshow-text { position: static; width: 100%; padding: 30px 26px 6px; }
  .segshow-img { height: 300px; object-fit: cover; object-position: right center; }
}

/* ---- Split feature rows ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-text { order: 2; }
.split-media img { border-radius: 20px; box-shadow: var(--shadow); }
.split-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -.5px; }
.split-list { list-style: none; margin-top: 20px; display: grid; gap: 14px; }
.split-list li { display: flex; gap: 12px; color: var(--muted); font-size: 1.02rem; }
.split-list svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.split-list b { color: var(--ink); }

/* ---- Download CTA ---- */
.download {
  background: linear-gradient(135deg, #10213b, #1a3a6b);
  color: #fff; border-radius: 26px; padding: 56px; text-align: center;
  position: relative; overflow: hidden;
}
.download h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.download p { color: #c7d6ec; font-size: 1.08rem; max-width: 560px; margin: 0 auto 30px; }
.store-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.store-badge {
  display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink);
  padding: 12px 22px; border-radius: 14px; font-weight: 700; transition: .2s;
}
.store-badge:hover { transform: translateY(-3px); }
.store-badge small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.store-badge span { font-size: 1.05rem; line-height: 1.1; }
.store-badge.soon { opacity: .55; pointer-events: none; }
.store-badge svg { width: 26px; height: 26px; }

/* ---- Footer ---- */
.footer { background: #14181f; color: #b8c1cc; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer-about p { font-size: .95rem; line-height: 1.8; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: #b8c1cc; font-size: .96rem; }
.footer ul a:hover { color: var(--orange); }
.footer .contact-line { display: flex; gap: 10px; margin-bottom: 10px; font-size: .95rem; }
.footer .contact-line svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #fff; transition: .2s;
}
.socials a:hover { background: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .88rem; color: #8a95a1;
}
.footer-bottom a:hover { color: var(--orange); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .feat-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stat:nth-child(2n) { border-right: 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav-links, .nav-login { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .download { padding: 44px 24px; }
}
@media (max-width: 520px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn, .btn { width: 100%; justify-content: center; }
  .nav-actions .btn-primary { padding: 10px 16px; font-size: .92rem; }
}
