/* ============================================================
   MekinPOS — Marketing Site
   Brand: orange #FF8C42 → #D94F10 → #5C1800, cream #F8ECD3
   ============================================================ */

:root {
  --orange: #FF8C42;
  --orange-600: #F2741F;
  --orange-700: #D94F10;
  --brown-900: #2D0800;
  --cream: #F8ECD3;
  --cream-2: #FFE7CC;
  --ink: #1c1206;
  --ink-2: #4a3a2a;
  --muted: #8a7a68;
  --line: #ece3d6;
  --bg: #ffffff;
  --bg-soft: #fbf6ee;
  --bg-cream: #fdf8f0;
  --dark: #16100a;
  --dark-2: #20160d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -22px rgba(45, 8, 0, .35);
  --shadow-sm: 0 8px 24px -14px rgba(45, 8, 0, .3);
  --max: 1180px;
  --font: 'Noto Sans Thai', 'Prompt', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-700));
  color: #fff; box-shadow: 0 12px 30px -12px rgba(217, 79, 16, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(217, 79, 16, .8); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--cream); border-color: rgba(248,236,211,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--orange-700); border-color: var(--orange); }
.btn-outline:hover { background: #fff6ee; transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; letter-spacing: .3px; }
.brand img { width: 38px; height: 38px; }
.brand .b-mekin { color: var(--ink); }
.brand .b-pos { color: var(--orange-700); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-cream); color: var(--orange-700); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 700;
}
.lang-toggle button { padding: 6px 12px; background: #fff; border: 0; cursor: pointer; color: var(--muted); font-family: inherit; }
.lang-toggle button.active { background: var(--orange); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--cream); overflow: hidden;
  background: radial-gradient(120% 120% at 75% 10%, #3a1f0a 0%, #1a0f06 55%, #0c0703 100%);
  padding: 92px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,140,66,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,140,66,.06) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(80% 70% at 70% 20%, #000, transparent 75%);
}
.hero-glow { position: absolute; width: 620px; height: 620px; right: -160px; top: -180px;
  background: radial-gradient(circle, rgba(255,140,66,.5), transparent 62%); filter: blur(20px); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(33px, 5vw, 56px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; color: #fff; }
.hero h1 .accent { color: var(--orange); }
.hero .lead { margin-top: 20px; font-size: clamp(16px, 2vw, 20px); color: #e8d7be; max-width: 560px; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; display: flex; gap: 26px; flex-wrap: wrap; color: #cdb89c; font-size: 14px; }
.hero-meta b { color: var(--orange); font-size: 24px; display: block; font-weight: 800; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,140,66,.14);
  border: 1px solid rgba(255,140,66,.4); color: var(--orange); padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 700; margin-bottom: 22px;
}
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(248,236,211,.18); border-radius: 26px; padding: 26px; width: 100%;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.7); backdrop-filter: blur(8px);
}
.hero-card img { border-radius: 18px; }
.float-chip {
  position: absolute; background: rgba(20,12,7,.85); border: 1px solid rgba(255,140,66,.35);
  border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--cream);
  display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm);
}
.float-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #36d399; box-shadow: 0 0 0 4px rgba(54,211,153,.2); }
.fc-1 { top: 12px; left: -18px; } .fc-2 { bottom: 22px; right: -14px; }

/* ---------- Section headings ---------- */
.section { padding: 86px 0; }
.section.alt { background: var(--bg-cream); }
.section.dark { background: linear-gradient(180deg, #16100a, #20160d); color: var(--cream); }
.eyebrow { color: var(--orange-700); font-weight: 800; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.section.dark .eyebrow { color: var(--orange); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; margin-top: 10px; line-height: 1.2; letter-spacing: -.3px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.section.dark .section-head p { color: #cdb89c; }

/* ---------- Ecosystem / product grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #f3d9bf; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 25px;
  background: linear-gradient(135deg, #fff1e4, #ffe0c4); margin-bottom: 16px;
}
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.card .tag { font-size: 12px; font-weight: 700; color: var(--orange-700); text-transform: uppercase; letter-spacing: .5px; }
.card p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.card .platforms { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-cream); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- Feature list (alternating) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 38px 0; }
.feature-row.rev .ftxt { order: 2; }
.feature-row .fmedia {
  border-radius: 22px; min-height: 280px; display: grid; place-items: center;
  background: linear-gradient(150deg, #2a1a0c, #160e07); color: var(--orange); position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.feature-row .fmedia .big-ico { font-size: 86px; opacity: .92; }
.feature-row .fmedia::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,140,66,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,140,66,.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.feature-row h3 { font-size: 26px; font-weight: 800; }
.feature-row .ftag { color: var(--orange-700); font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.feature-row ul { margin-top: 16px; list-style: none; display: grid; gap: 10px; }
.feature-row ul li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.feature-row ul li::before { content: "✓"; color: #fff; background: var(--orange); border-radius: 50%; width: 21px; height: 21px; min-width: 21px; display: grid; place-items: center; font-size: 12px; font-weight: 900; margin-top: 2px; }

/* ---------- Why / benefits ---------- */
.benefit { text-align: left; }
.benefit .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 23px; background: rgba(255,140,66,.14); color: var(--orange); margin-bottom: 14px; }
.section.dark .benefit p { color: #cdb89c; }
.section.dark .benefit h3 { color: var(--cream); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 14px; border-radius: var(--radius); background: rgba(255,140,66,.08); border: 1px solid rgba(255,140,66,.18); }
.stat b { display: block; font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--orange); line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; margin-top: 8px; display: block; }
.section.dark .stat span { color: #cdb89c; }

/* ---------- Pricing ---------- */
.billing-toggle { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 38px; font-weight: 700; }
.switch { position: relative; width: 58px; height: 30px; background: var(--orange); border-radius: 999px; cursor: pointer; transition: background .2s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: transform .22s; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.switch.year .knob { transform: translateX(28px); }
.save-badge { background: #def7ec; color: #057a55; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 30px 26px; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--orange); box-shadow: 0 24px 60px -28px rgba(217,79,16,.5); }
.plan.featured::before { content: attr(data-badge); position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--orange), var(--orange-700)); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 16px; border-radius: 999px; white-space: nowrap; }
.plan .pname { font-size: 21px; font-weight: 800; }
.plan .pdesc { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 42px; }
.plan .price { margin: 18px 0 4px; }
.plan .price .amt { font-size: 42px; font-weight: 800; color: var(--ink); }
.plan .price .cur { font-size: 20px; font-weight: 700; }
.plan .price .per { color: var(--muted); font-size: 15px; font-weight: 600; }
.plan .pnote { font-size: 13px; color: #057a55; font-weight: 700; min-height: 20px; }
.plan .btn { width: 100%; margin: 22px 0; }
.plan ul { list-style: none; display: grid; gap: 11px; }
.plan ul li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); align-items: flex-start; }
.plan ul li.no { color: #b9a994; }
.plan ul li .ck { color: var(--orange); font-weight: 900; }
.plan ul li.no .ck { color: #d9c9b4; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--orange), var(--orange-700)); color: #fff; border-radius: 26px; padding: 52px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.cta-band p { margin-top: 12px; font-size: 18px; opacity: .94; }
.cta-band .hero-cta { justify-content: center; margin-top: 26px; }
.cta-band .btn-light { background: #fff; color: var(--orange-700); }
.cta-band .btn-light:hover { transform: translateY(-2px); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.ci-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.ci-item .ico { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #fff1e4, #ffe0c4); display: grid; place-items: center; font-size: 21px; }
.ci-item h4 { font-size: 15px; font-weight: 800; }
.ci-item a, .ci-item p { color: var(--ink-2); font-size: 15px; }
.ci-item a:hover { color: var(--orange-700); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 11px; background: var(--bg-soft); transition: border-color .15s, background .15s; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-msg { padding: 13px 16px; border-radius: 11px; font-weight: 700; font-size: 14px; margin-bottom: 16px; display: none; }
.form-msg.ok { display: block; background: #def7ec; color: #057a55; }
.form-msg.err { display: block; background: #fde8e8; color: #c81e1e; }
.map-embed { margin-top: 30px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); height: 320px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Logos / trust ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.trust .pill { background: #fff; padding: 9px 16px; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #16100a; color: #cdb89c; padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand .b-mekin { color: #fff; }
.footer-about { font-size: 14.5px; max-width: 300px; }
.footer-col h5 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14.5px; color: #cdb89c; transition: color .15s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; font-size: 16px; color: #cdb89c; }
.footer-social a:hover { background: var(--orange); color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: radial-gradient(120% 130% at 80% 0%, #34200d, #160f07 60%, #0c0703); color: var(--cream); padding: 70px 0 64px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,140,66,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,140,66,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 80% at 70% 10%, #000, transparent 78%); }
.page-hero h1 { position: relative; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; color: #fff; }
.page-hero p { position: relative; margin-top: 14px; color: #e8d7be; font-size: 18px; max-width: 620px; margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 6px auto 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .feature-row, .feature-row.rev .ftxt { grid-template-columns: 1fr; order: 0; }
  .feature-row .fmedia { min-height: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: #fff; padding: 14px 22px 22px; gap: 2px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow); }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; padding: 13px 12px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px; }
}

/* ============================================================
   ANIMATION LAYER + SCREENSHOT GALLERY  (v2)
   ============================================================ */

/* ---- Scroll progress bar ---- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--orange), var(--orange-700)); box-shadow: 0 0 12px rgba(255,140,66,.6); transition: width .08s linear; }

/* ---- Animated hero gradient + aurora ---- */
.hero { background-size: 160% 160%; animation: heroPan 22s ease-in-out infinite; }
@keyframes heroPan { 0%,100% { background-position: 75% 10%; } 50% { background-position: 55% 40%; } }
.hero-glow { animation: glowPulse 7s ease-in-out infinite; }
@keyframes glowPulse { 0%,100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.hero-aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-aurora span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; mix-blend-mode: screen; }
.hero-aurora span:nth-child(1){ width: 360px; height: 360px; left: -80px; bottom: -120px; background: radial-gradient(circle,#ff8c42,transparent 60%); animation: drift1 16s ease-in-out infinite; }
.hero-aurora span:nth-child(2){ width: 300px; height: 300px; left: 35%; top: -120px; background: radial-gradient(circle,#d94f10,transparent 60%); animation: drift2 19s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px,-40px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px,40px); } }

/* ---- Hero entrance ---- */
.hero-text > * { opacity: 0; transform: translateY(18px); animation: heroIn .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-text > *:nth-child(1){ animation-delay:.05s } .hero-text > *:nth-child(2){ animation-delay:.15s }
.hero-text > *:nth-child(3){ animation-delay:.25s } .hero-text > *:nth-child(4){ animation-delay:.35s }
.hero-text > *:nth-child(5){ animation-delay:.45s }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero-visual { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.float-chip { animation: chipFloat 5s ease-in-out infinite; }
.float-chip.fc-2 { animation-delay: 1.4s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero h1 .accent { background: linear-gradient(90deg,#ff8c42,#ffd9a8,#ff8c42); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shine 4s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

/* ---- Reveal variants + stagger ---- */
.reveal.rl { transform: translateX(-26px); } .reveal.rr { transform: translateX(26px); } .reveal.rs { transform: scale(.94); }
.reveal.in { transform: none; }
.grid .reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---- Card shine on hover ---- */
.card { position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); transition: left .6s ease; pointer-events: none; }
.card:hover::after { left: 130%; }

/* ---- Button shimmer ---- */
.btn-primary, .btn-light { position: relative; overflow: hidden; }
.btn-primary::after, .btn-light::after { content: ""; position: absolute; inset: 0; left: -120%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-18deg); transition: left .5s; }
.btn-primary:hover::after, .btn-light:hover::after { left: 120%; }

/* ---- Stat count pop ---- */
.stat.in b { animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---- Feature media float icon ---- */
.feature-row .fmedia .big-ico { animation: floatY 5s ease-in-out infinite; }

/* ============================================================
   SCREENSHOT GALLERY
   ============================================================ */
.shots-band { background: linear-gradient(180deg, #1a120b, #241910); color: var(--cream); overflow: hidden; }
.shots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.shot {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; background: #0d0905;
  border: 1px solid rgba(248,236,211,.16); box-shadow: 0 24px 50px -26px rgba(0,0,0,.8);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.shot img { width: 100%; display: block; transition: transform .5s ease; }
.shot:hover { transform: translateY(-6px) scale(1.015); border-color: rgba(255,140,66,.5); box-shadow: 0 34px 70px -28px rgba(255,140,66,.4); }
.shot:hover img { transform: scale(1.04); }
.shot .shot-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; font-size: 13.5px; font-weight: 700;
  color: #fff; background: linear-gradient(transparent, rgba(10,6,3,.92)); display: flex; align-items: center; gap: 8px; }
.shot .shot-tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: #fff; background: rgba(217,79,16,.92); padding: 5px 10px; border-radius: 999px; }
.shot .zoom-ico { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 9px; background: rgba(0,0,0,.5);
  display: grid; place-items: center; color: #fff; font-size: 14px; opacity: 0; transition: opacity .25s; }
.shot:hover .zoom-ico { opacity: 1; }

/* app filter tabs */
.shot-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.shot-tabs button { font-family: inherit; font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.06); color: var(--cream); border: 1px solid rgba(248,236,211,.2); transition: all .2s; }
.shot-tabs button:hover { background: rgba(255,255,255,.12); }
.shot-tabs button.active { background: linear-gradient(135deg,var(--orange),var(--orange-700)); color: #fff; border-color: transparent; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,5,2,.92); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 30px; opacity: 0; transition: opacity .25s; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); animation: lbZoom .3s cubic-bezier(.2,.9,.3,1); }
@keyframes lbZoom { from { transform: scale(.92); opacity: .5; } to { transform: none; opacity: 1; } }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 22px; }
.lightbox .lb-close:hover { background: var(--orange); }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 24px; }
.lightbox .lb-nav:hover { background: var(--orange); }
.lightbox .lb-prev { left: 20px; } .lightbox .lb-next { right: 20px; }
.lightbox .lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--cream); font-weight: 700; font-size: 15px; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   HERO ANIMATED CIRCUIT BACKGROUND (running lights, two-way)
   ============================================================ */
.hero-circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-glow, .hero-aurora { z-index: 0; }
.hero-inner { z-index: 3; }

.hero-circuit .trace { fill: none; stroke: rgba(255,150,80,.12); stroke-width: 1.4; }
.hero-circuit .node { fill: rgba(255,160,90,.35); }
.hero-circuit .node.lit { animation: nodePulse 3.2s ease-in-out infinite; }
@keyframes nodePulse { 0%,100% { opacity: .25; r: 4; } 50% { opacity: 1; r: 6; } }

/* running light: a short bright dash sliding along the whole trace */
.hero-circuit .flow {
  fill: none; stroke: #ffc187; stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 22 978; stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 5px rgba(255,150,70,.95)) drop-shadow(0 0 13px rgba(255,110,35,.55));
  animation: circuitFlow var(--d, 7s) linear infinite; animation-delay: var(--delay, 0s);
}
@keyframes circuitFlow { to { stroke-dashoffset: 0; } }
/* reverse = light travelling the opposite way (so two lights cross / pass each other) */
.hero-circuit .flow.rev { animation-direction: reverse; }
/* dimmer flows for the left side, behind the headline, to keep text readable */
.hero-circuit .flow.dim {
  stroke: #ffac66; stroke-width: 1.8; opacity: .45;
  filter: drop-shadow(0 0 4px rgba(255,150,70,.6));
}

@media (prefers-reduced-motion: reduce) {
  .hero-circuit .flow { animation: none; opacity: .4; }
  .hero-circuit .node.lit { animation: none; }
}
@media (max-width: 720px) { .hero-circuit { opacity: .55; } }

/* ============================================================
   HERO SCREENSHOT SLIDESHOW (POS / Queue / KDS crossfade)
   ============================================================ */
.hero-slides { position: relative; width: 100%; aspect-ratio: 1280 / 744; border-radius: 18px; overflow: hidden; background: #0d0905; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 4.5s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(12,7,3,.78); border: 1px solid rgba(255,140,66,.45); backdrop-filter: blur(6px);
  color: #ffd9b0; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px;
}
.hero-slide-badge .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,140,66,.22); }
.hero-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 7px; }
.hero-dots b { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.42); cursor: pointer; transition: width .3s, background .3s, border-radius .3s; }
.hero-dots b.on { background: var(--orange); width: 20px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: opacity .3s; transform: none; } }

/* ============================================================
   LEGAL / DOCUMENT PAGES (privacy, data safety)
   ============================================================ */
.legal { padding: 56px 0 80px; background: var(--bg); }
.legal-wrap { max-width: 850px; margin: 0 auto; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 16px 20px; margin-bottom: 30px;
  background: var(--bg-cream); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; color: var(--ink-2); }
.legal-meta b { color: var(--ink); }
.legal-note { border-left: 3px solid var(--orange); background: #fff8f1; padding: 14px 18px; border-radius: 0 12px 12px 0;
  color: var(--ink-2); font-size: 15px; margin: 22px 0; }
.prose { color: var(--ink-2); font-size: 16px; }
.prose h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 40px 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 26px 0 8px; }
.prose h3 .num { color: var(--orange-700); }
.prose p { margin: 10px 0; line-height: 1.75; }
.prose ul { margin: 10px 0 10px 4px; list-style: none; display: grid; gap: 9px; }
.prose ul li { display: flex; gap: 11px; align-items: flex-start; line-height: 1.7; }
.prose ul li::before { content: ""; width: 7px; height: 7px; min-width: 7px; border-radius: 50%; background: var(--orange); margin-top: 9px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--orange-700); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--bg-cream); font-weight: 800; color: var(--ink); }
.legal-table td .yes { color: #057a55; font-weight: 800; }
.legal-table td .no { color: #b45309; font-weight: 800; }
.app-chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; color: var(--ink);
  background: var(--bg-cream); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; margin-bottom: 8px; }
.app-chip code { font-size: 12px; color: var(--muted); font-weight: 600; }
.footer-legal { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-legal a { color: #cdb89c; }
.footer-legal a:hover { color: var(--orange); }
@media (max-width: 720px) { .legal-table { font-size: 13px; } .legal-table th, .legal-table td { padding: 8px 9px; } }

/* ============================================================
   FEATURE-ROW SCREENSHOTS + MOBILE FIXES (v4)
   ============================================================ */

/* feature-row media that holds a real screenshot instead of an emoji */
.feature-row .fmedia.has-shot { padding: 0; overflow: hidden; min-height: 0; }
.feature-row .fmedia.has-shot::after { display: none; }
.feature-row .fmedia.has-shot img { width: 100%; height: 100%; min-height: 240px; max-height: 340px; object-fit: cover; display: block; }

/* floating hero chips: never wrap to multiple lines */
.float-chip { white-space: nowrap; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 720px) {
  /* header: keep brand on one line, free up space */
  .brand span { white-space: nowrap; }
  .brand { font-size: 18px; gap: 9px; }
  .brand img { width: 30px; height: 30px; }
  .nav { height: 60px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-outline { display: none; }   /* sign-in moves to the menu/footer on mobile */
  .nav-links { top: 60px; }

  /* hero spacing + chips inside the card (no overflow) */
  .hero { padding: 60px 0 70px; }
  .float-chip { font-size: 11px; padding: 6px 10px; }
  .fc-1 { top: 8px; left: 8px; }
  .fc-2 { bottom: 8px; right: 8px; }
  .hero-meta { gap: 16px; }
  .hero-meta b { font-size: 21px; }
}

@media (max-width: 420px) {
  .brand { font-size: 16px; }
  .lang-toggle button { padding: 5px 9px; font-size: 12px; }
  .float-chip { font-size: 10px; padding: 5px 8px; }
}

/* ============================================================
   PER-SYSTEM SALES PAGES + REVIEW-IMAGE PLACEHOLDERS (v5)
   ============================================================ */

/* review image box: shows the image when it exists, a styled
   placeholder when the file is not there yet (auto-swaps on upload) */
.revbox { position: relative; border-radius: 18px; overflow: hidden; background: #0f0a05;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.revbox img { width: 100%; height: 100%; object-fit: cover; display: block; }
.revbox.missing { border: 2px dashed #e6d5bd; background: linear-gradient(140deg, #fbf4ea, #f5e7d4); box-shadow: none; }
.revbox.missing img { display: none; }
.revbox.missing::before { content: "🖼️"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -160%); font-size: 34px; opacity: .5; }
.revbox.missing::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; padding: 24px 20px 20px; color: #a8906f; font-weight: 700; font-size: 14px; line-height: 1.5; }

/* dark-section variant placeholder */
.section.dark .revbox.missing, .hero .revbox.missing { border-color: rgba(255,140,66,.3); background: linear-gradient(140deg, rgba(255,140,66,.08), rgba(255,255,255,.02)); }
.section.dark .revbox.missing::after, .hero .revbox.missing::after { color: #cdb89c; }

/* system hero */
.sys-hero .hero-inner { align-items: center; }
.sys-hero .revbox { width: 100%; aspect-ratio: 16 / 10; }
.sys-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,140,66,.14);
  border: 1px solid rgba(255,140,66,.4); color: var(--orange); padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 800; margin-bottom: 20px; }
.sys-badge .sb-ico { font-size: 18px; }

/* system feature-row review media */
.feature-row .revbox { min-height: 280px; aspect-ratio: 16 / 10; }
.feature-row.rev .revbox { order: 0; }

/* system gallery (review images grid) */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rev-grid .revbox { aspect-ratio: 16 / 11; }
.rev-cap { margin-top: 10px; font-size: 13.5px; color: var(--muted); font-weight: 600; text-align: center; }
@media (max-width: 900px) { .rev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rev-grid { grid-template-columns: 1fr; } }

/* other-systems strip at the bottom of each system page */
.other-sys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other-sys a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); transition: transform .18s, box-shadow .18s, border-color .18s; }
.other-sys a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #f3d9bf; }
.other-sys .os-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 21px;
  background: linear-gradient(135deg, #fff1e4, #ffe0c4); flex-shrink: 0; }
.other-sys h4 { font-size: 15px; font-weight: 800; }
.other-sys p { font-size: 12.5px; color: var(--muted); }
@media (max-width: 780px) { .other-sys { grid-template-columns: 1fr; } }

/* ============================================================
   SYSTEM PAGES — ANIMATION EFFECTS (v6, applies to all 7 pages)
   ============================================================ */

/* badge: soft glow pulse (feels "live/system") */
.sys-badge { animation: badgePulse 3.6s ease-in-out infinite; }
@keyframes badgePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,140,66,0); } 50% { box-shadow: 0 0 24px -4px rgba(255,140,66,.55); } }
.sys-badge .sb-ico { display: inline-block; animation: floatY 4s ease-in-out infinite; }

/* feature-row: children slide in from opposite sides on scroll (directional reveal) */
.feature-row.reveal { opacity: 1; transform: none; }               /* neutralize base reveal on the row */
.feature-row.reveal .ftxt { opacity: 0; transform: translateX(-28px); transition: opacity .6s ease .05s, transform .65s cubic-bezier(.2,.7,.2,1) .05s; }
.feature-row.rev.reveal .ftxt { transform: translateX(28px); }
.feature-row.reveal .revbox { opacity: 0; transform: translateX(28px) scale(.97); transition: opacity .7s ease .12s, transform .75s cubic-bezier(.2,.7,.2,1) .12s; }
.feature-row.rev.reveal .revbox { transform: translateX(-28px) scale(.97); }
.feature-row.reveal.in .ftxt, .feature-row.reveal.in .revbox { opacity: 1; transform: none; }

/* revbox: hover lift + glow + a light sweep across real screenshots (not placeholders) */
.feature-row .revbox, .rev-grid .revbox { transition: transform .35s ease, box-shadow .35s ease, border-color .35s; }
.feature-row .revbox:hover { transform: translateY(-6px); box-shadow: 0 32px 62px -28px rgba(255,140,66,.42); border-color: rgba(255,140,66,.45); }
.rev-grid .revbox:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 24px 50px -26px rgba(255,140,66,.42); border-color: rgba(255,140,66,.45); }
.revbox::after { content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.30), transparent); transform: skewX(-18deg);
  transition: left .75s ease; pointer-events: none; z-index: 2; }
.feature-row .revbox:hover::after, .rev-grid .revbox:hover::after, .sys-hero .revbox:hover::after { left: 150%; }
/* NOTE: .revbox.missing::after is the placeholder label (more specific) → shine auto-disabled on placeholders */

/* hero screenshot: gentle continuous shine sweep (feels alive) */
.sys-hero .revbox:not(.missing)::after { animation: heroSweep 6.5s ease-in-out infinite; }
@keyframes heroSweep { 0%,72%,100% { left: -130%; } 86% { left: 150%; } }

/* why-future benefit icons float + gentle pulse */
.section.dark .benefit .ico { animation: floatY 5s ease-in-out infinite; }
.section.dark .benefit:nth-child(2) .ico { animation-delay: .5s; }
.section.dark .benefit:nth-child(3) .ico { animation-delay: 1s; }

/* stats strip: hover rise */
.stat { transition: transform .25s ease, box-shadow .25s ease; }
.stat:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -20px rgba(217,79,16,.4); }

/* other-systems: icon pop on hover */
.other-sys .os-ico { transition: transform .25s ease; }
.other-sys a:hover .os-ico { transform: scale(1.12) rotate(-5deg); }

/* eyebrow: subtle animated underline dash (modern accent) */
.sys-hero ~ .section .eyebrow, .sys-hero + .section .eyebrow { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .sys-badge, .sys-badge .sb-ico, .section.dark .benefit .ico, .sys-hero .revbox:not(.missing)::after { animation: none !important; }
  .feature-row.reveal .ftxt, .feature-row.reveal .revbox { opacity: 1 !important; transform: none !important; transition: none !important; }
}
