/* ==========================================================
   Superplex AI — homepage
   ========================================================== */
:root {
  --bg: #05050b;
  --bg2: #0a0a14;
  --card: #0b0b15;
  --ink: #f4f4fb;
  --ink2: #c8c8da;
  --muted: #8a8aa5;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --violet: #8b5cff;
  --cyan: #2de2ff;
  --pink: #ff4f9a;
  --orange: #ff9b54;
  --lime: #d4ff3a;
  --blue: #5b7cff;
  --grad: linear-gradient(100deg, #8b5cff 0%, #2de2ff 45%, #ff4f9a 100%);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Geist", "Anuphan", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "Anuphan", ui-monospace, "SFMono-Regular", monospace;
  --serif: "Instrument Serif", "Anuphan", Georgia, serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
html:lang(th) body { line-height: 1.75; }
html.i18n-pending body { opacity: 0; }
body { transition: opacity .35s ease; }
html.lang-switching main, html.lang-switching .nav-links { opacity: .0; filter: blur(6px); }
main, .nav-links { transition: opacity .25s ease, filter .25s ease; }

img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(139, 92, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* film grain + ambient */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: -.01em; }

/* cursor glow (fine pointers only) */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(139, 92, 255, .16), rgba(45, 226, 255, .06) 40%, transparent 70%);
  opacity: 0; transition: opacity .6s ease, width .4s var(--ease), height .4s var(--ease);
  will-change: transform;
}
@media (pointer: fine) { body.has-mouse .cursor-glow { opacity: 1; } }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--grad); }
.sec-head { max-width: 820px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.sec-title {
  font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.045em; font-weight: 600;
  margin: 18px 0 18px;
}
.sec-title em, .final-title em, .hero-title em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 9s linear infinite;
  padding-right: .06em;
}
.sec-sub { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 620px; }
html:lang(th) .sec-title { line-height: 1.18; letter-spacing: -.015em; font-weight: 700; font-size: clamp(36px, 4.8vw, 70px); }
html:lang(th) .sec-title em, html:lang(th) .final-title em, html:lang(th) .hero-title em {
  font-family: var(--font); font-style: normal; font-weight: 700; letter-spacing: -.01em;
}
/* Thai: keep the coloured phrase together on its own line instead of splitting mid-phrase */
html:lang(th) .sec-title em, html:lang(th) .final-title em { display: inline-block; max-width: 100%; padding-block: .22em .12em; margin-block: -.22em -.12em; }
@keyframes gradShift { to { background-position: 200% 0; } }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease-out), background .3s ease, box-shadow .3s ease, color .3s ease;
  will-change: transform;
}
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { --h: 58px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #07070d; box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset; }
.btn-primary::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--grad); background-size: 200% 100%; filter: blur(14px); opacity: 0;
  transition: opacity .4s ease; animation: gradShift 4s linear infinite;
}
.btn-primary:hover::before { opacity: .85; }
.btn-ghost {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-arrow { transition: transform .35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn-skill { color: #07070d; background: var(--skill-grad); box-shadow: 0 10px 40px -10px var(--skill-c); }
.btn-skill:hover { box-shadow: 0 14px 50px -8px var(--skill-c); }

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 80px -24px rgba(0, 0, 0, .7);
}

/* ---------- nav ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.nav-inner {
  pointer-events: auto;
  width: min(1280px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 8px 8px 8px 18px; border-radius: 999px; border: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.nav.scrolled .nav-inner {
  background: rgba(9, 9, 18, .58); border-color: var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-weight: 600; font-size: 18px; letter-spacing: -.035em; display: inline-flex; align-items: center; gap: 6px; }
.brand-ai {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line2); color: var(--ink2);
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; font-size: 14.5px; color: var(--ink2); padding: 8px 14px; border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang {
  position: relative; display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.lang button { position: relative; z-index: 1; font-family: var(--mono); font-size: 12px; font-weight: 600; width: 40px; height: 30px; border-radius: 999px; color: var(--muted); transition: color .3s ease; }
.lang button.is-active { color: #07070d; }
.lang-pill { position: absolute; top: 3px; left: 3px; width: 40px; height: 30px; border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease-out); }
html[data-lang="th"] .lang-pill { transform: translateX(40px); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease-out); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mmenu {
  position: fixed; inset: 0; z-index: 55; padding: 110px 28px 40px;
  background: rgba(5, 5, 11, .92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; gap: 6px;
}
.mmenu[hidden] { display: none; }
.mmenu a { font-size: 34px; font-weight: 600; letter-spacing: -.03em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-fallback {
  position: absolute; inset: 0; z-index: 0; display: none;
  background:
    radial-gradient(40% 50% at 72% 50%, rgba(139, 92, 255, .45), transparent 70%),
    radial-gradient(30% 40% at 80% 35%, rgba(45, 226, 255, .35), transparent 70%),
    radial-gradient(30% 40% at 65% 70%, rgba(255, 79, 154, .3), transparent 70%);
  filter: blur(20px);
}
.no-webgl .hero-fallback { display: block; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); text-decoration: none;
  font-size: 13.5px; color: var(--ink2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .3s ease;
}
.chip:hover { background: rgba(255, 255, 255, .1); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(212, 255, 58, .7); animation: pulse 2s infinite; }
.chip-arrow { color: var(--muted); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 255, 58, .6); } 70% { box-shadow: 0 0 0 9px rgba(212, 255, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0); } }

.hero-title { font-size: clamp(58px, 8.6vw, 142px); line-height: .9; letter-spacing: -.058em; font-weight: 600; margin: 26px 0 22px; }
.hero-title .line { display: block; }
html:lang(th) .hero-title { font-size: clamp(50px, 7vw, 112px); line-height: 1.14; letter-spacing: -.02em; font-weight: 700; }
.hero-rot { font-size: clamp(20px, 2vw, 28px); letter-spacing: -.02em; color: var(--ink2); display: flex; flex-wrap: wrap; gap: .3em; align-items: baseline; }
.rotator { position: relative; display: inline-grid; color: var(--ink); font-weight: 600; min-width: 8ch; }
.rot-word { grid-area: 1 / 1; white-space: nowrap; background: linear-gradient(90deg, #fff, #cfc2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rot-word.is-in { animation: rotIn .7s var(--ease-out) both; }
.rot-word.is-out { animation: rotOut .5s var(--ease) both; }
@keyframes rotIn { from { opacity: 0; transform: translateY(60%); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rotOut { to { opacity: 0; transform: translateY(-60%); filter: blur(8px); } }
.hero-sub { margin-top: 18px; font-size: clamp(16.5px, 1.3vw, 19px); color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.works-with { display: flex; align-items: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.works-with > span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.works-with ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.works-with li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.pdot { width: 7px; height: 7px; border-radius: 50%; }
.pd-claude { background: #ff8a5c; } .pd-codex { background: #e9e9f3; } .pd-anti { background: var(--cyan); }

.hero-visual { position: relative; height: min(660px, 76vh); min-height: 520px; }
.orb-anchor { position: absolute; left: 50%; top: 46%; width: min(560px, 100%); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.console { position: absolute; left: -6%; bottom: 2%; width: min(440px, 100%); border-radius: 20px; overflow: hidden; z-index: 3; }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.console-title { font-size: 12px; color: var(--muted); flex: 1; }
.console-status { font-size: 11px; color: var(--lime); display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .08em; }
.console-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }
.console-body { min-height: 236px; padding: 16px 18px 10px; font-size: 12.8px; line-height: 1.75; color: var(--ink2); }
.console-body .ln { display: block; white-space: pre-wrap; word-break: break-word; animation: lnIn .35s var(--ease-out) both; }
@keyframes lnIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.c-you { color: var(--muted); }
.c-prompt { color: #fff; }
.c-skill { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.c-ok { color: var(--ink2); }
.c-ok b { color: var(--cyan); font-weight: 600; }
.c-out { color: var(--lime); font-weight: 600; }
.caret { display: inline-block; width: 7px; height: 1.05em; vertical-align: -2px; background: var(--ink); margin-left: 2px; animation: blink 1s steps(1) infinite; }
.spin { display: inline-block; color: var(--violet); }
@keyframes blink { 50% { opacity: 0; } }
.console-foot { display: flex; align-items: center; gap: 12px; padding: 0 18px 16px; }
.progress { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .5s var(--ease); }
.console-eta { font-size: 11px; color: var(--muted); }

.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 500; animation: floaty 6s ease-in-out infinite; }
.fc1 { right: 2%; top: 12%; }
.fc2 { right: -1%; top: 26%; bottom: auto; z-index: 4; animation-delay: -3s; }
.ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.fc-plus { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 7px; background: var(--grad); color: #07070d; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line2); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* intro animation */
.js .intro { opacity: 0; transform: translateY(26px); filter: blur(10px); }
.is-loaded .intro { opacity: 1; transform: none; filter: none; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms + 100ms); }
.is-loaded .float-chip.intro { transition-property: opacity, filter; }

/* ---------- marquee ---------- */
.marquee { position: relative; padding: 26px 0; border-block: 1px solid var(--line); overflow: hidden; background: rgba(255, 255, 255, .015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.03em; color: var(--ink2); white-space: nowrap; }
.mq-star { width: 14px; height: 14px; background: var(--grad); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

section { position: relative; z-index: 2; }

/* ---------- manifesto ---------- */
.manifesto { padding: 150px 0 120px; }
.manifesto-text {
  margin-top: 26px; font-size: clamp(30px, 4.3vw, 62px); line-height: 1.12; letter-spacing: -.035em; font-weight: 500; max-width: 1120px;
}
html:lang(th) .manifesto-text { line-height: 1.42; letter-spacing: -.01em; font-size: clamp(28px, 3.7vw, 54px); }
.mw { opacity: .14; transition: opacity .25s linear, color .25s linear; }
.mw.lit { opacity: 1; }
.mw.hl.lit { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.no-js .mw, .reduce .mw { opacity: 1; }
.compare { margin-top: 90px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.cmp { border-radius: 24px; padding: 32px; border: 1px solid var(--line); }
.cmp h3 { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.cmp ul { list-style: none; display: grid; gap: 14px; }
.cmp li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; letter-spacing: -.015em; }
.cmp li::before { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 2px; }
.cmp-old { background: rgba(255, 255, 255, .015); }
.cmp-old li { color: var(--muted); }
.cmp-old li::before { content: "✕"; background: rgba(255, 255, 255, .06); color: var(--muted); }
.cmp-new { position: relative; background: linear-gradient(180deg, rgba(139, 92, 255, .12), rgba(45, 226, 255, .04)); border-color: transparent; }
.cmp-new::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.cmp-new h3 { color: var(--ink); }
.cmp-new li::before { content: "✓"; background: var(--grad); color: #07070d; }
.cmp-vs { align-self: center; font-size: 13px; color: var(--muted); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; }

/* ---------- roster / skills ---------- */
.roster { padding: 110px 0 60px; }
.skill {
  --skill-c: var(--pink); --skill-c2: var(--orange);
  --skill-grad: linear-gradient(110deg, var(--skill-c), var(--skill-c2));
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: clamp(28px, 4.4vw, 64px); border-radius: 36px; margin-top: 28px;
  background: linear-gradient(180deg, #0d0d19, #08080f); border: 1px solid var(--line);
}
.skill-mana { --skill-c: var(--cyan); --skill-c2: var(--blue); }
.skill::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -18%; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--skill-c) 34%, transparent), transparent 62%);
  filter: blur(20px);
}
.skill-mana { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.skill-mana .skill-info { order: 2; }
.skill-mana::before { right: auto; left: -18%; }
.skill-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.sk-num { padding: 3px 8px; border-radius: 7px; background: var(--skill-grad, var(--grad)); color: #07070d; font-weight: 600; }
.skill-name { font-size: clamp(72px, 9vw, 136px); line-height: .88; letter-spacing: -.065em; font-weight: 600; margin: 22px 0 18px; display: flex; align-items: flex-start; gap: 14px; }
.skill-name-th { font-size: 18px; letter-spacing: 0; font-weight: 500; color: var(--skill-c); padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--skill-c) 45%, transparent); margin-top: 14px; line-height: 1.4; }
.skill-line { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; max-width: 480px; }
html:lang(th) .skill-line { line-height: 1.45; letter-spacing: -.01em; }
.skill-feats { list-style: none; margin: 28px 0 34px; display: grid; gap: 12px; }
.skill-feats li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink2); font-size: 16.5px; }
.skill-feats li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px; background: var(--skill-grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3L14 5.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3L14 5.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.skill-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.price-tag { display: flex; flex-direction: column; line-height: 1.1; }
.price-tag small { font-size: 12px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.price-tag strong { font-size: 34px; letter-spacing: -.04em; font-weight: 600; }

.skill-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 600px; perspective: 1200px; }

/* spotlight */
.spot { --mx: 50%; --my: 50%; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 255, 255, .06), transparent 40%);
  opacity: 0; transition: opacity .4s ease;
}
.spot:hover::after { opacity: 1; }

/* phone */
.phone {
  position: relative; z-index: 2; width: 272px; aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 10px;
  background: linear-gradient(145deg, #34343f, #0c0c11 40%, #1d1d25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 0 0 2px #000, 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 120px -20px color-mix(in srgb, var(--skill-c) 55%, transparent);
  transform: rotateY(-10deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .8s var(--ease-out);
}
.skill-mana .phone { transform: rotateY(10deg) rotateX(4deg); }
.skill:hover .phone { transform: rotateY(0) rotateX(0); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 20px; background: #000; z-index: 5; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #0d0d12; }
.reel-progress { position: absolute; top: 52px; left: 16px; right: 16px; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .25); z-index: 6; overflow: hidden; }
.reel-progress span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; animation: reel 9s linear infinite; }
@keyframes reel { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* manee screen */
.manee-screen { background: radial-gradient(120% 80% at 30% 20%, #4a2038, #160b16 60%, #0b070c); }
.studio-light { position: absolute; width: 180%; height: 60%; left: -40%; top: -10%; background: radial-gradient(closest-side, rgba(255, 155, 84, .35), transparent); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
.bokeh { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .6; animation: floaty 7s ease-in-out infinite; }
.b1 { width: 40px; height: 40px; left: 12%; top: 22%; background: rgba(255, 79, 154, .5); }
.b2 { width: 24px; height: 24px; right: 16%; top: 30%; background: rgba(255, 155, 84, .5); animation-delay: -2s; }
.b3 { width: 56px; height: 56px; right: 6%; top: 12%; background: rgba(139, 92, 255, .35); animation-delay: -4s; }
.person { position: absolute; left: 50%; bottom: 0; width: 108%; transform: translateX(-50%); animation: talk 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes talk { 0%, 100% { transform: translateX(-50%) scale(1); } 30% { transform: translateX(-50%) scale(1.012) rotate(-.6deg); } 60% { transform: translateX(-50%) scale(1.006) rotate(.5deg); } }
@keyframes breathe { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
.caps { position: absolute; left: 10px; right: 10px; top: 25%; z-index: 6; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; min-height: 80px; align-content: flex-start; }
.cap {
  font-weight: 800; font-size: 25px; line-height: 1.05; letter-spacing: -.02em; color: #fff; text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .55), 0 0 20px rgba(0, 0, 0, .5); padding: 2px 6px; border-radius: 8px;
  animation: capIn .32s cubic-bezier(.3, 1.6, .5, 1) both;
}
html:lang(th) .cap { font-size: 24px; line-height: 1.3; text-transform: none; }
.cap.hl { background: linear-gradient(110deg, var(--pink), var(--orange)); transform: rotate(-3deg); text-shadow: none; color: #fff; }
@keyframes capIn { from { opacity: 0; transform: scale(.4) translateY(10px); } to { opacity: 1; } }
.cap.hl { animation-name: capInHl; }
@keyframes capInHl { from { opacity: 0; transform: scale(.4) rotate(-3deg); } to { opacity: 1; transform: rotate(-3deg); } }
.reel-ui { position: absolute; right: 12px; bottom: 92px; z-index: 6; display: flex; flex-direction: column; gap: 14px; }
.ri { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); position: relative; }
.ri-heart::after { content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: #ff4f9a; animation: heart 1.6s ease-in-out infinite; }
@keyframes heart { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.35); } 30% { transform: scale(1); } }
.reel-meta { position: absolute; left: 16px; right: 56px; bottom: 132px; z-index: 6; display: flex; flex-direction: column; font-size: 12px; color: rgba(255, 255, 255, .85); line-height: 1.4; }
.reel-meta b { font-size: 13px; color: #fff; }

.timeline { position: absolute; z-index: 3; left: 0; bottom: 30px; width: min(300px, 70%); padding: 12px 14px; border-radius: 16px; }
.tl-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); margin-bottom: 10px; }
.tl-saved { color: var(--pink); font-size: 13px; }
.tl-wave { display: flex; align-items: center; gap: 2px; height: 38px; overflow: hidden; }
.tl-wave i { flex: none; width: 3px; border-radius: 2px; background: linear-gradient(var(--pink), var(--orange)); transition: width .5s var(--ease), margin .5s var(--ease), opacity .4s ease, background .3s ease; }
.tl-wave i.sil { background: rgba(255, 255, 255, .22); }
.tl-wave.flag i.sil { background: #ff3b5c; }
.tl-wave.cut i.sil { width: 0; margin: 0 -1px; opacity: 0; }

/* mana screen */
.mana-screen { --m1: #2de2ff; --m2: #5b7cff; --m3: #d4ff3a; --mbg1: #07142a; --mbg2: #030712; background: radial-gradient(120% 80% at 50% 0%, var(--mbg1), var(--mbg2)); transition: background .6s ease; }
.mana-style { position: absolute; top: 66px; left: 16px; z-index: 6; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 7px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.mana-style b { color: var(--m1); }
.mscene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform .9s var(--ease-out); }
.mscene.is-on { opacity: 1; transform: none; }
.ms-big { position: absolute; top: 24%; font-size: 150px; font-weight: 800; letter-spacing: -.08em; line-height: 1; background: linear-gradient(160deg, var(--m1), var(--m2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-word { position: absolute; top: 55%; left: 14px; right: 14px; text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.mscene.is-on .ms-big { animation: pop .8s cubic-bezier(.3, 1.6, .5, 1) both; }
.mscene.is-on .ms-word { animation: slideUp .7s .15s var(--ease-out) both; }
@keyframes pop { from { transform: scale(.3) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.ms-shape { position: absolute; border: 2px solid var(--m1); opacity: .7; }
.ms-shape.s1 { width: 70px; height: 70px; border-radius: 50%; left: 10%; top: 18%; animation: spin 8s linear infinite; border-style: dashed; }
.ms-shape.s2 { width: 44px; height: 44px; right: 12%; top: 44%; border-color: var(--m3); animation: spin 5s linear infinite reverse; }
.ms-shape.s3 { width: 120px; height: 120px; border-radius: 50%; right: -30px; bottom: 18%; border-color: var(--m2); }
@keyframes spin { to { transform: rotate(360deg); } }
.ms-kpi { position: absolute; top: 26%; font-size: 60px; font-weight: 800; letter-spacing: -.05em; color: var(--m3); }
.bars { position: absolute; left: 22px; right: 22px; bottom: 30%; height: 34%; display: flex; align-items: flex-end; gap: 10px; }
.bars i { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(var(--m1), var(--m2)); transform-origin: bottom; }
.mscene.is-on .bars i { animation: grow .9s var(--ease-out) both; }
.bars i:nth-child(2) { animation-delay: .08s !important; } .bars i:nth-child(3) { animation-delay: .16s !important; } .bars i:nth-child(4) { animation-delay: .24s !important; } .bars i:nth-child(5) { animation-delay: .32s !important; } .bars i:nth-child(6) { animation-delay: .4s !important; background: linear-gradient(var(--m3), var(--m1)); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.orbit { position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--m1) 60%, transparent); top: 26%; animation: spin 10s linear infinite; }
.orbit span { position: absolute; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg, var(--m1), var(--m2)); box-shadow: 0 0 24px var(--m1); }
.orbit span:nth-child(1) { top: -17px; left: 78px; } .orbit span:nth-child(2) { right: -17px; top: 78px; background: var(--m3); box-shadow: 0 0 24px var(--m3); } .orbit span:nth-child(3) { bottom: -17px; left: 78px; } .orbit span:nth-child(4) { left: -17px; top: 78px; border-radius: 50%; }
.ms-core { position: absolute; top: 37%; width: 120px; text-align: center; font-size: 17px; font-weight: 800; line-height: 1.15; color: #fff; }
html:lang(th) .ms-core { font-size: 19px; line-height: 1.35; }
.mana-sub { position: absolute; left: 14px; right: 14px; bottom: 40px; z-index: 6; text-align: center; font-size: 14px; font-weight: 600; color: #fff; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: lnIn .4s var(--ease-out) both; }
.swatches { position: absolute; z-index: 3; right: 2%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.swatch { width: 34px; height: 34px; border-radius: 10px; position: relative; transition: transform .4s var(--ease-out), box-shadow .4s ease; }
.swatch.is-on { transform: scale(1.15); box-shadow: 0 0 0 2px #fff, 0 0 24px rgba(255, 255, 255, .3); }

/* teaser */
.teaser {
  position: relative; overflow: hidden; margin-top: 28px; padding: clamp(28px, 4vw, 52px); border-radius: 36px;
  border: 1px dashed var(--line2); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 12px, transparent 12px 24px);
  display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center;
}
.teaser .sk-num { background: rgba(255, 255, 255, .14); color: var(--ink); }
.teaser-title { font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.035em; font-weight: 600; line-height: 1.15; }
.teaser p { color: var(--muted); grid-column: 2; margin-top: -22px; }
.teaser .btn { grid-column: 3; grid-row: 1 / span 2; }
.teaser-scan { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(139, 92, 255, .14), transparent); transform: translateX(-100%); animation: scan 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 60%, 100% { transform: translateX(100%); } }
.scramble { font-variant-ligatures: none; }

/* ---------- how ---------- */
.how { padding: 120px 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.beam { position: absolute; left: 8%; right: 8%; top: 118px; width: 84%; height: 4px; z-index: 0; overflow: visible; }
.beam line { stroke-dasharray: 8 10; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }
.step { position: relative; z-index: 1; border-radius: 28px; padding: 26px; }
.step-num { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.step-vis { height: 170px; margin: 14px 0 24px; border-radius: 20px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; }
.step h3 { font-size: 28px; letter-spacing: -.035em; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }
.vi-cap { position: absolute; top: 22px; font-size: 12px; padding: 7px 12px; border-radius: 10px; background: var(--grad); color: #07070d; font-weight: 600; animation: drop 3.2s var(--ease-out) infinite; }
.vi-targets { position: absolute; bottom: 22px; display: flex; gap: 8px; }
.vi-targets span { font-size: 12px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); animation: glowT 3.2s infinite; }
.vi-targets span:nth-child(2) { animation-delay: .25s; } .vi-targets span:nth-child(3) { animation-delay: .5s; }
@keyframes drop { 0% { transform: translateY(-30px); opacity: 0; } 25% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(46px) scale(.8); opacity: 1; } 70%, 100% { transform: translateY(60px) scale(.5); opacity: 0; } }
@keyframes glowT { 0%, 50% { border-color: var(--line2); box-shadow: none; } 62% { border-color: var(--cyan); box-shadow: 0 0 20px rgba(45, 226, 255, .4); } 85%, 100% { border-color: var(--line2); box-shadow: none; } }
.bubble { max-width: 84%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: linear-gradient(120deg, rgba(139, 92, 255, .9), rgba(91, 124, 255, .9)); font-size: 15px; font-weight: 500; position: relative; min-height: 46px; display: grid; align-items: center; }
.typing { display: inline-flex; gap: 4px; grid-area: 1 / 1; animation: hideT 4s infinite; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.bubble-text { grid-area: 1 / 1; animation: showT 4s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes hideT { 0%, 30% { opacity: 1; } 35%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes showT { 0%, 32% { opacity: 0; transform: translateY(4px); } 38%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); position: relative; }
.ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 3; }
.ring .ring-fg { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: ring 3.6s var(--ease) infinite; }
@keyframes ring { 0% { stroke-dashoffset: 120; } 60%, 100% { stroke-dashoffset: 0; } }
.file-check { position: absolute; left: 14px; width: 44px; text-align: center; font-weight: 700; color: var(--lime); animation: chk 3.6s infinite; }
@keyframes chk { 0%, 58% { opacity: 0; transform: scale(.4); } 66%, 100% { opacity: 1; transform: none; } }
.file-meta { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.file-meta b { color: var(--ink); font-size: 13.5px; font-weight: 600; }

/* ---------- why / bento ---------- */
.why { padding: 120px 0 80px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: 28px; padding: 28px; background: linear-gradient(180deg, #0e0e1a, #09090f); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; }
.tile h3 { position: relative; z-index: 1; font-size: 22px; letter-spacing: -.03em; font-weight: 600; margin-bottom: 6px; line-height: 1.2; }
.tile p { position: relative; z-index: 1; color: var(--muted); font-size: 15.5px; }
.t-big { grid-column: span 2; grid-row: span 2; justify-content: space-between; }
.t-big h3 { font-size: clamp(28px, 3vw, 40px); }
.t-value { grid-column: span 2; justify-content: flex-start; }
.t-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: auto; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); font-size: 28px; font-weight: 300; }
.t-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.t-glyph { width: auto; padding: 0 12px; gap: 8px; display: inline-flex; align-self: flex-start; font-size: 24px; font-weight: 600; }
.t-glyph span:first-child { color: var(--pink); } .t-glyph span:last-child { color: var(--cyan); }
.tile .t-ico { align-self: flex-start; }

.orbit-vis { position: relative; flex: 1; min-height: 280px; display: grid; place-items: center; }
.ov-ring { position: absolute; border-radius: 50%; border: 1px solid var(--line2); }
.ov-ring.r1 { width: 230px; height: 230px; }
.ov-ring.r2 { width: 360px; height: 360px; border-style: dashed; opacity: .6; }
.ov-core { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: #07070d; border: 1px solid var(--line2); box-shadow: 0 0 60px rgba(139, 92, 255, .45), 0 0 120px rgba(45, 226, 255, .2); animation: corePulse 4s ease-in-out infinite; }
.ov-core svg { width: 56px; height: 56px; }
@keyframes corePulse { 50% { box-shadow: 0 0 80px rgba(139, 92, 255, .6), 0 0 160px rgba(45, 226, 255, .3); } }
.ov-sat { position: absolute; left: 50%; top: 50%; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(12, 12, 22, .9); border: 1px solid var(--line2); white-space: nowrap; animation: orbitA 18s linear infinite; }
.sat2 { animation-delay: -6s; } .sat3 { animation-delay: -12s; }
@keyframes orbitA {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(170px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(170px) rotate(-360deg); }
}

.vrow { margin-top: 18px; }
.vlabel { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink2); margin-bottom: 8px; }
.vlabel b { color: var(--ink); font-weight: 600; }
.vbar { height: 12px; border-radius: 8px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.vbar span { display: block; height: 100%; border-radius: 8px; transition: width .35s var(--ease); }
.vbar-hire span { width: 10%; background: linear-gradient(90deg, #ff3b5c, #ff9b54); }
.vbar-manee span { width: 10%; background: linear-gradient(90deg, var(--pink), var(--orange)); opacity: .9; }
.t-value .vbar-manee span { background: var(--lime); }
.vclips { margin-top: 18px; font-size: 13px; color: var(--muted); }
.vclips b { font-size: 34px; color: var(--ink); letter-spacing: -.04em; font-weight: 600; margin-right: 4px; }
.vnote { margin-top: 8px; font-size: 12.5px !important; opacity: .8; }

.changelog { margin-bottom: auto; display: grid; gap: 6px; font-size: 12.5px; color: var(--ink2); min-height: 92px; align-content: start; }
.changelog span { animation: lnIn .5s var(--ease-out) both; }
.changelog span:last-child { color: var(--lime); }

.stats { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.stat { padding: 30px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:last-child { border-right: 0; }
.stat b { font-size: clamp(46px, 5vw, 72px); line-height: 1; letter-spacing: -.06em; font-weight: 600; background: linear-gradient(180deg, #fff, #8a8aa5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- pricing ---------- */
.pricing { padding: 120px 0; }
.seg { position: relative; display: inline-flex; margin-top: 30px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); }
.seg button { position: relative; z-index: 1; height: 42px; padding: 0 22px; min-width: 130px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: color .3s ease; }
.seg button[aria-selected="true"] { color: #07070d; }
.seg-pill { position: absolute; top: 4px; left: 4px; height: 42px; width: 130px; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { position: relative; overflow: hidden; border-radius: 30px; padding: 32px; background: linear-gradient(180deg, #0f0f1b, #09090f); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan > * { position: relative; z-index: 1; }
.plan-manee { --pc: var(--pink); } .plan-mana { --pc: var(--cyan); } .plan-custom { --pc: var(--violet); }
.plan::before { content: ""; position: absolute; inset: -1px auto auto -1px; width: 100%; height: 160px; background: radial-gradient(80% 100% at 20% 0%, color-mix(in srgb, var(--pc) 22%, transparent), transparent 70%); pointer-events: none; z-index: 0; }
.plan-name { font-size: 26px; font-weight: 600; letter-spacing: -.035em; display: inline-flex; align-items: center; gap: 10px; }
.plan-ed { font-style: normal; font-size: 11px; padding: 3px 8px; border-radius: 7px; background: color-mix(in srgb, var(--pc) 22%, transparent); color: var(--pc); text-transform: uppercase; letter-spacing: .06em; }
.plan-ed:empty { display: none; }
.plan-top p { color: var(--muted); font-size: 15px; margin-top: 8px; min-height: 48px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 26px 0 22px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan-price .cur { font-size: 26px; font-weight: 500; color: var(--ink2); }
.plan-price .amt { font-size: 64px; font-weight: 600; letter-spacing: -.06em; line-height: 1; display: inline-block; }
.plan-price .amt.flip { animation: flip .5s var(--ease-out); }
@keyframes flip { 0% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(-14px); opacity: 0; } 55% { transform: translateY(14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.plan-price .amt-text { font-size: 44px; letter-spacing: -.04em; }
.plan-price .once { margin-left: 8px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.plan-feats { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; flex: 1; align-content: start; }
.plan-feats li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink2); animation: lnIn .4s var(--ease-out) both; }
.plan-feats li::before { content: "✓"; flex: none; color: var(--pc); font-weight: 700; }
.plan-custom { background: linear-gradient(180deg, rgba(139, 92, 255, .1), rgba(9, 9, 15, 1)); }
.plan-custom::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .7; }
.fine { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 26px; }

/* ---------- faq ---------- */
.faq { padding: 110px 0 140px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; text-align: left; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.02em; }
.qa-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); position: relative; transition: transform .45s var(--ease-out), background .3s ease; }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); }
.qa-icon::after { transform: rotate(90deg); transition: transform .45s var(--ease-out); }
.qa.open .qa-icon { transform: rotate(180deg); background: rgba(255, 255, 255, .08); }
.qa.open .qa-icon::after { transform: rotate(0deg); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.qa.open .qa-a { grid-template-rows: 1fr; }
.qa-a > div { overflow: hidden; }
.qa-a p { padding: 0 60px 26px 0; color: var(--muted); font-size: 16.5px; }

/* ---------- final ---------- */
.final { position: relative; padding: 160px 0 150px; overflow: hidden; text-align: center; }
.final-orb { position: absolute; left: 50%; top: 50%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, #8b5cff, #2de2ff, #ff4f9a, #d4ff3a, #8b5cff); filter: blur(120px); opacity: .28; animation: spin 24s linear infinite; }
.final::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 60% at 50% 50%, transparent, var(--bg) 75%); }
.final-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.final-title { font-size: clamp(52px, 8.4vw, 132px); line-height: .92; letter-spacing: -.06em; font-weight: 600; }
html:lang(th) .final-title { line-height: 1.18; letter-spacing: -.02em; font-weight: 700; font-size: clamp(44px, 6.8vw, 104px); }
.final-sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 21px); color: var(--ink2); }
.final-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.join-form { margin-top: 56px; width: min(560px, 100%); border-radius: 24px; padding: 22px; text-align: left; }
.join-form label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); }
.join-row { display: flex; gap: 10px; margin-top: 12px; }
.join-row input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35); color: var(--ink); font: inherit; font-size: 15.5px; outline: none; transition: border-color .3s ease, box-shadow .3s ease; }
.join-row input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 255, .2); }
.join-row .btn { --h: 50px; }
.join-ok { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--lime); }
.join-ok.bad { color: #ff7a8a; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding-top: 70px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 14px; color: var(--muted); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.foot-col a { text-decoration: none; color: var(--ink2); font-size: 15px; transition: color .25s ease; width: fit-content; }
.foot-col a:hover { color: var(--ink); }
.wordmark {
  --mx: 50%; margin-top: 60px; text-align: center; font-weight: 700; letter-spacing: -.07em; line-height: .8;
  font-size: clamp(48px, calc((100vw - 56px) / 5.45), 300px); user-select: none; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1);
  background: radial-gradient(420px circle at var(--mx) 60%, #fff, #b6a3ff 20%, rgba(45, 226, 255, .5) 40%, transparent 65%);
  -webkit-background-clip: text; background-clip: text;
}
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0 34px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-block; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-custom { grid-column: span 2; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero { padding: 110px 0 70px; align-items: flex-start; }
  .hero-inner { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { height: 520px; min-height: 0; }
  .orb-anchor { width: min(440px, 96%); top: 40%; }
  .console { left: 50%; transform: translateX(-50%); bottom: 0; width: min(440px, 100%); }
  .is-loaded .console.intro { transform: translateX(-50%); }
  .js .console.intro { transform: translate(-50%, 26px); }
  .fc1 { right: 0; top: 4%; } .fc2 { left: 0; right: auto; top: 30%; bottom: auto; }
  .compare { grid-template-columns: 1fr; }
  .cmp-vs { justify-self: center; }
  .skill, .skill-mana { grid-template-columns: 1fr; }
  .skill-mana .skill-info { order: 0; }
  .skill-visual { min-height: 560px; }
  .skill::before { right: -40%; top: 72%; width: 120%; }
  .skill-mana::before { left: -40%; }
  .teaser { grid-template-columns: 1fr; gap: 16px; }
  .teaser p { grid-column: auto; margin-top: 0; }
  .teaser .btn { grid-column: auto; grid-row: auto; justify-self: start; }
  .steps { grid-template-columns: 1fr; }
  .beam { display: none; }
  .faq { grid-template-columns: 1fr; gap: 30px; }
  .faq-head { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .nav-cta { display: none; }
  .hero-title { font-size: clamp(52px, 15vw, 80px); }
  html:lang(th) .hero-title { font-size: clamp(44px, 12.4vw, 66px); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .works-with { gap: 10px; }
  .bento { grid-template-columns: 1fr; }
  .t-big, .t-value { grid-column: auto; grid-row: auto; }
  .orbit-vis { min-height: 300px; }
  .ov-ring.r2 { width: 256px; height: 256px; }
  @keyframes orbitA { 0% { transform: translate(-50%, -50%) rotate(0deg) translateX(104px) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg) translateX(104px) rotate(-360deg); } }
  .ov-ring.r1 { width: 164px; height: 164px; }
  .plans { grid-template-columns: 1fr; }
  .plan-custom { grid-column: auto; }
  .phone { width: 238px; }
  .skill-visual { min-height: 520px; }
  .timeline { left: -6px; bottom: 6px; width: 76%; }
  .reel-meta { bottom: 108px; }
  .swatches { right: -6px; padding: 8px; gap: 7px; }
  .swatch { width: 26px; height: 26px; }
  .skill-name { font-size: clamp(64px, 19vw, 96px); }
  .manifesto { padding: 110px 0 90px; }
  .join-row { flex-direction: column; }
  .join-row input { flex: none; }
  .join-row .btn { width: 100%; }
  .seg button { min-width: 116px; padding: 0 16px; }
  .seg-pill { width: 116px; }
  .wordmark { -webkit-text-stroke: .6px rgba(255, 255, 255, .14); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}

/* ---------- balanced line breaks (helps Thai wrap at phrase gaps) ---------- */
.sec-title, .sec-sub, .skill-line, .teaser-title, .final-title, .final-sub, .hero-sub, .qa button, .plan-top p { text-wrap: balance; }
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* ---------- company legal line + honeypot ---------- */
.foot-legal { padding: 0 0 34px; margin-top: -14px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.foot-legal p { margin: 0; }
.foot-legal a { color: var(--ink2); text-decoration: none; }
.foot-legal a:hover { color: var(--ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-form { position: relative; }
.join-form button[disabled] { opacity: .6; pointer-events: none; }
