:root {
  --purple: #753f97; --purple-2: #a855f7; --green: #61ba46; --blue: #00a7e5;
  --ink: #161b26; --muted: #5f6878; --line: #e5e8ef; --bg: #f7f8fb;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --lift: cubic-bezier(0.22, 1.6, 0.36, 1);
  font-family: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink); background: var(--bg); color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { line-height: 1.7; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; transition: transform .25s var(--lift), box-shadow .25s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-2)); box-shadow: 0 12px 28px -12px var(--purple); }
.btn-primary:hover { box-shadow: 0 16px 34px -12px var(--purple); }
.btn-ghost { border-color: #d6c7e3; color: var(--purple); background: #fff; }
.btn-white { background: #fff; color: var(--purple); }
.btn-line { background: #06c755; color: #fff; }

/* nav */
.nav { position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100% - 24px)); display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(255,255,255,.72); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,.8);
  transition: box-shadow .3s, background .3s; }
.nav.scrolled { background: rgba(255,255,255,.92); box-shadow: 0 10px 30px -18px rgba(22,27,38,.45); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none;
  background: conic-gradient(from 200deg, var(--green), var(--blue), var(--purple), var(--green)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { letter-spacing: .04em; font-size: 15px; }
.brand-text small { color: var(--muted); font-size: 11px; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14.5px; transition: background .2s, color .2s; }
.links a:hover { background: #f1ebf7; color: var(--purple); }

/* hero */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding: 120px max(24px, calc((100% - 1160px) / 2)) 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 14s var(--ease) infinite alternate; }
.b1 { width: 520px; height: 520px; background: #e6d4f5; top: -120px; right: -80px; }
.b2 { width: 380px; height: 380px; background: #cfeefb; bottom: -80px; left: 30%; animation-delay: -4s; }
.b3 { width: 300px; height: 300px; background: #dcf2d3; top: 30%; left: -120px; animation-delay: -8s; }
.grid { position: absolute; inset: 0; background-image: linear-gradient(#e9ecf3 1px, transparent 1px), linear-gradient(90deg, #e9ecf3 1px, transparent 1px); background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); opacity: .7; }
@keyframes float { to { transform: translate(30px, 40px) scale(1.08); } }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #eadff3; color: var(--purple); font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.01em; }
.sweep { background: linear-gradient(90deg, var(--purple), var(--blue), var(--green), var(--purple)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 6s linear infinite; }
@keyframes sweep { to { background-position: 300% 0; } }
.lead { margin-top: 18px; font-size: 17.5px; color: var(--muted); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 26px; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: 26px; color: var(--ink); }
.stats span { font-size: 13px; color: var(--muted); }
.hero-copy > * { opacity: 0; transform: translateY(14px); filter: blur(10px); animation: in .8s var(--ease) forwards; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes in { to { opacity: 1; transform: none; filter: none; } }

.hero-art { position: relative; height: 520px; }
.sign3d { position: absolute; left: 50%; top: 50%; width: min(520px, 100%); transform: translate(-50%, -50%); filter: drop-shadow(0 30px 30px rgba(117,63,151,.25)); animation: bob 6s ease-in-out infinite; }
.sign3d .halo { opacity: .0; animation: halo 4s ease-in-out 1.2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, -53%) rotate(-1deg); } }
@keyframes halo { 50% { opacity: .9; } }
.fcard { position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-width: 150px; border-radius: 16px; text-decoration: none; background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px); border: 1px solid #fff; box-shadow: 0 18px 40px -22px rgba(22,27,38,.45); opacity: 0;
  animation: card-in 1.1s var(--ease) forwards, drift 7s ease-in-out infinite alternate; }
.fcard .fi { font-size: 22px; }
.fcard b { font-size: 15px; }
.fcard small { color: var(--muted); font-size: 12px; }
.fcard:hover { box-shadow: 0 24px 50px -22px rgba(117,63,151,.6); }
.c1 { top: 4%; left: 2%; --r: -6deg; animation-delay: .5s, 1.6s; }
.c2 { top: 2%; right: 4%; --r: 5deg; animation-delay: .6s, 1.6s; }
.c3 { bottom: 10%; left: -2%; --r: 4deg; animation-delay: .7s, 1.6s; }
.c4 { bottom: 4%; right: 8%; --r: -4deg; animation-delay: .8s, 1.6s; }
.c5 { top: 44%; right: -4%; --r: 7deg; animation-delay: .9s, 1.6s; }
@keyframes card-in { from { opacity: 0; transform: translate(var(--fx, 0), 40px) scale(.6) rotate(0); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes drift { to { transform: translateY(-10px) rotate(var(--r)); } }
.scroll-hint { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; border: 2px solid #c9cfda; border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--purple); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* sections */
.section { padding: 100px max(24px, calc((100% - 1160px) / 2)); }
.head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kicker { color: var(--purple); font-weight: 700; letter-spacing: .08em; font-size: 13.5px; margin-bottom: 8px; }
.head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.sub { margin-top: 12px; color: var(--muted); font-size: 17px; }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.type { --c1: #753f97; --c2: #a855f7; position: relative; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px;
  transition: transform .35s var(--lift), box-shadow .35s, border-color .3s; overflow: hidden; }
.type::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.type:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px var(--c1); border-color: color-mix(in srgb, var(--c2) 40%, #fff); }
.t-lightbox { --c1: #be185d; --c2: #f472b6; } .t-stand { --c1: #15803d; --c2: #61ba46; }
.t-keychain { --c1: #c2410c; --c2: #fb923c; } .t-parts { --c1: #0369a1; --c2: #00a7e5; }
.t-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--c1); background: color-mix(in srgb, var(--c2) 16%, #fff); transition: transform .35s var(--lift); }
.t-ic svg { width: 30px; height: 30px; }
.type:hover .t-ic { transform: rotate(-8deg) scale(1.08); }
.type h3 { font-size: 21px; }
.type p { color: var(--muted); font-size: 15px; }
.type ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.type li::before { content: '✓'; color: var(--c1); font-weight: 700; margin-right: 8px; }
.more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--c1); text-decoration: none; }
.more:hover { text-decoration: underline; }
.t-cta { background: linear-gradient(150deg, #1f1630, #3b1f52); color: #fff; border: 0; justify-content: center; }
.t-cta::before { display: none; }
.t-cta p { color: #d8cde3; }
.t-cta .btn { align-self: flex-start; }

.how { background: #fff; border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.steps .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.file { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.file b { font-size: 18px; color: var(--purple); }
.file span { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.faq .qa { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.qa details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; transition: box-shadow .25s; }
.qa details[open] { box-shadow: 0 16px 34px -26px rgba(22,27,38,.5); }
.qa summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font-size: 22px; color: var(--purple); transition: transform .25s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding-bottom: 16px; color: var(--muted); }

.cta-band { margin: 40px max(24px, calc((100% - 1160px) / 2)) 80px; padding: 64px 24px; border-radius: 28px; text-align: center; color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 40%), linear-gradient(135deg, var(--purple), #4c1d95 60%, #0369a1); }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 40px); }
.cta-band p { margin: 10px 0 26px; color: #e6dcf0; }

.foot { padding: 40px max(24px, calc((100% - 1160px) / 2)) 28px; background: #10141c; color: #c8cdd6; display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 24px; font-size: 14px; }
.f-brand { display: flex; gap: 12px; align-items: flex-start; }
.f-brand b { color: #fff; display: block; }
.f-brand small { color: #8b93a1; }
.f-info p { line-height: 1.8; }
.f-links { display: flex; flex-direction: column; gap: 6px; }
.f-links a { color: #e5e7eb; text-decoration: none; }
.f-links a:hover { color: #fff; text-decoration: underline; }
.copy { grid-column: 1 / -1; border-top: 1px solid #222a36; padding-top: 18px; color: #7d8594; font-size: 13px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.types .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.types .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.types .reveal:nth-child(5) { transition-delay: .08s; } .types .reveal:nth-child(6) { transition-delay: .16s; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; }
  .hero-art { height: 380px; }
  .types, .files { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 600px) {
  .types, .files { grid-template-columns: 1fr; }
  .hero-art { height: 300px; }
  .fcard { min-width: 0; padding: 8px 10px; }
  .fcard small { display: none; }
  .c5 { display: none; }
  .brand-text small { display: none; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-copy > *, .fcard, .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
