
  :root { --font: "Plus Jakarta Sans", "Noto Sans Thai", "Noto Sans JP", system-ui, sans-serif; --r-md: 16px; --r-lg: 22px; --r-pill: 999px; --ease: cubic-bezier(.2,.8,.2,1); }
  [data-theme="dark"] {
    color-scheme: dark;
    --bg:#08060f; --bg-2:#0f0f17; --surface:#14141f; --surface-2:#1b1b29; --border:#272739;
    --text:#f2f2f8; --text-2:#b9b9cc; --text-3:#8282a0;
    --accent:#aa91ff; --accent-ink:#0b0712; --accent-soft:rgba(170,145,255,.14);
    --tech:#d8b4fe; --glow:0 0 0 1px rgba(170,145,255,.25),0 10px 40px -12px rgba(170,145,255,.35);
    --grid:rgba(170,145,255,.06); --ok:#4ade80; --bad:#f87171;
  }
  [data-theme="light"] {
    color-scheme: light;
    --bg:#f5f3ff; --bg-2:#eeeef7; --surface:#ffffff; --surface-2:#f1f1f9; --border:#e0e0ee;
    --text:#14121f; --text-2:#4a4860; --text-3:#6f6d85;
    --accent:#5b3fb8; --accent-ink:#ffffff; --accent-soft:rgba(91,63,184,.10);
    --tech:#7e22ce; --glow:0 1px 2px rgba(20,18,31,.06),0 12px 32px -16px rgba(91,63,184,.35);
    --grid:rgba(91,63,184,.05); --ok:#15803d; --bad:#b91c1c;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh;
    
    transition: background-color .3s var(--ease), color .3s var(--ease); }
  a { color: inherit; text-decoration: none; cursor: pointer; }
  button, input, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
  [data-auth="guest"] .only-user { display: none !important; }
  [data-auth="user"] .only-guest { display: none !important; }

  /* Header */
  .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
  .nav { display: flex; align-items: center; gap: 18px; height: 64px; }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
  .logo-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: conic-gradient(from 200deg, var(--accent), var(--tech), var(--accent)); }
  .logo-mark span { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); }
  .menu { display: flex; gap: 2px; }
  .menu a { padding: 8px 11px; border-radius: var(--r-pill); font-size: 14px; color: var(--text-2); transition: background .2s, color .2s; }
  .menu a:hover { background: var(--accent-soft); color: var(--text); }
  .menu a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
  .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
  .seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px; background: var(--surface); }
  .seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: var(--r-pill); font-size: 13px; color: var(--text-2); }
  .seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
  .chip { border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-pill); padding: 7px 13px; font-size: 13px; color: var(--text-2); transition: border-color .2s, color .2s, transform .15s; }
  .chip:hover { border-color: var(--accent); color: var(--text); }
  .chip:active { transform: scale(.97); }
  .chip.sm { padding: 5px 11px; font-size: 12px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-pill); padding: 11px 20px; font-weight: 700; font-size: 15px;
    background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); transition: transform .15s var(--ease), filter .2s; text-align: center; }
  .btn:hover { filter: brightness(1.08); }
  .btn:active { transform: scale(.97); }
  .btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
  .btn.ghost { background: transparent; color: var(--text); box-shadow: none; border: 1px solid var(--border); }
  .btn.ghost:hover { border-color: var(--accent); }
  .btn.sm { padding: 7px 14px; font-size: 13px; }
  .btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); box-shadow: none; }
  .xp-pill { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--r-pill); padding: 5px 11px; }
  .xp-pill b { color: var(--tech); }
  .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: linear-gradient(135deg, var(--accent), var(--tech)); color: var(--accent-ink); flex: none; border: 0; }
  .avatar.sm { width: 26px; height: 26px; font-size: 11px; }
  .avatar.lg { width: 64px; height: 64px; font-size: 20px; }
  .user-menu { position: relative; display: flex; gap: 10px; align-items: center; }
  .user-panel { position: absolute; right: 0; top: 44px; width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4); display: none; z-index: 80; }
  .user-panel.open { display: block; }
  .user-panel .who { padding: 8px 12px 10px; font-size: 13px; color: var(--text-3); border-bottom: 1px solid var(--border); margin-bottom: 6px; }
  .user-panel button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; border: 0; background: transparent; font-size: 14px; color: var(--text); }
  .user-panel button:hover { background: var(--accent-soft); }
  .user-panel .logout { color: var(--bad); }
  .user-panel hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }

  /* Screens & shared */
  .screen { display: none; padding: 40px 0 70px; animation: fade .45s var(--ease); }
  .screen.active { display: block; }
  @keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
  h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12; margin: 8px 0 14px; letter-spacing: -.02em; }
  h2 { font-size: clamp(1.25rem, 2.3vw, 1.7rem); margin: 0 0 12px; letter-spacing: -.01em; }
  h3 { font-size: 1.02rem; margin: 0 0 6px; line-height: 1.4; }
  p { margin: 0 0 12px; color: var(--text-2); }
  .muted { color: var(--text-3); font-size: 13px; }
  .lead { font-size: 1.08rem; max-width: 660px; }
  .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
  .card.hover { cursor: pointer; }
  .card.hover:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--glow); }
  .card.highlight { border-color: var(--accent); box-shadow: var(--glow); }
  .grid { display: grid; gap: 18px; }
  .g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
  .news-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
  .split { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr; align-items: start; }
  @media (max-width: 880px) { .split { grid-template-columns: 1fr; } .menu { display: none; } .xp-pill { display: none; } }
  .tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
  .tag.tech { color: var(--tech); background: transparent; border-color: color-mix(in srgb, var(--tech) 45%, transparent); }
  .tag.accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
  .tag.ok { color: var(--ok); background: transparent; border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
  .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
  .sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 44px 0 18px; flex-wrap: wrap; }
  .sec-head a { color: var(--accent); font-weight: 700; font-size: 14px; }
  .bar { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
  .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--tech)); border-radius: inherit; transition: width .6s var(--ease); }
  .field { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; }
  .field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  textarea.field { resize: vertical; }
  label.lbl { display: block; font-size: 13px; color: var(--text-2); margin: 14px 0 6px; }
  .flash { border: 1px solid var(--accent); background: var(--accent-soft); color: var(--text); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }

  /* Home hero */
  .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-bottom: 8px; }
  @media (max-width: 880px) { .hero { grid-template-columns: 1fr; } .hero .signal { display: none; } }
  .signal { position: relative; aspect-ratio: 1/1; max-width: 340px; width: 100%; justify-self: center; }
  .signal .ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); animation: spin 26s linear infinite; }
  .signal .ring.r2 { inset: 22%; border-style: solid; border-color: color-mix(in srgb, var(--tech) 35%, transparent); animation-duration: 18s; animation-direction: reverse; }
  .signal .core { position: absolute; inset: 36%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--accent), color-mix(in srgb, var(--accent) 30%, var(--bg))); box-shadow: 0 0 80px -10px var(--accent); font-weight: 900; color: var(--accent-ink); font-size: 1.3rem; }
  .signal .node { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--tech); box-shadow: 0 0 16px var(--tech); animation: pulse 2.4s ease-in-out infinite; }
  .n1 { top: 12%; left: 48%; } .n2 { top: 60%; left: 88%; animation-delay: .6s; } .n3 { top: 82%; left: 26%; animation-delay: 1.2s; } .n4 { top: 30%; left: 6%; animation-delay: 1.8s; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }
  @media (prefers-reduced-motion: reduce) { .signal .ring, .signal .node { animation: none; } }

  /* News cards + illustrations */
  .news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
  .news-img { aspect-ratio: 5 / 3; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface-2); }
  .news-img svg { width: 100%; height: 100%; display: block; }
  .nc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
  .nc-body p { font-size: 14px; margin: 0; }
  .nc-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
  .filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
  .filters button { border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-pill); padding: 6px 14px; font-size: 13px; color: var(--text-2); }
  .filters button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

  /* Article */
  .read-progress { position: fixed; top: 64px; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--tech)); z-index: 70; }
  .article-hero { aspect-ratio: 16 / 7; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); margin: 18px 0 26px; }
  .article-hero svg { width: 100%; height: 100%; display: block; }
  .article { max-width: 700px; }
  .article p { font-size: 1.04rem; line-height: 1.85; color: var(--text); opacity: .93; }
  .toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
  .opt { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 8px; border-radius: var(--r-md);
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, background .2s, transform .15s; }
  .opt:hover:not(:disabled) { border-color: var(--accent); }
  .opt:active:not(:disabled) { transform: scale(.99); }
  .opt:disabled { cursor: default; }
  .opt .k { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface); border: 1px solid var(--border); flex: none; }
  .opt.sel { border-color: var(--accent); }
  .opt.correct { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
  .opt.correct .k { background: var(--ok); color: #05130a; border-color: transparent; }
  .opt.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
  .opt.wrong .k { background: var(--bad); color: #190505; border-color: transparent; }
  .feedback { min-height: 24px; font-size: 14px; margin-top: 6px; }
  .feedback.ok { color: var(--ok); } .feedback.no { color: var(--bad); }
  .xp-gain { font-weight: 800; color: var(--tech); }
  .locked { position: relative; }
  .lock-layer { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-radius: var(--r-lg); padding: 18px; text-align: center; }
  .blur-opts { filter: blur(2px); opacity: .6; pointer-events: none; }

  /* Learn */
  .path-step { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--border); }
  .path-step:last-child { border-bottom: 0; }
  .step-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: 2px solid var(--border); color: var(--text-3); font-size: 14px; }
  .step-dot.done { background: var(--ok); border-color: var(--ok); color: #05130a; }
  .step-dot.now { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
  .level { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }

  /* Community */
  .thread-card { display: flex; flex-direction: column; gap: 8px; }
  .thread-card .tc-top { display: flex; gap: 8px; flex-wrap: wrap; }
  .thread-card .tc-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--border); }
  .cmt { border-top: 1px solid var(--border); padding: 16px 0 4px; }
  .cmt-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
  .cmt-h b { color: var(--text); }
  .cmt-t { margin: 8px 0 10px; color: var(--text); font-size: 15px; line-height: 1.7; }
  .mention { color: var(--accent); font-weight: 700; background: var(--accent-soft); border-radius: 6px; padding: 0 4px; }
  .rx-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .rx { border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--r-pill); padding: 4px 11px; font-size: 13px; color: var(--text-2); transition: border-color .2s, background .2s; }
  .rx:hover { border-color: var(--accent); }
  .rx.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
  .reply { margin: 10px 0 0 42px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
  .av-row { display: flex; gap: 8px; }
  .inline-box { margin: 12px 0 0 0; display: grid; gap: 8px; }
  .inline-box .btn-row { margin-top: 0; justify-content: flex-end; }
  .filters.small button { padding: 5px 12px; font-size: 12px; }

  /* Arena */
  .rank-head { display: none; }
  .rank-row { display: flex; align-items: center; gap: 12px; }
  .rank-row > span:nth-child(2) { flex: 1; }
  .rank-head { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
  .rank-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .rank-row:last-child { border-bottom: 0; }
  .pos { font-weight: 900; font-size: 17px; color: var(--text-3); text-align: center; }
  .pos.top { color: var(--accent); }
  .tier { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); margin-left: 6px; }
  .tier-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); }
  .tier-row.current { border-color: var(--accent); background: var(--accent-soft); }
  .tiers { display: grid; gap: 10px; }

  /* Profile / settings / auth / about */
  .stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; margin-top: 18px; }
  .stat3 b { display: block; font-size: 1.6rem; }
  .badge-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 900; margin-bottom: 8px; }
  .form-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: start; }
  .form-row:last-child { border-bottom: 0; }
  @media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
  .form-row .desc { font-size: 13px; color: var(--text-3); margin-top: 4px; }
  .switch { width: 44px; height: 24px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); position: relative; display: inline-block; cursor: pointer; }
  .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-2); transition: transform .2s; }
  .switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
  .switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--accent-ink); }
  .auth-wrap { max-width: 440px; margin: 0 auto; }
  .about-ph { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); font-size: 12px; font-weight: 700; flex: none; }
  .hr-or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--text-3); font-size: 12px; }
  .hr-or span.l { flex: 1; height: 1px; background: var(--border); }

  /* ---------- Landing page (v5) ---------- */
  #s-home { padding-top: 0; }
  .lp-hero { position: relative; overflow: hidden; padding: 56px 0 0; isolation: isolate; }
  .lp-hero::before { content: ""; position: absolute; left: -10%; right: -10%; top: -10%; height: 120%; z-index: -1;
    background: radial-gradient(45% 55% at 74% 45%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
    animation: aurora 14s ease-in-out infinite alternate; }
  @keyframes aurora { from { transform: translate3d(-2%,0,0) scale(1); } to { transform: translate3d(2%,-3%,0) scale(1.06); } }
  .lp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; min-height: 440px; }
  @media (max-width: 880px) { .lp-hero-grid { grid-template-columns: 1fr; } .lp-hero-grid .scene { order: -1; height: 300px; } }
  .lp-h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.06; letter-spacing: -.03em; margin: 18px 0 16px; }
  .grad { background: linear-gradient(90deg, var(--accent), var(--tech), var(--accent)); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradshift 5s linear infinite; }
  @keyframes gradshift { to { background-position: 200% 0; } }
  .scene { position: relative; width: min(420px, 92vw); height: 380px; perspective: 900px; justify-self: center; }
  .orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); }
  .o-a { width: 340px; height: 340px; margin: -170px 0 0 -170px; animation: orbitA 18s linear infinite; }
  .o-b { width: 270px; height: 270px; margin: -135px 0 0 -135px; border-style: dashed; border-color: color-mix(in srgb, var(--tech) 55%, transparent); animation: orbitB 12s linear infinite; }
  @keyframes orbitA { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }
  @keyframes orbitB { from { transform: rotateY(70deg) rotateX(10deg) rotateZ(0); } to { transform: rotateY(70deg) rotateX(10deg) rotateZ(-360deg); } }
  .cube { position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; margin: -80px 0 0 -80px; transform-style: preserve-3d; animation: cubeSpin 14s linear infinite; }
  @keyframes cubeSpin { from { transform: rotateX(-20deg) rotateY(0); } to { transform: rotateX(-20deg) rotateY(360deg); } }
  .cf { position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 48%, transparent), color-mix(in srgb, var(--tech) 14%, transparent));
    box-shadow: inset 0 0 28px color-mix(in srgb, var(--accent) 50%, transparent); }
  .cf.front { transform: translateZ(80px); } .cf.back { transform: rotateY(180deg) translateZ(80px); }
  .cf.right { transform: rotateY(90deg) translateZ(80px); } .cf.left { transform: rotateY(-90deg) translateZ(80px); }
  .cf.top { transform: rotateX(90deg) translateZ(80px); } .cf.bottom { transform: rotateX(-90deg) translateZ(80px); }
  .glass { position: absolute; padding: 8px 14px; border-radius: 14px; font-size: 13px; font-weight: 700; color: var(--text);
    background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--glow); animation: floaty 6s ease-in-out infinite; }
  .g1 { left: 0; top: 16%; } .g2 { right: -2%; top: 60%; animation-delay: 1.5s; } .g3 { left: 8%; bottom: 2%; animation-delay: 3s; }
  @keyframes floaty { 50% { transform: translateY(-12px); } }
  .ticker { margin-top: 44px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; white-space: nowrap;
    background: color-mix(in srgb, var(--surface) 60%, transparent); padding: 12px 0; font-size: 14px; color: var(--text-2); }
  .ticker-track { display: inline-flex; gap: 18px; animation: marquee 42s linear infinite; }
  .ticker-track span { display: inline-block; }
  .dot-sep { color: var(--accent); }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .lp-sec { margin-top: 72px; }
  .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  @media (max-width: 720px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
  .stat-card { text-align: center; padding: 26px 16px 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, transparent), var(--surface)); }
  .stat-card b { display: block; font-size: 2rem; letter-spacing: -.02em; margin: 16px 0 2px; }
  .ico3d { width: 80px; height: 80px; margin: 0 auto; border-radius: 22px; transform: rotateX(52deg) rotateZ(45deg);
    animation: bob 5s ease-in-out infinite; box-shadow: 0 22px 40px -12px var(--accent); border: 1px solid color-mix(in srgb, #fff 25%, transparent); }
  .ico3d.d0 { background: linear-gradient(135deg, var(--accent), var(--tech)); }
  .ico3d.d1 { background: linear-gradient(135deg, var(--tech), var(--accent)); }
  .ico3d.d2 { background: linear-gradient(135deg, #a78bfa, var(--tech)); }
  .ico3d.d3 { background: linear-gradient(135deg, var(--tech), #c084fc); }
  @keyframes bob { 50% { transform: rotateX(52deg) rotateZ(45deg) translateZ(10px); } }
  .feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
  @media (max-width: 880px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { .feat-grid { grid-template-columns: 1fr; } }
  .feat { position: relative; overflow: hidden; }
  .feat::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent); transition: transform .5s var(--ease); }
  .feat:hover::after { transform: scale(1.25); }
  .fi { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px; box-shadow: 0 12px 30px -8px var(--accent); transform: perspective(300px) rotateX(18deg) rotateY(-18deg); }
  .fi0 { background: linear-gradient(135deg, var(--accent), #c084fc); }
  .fi1 { background: linear-gradient(135deg, var(--tech), var(--accent)); }
  .fi2 { background: linear-gradient(135deg, #a78bfa, var(--tech)); }
  .fi3 { background: linear-gradient(135deg, #c084fc, var(--accent)); }
  .lp-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
  @media (max-width: 880px) { .lp-split { grid-template-columns: 1fr; } }
  .pillars { display: flex; align-items: flex-end; gap: 12px; height: 190px; margin-top: 22px; padding-bottom: 26px; }
  .pillar { flex: 1; position: relative; border-radius: 12px 12px 6px 6px; background: linear-gradient(180deg, var(--tech), var(--accent));
    transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
  .pillar span { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--text-3); }
  @keyframes grow { from { transform: scaleY(.1); } to { transform: scaleY(1); } }
  .cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 46px 28px; text-align: center; border: 1px solid var(--accent);
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 30%, var(--surface)), color-mix(in srgb, var(--tech) 14%, var(--surface))); }
  .cta-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(50% 80% at 50% 0%, color-mix(in srgb, #fff 14%, transparent), transparent 70%); }

  /* Bottom navigation (mobile) */
  .bottom-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; grid-template-columns: repeat(5, 1fr); gap: 4px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; font-size: 11px; color: var(--text-3); }
  .bottom-nav a .ic { font-size: 18px; line-height: 1.1; }
  .bottom-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
  @media (max-width: 880px) {
    .bottom-nav { display: grid; }
    body { padding-bottom: 76px; }
    .tools { gap: 6px; }
    .seg button { padding: 4px 8px; }
    .nav { gap: 10px; }
  }

  /* ---------- v6: layout, backgrounds, pagination, paths, responsive ---------- */
  body { padding-top: 64px; padding-bottom: 70px; }
  .screen { position: relative; }
  .screen > .wrap { position: relative; z-index: 1; }
  .deco { position: absolute; inset: -40px 0 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .lb { position: absolute; border-radius: 50%; filter: blur(100px); animation: drift 24s ease-in-out infinite alternate; }
  .lb1 { width: 620px; height: 620px; left: -160px; top: -180px; background: var(--accent); opacity: .32; }
  .lb2 { width: 520px; height: 520px; right: -180px; top: 22%; background: var(--tech); opacity: .18; animation-duration: 30s; }
  .lb3 { width: 460px; height: 460px; left: 30%; bottom: -220px; background: var(--accent); opacity: .18; animation-duration: 36s; }
  .beam { position: absolute; left: -20%; top: 34%; width: 140%; height: 1px; transform: rotate(-7deg);
    background: linear-gradient(90deg, transparent, var(--tech), transparent); opacity: .35; animation: beam 10s ease-in-out infinite; }
  @keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(70px,-50px,0) scale(1.12); } }
  @keyframes beam { 0%, 100% { opacity: .12; transform: rotate(-7deg) translateX(-4%); } 50% { opacity: .42; transform: rotate(-7deg) translateX(4%); } }
  .scene-img { width: min(460px, 92vw); height: auto !important; perspective: none; }
  .hero-img { width: 100%; display: block; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    box-shadow: 0 30px 80px -20px var(--accent); animation: floatImg 8s ease-in-out infinite; }
  @keyframes floatImg { 50% { transform: translateY(-10px); } }
  .ico-tile { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: var(--accent); margin: 0 auto 4px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--tech) 10%, transparent));
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 14px 34px -12px var(--accent); }
  .ico-tile svg { width: 30px; height: 30px; }
  .feat .ico-tile { margin: 0 0 16px; }
  .deco svg { width: 100%; height: 100%; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .to-top { position: fixed; right: 18px; bottom: 84px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--accent);
    background: var(--surface); color: var(--accent); font-size: 20px; box-shadow: var(--glow); opacity: 0; transform: translateY(12px);
    pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s; z-index: 65; }
  .to-top.show { opacity: 1; transform: none; pointer-events: auto; }
  .to-top:hover { background: var(--accent); color: var(--accent-ink); }
  .pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
  .pager button { min-width: 42px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
  .pager button:hover:not(:disabled) { border-color: var(--accent); }
  .pager button[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
  .pager button:disabled { opacity: .4; cursor: not-allowed; }
  .step-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
  .step-row:hover { border-color: var(--accent); transform: translateX(3px); }
  .step-row .step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: 2px solid var(--border); flex: none; }
  .step-row.done .step-n { background: var(--ok); border-color: var(--ok); color: #05130a; }
  .step-row.now .step-n { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
  .outcome { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; color: var(--text); }
  .core-sphere { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0, var(--tech) 18%, var(--accent) 55%, transparent 72%);
    box-shadow: 0 0 70px var(--accent); animation: pulseCore 3s ease-in-out infinite; }
  @keyframes pulseCore { 50% { transform: scale(.88); } }
  .ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
  .ringA { animation: ringA 22s linear infinite; }
  .ringB { animation: ringB 30s linear infinite; }
  @keyframes ringA { from { transform: rotateX(70deg) rotateY(0); } to { transform: rotateX(70deg) rotateY(360deg); } }
  @keyframes ringB { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(-360deg); } }
  .mc { position: absolute; left: -46px; top: -32px; width: 92px; height: 64px; border-radius: 12px; padding: 10px;
    display: flex; flex-direction: column; gap: 6px; background: color-mix(in srgb, var(--surface) 80%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 10px 30px -10px var(--accent); }
  .mc.m2 { background: color-mix(in srgb, var(--tech) 18%, var(--surface)); }
  .mc b { font-size: 11px; color: var(--text); font-weight: 800; }
  .mc i { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--tech)); opacity: .85; }
  .mc i:nth-of-type(2) { width: 70%; }
  .scene { transform-style: preserve-3d; }
  @media (max-width: 1024px) { .lp-hero-grid { gap: 20px; } .scene { height: 340px; } .feat-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 880px) {
    .mock-bar { display: none; }
    body { padding-top: 60px; padding-bottom: 70px; }
    .site-header .nav { height: 60px; }
    .lp-hero { padding-top: 32px; }
    .lp-hero-grid .scene { height: 300px; }
  }
  @media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .news-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 18px 10px; }
    .stat-card b { font-size: 1.4rem; }
    .feat-grid { grid-template-columns: 1fr; }
    .lp-h1 { font-size: 2.1rem; }
    .pillars { height: 150px; }
    .xp-pill { display: none; }
    .btn-row .btn { width: 100%; }
    .only-guest .chip { display: none; }
    .tools { gap: 4px; }
    .cta-band { padding: 32px 18px; }
    .to-top { bottom: 80px; right: 14px; }
  }
  @media (max-width: 380px) { .logo-img { height: 20px; } .seg button { padding: 4px 6px; } }

  /* ---------- Hero lamp: layered 3D with motion ---------- */
  .lamp { position: relative; width: min(640px, 100%); justify-self: end; perspective: 1100px;
    animation: lampFloat 9s ease-in-out infinite; }
  .lamp-plane { position: relative; transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s linear; }
  @keyframes lampFloat { 50% { transform: translateY(-14px); } }
  .lamp-img { display: block; width: 100%; height: auto; transform: translateZ(24px);
    -webkit-mask-image: radial-gradient(ellipse 72% 72% at 56% 50%, #000 62%, transparent 100%);
            mask-image: radial-gradient(ellipse 72% 72% at 56% 50%, #000 62%, transparent 100%);
    filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--accent) 35%, transparent)); }
  .lamp-glow { position: absolute; left: 22%; top: 30%; width: 60%; height: 60%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(168,120,255,.55), transparent 70%); filter: blur(24px);
    transform: translateZ(-60px); animation: breathe 6s ease-in-out infinite; }
  @keyframes breathe { 50% { opacity: .55; transform: translateZ(-60px) scale(1.08); } }
  .lamp-sheen { position: absolute; inset: 0; pointer-events: none; transform: translateZ(40px);
    background: linear-gradient(105deg, transparent 42%, rgba(235,222,255,.16) 50%, transparent 58%);
    background-size: 250% 100%; mix-blend-mode: screen; animation: sheen 7s ease-in-out infinite; }
  @keyframes sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }
  .lamp { translate: 0 var(--sy, 0px); }
  .lamp-fx { position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; pointer-events: none; z-index: 2; mix-blend-mode: screen; }
  @media (max-width: 880px) { .lamp { justify-self: center; width: min(520px, 100%); } }

  /* ---------- 3D motion layer in the hero ---------- */
  .field3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
  .field3d2 { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
  .lp-hero > .wrap { position: relative; z-index: 1; }

  /* ---------- Scroll animation ---------- */
  [data-reveal] { opacity: 0; transform: translate3d(0, 40px, 0); filter: blur(6px);
    transition: opacity .9s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms),
                filter .9s var(--ease) var(--d, 0ms), border-color .25s, box-shadow .25s; }
  [data-reveal].in { opacity: 1; transform: none; filter: none; }
  .showcase { position: relative; height: 260vh; margin-top: 90px; }
  .sc-sticky { position: sticky; top: 64px; height: calc(100vh - 64px); display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 30px; overflow: hidden; }
  @media (max-width: 880px) { .sc-sticky { grid-template-columns: 1fr; gap: 10px; } }
  .sc-text { display: grid; gap: 6px; }
  .sc-line { font-size: clamp(2rem, 4.6vw, 3.8rem); letter-spacing: -.025em; line-height: 1.1; margin: 0; color: var(--text); will-change: opacity, transform; }
  .sc-line.dim { color: var(--text-3); }
  .sc-visual { display: grid; place-items: center; }
  .sc-lamp { width: min(560px, 100%); will-change: transform; }
  .sc-ai { width: min(560px, 100%); aspect-ratio: 1 / 1; display: block; }

  /* ---------- Lamp 3D (WebGL) ---------- */
  .lamp3d { position: relative; width: min(680px, 100%); aspect-ratio: 1.1814; justify-self: end; margin-right: -4%; }
  .lamp3d::before { content: ""; position: absolute; left: 18%; top: 22%; width: 70%; height: 70%; border-radius: 50%; z-index: -1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent 75%);
    filter: blur(30px); animation: breathe 6s ease-in-out infinite; }
  [data-theme="light"] .lamp3d::before { background: radial-gradient(closest-side, rgba(124,82,255,.16), transparent 72%); }
  .lamp3d { isolation: isolate; }
  .lamp-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .lamp-fallback { display: none; width: 100%; height: auto; border-radius: 18px; }
  .lamp3d.no-gl .lamp-fallback { display: block; }
  .lamp3d.no-gl .lamp-gl { display: none; }
  @media (max-width: 880px) { .lamp3d { justify-self: center; width: min(520px, 100%); } }

  /* ---------- Hero ambient effect: blends with the lamp, quiet behind the text ---------- */
  .hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 50% 70% at 76% 38%, #000 30%, rgba(0,0,0,.5) 60%, transparent 90%);
            mask-image: radial-gradient(ellipse 50% 70% at 76% 38%, #000 30%, rgba(0,0,0,.5) 60%, transparent 90%); }
  .lp-hero-grid > div:first-child { position: relative; }
  .lp-hero-grid > div:first-child::before { content: ""; position: absolute; inset: -40px -60px -40px -80px; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 60% at 40% 50%, color-mix(in srgb, var(--bg) 70%, transparent), transparent 75%); }
  @media (max-width: 880px) {
    .hero-fx { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0,0,0,.15) 60%);
                       mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0,0,0,.15) 60%); }
  }

  /* Brand logo: white on dark, purple on light */
  .logo-img { height: 30px; width: auto; display: block; }
  .logo-light { display: none; }
  [data-theme="light"] .logo-dark { display: none; }
  [data-theme="light"] .logo-light { display: block; }
  @media (max-width: 600px) { .logo-img { height: 24px; } }

  footer.site-footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--text-3); font-size: 13px; }

  /* ================= v8 visual language: thin geometric type, deep violet, thin-line cards ================= */
  :root { --font: "Outfit", "Noto Sans Thai", "Noto Sans JP", system-ui, sans-serif; --r-lg: 16px; --r-md: 12px; }
  [data-theme="dark"] {
    --bg: #050309; --bg-2: #09060f; --surface: #0c0914; --surface-2: #141021;
    --border: rgba(167,139,250,.16); --text: #f4f2fa; --text-2: #c3bdd6; --text-3: #8a83a3;
    --accent: #9b6bff; --accent-ink: #ffffff; --accent-soft: rgba(155,107,255,.14); --tech: #c4b5fd;
    --glow: 0 0 0 1px rgba(155,107,255,.28), 0 14px 40px -14px rgba(155,107,255,.55);
  }
  [data-theme="light"] {
    --bg: #f7f5fc; --surface: #ffffff; --surface-2: #f1edfb; --border: rgba(91,63,184,.16);
    --accent: #5b2fd0; --accent-soft: rgba(91,47,208,.09); --tech: #7c3aed;
  }
  body { font-weight: 300; letter-spacing: .005em; }
  h1, h2, h3 { font-weight: 400; letter-spacing: -.01em; }
  h3 { font-weight: 500; }
  b, strong { font-weight: 600; }
  .eyebrow { font-weight: 500; letter-spacing: .22em; font-size: 11px; color: var(--accent); }
  .accent-word { color: var(--accent); font-weight: 600; }

  /* Hero headline: light + bold accent line, uppercase for Latin */
  .lp-h1 { font-weight: 300; font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.02em; }
  .lp-h1 .grad { font-weight: 600; }
  html[lang="en"] .lp-h1 { text-transform: uppercase; }
  .lead { font-weight: 300; color: var(--text-2); }

  /* Buttons: pill, violet gradient, arrow chip */
  .btn { background: linear-gradient(135deg, #7c4dff, #a855f7); color: #fff; border: 1px solid rgba(255,255,255,.14);
    font-weight: 500; letter-spacing: .01em; box-shadow: 0 10px 30px -12px rgba(155,107,255,.8); }
  .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--accent); box-shadow: none; }
  .btn.ghost:hover { background: var(--accent-soft); }
  .chip { font-weight: 400; }

  /* Cards: thin violet line, faint top glow */
  .card { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--surface)), var(--surface));
    border: 1px solid var(--border); }
  .card.hover:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
  .tag { font-weight: 500; }
  .news-card .nc-body h3 { font-weight: 500; }

  /* Header */
  .site-header { background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border); }
  .menu a { font-weight: 400; }
  .menu a[aria-current="page"] { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }

  /* Stat strip under the hero */
  .stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; }
  .ss-item { display: flex; gap: 14px; align-items: center; padding: 20px 22px; border-right: 1px solid var(--border); }
  .ss-item:last-child { border-right: 0; }
  .ss-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); flex: none;
    border: 1px solid var(--border); background: var(--accent-soft); }
  .ss-ico svg { width: 22px; height: 22px; }
  .ss-item b { display: block; font-size: 1.6rem; font-weight: 500; line-height: 1.1; color: var(--text); }
  .ss-item span.muted { font-size: 12.5px; }
  @media (max-width: 880px) { .stat-strip { grid-template-columns: 1fr 1fr; } .ss-item:nth-child(2) { border-right: 0; }
    .ss-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }
  @media (max-width: 420px) { .ss-item { padding: 16px 14px; gap: 10px; } .ss-ico { width: 38px; height: 38px; } .ss-item b { font-size: 1.25rem; } }

  /* Centered section headings */
  .sec-center { text-align: center; margin-bottom: 26px; }
  .sec-center h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 300; margin-top: 8px; }
  .sec-head h2 { font-weight: 300; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
  .lp-sec { margin-top: 96px; }

  /* Feature cards: icon top-left, compact like a service row */
  .feat { padding: 22px 20px; }
  .feat h3 { margin-top: 2px; }

  /* CTA with a glowing portal ring */
  .cta-band { text-align: left; padding: 44px 48px; background: linear-gradient(110deg, var(--surface) 30%, color-mix(in srgb, var(--accent) 22%, var(--surface)));
    border: 1px solid var(--border); }
  .cta-band h2 { font-weight: 300; }
  .cta-band p { margin: 0 0 18px !important; }
  .cta-band::before { content: ""; position: absolute; right: 8%; top: 50%; width: 170px; height: 170px; margin-top: -85px; border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--tech) 85%, #fff); box-shadow: 0 0 40px var(--accent), inset 0 0 40px var(--accent);
    animation: ringPulse 4s ease-in-out infinite; }
  @keyframes ringPulse { 50% { box-shadow: 0 0 70px var(--accent), inset 0 0 60px var(--accent); transform: scale(1.04); } }
  @media (max-width: 720px) { .cta-band { padding: 34px 22px 180px; } .cta-band::before { right: 50%; margin-right: -70px; top: auto; bottom: 24px; margin-top: 0; width: 140px; height: 140px; } }
  @media (prefers-reduced-motion: reduce) { .cta-band::before { animation: none; } }

  /* Footer: four columns + newsletter */
  footer.site-footer { padding: 54px 0 26px; background: var(--bg-2, var(--bg)); }
  .ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 30px; }
  @media (max-width: 880px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { .ft-grid { grid-template-columns: 1fr; } }
  .ft-grid h4 { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--text); }
  .ft-grid a { display: block; padding: 4px 0; color: var(--text-3); font-size: 13.5px; }
  .ft-grid a:hover { color: var(--accent); }
  .ft-blurb { font-size: 13.5px; color: var(--text-3); margin: 14px 0 16px; max-width: 280px; }
  .ft-social { display: flex; gap: 8px; }
  .ft-social span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: var(--accent); font-size: 12px; font-weight: 600; }
  .ft-news { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: var(--surface); }
  .ft-news p { font-size: 13px; margin: 0 0 12px; }
  .ft-form { display: flex; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 4px; background: var(--surface-2); }
  .ft-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 12px; font-size: 13px; outline: none; }
  .ft-form button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #7c4dff, #a855f7); color: #fff; }
  .ft-bottom { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 18px; text-align: center; font-size: 12.5px; color: var(--text-3); }

  /* Showcase globe + multilingual chat bubbles */
  .sc-globe { position: relative; width: min(600px, 100%); }
  .sc-globe .sc-ai { width: 100%; }
  .sc-bubble { position: absolute; display: flex; gap: 10px; align-items: center; padding: 9px 14px 9px 9px; border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px -14px rgba(60,30,140,.45); opacity: 0; white-space: nowrap; z-index: 2; }
  .sc-bubble b { display: block; font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.3; }
  .sc-bubble small { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; }
  .sc-bubble .bi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--accent);
    background: var(--accent-soft); font-size: 11px; font-weight: 600; flex: none; }
  .sc-bubble .bi svg { width: 16px; height: 16px; }
  .sc-bubble.mini { padding: 6px 10px; }
  .sc-bubble.mini .bi { width: auto; background: none; height: auto; }
  .b1 { left: 0; top: 10%; } .b2 { right: 0; top: 24%; } .b3 { right: 2%; bottom: 30%; }
  .b4 { left: 6%; bottom: 34%; } .b5 { display: none; }
  @media (max-width: 600px) { .sc-bubble { padding: 7px 10px 7px 7px; } .sc-bubble b { font-size: 12px; } .b4 { display: none; } }

  /* ================= Showcase: 3D polygon globe from Asset_1.svg ================= */
  .poly3d { position: relative; width: 100%; aspect-ratio: 1 / 1; perspective: 1100px; }
  .p3-canvas { position: absolute; inset: 2%; width: 96%; height: 96%; z-index: 1; }
  .p3-stage { position: absolute; inset: 9%; transform-style: preserve-3d;
    transform: rotateX(6deg);
    transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .p3-stage > * { position: absolute; inset: 0; }
  .p3-layer { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
  .p3-facets { -webkit-mask-image: var(--p3fac); mask-image: var(--p3fac);
    background: linear-gradient(125deg, var(--p3a), var(--p3b) 30%, var(--p3c) 50%, var(--p3d) 70%, var(--p3a));
    background-size: 300% 300%; animation: p3shift 12s ease-in-out infinite, p3sway 14s ease-in-out infinite; }
  .p3-sheen { -webkit-mask-image: var(--p3fac); mask-image: var(--p3fac); transform: translateZ(8px);
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.85) 50%, transparent 60%);
    background-size: 260% 100%; mix-blend-mode: screen; opacity: .55; animation: p3scan 6s ease-in-out infinite, p3sway 14s ease-in-out infinite; }
  .p3-nodes-wrap { transform: translateZ(36px); filter: drop-shadow(0 0 3px var(--p3n)) drop-shadow(0 0 10px var(--p3c)); animation: p3sway 14s ease-in-out infinite; }
  .p3-nodes { position: absolute; inset: 0; -webkit-mask-image: var(--p3nod); mask-image: var(--p3nod);
    background: radial-gradient(circle at var(--sx, 30%) var(--sy, 30%), #fff 0, var(--p3n) 18%, var(--p3c) 45%, var(--p3b) 80%);
    animation: p3pulse 3.4s ease-in-out infinite; }
  .p3-glow { transform: translateZ(-80px) scale(1.05); border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--p3b) 55%, transparent), color-mix(in srgb, var(--p3a) 18%, transparent) 60%, transparent 76%);
    filter: blur(18px); animation: breathe 6s ease-in-out infinite; }
  .p3-ring { border-radius: 50%; inset: -6% !important; border: 1px solid color-mix(in srgb, var(--p3c) 55%, transparent); transform-style: preserve-3d; }
  .p3-r1 { transform: rotateX(74deg) rotateZ(0); animation: p3spin 22s linear infinite; }
  .p3-r2 { inset: 4% !important; border-style: dashed; border-color: color-mix(in srgb, var(--p3n) 50%, transparent);
    transform: rotateY(68deg) rotateX(18deg); animation: p3spin2 30s linear infinite; }
  .p3-ring i { position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--p3n);
    box-shadow: 0 0 8px var(--p3n); }
  .p3-ring i:nth-child(1) { left: 50%; top: 0; } .p3-ring i:nth-child(2) { left: 100%; top: 50%; } .p3-ring i:nth-child(3) { left: 14.6%; top: 85.4%; }
  .p3-base { position: absolute; left: 22%; right: 22%; bottom: -2%; height: 9%; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--p3b) 45%, transparent), transparent);
    filter: blur(6px); animation: breathe 6s ease-in-out infinite; }
  @keyframes p3shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
  @keyframes p3scan { 0% { background-position: 160% 0; } 60%, 100% { background-position: -60% 0; } }
  @keyframes p3pulse { 50% { opacity: .7; } }
  @keyframes p3sway { 50% { translate: 0 -10px; } }
  @keyframes p3spin { to { transform: rotateX(74deg) rotateZ(360deg); } }
  @keyframes p3spin2 { to { transform: rotateY(68deg) rotateX(18deg) rotateZ(-360deg); } }
  [data-theme="dark"] .poly3d { --p3a: #5b21b6; --p3b: #8b5cf6; --p3c: #a78bfa; --p3d: #7ef0d2; --p3n: #9b6bff; }
  [data-theme="light"] .poly3d { --p3a: #3b1a9e; --p3b: #5b2fd0; --p3c: #8b5cf6; --p3d: #0f8b86; --p3n: #7c3aed; }
  [data-theme="light"] .p3-sheen { mix-blend-mode: normal; opacity: .35; }
  @media (prefers-reduced-motion: reduce) { .p3-stage, .p3-stage *, .p3-base { animation: none !important; transition: none !important; } }

  /* CTA emblem: Asset_1 globe at 45% opacity, MAHŌNO emblem in the centre */
  .cta-band::before { content: none !important; }
  .cta-band > :not(.cta-emblem) { position: relative; z-index: 1; }
  .cta-emblem { position: absolute; right: 7%; top: 50%; width: 210px; height: 210px; margin-top: -105px; pointer-events: none; }
  .cta-globe { position: absolute; inset: 0; opacity: .45;
    -webkit-mask: url("../img/globe-mask.svg") center / contain no-repeat; mask: url("../img/globe-mask.svg") center / contain no-repeat;
    background: linear-gradient(135deg, #5b21b6, #8b5cf6 45%, #a78bfa 70%, #5b21b6); background-size: 250% 250%;
    animation: ctaSpin 60s linear infinite, p3shift 10s ease-in-out infinite; }
  .cta-logo { position: absolute; left: 50%; top: 50%; width: 46%; height: auto; transform: translate(-50%, -50%);
    filter: drop-shadow(0 8px 22px rgba(124,77,255,.45)); animation: ctaFloat 6s ease-in-out infinite; }
  @keyframes ctaSpin { to { rotate: 360deg; } }
  @keyframes ctaFloat { 50% { transform: translate(-50%, -54%); } }
  @media (max-width: 720px) { .cta-emblem { right: 50%; margin-right: -80px; top: auto; bottom: 18px; margin-top: 0; width: 160px; height: 160px; } }
  @media (prefers-reduced-motion: reduce) { .cta-globe, .cta-logo { animation: none; } }

  /* Showcase lines: digital gradient text */
  .sc-line, .sc-line.dim {
    background: linear-gradient(90deg, var(--sc-g1) 0%, var(--sc-g2) 35%, var(--sc-g3) 65%, var(--sc-g1) 100%);
    background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-fill-color: transparent; animation: gradshift 7s linear infinite; padding-bottom: .08em; }
  .sc-line[data-sc="1"] { animation-delay: -2.3s; }
  .sc-line[data-sc="2"] { animation-delay: -4.6s; }
  [data-theme="dark"] .showcase { --sc-g1: #f4f2fa; --sc-g2: #c4b5fd; --sc-g3: #9b6bff; }
  [data-theme="light"] .showcase { --sc-g1: #1d1240; --sc-g2: #5b2fd0; --sc-g3: #8b5cf6; }
  @media (prefers-reduced-motion: reduce) { .sc-line { animation: none; } }

  /* Bubbles: gradient outline */
  .sc-bubble { border-color: transparent !important; }
  .sc-bubble::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: linear-gradient(120deg, #7c4dff, #c4b5fd, #6ee7c8, #9b6bff, #7c4dff); background-size: 300% 300%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: p3shift 6s ease-in-out infinite; }
  [data-theme="light"] .sc-bubble::before { background: linear-gradient(120deg, #5b2fd0, #8b5cf6, #0f8b86, #7c3aed, #5b2fd0); background-size: 300% 300%; }

  /* Mobile: no pinned scroll section; text and globe sit close together */
  @media (max-width: 880px) {
    .showcase { height: auto; margin-top: 56px; }
    .sc-sticky { position: relative; top: auto; height: auto; overflow: visible; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
    .sc-line { opacity: 1 !important; transform: none !important; font-size: clamp(1.7rem, 7.4vw, 2.3rem); }
    .sc-visual { margin-top: 4px; }
    .sc-globe { width: min(360px, 88vw); margin: 0 auto; }
    .sc-bubble { padding: 6px 10px 6px 6px; border-radius: 12px; }
    .sc-bubble b { font-size: 11.5px; }
    .sc-bubble small { font-size: 10px; }
    .sc-bubble .bi { width: 24px; height: 24px; }
    .b1 { left: -2%; top: 6%; } .b2 { right: -2%; top: 30%; } .b3 { right: 0; bottom: 18%; }
  }

  /* Mobile: centre the lamp (its body sits right of centre inside the artwork) */
  @media (max-width: 880px) {
    .lamp3d { justify-self: center; margin: 0 auto !important; width: min(460px, 108%); translate: -9% 0; }
  }
  /* Thinner bubble outline */
  .sc-bubble::before { padding: 1px !important; opacity: .75; }

  /* One icon style everywhere: 24px grid, 1.8px rounded line */
  .ic-s { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
  .ic-row { display: inline-flex; align-items: center; gap: .4em; }
  .ic-row .ic-s { vertical-align: 0; }
  .rx { display: inline-flex; align-items: center; gap: .4em; }
  .ic-n { width: 22px; height: 22px; display: block; margin: 0 auto; }
  .bottom-nav a .ic { line-height: 0; }
  .step-dot .ic-s, .tag .ic-s { width: 1em; height: 1em; }
  #themeBtn { display: inline-grid; place-items: center; }
  #themeBtn .ic-s { width: 18px; height: 18px; vertical-align: 0; }
  .badge-ico .ic-s { width: 20px; height: 20px; vertical-align: 0; }

  /* Community: on phones and tablets the "new thread" box comes before the list */
  @media (max-width: 880px) {
    .comm-split > .comm-aside { order: -1; }
    .comm-aside .card { margin-bottom: 4px !important; padding: 16px; }
    .comm-aside textarea.field { min-height: 64px; }
  }

  /* Showcase points: number, gradient headline, explanation, proof chip, next step */
  .sc-text { gap: 14px; }
  .sc-item { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 18px 18px 18px 14px; border-radius: 16px;
    border: 1px solid transparent; transition: background .4s, border-color .4s, box-shadow .4s; will-change: opacity, transform; }
  .sc-item.on { background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: var(--border);
    box-shadow: 0 18px 40px -26px var(--accent); }
  .sc-num { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--accent); padding-top: .9em;
    border-top: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); height: fit-content; transition: border-color .4s; }
  .sc-item.on .sc-num { border-top-color: var(--accent); }
  .sc-item .sc-line { font-size: clamp(1.6rem, 3.2vw, 2.5rem); margin: 0 0 8px; }
  .sc-desc { font-size: 15px; line-height: 1.7; margin: 0 0 12px; max-width: 520px; color: var(--text-2); }
  .sc-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
  .sc-proof { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text);
    padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--border); }
  .sc-proof svg { width: 16px; height: 16px; color: var(--accent); }
  .sc-link { font-size: 14px; font-weight: 500; color: var(--accent); }
  .sc-link:hover { text-decoration: underline; text-underline-offset: 4px; }
  @media (max-width: 880px) {
    .sc-item { opacity: 1 !important; transform: none !important; padding: 14px 12px; grid-template-columns: 34px 1fr; gap: 10px;
      background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: var(--border); }
    .sc-item .sc-line { font-size: clamp(1.35rem, 6vw, 1.8rem); }
    .sc-desc { font-size: 14px; }
  }
  @media (min-width: 881px) and (max-height: 780px) {
    .sc-item { padding: 12px 14px 12px 10px; } .sc-item .sc-line { font-size: 1.6rem; margin-bottom: 4px; }
    .sc-desc { font-size: 13.5px; margin-bottom: 8px; } .sc-text { gap: 8px; }
  }
