/* ═══════════════════════════════════════════════════════════════
   Repair Pro — Landing page
   Brand: cyan wrench (#38bdf8 → #1b8fd0) + orange gear (#fb923c → #f97316)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #06121c;
  --bg-2: #0a1b29;
  --bg-3: #0e2334;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.16);
  --text: #e8f1f8;
  --muted: #8ba3b7;
  --cyan: #38bdf8;
  --teal: #22c1dc;
  --blue: #1b8fd0;
  --orange: #f97316;
  --amber: #fb923c;
  --paper: #f4f6f9;
  --paper-2: #ffffff;
  --ink: #0f2a3a;
  --ink-muted: #587083;
  --ink-line: #e2e8ef;
  --grad: linear-gradient(100deg, #38bdf8 0%, #22c1dc 32%, #fb923c 70%, #f97316 100%);
  --grad-btn: linear-gradient(135deg, #f97316, #fb923c);
  --radius: 22px;
  --f-display: "Anuphan", "IBM Plex Sans Thai", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Thai", "Anuphan", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); letter-spacing: 0; }
kbd {
  font-family: var(--f-mono); font-size: .78em; padding: .1em .45em; border-radius: 6px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.06);
}
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: sheen 8s ease-in-out infinite alternate;
}
@keyframes sheen { to { background-position: 100% 0; } }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font-family: var(--f-display); font-weight: 600; text-decoration: none; white-space: nowrap;
  border-radius: 999px; padding: .8rem 1.4rem; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn i { display: inline-flex; font-size: 1em; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px -10px rgba(249,115,22,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(249,115,22,.85), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-glass { background: rgba(255,255,255,.06); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.11); }
.btn-ghost { color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }

/* ───────────── Scroll progress ───────────── */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ───────────── Nav ───────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem clamp(16px, 4vw, 48px);
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6,18,28,.72); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); padding-block: .65rem; }
.nav-brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; margin-inline: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .93rem; font-weight: 500; position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav-cta { display: flex; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; cursor: pointer; margin-left: auto; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 23px; }
.nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ───────────── Reveal ───────────── */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ───────────── Section heads ───────────── */
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.kicker {
  font-family: var(--f-display); font-weight: 600; font-size: .85rem; letter-spacing: .08em;
  color: var(--cyan); margin-bottom: .9rem; display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
.sub { color: var(--muted); font-size: 1.08rem; margin-top: 1.1rem; max-width: 60ch; }
.paper { background: var(--paper); color: var(--ink); }
.paper .sub { color: var(--ink-muted); }
.paper .kicker { color: var(--blue); }

/* ═══════════════════════════ HERO ═══════════════════════════ */
.hero {
  position: relative; min-height: 100vh; padding: 9.5rem 0 0;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 50% -10%, #0f2e45 0%, transparent 70%), var(--bg);
}
.hero-layers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.layer { position: absolute; will-change: transform; }
[data-speed] { transform: translate3d(0, var(--py, 0px), 0); }
[data-speed-x] { transform: translate3d(var(--px, 0px), 0, 0); }
.deco-gear { transform: translate3d(0, var(--py, 0px), 0) rotate(var(--rot, 0deg)); }
.grid-bg {
  inset: -20% 0 0 0;
  background-image:
    linear-gradient(rgba(56,189,248,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.orb { border-radius: 50%; filter: blur(90px); opacity: .55; }
.orb-cyan { width: 520px; height: 520px; left: -140px; top: 60px; background: radial-gradient(circle, #1b8fd0, transparent 65%); }
.orb-orange { width: 560px; height: 560px; right: -160px; top: 220px; background: radial-gradient(circle, #f97316, transparent 65%); opacity: .42; }

.deco-gear { overflow: visible; }
.deco-gear path { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.gear-a { width: 380px; right: -90px; top: 90px; }
.gear-a path { stroke: rgba(249,115,22,.35); }
.gear-b { width: 220px; left: 6%; top: 52%; }
.gear-b path { stroke: rgba(56,189,248,.3); }
.gear-c { width: 120px; left: 18%; top: 18%; }
.gear-c path { stroke: rgba(251,146,60,.35); }

.float-chip {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem; border-radius: 16px;
  background: rgba(14,35,52,.72); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  font-size: .85rem; line-height: 1.35;
}
.float-chip i { font-size: 1.35rem; display: inline-flex; }
.float-chip b { display: block; font-weight: 600; }
.float-chip small { color: var(--muted); }
.chip-1 { left: 5%; top: 30%; }
.chip-2 { right: 6%; top: 24%; }
.chip-3 { right: 10%; top: 62%; }

.hero-content { text-align: center; max-width: 880px; padding-inline: 16px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem; border-radius: 999px; font-size: .88rem; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); font-weight: 700; margin: 1.4rem 0 1.3rem; letter-spacing: -.02em; line-height: 1.12; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 680px; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2.2rem; }
.hero-trust { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; color: var(--muted); font-size: .9rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust i { color: var(--cyan); display: inline-flex; }

/* Dashboard mock */
.hero-stage { width: min(1100px, 100% - 32px); margin-top: 4.5rem; perspective: 1800px; }
.dash-mock {
  --tilt: 26deg; --sc: .9; --mx: 0deg; --my: 0deg;
  transform: rotateX(calc(var(--tilt) + var(--my))) rotateY(var(--mx)) scale(var(--sc));
  transform-origin: 50% 0%;
  border-radius: 20px 20px 0 0; overflow: hidden;
  background: #0b1c2a; border: 1px solid var(--line-2); border-bottom: 0;
  box-shadow: 0 -30px 120px -40px rgba(56,189,248,.35), 0 50px 120px -30px rgba(249,115,22,.25);
  will-change: transform;
}
.dm-top { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: .78rem; color: var(--muted); }
.dm-dots { display: flex; gap: 6px; } .dm-dots i { width: 10px; height: 10px; border-radius: 50%; background: #334756; }
.dm-dots i:nth-child(1) { background: #ef4444aa; } .dm-dots i:nth-child(2) { background: #f59e0baa; } .dm-dots i:nth-child(3) { background: #22c55eaa; }
.dm-url { flex: 1; }
.dm-search { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 8px; }
.dm-body { display: flex; min-height: 420px; }
.dm-side { width: 64px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .9rem 0; }
.dm-logo { width: 32px; margin-bottom: .6rem; }
.dm-side span { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--muted); }
.dm-side span.on { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 20px -8px rgba(249,115,22,.8); }
.dm-main { flex: 1; padding: 1.2rem 1.4rem; min-width: 0; }
.dm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dm-head small { color: var(--muted); font-size: .78rem; } .dm-head h4 { font-size: 1.2rem; }
.dm-btn { background: var(--grad-btn); color: #fff; font-size: .8rem; padding: .45rem .9rem; border-radius: 10px; font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; }
.dm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.dm-stat { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: .8rem .95rem; }
.dm-stat small { color: var(--muted); font-size: .75rem; display: block; }
.dm-stat b { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.2; }
.dm-stat em { font-style: normal; font-size: .72rem; color: var(--muted); margin-left: .4rem; }
.dm-stat em.up { color: #4ade80; }
.dm-stat.hot b { color: #f87171; }
.dm-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: .8rem; margin-top: .8rem; }
.dm-card { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; min-width: 0; }
.dm-card-h { font-weight: 600; font-size: .85rem; margin-bottom: .5rem; }
.dm-row { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .48rem 0; border-top: 1px solid var(--line); font-size: .8rem; }
.dm-row span:nth-child(2) { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-row .mono { color: var(--cyan); font-size: .75rem; }
.pill { font-size: .7rem; padding: .15rem .55rem; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); white-space: nowrap; }
.dm-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: .4rem; }
.dm-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, color-mix(in srgb, var(--c) 40%, transparent), var(--c)); transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.dm-bars span:nth-child(2) { animation-delay: .1s } .dm-bars span:nth-child(3) { animation-delay: .2s } .dm-bars span:nth-child(4) { animation-delay: .3s } .dm-bars span:nth-child(5) { animation-delay: .4s } .dm-bars span:nth-child(6) { animation-delay: .5s }
@keyframes grow { from { transform: scaleY(0); } }
.dm-rev { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .6rem; display: flex; justify-content: space-between; align-items: baseline; }
.dm-rev small { color: var(--muted); font-size: .75rem; } .dm-rev b { font-family: var(--f-display); font-size: 1.15rem; color: #4ade80; }

.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; z-index: 1; }

/* ═══════════════════════════ SHOPS ═══════════════════════════ */
.shops { position: relative; padding: 9rem 0 7rem; overflow: hidden; background: linear-gradient(to bottom, var(--bg), var(--bg-2)); }
.big-type {
  position: absolute; top: 3rem; left: 0; white-space: nowrap; pointer-events: none;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(5rem, 13vw, 11rem); line-height: 1;
  color: rgba(255,255,255,.028); letter-spacing: -.02em; will-change: transform;
}
.big-type.outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); }
.swap { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .35s, transform .35s var(--ease); padding-inline: .15em; }
.swap.out { opacity: 0; transform: translateY(-.35em); }
.shop-rail { display: flex; gap: 1.2rem; width: max-content; padding-left: 4vw; will-change: transform; }
.shop-rail + .shop-rail { margin-top: 1.2rem; margin-left: -18vw; }
.shop-card {
  width: 300px; flex: none; padding: 1.5rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.shop-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: var(--c); filter: blur(60px); opacity: .18; transition: opacity .3s; }
.shop-card:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-4px); }
.shop-card:hover::after { opacity: .35; }
.shop-card > i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: var(--c); box-shadow: 0 10px 24px -10px var(--c); }
.shop-card h3 { font-size: 1.15rem; margin: 1rem 0 .3rem; }
.shop-card p { color: var(--muted); font-size: .9rem; }
.shop-card code { display: inline-block; margin-top: 1rem; font-family: var(--f-mono); font-size: .72rem; color: color-mix(in srgb, var(--c) 65%, #fff); padding: .25rem .6rem; border-radius: 8px; background: color-mix(in srgb, var(--c) 12%, transparent); }

/* ═══════════════════════════ FLOW (sticky) ═══════════════════════════ */
.flow { position: relative; height: calc(var(--steps) * 65vh + 100vh); background: var(--bg-2); }
.flow-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.flow-num {
  position: absolute; right: -2vw; bottom: -6vh; pointer-events: none;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(14rem, 34vw, 30rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(56,189,248,.12);
}
.flow-num span { display: inline-block; transition: transform .6s var(--ease), opacity .6s; }
.flow-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; position: relative; }
.flow-steps { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: .25rem; }
.flow-steps li {
  display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start;
  padding: .6rem .9rem; border-radius: 16px; color: var(--muted); opacity: .55;
  transition: opacity .4s, background .4s, color .4s;
}
.flow-steps li > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem; border: 1px solid var(--line-2); transition: background .4s, color .4s, box-shadow .4s, border-color .4s; }
.flow-steps li b { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; display: block; line-height: 40px; }
.flow-steps li p { font-size: .93rem; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.flow-steps li.done { opacity: .8; }
.flow-steps li.done > i { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.flow-steps li.active { opacity: 1; color: var(--text); background: rgba(255,255,255,.04); }
.flow-steps li.active > i { background: var(--c); color: #fff; border-color: transparent; box-shadow: 0 10px 26px -8px var(--c); }
.flow-steps li.active p { max-height: 6em; color: var(--muted); }
.flow-bar { margin-top: 1.6rem; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.flow-bar span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

.flow-visual { position: relative; display: grid; place-items: center; }
.flow-ring { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px dashed rgba(56,189,248,.2); z-index: 0; animation: spin 60s linear infinite; }
.flow-ring::before { content: ""; position: absolute; inset: 60px; border-radius: 50%; border: 1px solid rgba(249,115,22,.15); }
@keyframes spin { to { transform: rotate(360deg); } }
.phone {
  position: relative; z-index: 1; width: 310px; height: 620px; border-radius: 48px; padding: 12px;
  background: linear-gradient(145deg, #1c3548, #0a1826); border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 80px -20px rgba(56,189,248,.25);
}
.phone-notch { position: absolute; top: 22px; left: 50%; width: 96px; height: 26px; margin-left: -48px; border-radius: 20px; background: #030a10; z-index: 2; }
.phone-screen { height: 100%; border-radius: 38px; background: #f4f6f9; color: var(--ink); padding: 58px 16px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.ps-head { display: flex; align-items: center; gap: .6rem; }
.ps-head img { width: 34px; }
.ps-head small { display: block; font-size: .7rem; color: var(--ink-muted); line-height: 1.2; }
.ps-head b { font-size: .92rem; }
.ps-status { --c: #94a3b8; display: flex; align-items: center; gap: .8rem; padding: .9rem; border-radius: 18px; background: var(--c); color: #fff; transition: background .5s; box-shadow: 0 14px 30px -14px var(--c); }
.ps-status i { font-size: 1.6rem; display: inline-flex; }
.ps-status small { display: block; font-size: .7rem; opacity: .85; line-height: 1.2; }
.ps-status b { font-family: var(--f-display); font-size: 1.2rem; }
.ps-device { display: flex; flex-direction: column; font-size: .8rem; background: #fff; border-radius: 14px; padding: .6rem .8rem; border: 1px solid var(--ink-line); line-height: 1.5; }
.ps-device span:first-child { font-weight: 600; }
.muted { color: var(--ink-muted); }
.ps-pipe { display: flex; gap: 4px; }
.ps-pipe i { flex: 1; height: 6px; border-radius: 4px; background: #dfe6ee; transition: background .4s; }
.ps-pipe i.on { background: var(--grad-btn); }
.ps-tl { flex: 1; display: flex; flex-direction: column; gap: .45rem; overflow: hidden; }
.ps-tl div { display: grid; grid-template-columns: 10px 1fr auto; gap: .55rem; align-items: center; font-size: .75rem; background: #fff; border: 1px solid var(--ink-line); border-radius: 12px; padding: .45rem .65rem; animation: tlIn .45s var(--ease) both; }
.ps-tl div::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ps-tl time { color: var(--ink-muted); font-family: var(--f-mono); font-size: .66rem; }
@keyframes tlIn { from { opacity: 0; transform: translateY(-8px); } }
.ps-pay { display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem; border-radius: 14px; background: #0f2a3a; color: #fff; opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s var(--ease); }
.ps-pay.show { opacity: 1; transform: none; }
.ps-pay small { font-size: .68rem; opacity: .7; display: block; line-height: 1.2; }
.ps-pay b { font-family: var(--f-display); }
.ps-qr { font-size: .75rem; background: var(--grad-btn); padding: .35rem .7rem; border-radius: 10px; display: inline-flex; gap: .35rem; align-items: center; }

/* ═══════════════════════════ FEATURES BENTO ═══════════════════════════ */
.features { padding: 8rem 0; position: relative; }
.features .section-head { margin-inline: auto; text-align: center; }
.features .section-head .sub { margin-inline: auto; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.b-card {
  background: var(--paper-2); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 1.8rem; position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(15,42,58,.03), 0 20px 50px -30px rgba(15,42,58,.2);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.b-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(15,42,58,.3); }
.b-card h3 { font-size: 1.3rem; margin: 1rem 0 .5rem; }
.b-card p { color: var(--ink-muted); font-size: .95rem; }
.b-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.b-stock { grid-column: span 7; display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.6rem; align-items: center; }
.b-money { grid-column: span 5; }
.b-transfer, .b-report, .b-roles { grid-column: span 4; }
.b-customer, .b-status { grid-column: span 6; }
.tags { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .78rem; padding: .2rem .65rem; border-radius: 999px; background: #eef3f8; color: var(--ink); }
.stock-table { background: #0f2a3a; color: #dbe7f1; border-radius: 16px; padding: .5rem 1rem; font-size: .78rem; box-shadow: 0 30px 60px -25px rgba(15,42,58,.55); }
.st-row { display: grid; grid-template-columns: 74px 1fr 60px 44px; gap: .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.st-row:last-child { border-bottom: 0; }
.st-row .mono { color: var(--cyan); font-size: .68rem; }
.st-row span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row .bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.st-row .bar i { display: block; height: 100%; width: var(--w); background: var(--c, #22c1dc); border-radius: 4px; }
.st-row b { text-align: right; font-family: var(--f-mono); }
.st-row .low { font-size: .64rem; text-align: center; color: #fecaca; background: rgba(239,68,68,.22); border-radius: 999px; padding: .1rem .2rem; }
.mini-receipt { margin-top: 1.3rem; background: #fbfcfd; border: 1px dashed #cdd7e1; border-radius: 14px; padding: .6rem 1rem; font-size: .88rem; }
.mini-receipt div { display: flex; justify-content: space-between; padding: .35rem 0; }
.mini-receipt .neg b { color: #16a34a; }
.mini-receipt .tot { border-top: 1px solid var(--ink-line); margin-top: .3rem; padding-top: .6rem; font-weight: 600; }
.mini-receipt .tot b { font-family: var(--f-display); font-size: 1.2rem; color: var(--orange); }
.route { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.route span { font-size: .8rem; padding: .3rem .75rem; border-radius: 10px; background: #eef0fe; color: #4f46e5; position: relative; }
.spark { width: 100%; height: 70px; margin-top: 1.2rem; }
.roles { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.roles span { font-size: .78rem; padding: .25rem .7rem; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 11%, transparent); font-weight: 500; }
.lookup { margin-top: 1.3rem; display: grid; gap: .6rem; max-width: 380px; }
.lk-input { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 12px; border: 2px solid var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(249,115,22,.12); }
.lk-input i { color: var(--orange); display: inline-flex; }
.caret { width: 2px; height: 1.1em; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lk-hit { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 12px; background: #f7fafc; border: 1px solid var(--ink-line); }
.lk-hit .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); color: #fff; font-size: .8rem; font-weight: 600; }
.lk-hit div { flex: 1; line-height: 1.35; } .lk-hit small { color: var(--ink-muted); font-size: .78rem; display: block; }
.lk-hit > i { color: #16a34a; font-size: 1.2rem; display: inline-flex; }
.status-cloud { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.status-cloud span { font-size: .8rem; padding: .3rem .75rem; border-radius: 999px; color: #fff; background: var(--c); box-shadow: 0 6px 14px -8px var(--c); }

/* ═══════════════════════════ TRACK ═══════════════════════════ */
.track { position: relative; padding: 9rem 0; overflow: hidden; background: var(--bg); }
.track-bg { position: absolute; inset: -20% -10%; background: radial-gradient(600px 400px at 20% 40%, rgba(27,143,208,.28), transparent 70%), radial-gradient(500px 400px at 85% 70%, rgba(249,115,22,.18), transparent 70%); pointer-events: none; }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; }
.track-stage { position: relative; height: 600px; }
.ticket {
  position: absolute; left: 0; top: 30px; width: 380px; padding: 1.4rem; border-radius: 10px;
  background: #fff; color: var(--ink); transform: translate3d(0, var(--py, 0px), 0) rotate(-4deg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
.ticket::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(15,42,58,.03) 27px 28px); pointer-events: none; }
.tk-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: .8rem; }
.tk-head img { width: 130px; }
.tk-head div { text-align: right; line-height: 1.3; }
.tk-head small { display: block; font-size: .7rem; color: var(--ink-muted); }
.tk-body { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 0; }
.tk-fields p { font-size: .82rem; padding: .3rem 0; border-bottom: 1px dotted #cfd8e1; }
.tk-fields small { display: block; font-size: .65rem; color: var(--ink-muted); line-height: 1.2; }
.tk-qr { text-align: center; font-size: .66rem; }
.tk-qr .qr { width: 104px; height: 104px; margin-bottom: .3rem; }
.tk-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: .7rem; color: var(--ink-muted); }
.tk-sign span { border-top: 1px solid var(--ink-muted); padding-top: .3rem; text-align: center; margin-top: 1.4rem; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.pp-card {
  position: absolute; right: 0; top: 250px; width: 230px; border-radius: 20px; overflow: hidden;
  background: #fff; color: var(--ink); text-align: center; transform: translate3d(0, var(--py, 0px), 0) rotate(5deg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.75);
}
.pp-head { background: #113566; color: #fff; padding: .7rem; line-height: 1.25; }
.pp-head span { font-size: .66rem; opacity: .8; display: block; }
.pp-head b { font-family: var(--f-display); font-size: 1.05rem; }
.pp-card .qr { width: 150px; height: 150px; margin: 1rem auto .4rem; }
.pp-amt { padding: 0 0 1rem; line-height: 1.3; }
.pp-amt small { font-size: .7rem; color: var(--ink-muted); display: block; }
.pp-amt b { font-family: var(--f-display); font-size: 1.35rem; color: #113566; }
.bubble {
  position: absolute; left: 34%; top: 0; display: flex; align-items: center; gap: .7rem;
  padding: .75rem 1rem; border-radius: 16px; background: rgba(14,35,52,.85); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); font-size: .85rem; line-height: 1.35; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7);
}
.bubble i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #14b8a6; color: #fff; }
.bubble small { display: block; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 2rem 0 2.2rem; display: grid; gap: 1.1rem; }
.checks li { display: flex; gap: .9rem; }
.checks i { color: #22c55e; font-size: 1.25rem; display: inline-flex; margin-top: .15rem; }
.checks b { display: block; font-family: var(--f-display); font-weight: 600; }
.checks span { color: var(--muted); font-size: .93rem; }

/* ═══════════════════════════ NUMBERS ═══════════════════════════ */
.numbers { position: relative; padding: 7rem 0; overflow: hidden; background: linear-gradient(120deg, #0d4a72 0%, #0e2334 45%, #5a2a10 100%); }
.numbers .big-type { top: 50%; margin-top: -.5em; }
.num-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; position: relative; }
.num { text-align: center; padding: 1rem .5rem; }
.num b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num span { display: block; margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.num:nth-child(2) { transition-delay: .08s } .num:nth-child(3) { transition-delay: .16s } .num:nth-child(4) { transition-delay: .24s } .num:nth-child(5) { transition-delay: .32s } .num:nth-child(6) { transition-delay: .4s }

/* ═══════════════════════════ PERSONALIZE ═══════════════════════════ */
.personalize { padding: 8rem 0; overflow: hidden; }
.pz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.pz-controls { margin-top: 2.2rem; display: grid; gap: 1.3rem; }
.pz-field label { display: flex; justify-content: space-between; font-family: var(--f-display); font-weight: 600; font-size: .92rem; margin-bottom: .55rem; }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatches button { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--c); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; box-shadow: 0 6px 14px -8px var(--c); }
.swatches button:hover { transform: translateY(-2px); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--c); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: #e7edf3; }
.seg button { border: 0; background: transparent; padding: .45rem .9rem; border-radius: 10px; font: inherit; font-size: .88rem; color: var(--ink-muted); cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; transition: background .2s, color .2s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(15,42,58,.2); }
#fontSeg button[data-font="Kanit"] { font-family: Kanit; } #fontSeg button[data-font="Prompt"] { font-family: Prompt; } #fontSeg button[data-font="Mali"] { font-family: Mali; } #fontSeg button[data-font="Sarabun"] { font-family: Sarabun; }
input[type=range] { width: 100%; accent-color: var(--orange); }

.pz-preview-wrap { position: relative; }
.pz-preview-wrap::before { content: ""; position: absolute; inset: 10% -8% -8% 10%; border-radius: 40px; background: linear-gradient(135deg, var(--pp, #f97316), transparent 70%); opacity: .25; filter: blur(40px); transition: background .4s; }
.pz-preview {
  --p: #f97316; --p2: #fb923c; --pf: Sarabun; --fs: 16px;
  --pv-bg: #ffffff; --pv-bg2: #f5f7fa; --pv-ink: #0f2a3a; --pv-muted: #64798b; --pv-line: #e4eaf0;
  position: relative; border-radius: 24px; overflow: hidden; background: var(--pv-bg); color: var(--pv-ink);
  border: 1px solid var(--pv-line); box-shadow: 0 40px 90px -40px rgba(15,42,58,.45);
  font-family: var(--pf), sans-serif; font-size: var(--fs);
  transition: background .4s, color .4s, border-color .4s;
}
.pz-preview.dark { --pv-bg: #0f1c28; --pv-bg2: #152635; --pv-ink: #e6eef5; --pv-muted: #8ea3b5; --pv-line: #22384a; }
.pv-top { display: flex; align-items: center; gap: .6em; padding: .9em 1.2em; border-bottom: 1px solid var(--pv-line); }
.pv-logo { width: 2em; height: 2em; border-radius: .6em; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--p), var(--p2)); transition: background .4s; }
.pv-chip { margin-left: auto; font-size: .75em; padding: .2em .7em; border-radius: 999px; background: color-mix(in srgb, var(--p) 14%, transparent); color: var(--p); transition: color .4s, background .4s; }
.pv-body { padding: 1.2em; display: grid; gap: 1em; background: var(--pv-bg2); transition: background .4s; }
.pv-hero { border-radius: 1em; padding: 1.1em 1.2em; color: #fff; background: linear-gradient(135deg, var(--p), var(--p2)); box-shadow: 0 16px 34px -18px var(--p); transition: background .4s, box-shadow .4s; }
.pv-hero small { opacity: .85; font-size: .78em; }
.pv-hero h4 { font-family: var(--f-mono); font-size: 1.35em; }
.pv-hero p { font-size: .88em; opacity: .9; }
.pv-pipe { display: flex; gap: .3em; margin-top: .8em; }
.pv-pipe i { flex: 1; height: .38em; border-radius: 1em; background: rgba(255,255,255,.3); }
.pv-pipe i.on { background: #fff; }
.pv-rows { background: var(--pv-bg); border: 1px solid var(--pv-line); border-radius: 1em; padding: .3em 1em; transition: background .4s, border-color .4s; }
.pv-rows div { display: flex; justify-content: space-between; gap: 1em; padding: .6em 0; border-bottom: 1px solid var(--pv-line); font-size: .9em; }
.pv-rows div:last-child { border-bottom: 0; }
.pv-rows span { color: var(--pv-muted); }
.pv-actions { display: flex; gap: .6em; }
.pv-btn { flex: 1; text-align: center; padding: .7em; border-radius: .8em; font-weight: 600; font-size: .9em; color: #fff; background: var(--p); transition: background .4s, color .4s, border-color .4s; }
.pv-btn.ghost { background: transparent; color: var(--p); border: 1.5px solid var(--p); }

/* ═══════════════════════════ TECH ═══════════════════════════ */
.tech { padding: 8rem 0; background: linear-gradient(to bottom, var(--bg), var(--bg-2)); position: relative; overflow: hidden; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.t-card {
  padding: 1.8rem; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease);
}
.t-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.t-card h3 { font-size: 1.2rem; margin: 1rem 0 .5rem; }
.t-card p { color: var(--muted); font-size: .94rem; }
.t-api { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.6rem; align-items: center; }
.code {
  margin: 0; padding: 1.3rem 1.4rem; border-radius: 16px; background: #030b12; border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .8rem; line-height: 1.75; color: #b9cad8; overflow-x: auto;
  box-shadow: 0 30px 60px -30px rgba(56,189,248,.35);
}
.c-k { color: #fb923c; font-weight: 700; } .c-h { color: #38bdf8; } .c-s { color: #c4b5fd; } .c-v { color: #86efac; } .c-ok { color: #4ade80; font-weight: 700; }

/* ═══════════════════════════ CTA ═══════════════════════════ */
.cta { position: relative; padding: 10rem 0; text-align: center; overflow: hidden; background: radial-gradient(700px 400px at 50% 55%, rgba(249,115,22,.22), transparent 70%), radial-gradient(900px 500px at 50% 40%, rgba(27,143,208,.2), transparent 70%), var(--bg-2); }
.cta-gear { position: absolute; width: 760px; left: 50%; top: 50%; margin: -380px 0 0 -380px; pointer-events: none; }
.cta-gear path { stroke: rgba(255,255,255,.06); stroke-width: 1.2; }
.cta-inner { position: relative; }
.cta-mark { width: 96px; margin: 0 auto 2rem; filter: drop-shadow(0 20px 40px rgba(249,115,22,.4)); }
.cta h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
.cta .sub { margin-inline: auto; }

/* ═══════════════════════════ FOOTER ═══════════════════════════ */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; background: var(--bg); }
.foot-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.foot-logo { height: 30px; width: auto; }
.footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer nav a:hover { color: var(--text); }
.footer small { margin-left: auto; color: var(--muted); }

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════ */
@media (max-width: 1080px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: .86rem; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .b-stock { grid-column: span 6; }
  .b-money, .b-customer, .b-status { grid-column: span 6; }
  .b-transfer, .b-report { grid-column: span 3; }
  .b-roles { grid-column: span 6; }
  .num-grid { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .t-api { grid-row: auto; }
}

/* Short desktop viewports: keep the sticky flow panel inside the screen */
@media (min-width: 901px) and (max-height: 820px) {
  .flow-text h2 { font-size: 2.2rem; }
  .flow-steps { margin-top: 1.2rem; }
  .flow-steps li { padding: .35rem .8rem; }
  .flow-steps li > i { width: 34px; height: 34px; }
  .flow-steps li b { line-height: 34px; }
  .phone { transform: scale(.82); }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open { background: rgba(6,18,28,.96); backdrop-filter: blur(16px); flex-wrap: wrap; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; gap: .2rem; order: 3; padding-top: .8rem; }
  .nav.open .nav-links a { padding: .6rem 0; font-size: 1rem; }
  .nav.open .nav-cta { display: flex; order: 4; width: 100%; padding: .6rem 0 .4rem; }
  .nav.open .nav-cta .btn { flex: 1; }

  .chip-1, .chip-3, .gear-c { display: none; }
  .chip-2 { right: -40px; top: 15%; font-size: .75rem; }
  .dm-stats { grid-template-columns: repeat(2, 1fr); }
  .dm-grid { grid-template-columns: 1fr; }
  .dm-bars { height: 70px; }

  .flow { height: calc(var(--steps) * 55vh + 100vh); }
  .flow-grid { grid-template-columns: 1fr; gap: 1rem; }
  .flow-text h2 { font-size: 1.6rem; }
  .flow-text .kicker { display: none; }
  .flow-steps { margin-top: .8rem; }
  .flow-steps li { display: none; }
  .flow-steps li.active { display: grid; }
  .flow-steps li.active p { font-size: .86rem; }
  .flow-bar { margin-top: .6rem; }
  .flow-visual { order: -1; height: 340px; }
  .phone { transform: scale(.54); transform-origin: 50% 50%; margin: -140px 0; }
  .flow-ring { width: 320px; height: 320px; }
  .flow-num { font-size: 12rem; }

  .track-grid, .pz-grid { grid-template-columns: 1fr; gap: 3rem; }
  .track-stage { height: 520px; max-width: 460px; width: 100%; margin-inline: auto; }
  .ticket { width: 320px; }
  .tk-qr .qr { width: 84px; height: 84px; }
  .pp-card { width: 190px; top: 260px; }
  .pp-card .qr { width: 120px; height: 120px; }
  .bubble { left: 0; top: auto; bottom: 40px; }
  .b-stock { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .hide-sm, .chip-2 { display: none; }
  .hero { padding-top: 7.5rem; }
  .hero-stage { margin-top: 3rem; }
  .dm-side { display: none; }
  .dm-search { display: none; }
  .dm-main { padding: .9rem; }
  .dm-row { grid-template-columns: 1fr auto; }
  .dm-row span:nth-child(2) { display: none; }
  .shop-card { width: 250px; }
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: auto !important; }
  .st-row { grid-template-columns: 64px 1fr 44px; }
  .st-row .bar { display: none; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .t-api { grid-column: auto; grid-template-columns: 1fr; }
  .ticket { width: 280px; padding: 1rem; }
  .tk-head img { width: 100px; }
  .pp-card { width: 170px; top: 300px; }
  .pp-card .qr { width: 104px; height: 104px; }
  .track-stage { height: 520px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer small { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .dash-mock { --tilt: 0deg !important; --sc: 1 !important; }
}
