/* =========================================================
   Deay Bypass — stylesheet
   ========================================================= */
:root {
  --bg: #08090a;
  --bg-2: #0d0e10;
  --card: #111214;
  --card-2: #17181b;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #fafafa;
  --text-2: #e4e4e7;
  --muted: #a1a1aa;
  --dim: #6b6b74;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-dark: #4f46e5;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #facc15;
  --maxw: 1200px;
  --font: 'Anuphan', system-ui, -apple-system, 'Segoe UI', 'Leelawadee UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
::selection { background: rgba(99, 102, 241, .45); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px;
  font-size: 15px; font-weight: 600; line-height: 1.2;
  transition: background .2s, transform .2s, opacity .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #232428; color: var(--text-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn-ghost:hover { background: #2c2d32; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:disabled:hover { background: var(--accent); }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-lg:hover svg { transform: translateX(3px); }
.btn-lg svg { transition: transform .2s; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: center;
  padding: 12px 16px;
}
.nav-inner {
  position: relative;
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; gap: 28px;
  padding: 10px 14px;
  border: 1px solid transparent; border-radius: 14px;
  transition: max-width .45s ease, background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled .nav-inner {
  max-width: 1000px;
  background: rgba(16, 17, 19, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-links a[hidden] { display: none; }
.nav-links .ext svg { width: 12px; height: 12px; opacity: .55; }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1a1b1e; border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; color: var(--text-2);
}
.btn-signin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 8px;
  background: #fff; color: #0a0a0a;
  font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.btn-signin:hover { background: #e4e4e7; }
.auth-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.btn-signin span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-notice { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10000; width: max-content; max-width: calc(100vw - 32px); padding: 16px 20px; border: 1px solid #444; border-radius: 12px; background: #18181b; color: #fff; box-shadow: 0 8px 30px #0006; }

/* profile menu (หลังเข้าสู่ระบบ) */
.account { position: relative; }
.account-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px; border-radius: 10px;
  background: #fff; color: #0a0a0a; font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.account-btn:hover, .account.open .account-btn { background: #e4e4e7; }
.account-avatar {
  width: 28px; height: 28px; flex: none; overflow: hidden;
  display: grid; place-items: center; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9); color: #fff; font-size: 13px; font-weight: 700;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-caret { width: 14px; height: 14px; opacity: .55; transition: transform .2s; }
.account.open .account-caret { transform: rotate(180deg); }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  width: 230px; padding: 6px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(17, 18, 21, .97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  animation: menuIn .18s ease;
}
.am-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
.am-head b { display: block; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-head small { font-size: 12.5px; color: var(--dim); }
.am-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 14px; color: var(--muted); }
.am-row b { color: var(--text); font-weight: 600; }
.am-row b.am-balance { color: #4ade80; }
.am-logout {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin-top: 4px; padding: 10px 12px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px;
  font-size: 14px; color: var(--text-2); transition: background .2s, color .2s;
}
.am-logout:hover, .am-logout:focus-visible { background: rgba(239, 68, 68, .1); color: #fca5a5; outline: none; }
.am-logout svg { width: 17px; height: 17px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* language switch (TH / EN) */
.lang-wrap { position: relative; }
button.lang { cursor: pointer; transition: background .2s, border-color .2s; }
button.lang:hover, button.lang[aria-expanded="true"] { background: #26272c; border-color: var(--line-2); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  width: 170px; padding: 6px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(17, 18, 21, .97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  animation: menuIn .18s ease;
}
.lang-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.lang-menu button:hover { background: rgba(255, 255, 255, .06); }
.lang-menu button[aria-checked="true"] { background: rgba(99, 102, 241, .16); color: #fff; }
.lang-menu b { font-size: 11px; color: var(--dim); }
@media (max-width: 600px) { .nav-right .lang { display: grid; } }
@media (max-width: 600px) {
  .account-name { display: none; }
  .account-btn { padding: 4px 6px 4px 4px; }
}
.btn-signin svg { width: 18px; height: 18px; }
.menu-toggle { display: none; width: 36px; height: 36px; border-radius: 8px; place-items: center; background: #1a1b1e; border: 1px solid var(--line); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .ic-close { display: none; }
.nav.open .menu-toggle .ic-open { display: none; }
.nav.open .menu-toggle .ic-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 180px 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -260px;
  width: 1400px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 45% at 50% 30%, rgba(255, 255, 255, .11), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-title {
  font-size: clamp(54px, 10.5vw, 112px);
  font-weight: 700; letter-spacing: -.035em; line-height: 1;
  background: linear-gradient(180deg, #3f3f46 0%, #fff 52%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s ease both;
}
.hero-sub {
  max-width: 520px; margin: 26px auto 0;
  font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); line-height: 1.55;
  animation: rise .9s .1s ease both;
}
.proof { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 44px; animation: rise .9s .2s ease both; }
.avatars { display: flex; padding-left: 12px; }
.av {
  width: 48px; height: 48px; margin-left: -12px;
  display: grid; place-items: center;
  border-radius: 12px; border: 2px solid #e9e9ee;
  font-weight: 700; font-size: 18px; color: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .55);
  transition: transform .25s;
}
.av:nth-child(odd) { transform: rotate(-6deg); }
.av:nth-child(even) { transform: rotate(5deg); }
.avatars:hover .av { transform: rotate(0) translateY(-2px); }
.av1 { background: linear-gradient(135deg, #475569, #0f172a); }
.av2 { background: linear-gradient(135deg, #a16207, #3f2a06); }
.av3 { background: linear-gradient(135deg, #94a3b8, #334155); }
.av4 { background: linear-gradient(135deg, #0ea5e9, #1e3a8a); }
.av5 { background: linear-gradient(135deg, #22c55e, #db2777); }
.av6 { background: linear-gradient(135deg, #be123c, #3b0764); }
.stars { display: flex; gap: 5px; color: var(--yellow); }
.stars svg { width: 19px; height: 19px; }
.proof-note { margin-top: 12px; font-size: 14px; color: var(--muted); animation: rise .9s .25s ease both; }
.hero-cta { margin-top: 64px; animation: rise .9s .3s ease both; }

/* Showcase */
.showcase-wrap { margin-top: 80px; perspective: 1400px; }
.showcase {
  position: relative; max-width: 1000px; margin: 0 auto; padding: 12px;
  border-radius: 24px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #1c1d20, #0b0c0d 80%);
  box-shadow: 0 -10px 80px rgba(255, 255, 255, .05);
  transform-origin: 50% 0;
  transform: rotateX(var(--tilt, 20deg));
  will-change: transform;
}
.showcase::after {
  content: ""; position: absolute; inset: auto -2px -2px; height: 55%;
  background: linear-gradient(180deg, transparent, var(--bg) 92%);
  border-radius: 0 0 24px 24px; pointer-events: none;
}
.showcase-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #1d1e21; }
.plane { position: absolute; inset: 0; }
.p1 { background: linear-gradient(160deg, #505156 0%, #2a2b2f 65%); clip-path: polygon(0 0, 58% 0, 0 64%); }
.p2 { background: linear-gradient(205deg, #3d3e43, #18191b 70%); clip-path: polygon(58% 0, 100% 0, 100% 100%, 30% 100%); }
.p3 { background: linear-gradient(120deg, #2a2b2e, #121315); clip-path: polygon(0 64%, 58% 0, 30% 100%, 0 100%); }
.p4 { background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .09)); clip-path: polygon(57% 0, 61% 0, 33% 100%, 29% 100%); }
.sc-ghost {
  position: absolute; right: 5%; top: 46%;
  font-size: clamp(38px, 9vw, 112px); font-weight: 700; letter-spacing: .08em;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .12);
  transform: rotate(-14deg); user-select: none;
}
.sc-mark {
  position: absolute; left: 50%; top: 52%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-size: clamp(72px, 17vw, 200px); font-weight: 700; letter-spacing: -.04em; line-height: 1;
  color: #f4f4f5; text-shadow: 0 24px 60px rgba(0, 0, 0, .6); user-select: none;
}
.play {
  position: absolute; left: 50%; top: 36%;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  background: rgba(16, 16, 18, .8); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .25s, background .25s;
  z-index: 2;
}
.play svg { width: 28px; height: 28px; margin-left: 4px; }
.play:hover { transform: translate(-50%, -50%) scale(1.08); background: rgba(99, 102, 241, .9); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { max-width: 780px; margin: 0 auto 60px; text-align: center; }
.section-icon {
  position: relative;
  width: 46px; height: 46px; margin: 0 auto 26px;
  display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #1b1c20, #0e0f11);
  color: var(--accent-2);
  box-shadow: 0 0 30px rgba(99, 102, 241, .25);
}
.section-icon::after {
  content: ""; position: absolute; left: 50%; bottom: -10px;
  width: 30px; height: 2px; transform: translateX(-50%);
  background: var(--accent); border-radius: 2px; filter: blur(1px);
  box-shadow: 0 0 12px var(--accent);
}
.section-icon svg { width: 20px; height: 20px; }
.section h2 { font-size: clamp(34px, 5.2vw, 54px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.lead { margin-top: 18px; font-size: 17px; color: var(--muted); line-height: 1.7; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease var(--d, 0s), transform .8s ease var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, #131417, #0b0c0e);
  transition: border-color .3s, transform .3s;
}
.why-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.why-visual { position: relative; height: 280px; overflow: hidden; }
.why-body { padding: 4px 26px 30px; }
.why-body h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.why-body p { font-size: 15px; color: var(--muted); }

/* card 1: chart */
.v-chart { background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .05), transparent 60%); }
.v-chart::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%);
}
.chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-dot {
  position: absolute; width: 10px; height: 10px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 0 18px #fff;
  animation: pulse 2.4s ease-in-out infinite;
}
.chart-tip {
  position: absolute; transform: translate(-50%, calc(-100% - 18px));
  padding: 5px 11px; border-radius: 8px; white-space: nowrap;
  font-size: 12.5px; font-weight: 500;
  background: #1d1e22; border: 1px solid var(--line-2);
}

/* card 2: support flow */
.dots-row { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dots-row i { width: 9px; height: 9px; border-radius: 50%; background: #26272b; }
.dots-row i.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 2s ease-in-out infinite; }
.dots-row i.on:nth-child(9) { animation-delay: 1s; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-lines path { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; animation: dash 1.2s linear infinite; }
.pill, .tag { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; }
.pill {
  padding: 6px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  background: #17181c; border: 1px solid var(--line-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
.pill-active { border-color: rgba(99, 102, 241, .6); box-shadow: 0 0 22px rgba(99, 102, 241, .25); }
.tag { font-size: 11px; color: var(--dim); }

/* card 3: community */
.v-community { display: flex; flex-direction: column; align-items: center; padding-top: 30px; }
.comm-logo {
  width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 16px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #1c1d21, #0d0e10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.comm-logo svg { width: 34px; height: 34px; }
.comm-name { margin-top: 10px; font-weight: 600; font-size: 14px; }
.comm-stat {
  margin-top: 16px; display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: 10px;
  background: #15161a; border: 1px solid var(--line);
  transition: opacity .35s, transform .35s;
}
.comm-stat.swap { opacity: 0; transform: translateY(6px); }
.cs-label { font-size: 12px; color: var(--muted); max-width: 130px; line-height: 1.35; }
.cs-value { font-size: 20px; font-weight: 700; white-space: nowrap; }
.cs-value small { font-size: 12px; font-weight: 400; color: var(--muted); }
.spark { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 60px; }

/* ---------- Feature rows (Launcher) ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr);
  gap: 60px; align-items: center; padding: 70px 0;
}
.f-icon { display: inline-grid; place-items: center; color: var(--accent-2); margin-bottom: 14px; }
.f-icon svg { width: 22px; height: 22px; }
.feature-text h3 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.feature-text p { margin-top: 14px; font-size: 16.5px; color: var(--muted); line-height: 1.75; }

/* Mock windows */
.mock {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: #0b0c0e; font-size: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .65), 0 0 0 6px rgba(255, 255, 255, .025);
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: #111215; color: var(--muted); font-size: 12px;
}
.mock-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #2b2c31; }
.mock-bar > i:first-child { background: #ef4444aa; }
.mock-bar > i:nth-child(2) { background: #f59e0baa; }
.mock-bar > i:nth-child(3) { background: #22c55eaa; }
.mock-bar span { margin-left: 8px; }
.mock-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #2b2c31 transparent; }

/* accounts */
.acc { display: grid; grid-template-columns: 150px 1fr; min-width: 620px; }
.acc-side { padding: 14px 10px; border-right: 1px solid var(--line); background: #0e0f11; }
.acc-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); padding: 6px 8px; margin-top: 4px; }
.acc-item { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 6px; color: var(--text-2); }
.acc-item.active { background: #1b1c20; }
.acc-item b { font-weight: 600; color: var(--muted); }
.acc-item b.g { color: var(--green); }
.acc-item b.r { color: var(--red); }
.acc-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 8px; }
.acc-tags span { padding: 2px 7px; border-radius: 5px; background: #1b1c20; color: var(--muted); font-size: 11px; }
.acc-table th { text-align: left; font-weight: 500; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.acc-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, .04); white-space: nowrap; color: var(--text-2); }
.acc-user { display: flex; align-items: center; gap: 8px; }
.acc-user i { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.st { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-farm { color: #4ade80; background: rgba(34, 197, 94, .12); }
.st-ban { color: #f87171; background: rgba(239, 68, 68, .12); }
.st-off { color: #a1a1aa; background: rgba(161, 161, 170, .12); }
.st-join { color: #a5b4fc; background: rgba(99, 102, 241, .16); }

/* logs */
.logs { display: grid; grid-template-columns: 120px 1fr; min-width: 620px; }
.logs-side { padding: 14px 8px; border-right: 1px solid var(--line); background: #0e0f11; }
.ls-item { padding: 6px 10px; border-radius: 6px; color: var(--muted); }
.ls-item.active { background: #1b1c20; color: var(--text); }
.logs-main { padding: 14px; }
.logs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.logs-head b { font-size: 14px; }
.chips { display: flex; gap: 6px; }
.chips span { padding: 3px 9px; border-radius: 6px; background: #17181c; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.chips span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.logs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.char { padding: 10px; border-radius: 10px; background: #121316; border: 1px solid var(--line); }
.char-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.char-top i { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.char-top b { font-size: 11.5px; font-weight: 600; display: block; line-height: 1.2; }
.char-top small { font-size: 10px; color: var(--dim); }
.items { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.items span { aspect-ratio: 1; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .06); }
.r0 { background: #1f2024; }
.r1 { background: linear-gradient(135deg, #166534, #14532d); }
.r2 { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); }
.r3 { background: linear-gradient(135deg, #7e22ce, #4c1d95); }
.r4 { background: linear-gradient(135deg, #f59e0b, #b45309); box-shadow: 0 0 8px rgba(245, 158, 11, .45); }

/* task manager */
.tm-bar { justify-content: space-between; }
.tm-title { margin-left: 0 !important; color: var(--text-2); }
.tm-search { display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; padding: 4px 12px; min-width: 200px; border-radius: 6px; background: #1b1c20; color: var(--text-2); }
.tm-search svg { width: 12px; height: 12px; opacity: .6; }
.tm { display: grid; grid-template-columns: 44px 1fr; min-width: 620px; }
.tm-rail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; border-right: 1px solid var(--line); background: #0e0f11; }
.tm-rail i { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #3a3b40; }
.tm-rail i.on { border-color: var(--accent-2); background: rgba(99, 102, 241, .2); }
.tm-main { padding: 12px 0 0; }
.tm-head { display: flex; justify-content: space-between; padding: 0 14px 10px; }
.tm-head b { font-size: 13px; }
.tm-head span { color: var(--muted); }
.tm-table th { padding: 6px 10px; text-align: left; font-weight: 400; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tm-table th.num, .tm-table td.num { text-align: right; }
.tm-table th em { display: block; font-style: normal; font-size: 15px; font-weight: 600; color: var(--text); }
.tm-table td { padding: 5px 10px; white-space: nowrap; color: var(--text-2); }
.tm-table td.heat { background: rgba(59, 130, 246, var(--h, .1)); transition: background .6s; }
.tm-name { display: flex; align-items: center; gap: 8px; }
.tm-name i { width: 14px; height: 14px; border-radius: 3px; background: #3b82f6; flex: none; }
.tm-name::before { content: "›"; color: var(--dim); }

/* terminal */
.term {
  height: 340px; padding: 14px 16px; overflow: hidden;
  font-family: var(--mono); font-size: 12px; line-height: 1.75;
  background: #08090b; color: #c7c7cf;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%); mask-image: linear-gradient(180deg, transparent, #000 18%);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.term div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fadeIn .35s ease; }
.term .t { color: #5b5b66; }
.term .ok { color: #4ade80; }
.term .info { color: #93c5fd; }
.term .warn { color: #fbbf24; }
.term .acc-name { color: #c4b5fd; }

/* ---------- Reviews ---------- */
.reviews-wall {
  columns: 4 250px; column-gap: 16px;
  max-height: 720px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 80%); mask-image: linear-gradient(180deg, #000 40%, transparent 80%);
}
.review {
  break-inside: avoid; margin-bottom: 16px; padding: 20px;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, #121316, #0d0e10);
}
.review p { font-size: 15px; color: var(--text-2); line-height: 1.65; }
.who { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.who i { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; }
.who b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.who small { font-size: 12px; color: var(--dim); }

.review-feature { position: relative; z-index: 1; isolation: isolate; max-width: 760px; margin: -170px auto 0; text-align: center; min-height: 260px; }
.review-feature::before {
  content: ""; position: absolute; inset: -40px -80px -20px; z-index: -1;
  background: radial-gradient(ellipse 60% 60% at 50% 45%, var(--bg) 55%, transparent 100%);
}
.rf-avatar {
  width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 22px;
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .04), 0 10px 30px rgba(0, 0, 0, .6);
}
.review-feature blockquote { font-size: clamp(18px, 2.4vw, 23px); font-weight: 500; line-height: 1.6; color: var(--text); }
.rf-who { margin-top: 18px; font-size: 14px; color: var(--muted); }
.rf-who b { color: var(--text); font-weight: 600; }
.review-feature .fade { animation: fadeIn .6s ease; }
.rf-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.rf-dots button { width: 8px; height: 8px; border-radius: 999px; background: #2e2f34; transition: width .3s, background .3s; }
.rf-dots button.on { width: 24px; background: var(--accent); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px 24px; border-radius: 18px;
  border: 1px solid var(--line); background: linear-gradient(180deg, #121316, #0c0d0f);
  transition: border-color .3s, transform .3s;
}
.plan:hover { border-color: var(--line-2); transform: translateY(-3px); }
.plan-popular { border-color: rgba(99, 102, 241, .5); background: linear-gradient(180deg, rgba(99, 102, 241, .14), #0c0d0f 45%); }
.plan-popular:hover { border-color: rgba(99, 102, 241, .8); }
.badge { position: absolute; top: 22px; right: 20px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(99, 102, 241, .2); color: #c7d2fe; border: 1px solid rgba(99, 102, 241, .45); }
.plan-name { font-size: 15px; font-weight: 600; color: var(--text-2); }
.price { margin-top: 10px; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.price b { font-weight: inherit; }
.price span { font-size: 15px; font-weight: 400; color: var(--muted); }
.price.tick { animation: priceIn .35s ease; }
.price-note { min-height: 22px; margin-top: 2px; font-size: 13px; font-weight: 500; color: #4ade80; }
.price-note s { margin-right: 6px; font-weight: 400; color: var(--dim); }

/* billing period toggle */
.billing { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin: -24px auto 40px; }
.billing-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.billing-toggle {
  position: relative; display: inline-flex; padding: 5px;
  border-radius: 14px; border: 1px solid rgba(99, 102, 241, .2);
  background: linear-gradient(180deg, #0f1218, #0a0c10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 30px rgba(0, 0, 0, .35);
}
.billing-toggle button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  color: var(--muted); transition: color .25s;
}
.billing-toggle button:hover { color: var(--text-2); }
.billing-toggle button[aria-checked="true"] { color: #fff; }
.billing-toggle button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.billing-glider {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 20px rgba(99, 102, 241, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), width .35s cubic-bezier(.4, 0, .2, 1);
}
.billing-toggle.no-anim .billing-glider { transition: none; }
.save {
  padding: 2px 7px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  background: rgba(99, 102, 241, .16); color: #c7d2fe;
  transition: background .25s, color .25s;
}
.billing-toggle button[aria-checked="true"] .save { background: rgba(255, 255, 255, .2); color: #fff; }
.save-minus { display: none; }
.plan-desc { margin-top: 6px; font-size: 14px; color: var(--muted); min-height: 44px; }
.plan ul { list-style: none; margin: 18px 0 26px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent-2); }
.plan .btn { margin-top: auto; width: 100%; }

/* executors marquee */
.executors { margin-top: 90px; text-align: center; }
.executors p { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.exe { width: 58px; height: 58px; display: grid; place-items: center; color: #8b8b95; transition: color .25s, transform .25s; }
.exe:hover { color: #fff; transform: scale(1.08); }
.exe svg { width: 44px; height: 44px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border-radius: 12px; background: #141518; border: 1px solid var(--line); transition: border-color .25s; }
.faq-item.open { border-color: var(--line-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px; text-align: left; font-size: 15.5px; font-weight: 600;
}
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .3s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--text); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---------- Footer ---------- */
.footer { margin-top: 40px; padding: 56px 0 48px; border-top: 1px solid var(--line); background: #0a0b0c; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { font-size: 13.5px; color: var(--dim); margin-top: 4px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .motion-toggle { margin-top: 18px; }
.footer-col h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }

/* footer แบบแถวเดียว (หน้าสินค้า เติมเงิน ดาวน์โหลด) */
.dl-footer { margin-top: 0; padding: 26px 0; }
.dl-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; font-size: 13.5px; color: var(--dim); }
.dl-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.dl-footer-links a { color: var(--muted); transition: color .2s; }
.dl-footer-links a:hover { color: #fff; }
.dl-footer .motion-toggle { margin-top: 0; }

/* ตัวอักษรไทยไม่ควรถ่างช่องไฟ (ใช้กับป้ายหัวข้อเล็กๆ) */
:lang(th) .footer-col h4, :lang(th) .pd-label, :lang(th) .tu-kicker, :lang(th) .dl-badge,
:lang(th) .dl-card-head small, :lang(th) .dl-changes-title { letter-spacing: 0; }

/* ---------- Purchase toast ---------- */
.toast {
  position: fixed; left: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 32px); padding: 10px 36px 10px 10px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(20, 21, 24, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s, transform .4s;
}
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast-thumb { width: 46px; height: 46px; border-radius: 9px; flex: none; display: grid; place-items: center; font-weight: 700; }
.toast-user { font-size: 11.5px; color: var(--muted); }
.toast-user b { color: #4ade80; font-weight: 600; }
.toast-product { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.toast-meta { display: flex; gap: 10px; font-size: 11.5px; color: var(--dim); }
.toast-price { color: #4ade80; font-weight: 600; }
.toast-close { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--dim); }
.toast-close:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.toast-close svg { width: 14px; height: 14px; }

/* ---------- Video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(960px, 100%); }
.modal-video { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
.modal-video iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #1b1c20; border: 1px solid var(--line-2); }
.modal-close svg { width: 18px; height: 18px; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 0 18px #fff; } 50% { box-shadow: 0 0 0 9px rgba(255, 255, 255, .05), 0 0 26px #fff; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes dash { to { stroke-dashoffset: -8; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes priceIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 50px 0; }
  .feature-text { max-width: 620px; }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 8px;
    border-radius: 14px; border: 1px solid var(--line);
    background: rgba(16, 17, 19, .96);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 11px 14px; font-size: 15px; }
  .menu-toggle { display: grid; }
  .nav.open .nav-inner, .nav.scrolled .nav-inner { background: rgba(16, 17, 19, .85); border-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .why-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .nav { padding: 10px 10px; }
  .nav-inner { gap: 12px; padding: 8px 10px; }
  .lang { display: none; }
  .btn-signin { padding: 7px 10px; }
  .btn-signin span { display: none; }
  .hero { padding-top: 140px; }
  .hero-cta { margin-top: 44px; }
  .showcase-wrap { margin-top: 56px; }
  .showcase { padding: 6px; border-radius: 16px; }
  .showcase-screen { border-radius: 11px; }
  .play { width: 54px; height: 54px; }
  .play svg { width: 22px; height: 22px; }
  .av { width: 40px; height: 40px; font-size: 15px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .billing { flex-direction: column; gap: 10px; }
  .billing-toggle { width: 100%; }
  .billing-toggle button { flex: 1; gap: 6px; padding: 10px 6px; font-size: 14px; }
  .save-word { display: none; }
  .save-minus { display: inline; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 40px; }
  .executors { margin-top: 60px; }
  .review-feature { margin-top: -140px; }
  .footer { padding: 44px 0 36px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 14px; }
  .footer-col a { font-size: 13.5px; }
  .dl-footer-row { flex-direction: column; align-items: flex-start; }
  .toast { left: 10px; bottom: 10px; max-width: calc(100vw - 20px); }
  .term { height: 280px; font-size: 11px; }
}

/* ปิดเอฟเฟกต์ (ผู้ชมกดปิดเอง หรือ data-motion="auto" + ระบบตั้งลดการเคลื่อนไหว) */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; }
.reduce-motion .reveal { opacity: 1; transform: none; }
.reduce-motion .showcase { transform: none; }
html.reduce-motion { scroll-behavior: auto; }
