:root {
  --bg: #0d0e17;
  --bg-2: #12131f;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eceef6;
  --muted: #8f94ac;
  --accent-1: #8b5cf6;
  --accent-2: #22d3ee;
  --green: #34d399;
  --grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, "Noto Sans", "Noto Sans Thai", sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, ui-monospace, monospace;
  --radius: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(700px 420px at -10% 40%, rgba(34, 211, 238, 0.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
b, strong { color: #fff; font-weight: 650; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 14, 23, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand .sub { color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.15s; }
.nav a:hover { color: var(--text); }
.lang {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--border); color: var(--muted);
}
.lang select {
  background: transparent; color: var(--text); border: 0; outline: 0;
  font: inherit; font-size: 14px; cursor: pointer;
}
.lang select option { background: var(--bg-2); color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35); }
.btn.primary:hover { box-shadow: 0 10px 34px rgba(139, 92, 246, 0.5); }
.btn.ghost { background: var(--panel-2); border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: rgba(139, 92, 246, 0.6); }
.btn.wide { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 15px; }
.pill {
  padding: 3px 10px; border-radius: 999px; font-size: 12px; letter-spacing: 1px;
  background: rgba(139, 92, 246, 0.16); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.35);
}
h1 { font-size: clamp(46px, 7vw, 76px); line-height: 1.02; margin: 14px 0 18px; letter-spacing: -1.5px; font-weight: 800; }
.lead { font-size: 19px; color: #c9cce0; max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; }
.os-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--border); color: #c9cce0;
}
.hero-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), rgba(34, 211, 238, 0.12) 55%, transparent 70%);
  filter: blur(20px);
}
.hero-logo { position: relative; width: 240px; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.widget-mock {
  position: absolute; right: 0; bottom: 6px; width: 250px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(18, 19, 31, 0.92); border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); font-size: 13px;
}
.wm-top { display: flex; align-items: center; gap: 8px; }
.wm-top img { border-radius: 5px; }
.wm-brand { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-status { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-weight: 650; }
.wm-time { margin-left: auto; font-family: var(--mono); color: var(--muted); font-weight: 400; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.05); } }
.wm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wm-btns span { text-align: center; padding: 6px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); font-size: 12px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.5px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat {
  padding: 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.feat:hover { border-color: rgba(139, 92, 246, 0.45); transform: translateY(-2px); }
.feat .ic {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.18)); color: #ddd6fe;
}
.feat h3, .feat .feat-title { margin: 14px 0 6px; font-size: 17px; line-height: 1.3; letter-spacing: 0; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* How it works */
.how { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; }
.steps li {
  counter-increment: s; position: relative;
  padding: 14px 0 14px 58px; border-bottom: 1px solid var(--border); color: #c9cce0; font-size: 17px;
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 12px;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: var(--grad); color: #fff; font-weight: 750;
}
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.shot figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Download */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.dl-card {
  min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--border);
}
.dl-card.rec { border-color: rgba(139, 92, 246, 0.6); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25), 0 20px 60px rgba(139, 92, 246, 0.12); }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-head h3 { margin: 0; font-size: 22px; }
.badge {
  margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap;
  background: rgba(52, 211, 153, 0.14); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.35);
}
.file { margin-top: -6px; text-align: center; }
.note { margin: 0; font-size: 14px; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px dashed var(--border); }
.cmd {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 14px; border-radius: 12px;
  background: #07080e; border: 1px solid var(--border);
}
.cmd code { flex: 1; font-family: var(--mono); font-size: 12.5px; color: #a5f3fc; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.copy {
  flex: none; padding: 7px 12px; border-radius: 9px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 13px; font-weight: 600;
}
.copy:hover { border-color: rgba(139, 92, 246, 0.6); }
.copy.ok { color: var(--green); border-color: rgba(52, 211, 153, 0.5); }
.buy-row { margin-top: 28px; }

/* FAQ */
details {
  border: 1px solid var(--border); background: var(--panel); border-radius: 14px;
  padding: 0 20px; margin-top: 12px;
}
summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 650; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--muted); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: #c9cce0; }

/* Footer */
.foot { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.small-brand { font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--text); }
/* ---------- Social icons (footer) ---------- */
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--muted); background: rgba(255,255,255,0.03);
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social a:hover { color: #fff; border-color: transparent; transform: translateY(-2px); }
.social .s-tiktok:hover { background: #000; box-shadow: 0 0 0 1px #25f4ee, 2px 2px 0 0 #fe2c55; }
.social .s-youtube:hover { background: #ff0000; }
.social .s-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social .s-x:hover { background: #000; box-shadow: 0 0 0 1px #333; }
.social .s-discord:hover { background: #5865f2; }

.small-brand img { border-radius: 5px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 40px; }
  .hero-in, .how, .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 300px; order: -1; }
  .hero-logo { width: 170px; }
  .widget-mock { right: 50%; transform: translateX(50%); bottom: -4px; }
  .shot { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .features { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .dl-card { padding: 20px; }
  .steps li { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Mac card: two clearly separated install options */
.opt-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  background: rgba(52, 211, 153, 0.12); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.35);
}
.opt-title { margin: 0; font-weight: 650; color: var(--text); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.mini-steps { margin: 0; padding-left: 22px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.mini-steps b { color: var(--text); }

/* ---------- Embedded checkout modal ---------- */
.co-dlg { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); color: var(--text); }
.co-dlg::backdrop { background: rgba(6, 7, 14, 0.78); backdrop-filter: blur(6px); }
.co-box { background: #141626; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.co-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.co-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.co-close:hover { color: var(--text); }
.co-mount { background: #fff; min-height: 320px; overflow: auto; }
.co-spinner { width: 34px; height: 34px; margin: 140px auto; border-radius: 50%; border: 3px solid rgba(0, 0, 0, 0.1); border-top-color: var(--accent-1); animation: co-spin 0.8s linear infinite; }
@keyframes co-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .co-dlg { width: calc(100vw - 12px); } }

/* ---------- Mobile menu (burger) ---------- */
.burger { display: none; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.burger svg { width: 20px; height: 20px; }
.burger .x, .top.open .burger .bars { display: none; }
.top.open .burger .x { display: block; }
@media (max-width: 820px) {
  .burger { display: grid; }
  .lang { margin-left: auto; }
  .top-in { gap: 12px; }
  .top.open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    padding: 6px 16px 14px; background: rgba(13, 14, 23, 0.97); border-bottom: 1px solid var(--border); }
  .top.open .nav a { padding: 14px 4px; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--border); }
  .top.open .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) { .top .brand .sub { display: none; } }
