/* NEVIO concept v4 — neutral black, one blue→violet light source, gradient hairline borders (Raycast), two-tone type (Attio). */
@font-face { font-family: Manrope; src: url('/static/design/Manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #07080a; --bg-2: #0a0b0e; --s1: #0e0f13; --s2: #13141a; --s3: #1a1b22; --s4: #22232c;
  --line: #ffffff0f; --line-2: #ffffff17; --line-3: #ffffff26;
  --text: #f4f5f8; --text-2: #aeb1bc; --muted: #868a96; --faint: #4c505b;
  --blue: #4f7cff; --violet: #7c5cff; --sky: #a5b8ff; --lav: #bcb0ff;
  --grad: linear-gradient(100deg, #4f7cff 0%, #7c5cff 100%);
  --green: #3fd99a; --amber: #f2b84b;
  --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --mono: ui-monospace, 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
  /* gradient hairline: brighter at the top edge */
  --hair: linear-gradient(180deg, #ffffff24, #ffffff0a 40%, #ffffff06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #2a2c34 var(--bg); }
html.tg-mode { scrollbar-width: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* film grain — makes flat black feel like a material */
body::after { content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045; background-image: url("/static/design/grain.svg"); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
::selection { background: #4f7cff55; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { position: relative; max-width: 1160px; margin: 0 auto; padding: 0 32px; }
main { position: relative; z-index: 1; }

/* Hairline card: gradient border via two backgrounds */
.hair { border: 1px solid transparent; background: linear-gradient(var(--card-bg, var(--s1)), var(--card-bg, var(--s1))) padding-box, var(--hair) border-box; box-shadow: inset 0 1px 0 #ffffff08, 0 24px 48px -32px #000; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 60; padding: 12px 16px 0; }
.bar { display: flex; align-items: center; gap: 6px; max-width: 1000px; margin: 0 auto; height: 54px; padding: 0 7px 0 16px; border-radius: 14px; border: 1px solid transparent; background: linear-gradient(#0d0e12d9, #0d0e12d9) padding-box, var(--hair) border-box; backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 18px 40px -26px #000; }
.bar .logo { display: flex; align-items: center; }
.bar .logo img { height: 19px; width: auto; }
.bar nav { display: flex; gap: 2px; margin-left: 22px; }
.bar nav a { padding: 7px 11px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .2s, background .2s; }
.bar nav a:hover { color: var(--text); background: #ffffff09; }
.bar nav a[aria-current] { color: var(--text); }
.bar .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: 10px; border: 1px solid transparent; background: linear-gradient(var(--s2), var(--s2)) padding-box, var(--hair) border-box; color: var(--text); font-size: 14.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), filter .2s, box-shadow .25s; }
.btn:hover { filter: brightness(1.18); }
.btn.primary { background: linear-gradient(180deg, #ffffff, #e6e8f0); color: #07080a; box-shadow: inset 0 -1px 0 #00000022, 0 8px 26px -10px #8aa2ffaa; }
.btn.primary:hover { filter: none; transform: translateY(-1px); box-shadow: inset 0 -1px 0 #00000022, 0 12px 34px -10px #8aa2ffdd; }
.btn.accent { border: 0; background: var(--grad); color: #fff; box-shadow: inset 0 1px 0 #ffffff40, 0 10px 28px -12px #5a6cffcc; }
.btn.accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: #ffffff0a; filter: none; }
.btn.lg { height: 46px; padding: 0 20px; font-size: 15.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; filter: none; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 700; font-size: 14.5px; transition: color .2s; }
.link:hover { color: var(--text); }
.link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.kicker svg { width: 14px; height: 14px; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; }
.display { font-size: clamp(42px, 6.6vw, 80px); line-height: .98; letter-spacing: -.05em; font-weight: 800; }
.h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.h3 { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.dim { color: var(--muted); }
.lead { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 32em; }
.mono { font-family: var(--mono); }

/* ---------- Sections ---------- */
.sec { padding: 72px 0; position: relative; }
.sec.tight { padding: 56px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.sec-head > div { max-width: 800px; }
.sec-head .kicker { margin-bottom: 14px; }
.sec-head .sub { margin: 10px 0 0; color: var(--text-2); font-size: 16.5px; }
.center { text-align: center; }

/* ---------- Chips ---------- */
.state { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state.on { color: var(--green); background: #3fd99a14; }
.state.soon { color: var(--text-2); background: #ffffff0b; }
.pill-meta { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; background: #ffffff09; font: 600 12px var(--mono); color: var(--text-2); }

/* ---------- Plugin icon tiles ---------- */
.pi { --c1: #4f7cff; --c2: #2741c4; position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 #ffffff40, inset 0 -1px 0 #00000033; }
.pi svg { width: 21px; height: 21px; }
.pi.sm { width: 32px; height: 32px; border-radius: 9px; } .pi.sm svg { width: 16px; height: 16px; }
.pi.lg { width: 64px; height: 64px; border-radius: 18px; } .pi.lg svg { width: 30px; height: 30px; }
.pi.xl { width: 84px; height: 84px; border-radius: 23px; } .pi.xl svg { width: 40px; height: 40px; }
.t-blue { --c1: #5b84ff; --c2: #2f4bd1; --tint: #4f7cff; }
.t-indigo { --c1: #6b74ff; --c2: #3a3fb8; --tint: #6b74ff; }
.t-violet { --c1: #8a6bff; --c2: #5233cc; --tint: #7c5cff; }
.t-cyan { --c1: #45b2ff; --c2: #2167cf; --tint: #45b2ff; }
.t-sky { --c1: #7ea4ff; --c2: #3f5ccf; --tint: #7ea4ff; }
.t-purple { --c1: #a46bff; --c2: #6431c8; --tint: #a46bff; }
.t-deep { --c1: #4d63e6; --c2: #252f8f; --tint: #4d63e6; }

/* ---------- Keycap cluster (catalog hero) ---------- */
.streaks { position: absolute; left: 50%; top: -140px; width: 1400px; height: 760px; translate: -50% 0; pointer-events: none; mask-image: radial-gradient(60% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000 30%, transparent 75%); }
.streaks i { position: absolute; top: 0; height: 120px; width: 900px; border-radius: 120px; filter: blur(34px); opacity: .55; transform: rotate(-32deg); background: linear-gradient(90deg, transparent, var(--c, #4f7cff) 45%, transparent); animation: drift 14s ease-in-out infinite alternate; }
.streaks i:nth-child(1) { left: 180px; top: 120px; --c: #3f63ff; }
.streaks i:nth-child(2) { left: 380px; top: 200px; --c: #6d4dff; animation-delay: -4s; height: 90px; }
.streaks i:nth-child(3) { left: 560px; top: 100px; --c: #2f56e8; animation-delay: -8s; opacity: .4; }
.streaks i:nth-child(4) { left: 300px; top: 330px; --c: #8a6bff; height: 60px; opacity: .3; animation-delay: -2s; }
@keyframes drift { to { translate: 60px -30px; } }
.cluster { position: relative; height: 300px; width: 760px; left: 50%; translate: -50% 0; }
.key { position: absolute; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 24px; border: 1px solid transparent; background: linear-gradient(170deg, #1b1c22, #0e0f13) padding-box, linear-gradient(180deg, #ffffff2e, #ffffff08 50%, #ffffff04) border-box; box-shadow: inset 0 1px 0 #ffffff12, 0 26px 40px -18px #000, 0 2px 0 #00000080; animation: float 6s ease-in-out infinite; transition: transform .3s var(--ease); }
.key .pi { width: 52px; height: 52px; border-radius: 14px; } .key .pi svg { width: 25px; height: 25px; }
.key.dim { filter: blur(1.5px) brightness(.55); }
.key.far { filter: blur(3px) brightness(.35); }
.key.main { width: 128px; height: 128px; border-radius: 32px; z-index: 2; box-shadow: inset 0 1px 0 #ffffff1a, 0 30px 60px -20px #000, 0 0 80px -10px #4f6bff99; animation-duration: 7s; }
.key.main svg { width: 70px; height: auto; overflow: visible; }
@keyframes float { 50% { transform: translateY(-8px); } }
.cta-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Start steps ---------- */
.start { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.start > li { position: relative; padding: 12px 12px 20px; border-radius: 20px; border: 1px solid transparent; background: linear-gradient(var(--s1), var(--s1)) padding-box, var(--hair) border-box; }
.start .vis { position: relative; height: 136px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 13px; background: radial-gradient(70% 90% at 50% 0%, #4f7cff17, transparent 70%), #0a0b0f; border: 1px solid var(--line); overflow: hidden; }
.start .n { display: block; padding: 0 8px; font: 700 11.5px var(--mono); color: var(--sky); letter-spacing: .08em; }
.start li > b { display: block; margin-top: 6px; padding: 0 8px; font-size: 17px; letter-spacing: -.02em; }
.start p { margin: 4px 0 0; padding: 0 8px; color: var(--muted); font-size: 14px; }
.v-find { width: 84%; display: grid; gap: 6px; }
.v-search { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 9px; background: #15161c; border: 1px solid #ffffff1c; font-size: 12px; font-weight: 700; }
.v-search svg { width: 13px; height: 13px; color: var(--muted); }
.v-search .typed { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; border-right: 1.5px solid var(--sky); padding-right: 1px; animation: typing 5s steps(8) infinite; }
@keyframes typing { 0%, 8% { max-width: 0; } 38%, 88% { max-width: 64px; } 100% { max-width: 0; } }
.v-hit { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; border: 1px solid transparent; font-size: 12px; font-weight: 700; color: var(--text-2); }
.v-hit .pi.sm { width: 24px; height: 24px; border-radius: 7px; } .v-hit .pi.sm svg { width: 12px; height: 12px; }
.v-hit em { margin-left: auto; font: 700 11px var(--mono); font-style: normal; color: var(--muted); }
.v-hit.on { background: #4f7cff17; border-color: #4f7cff38; color: var(--text); animation: hit 5s var(--ease) infinite; }
.v-hit.on em { color: var(--text); }
.v-hit:not(.on) { opacity: .5; }
@keyframes hit { 0%, 36% { opacity: .35; } 44%, 90% { opacity: 1; } 100% { opacity: .35; } }
.v-paid { position: relative; width: 84%; padding: 12px; border-radius: 12px; background: #15161c; border: 1px solid #ffffff1c; }
.v-paid .row { display: flex; align-items: center; gap: 9px; }
.v-paid b { display: block; font-size: 12.5px; } .v-paid small { font-size: 11px; color: var(--muted); }
.v-paid strong { margin-left: auto; font-size: 15px; letter-spacing: -.02em; }
.v-paid .stamp { position: absolute; right: 10px; bottom: -13px; display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 10px; border-radius: 999px; background: #0d2a1f; border: 1px solid #3fd99a59; color: var(--green); font-size: 11.5px; font-weight: 800; animation: stamp 5s var(--ease) infinite; }
.v-paid .stamp svg { width: 12px; height: 12px; stroke-width: 2.6; }
@keyframes stamp { 0%, 22% { opacity: 0; transform: scale(1.3); } 32%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.v-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.v-drop .file, .v-drop .folder { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 10px; background: #15161c; border: 1px solid #ffffff1c; font: 700 11px var(--mono); }
.v-drop svg { width: 14px; height: 14px; color: var(--sky); }
.v-drop .arr svg { width: 13px; height: 13px; color: var(--muted); transform: rotate(90deg); }
.v-drop .file { animation: drop 5s var(--ease) infinite; }
.v-drop .folder { animation: folder 5s var(--ease) infinite; }
@keyframes drop { 0%, 18% { transform: none; opacity: 1; } 46% { transform: translateY(46px) scale(.7); opacity: 0; } 47%, 62% { transform: none; opacity: 0; } 78%, 100% { opacity: 1; } }
@keyframes folder { 0%, 36%, 70%, 100% { border-color: #ffffff1c; box-shadow: none; } 46%, 60% { border-color: #8fa5ff99; box-shadow: 0 0 0 4px #4f7cff1f; } }
.v-chat { width: 86%; display: flex; flex-direction: column; gap: 6px; }
.v-chat .me { align-self: flex-end; padding: 5px 9px; border-radius: 10px 10px 3px 10px; background: #2b5278; color: #e8f2ff; font: 600 11px var(--mono); }
.v-chat .bot { align-self: flex-start; padding: 7px 10px; border-radius: 10px 10px 10px 3px; background: #182533; color: #e8eef4; font-size: 11px; line-height: 1.5; animation: reply 5s var(--ease) infinite; }
.v-chat .bot b { display: block; color: #fff; font-size: 11.5px; }
@keyframes reply { 0%, 26% { opacity: 0; transform: translateY(6px); } 36%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 0; font-size: 16.5px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 300; font-size: 24px; line-height: 1; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 20px; color: var(--text-2); max-width: 44em; }

/* ---------- Final CTA ---------- */
.final { position: relative; margin: 8px auto 0; max-width: 1160px; padding: 40px 24px 96px; text-align: center; overflow: hidden; }
.final::before { content: ''; position: absolute; left: 50%; top: 34%; width: 640px; height: 420px; translate: -50% -50%; background: radial-gradient(closest-side, #4f6bff26, transparent); pointer-events: none; }
.final .h2 { position: relative; max-width: 15em; margin: 58px auto 0; }
.final .lead { position: relative; margin: 14px auto 0; }
.final .cta-row { position: relative; }
.dm .draw { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.dm .fillp { opacity: 0; }
.dm.go .draw { animation: draw 1.6s var(--ease) forwards; }
.dm.go .draw.d2 { animation-delay: .35s; }
.dm.go .fillp { animation: fillin 1s var(--ease) 1.3s forwards; }
.dm.go .glow { animation: glow 4s ease-in-out 2.2s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { opacity: 1; } }
@keyframes glow { 50% { filter: drop-shadow(0 0 18px #6b7bffaa); } }

/* ---------- Footer ---------- */
.site-foot { position: relative; z-index: 1; margin-top: 64px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding: 48px 0 32px; }
.foot-grid img { height: 19px; width: auto; margin-bottom: 14px; }
.foot-grid p { margin: 0; color: var(--muted); font-size: 14px; max-width: 24em; }
.foot-grid h4 { margin: 0 0 12px; font-size: 13px; color: var(--text); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); font-size: 14px; transition: color .2s; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 36px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* ---------- Inner page header ---------- */
.page-head { padding: 56px 0 30px; position: relative; }
.page-head .kicker { margin-bottom: 14px; }
.page-head .lead { margin-top: 14px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 13px; height: 13px; }

/* ---------- Catalog (Raycast Store) ---------- */
.store-hero { position: relative; text-align: center; padding: 40px 0 28px; overflow: hidden; }
.store-hero .cluster { height: 270px; transform: scale(.78); transform-origin: 50% 0; margin-bottom: -50px; }
.store-hero .lead { margin: 12px auto 0; }
.search { position: relative; display: block; max-width: 460px; margin: 26px auto 0; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--muted); }
.search input { width: 100%; height: 46px; padding: 0 64px 0 42px; border-radius: 12px; border: 1px solid transparent; background: linear-gradient(var(--s1), var(--s1)) padding-box, var(--hair) border-box; color: var(--text); font-size: 15px; transition: box-shadow .2s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; box-shadow: 0 0 0 3px #4f7cff40; }
.search kbd { position: absolute; right: 10px; top: 50%; translate: 0 -50%; font: 700 11px var(--mono); padding: 4px 7px; border-radius: 6px; background: #ffffff0d; color: var(--muted); }
.shelf { padding: 34px 0 0; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.shelf-head b { font-size: 18px; letter-spacing: -.02em; }
.shelf-head span { color: var(--muted); font-size: 14px; }
.scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sc { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 20px 20px; border-radius: var(--r-lg); border: 1px solid transparent; background: radial-gradient(70% 50% at 50% 0%, color-mix(in srgb, var(--tint, #4f7cff) 12%, transparent), transparent 70%) padding-box, linear-gradient(var(--s1), var(--s1)) padding-box, var(--hair) border-box; transition: transform .3s var(--ease); }
.sc:hover { transform: translateY(-3px); }
.sc.hidden { display: none; }
.sc .ring { padding: 7px; border-radius: 20px; background: color-mix(in srgb, var(--tint, #4f7cff) 14%, #0e0f13); border: 1px solid color-mix(in srgb, var(--tint, #4f7cff) 26%, transparent); }
.sc .pi { width: 52px; height: 52px; border-radius: 14px; } .sc .pi svg { width: 25px; height: 25px; }
.sc .kicker { margin-top: 16px; font-size: 10.5px; color: var(--muted); }
.sc h3 { margin-top: 6px; font-size: 18px; letter-spacing: -.02em; }
.sc p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.sc-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; }
.sc .card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.sc .btn { position: relative; z-index: 2; }
.sc .price { font-size: 22px; }
.sc.big { grid-column: span 3; flex-direction: row; text-align: left; align-items: center; gap: 26px; padding: 26px; background: radial-gradient(60% 120% at 0% 0%, #4f7cff26, transparent 60%) padding-box, linear-gradient(var(--s1), var(--s1)) padding-box, linear-gradient(180deg, #7f9bff55, #ffffff08 50%) border-box; }
.sc.big .ring { padding: 9px; border-radius: 26px; }
.sc.big .pi { width: 76px; height: 76px; border-radius: 20px; } .sc.big .pi svg { width: 36px; height: 36px; }
.sc.big .body { flex: 1; }
.sc.big .kicker { margin-top: 0; }
.sc.big h3 { font-size: 26px; }
.sc.big .sc-foot { width: auto; margin: 0; padding: 0; flex-direction: column; align-items: flex-end; gap: 12px; }
.sc.big .price { font-size: 32px; }
.empty { display: none; padding: 60px 20px; text-align: center; border: 1px dashed var(--line-3); border-radius: var(--r-lg); margin-top: 28px; }
.empty.show { display: block; }
.empty .pi { margin: 0 auto 16px; background: var(--s3); }
.empty b { display: block; font-size: 18px; }
.empty p { margin: 6px 0 16px; color: var(--muted); }

/* ---------- Plugin page ---------- */
.p-hero { display: flex; align-items: center; gap: 22px; }
.p-hero .h2 { font-size: clamp(36px, 4.6vw, 56px); }
.p-hero p { margin: 6px 0 0; color: var(--text-2); font-size: 17px; max-width: 40em; }
.p-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.p-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-bottom: 40px; }
.p-main > section { padding: 30px 0; border-top: 1px solid var(--line); }
.p-main > section:first-child { border-top: 0; padding-top: 0; }
.p-main .kicker { margin-bottom: 16px; }
.p-main .about p { margin: 0 0 12px; color: var(--text-2); font-size: 16px; max-width: 42em; }
.p-main .about p:first-of-type { color: var(--text); font-size: 18.5px; font-weight: 600; letter-spacing: -.01em; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.point { padding: 18px; border-radius: var(--r); }
.point svg { width: 19px; height: 19px; color: var(--sky); }
.point b { display: block; margin: 10px 0 3px; font-size: 15px; }
.point p { margin: 0; color: var(--muted); font-size: 14px; }
.inside { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inside div { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 11px; background: #ffffff05; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.inside svg { width: 15px; height: 15px; color: var(--green); }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 268px; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.shot { margin: 0; scroll-snap-align: start; }
.shot-ph { height: 470px; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: #0e1621; box-shadow: 0 0 0 1px #ffffff1c, 0 30px 60px -36px #000; }
.shot-head { display: flex; align-items: center; gap: 9px; padding: 11px 13px; background: #17212b; }
.shot-head .av { width: 30px; height: 30px; font-size: 10.5px; }
.shot-head b { display: block; font-size: 13px; color: #f2f5f8; } .shot-head small { font-size: 11px; color: #7d93aa; }
.shot-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px; background: radial-gradient(80% 60% at 30% 20%, #16263a, transparent 70%), #0e1621; }
.tgu { align-self: flex-end; padding: 6px 10px; border-radius: 12px 12px 4px 12px; background: #2b5278; color: #e8f2ff; font: 600 12px var(--mono); }
.tgb2 { align-self: stretch; padding: 9px 11px; border-radius: 12px 12px 12px 4px; background: #182533; color: #e8eef4; font-size: 12.3px; line-height: 1.5; }
.tgb2 b { color: #fff; } .tgb2 code { font: 600 11.5px var(--mono); color: #8cc8ff; background: none; padding: 0; }
.ikb { display: grid; gap: 4px; }
.ikb div { display: flex; gap: 4px; }
.ikb span { flex: 1; min-width: 0; padding: 7px 4px; border-radius: 8px; text-align: center; background: #ffffff14; color: #f0f4f8; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot figcaption { margin-top: 10px; padding: 0 4px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.shots-note { margin: 6px 2px 0; color: var(--muted); font-size: 13px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font: 800 12px Manrope, sans-serif; color: #fff; background: linear-gradient(150deg, #5b84ff, #7c5cff); }
.compat { border-radius: var(--r); overflow: hidden; }
.compat div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.compat div:first-child { border-top: 0; }
.compat span { color: var(--muted); } .compat b { text-align: right; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step { padding: 20px; border-radius: var(--r); }
.step .num { font: 700 11.5px var(--mono); color: var(--sky); }
.step b { display: block; margin: 8px 0 3px; font-size: 16px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.timeline { position: relative; display: grid; gap: 20px; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-3); }
.tl { position: relative; }
.tl::before { content: ''; position: absolute; left: -24px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #3fd99a22; }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; color: var(--text-2); font-size: 14.5px; }
.tl li { display: flex; gap: 8px; align-items: center; } .tl li svg { width: 14px; height: 14px; color: var(--green); }
.buy { position: sticky; top: 86px; padding: 24px; border-radius: var(--r-lg); --card-bg: #0f1016; }
.buy.hot { border: 1px solid transparent; background: radial-gradient(90% 60% at 50% 0%, #4f7cff26, transparent 70%) padding-box, linear-gradient(#0f1016, #0f1016) padding-box, linear-gradient(180deg, #7f9bff66, #ffffff0a 50%) border-box; box-shadow: 0 30px 70px -40px #3a55ff; }
.buy .price { font-size: 46px; }
.buy-list { list-style: none; margin: 18px 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.buy-list li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--text-2); }
.buy-list svg { width: 16px; height: 16px; color: var(--sky); }
.buy-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.buy-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.buy .h3 { margin: 12px 0 6px; }
.buy > p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: var(--r); transition: filter .2s; }
.mini:hover { filter: brightness(1.15); }
.mini b { display: block; font-size: 14.5px; } .mini small { color: var(--muted); font-size: 12.5px; }

/* ---------- Checkout ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-bottom: 40px; }
.co-steps { display: flex; margin-bottom: 18px; border-radius: 13px; overflow: hidden; border: 1px solid var(--line-2); }
.co-steps div { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; font-weight: 700; color: var(--muted); border-left: 1px solid var(--line-2); }
.co-steps div:first-child { border-left: 0; }
.co-steps span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #ffffff0d; font: 800 11.5px var(--mono); }
.co-steps .now { color: var(--text); background: #4f7cff12; }
.co-steps .now span { background: var(--grad); color: #fff; }
.co-steps .done { color: var(--text-2); }
.co-steps .done span { background: #3fd99a26; color: var(--green); }
.panel { padding: 26px; border-radius: var(--r-lg); }
.panel + .panel { margin-top: 12px; }
.panel .h3 { margin-bottom: 8px; }
.panel > p { margin: 0 0 16px; color: var(--muted); }
.accept { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border-radius: 12px; background: #ffffff05; border: 1px solid var(--line); cursor: pointer; font-size: 14.5px; color: var(--text-2); }
.accept input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.accept a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.summary { position: sticky; top: 86px; }
.sum-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sum-head b { font-size: 18px; } .sum-head small { display: block; color: var(--muted); font-size: 13px; }
.sum-rows { display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sum-rows div { display: flex; justify-content: space-between; } .sum-rows span { color: var(--muted); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.inv-status { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 12px; background: #4f7cff10; border: 1px solid #4f7cff3a; margin-bottom: 14px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 var(--sky); animation: pulse 1.8s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.timer { margin-left: auto; font: 800 15px var(--mono); }
.success { text-align: center; padding: 44px 26px; }
.success .ok-big { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 20px; display: grid; place-items: center; background: #3fd99a1c; color: var(--green); }
.success .ok-big svg { width: 30px; height: 30px; }
.demo-switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: #ffffff07; border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed='true'] { background: #ffffff14; color: var(--text); }
.note-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--muted); font-size: 13.5px; }
.note-line svg { width: 16px; height: 16px; margin-top: 2px; color: var(--sky); }

/* ---------- Cabinet ---------- */
.cab-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.acct { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #ffffff12; }
.acct b { display: block; font-size: 19px; letter-spacing: -.02em; } .acct small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.acct small svg { width: 13px; height: 13px; color: #2aa3ff; }
code, .mono-chip { font: 600 12.5px var(--mono); padding: 2px 6px; border-radius: 6px; background: #ffffff0d; color: var(--text); }

/* ---------- Login ---------- */
.login { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; padding: 56px 0 40px; }
.login ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 11px; }
.login li { display: flex; gap: 12px; align-items: center; color: var(--text-2); }
.login li svg { width: 17px; height: 17px; color: var(--green); }
.login-card { padding: 32px; border-radius: var(--r-xl); text-align: center; }
.login-card .mk { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(170deg, #1b1c22, #0e0f13); border: 1px solid #ffffff1c; box-shadow: 0 0 60px -14px #4f6bffaa; }
.login-card .mk img { width: 44px; }
.login-card p { margin: 6px 0 22px; color: var(--muted); font-size: 14.5px; }
.tg-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 0; border-radius: 12px; background: #1677c2; color: #fff; font-size: 15.5px; font-weight: 800; cursor: pointer; box-shadow: inset 0 1px 0 #ffffff33, 0 12px 30px -14px #1677c2; transition: transform .2s var(--ease), filter .2s; }
.tg-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.login-foot { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: left; }
.login-foot svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

/* ---------- Help ---------- */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.topic { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-lg); transition: transform .3s var(--ease); min-height: 200px; }
.topic:hover { transform: translateY(-2px); }
.topic svg.i { width: 21px; height: 21px; color: var(--sky); }
.topic b { font-size: 16px; letter-spacing: -.02em; margin-top: 4px; }
.topic p { margin: 0; color: var(--muted); font-size: 14px; }
.topic .link { margin-top: auto; }
.install { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.istep { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.istep:first-child { border-top: 0; padding-top: 0; }
.istep .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--s2); font: 800 14px var(--mono); }
.istep b { display: block; font-size: 16.5px; letter-spacing: -.02em; }
.istep p { margin: 3px 0 0; color: var(--text-2); }
.tree { margin: 0; padding: 14px 0; font: 13px/1.9 var(--mono); color: var(--muted); white-space: pre; overflow-x: auto; }
.tree b { color: var(--sky); font-weight: 600; }
.support { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 30px; border-radius: var(--r-xl); }
.support.hair { background: radial-gradient(70% 140% at 100% 0%, #4f7cff22, transparent 70%) padding-box, linear-gradient(var(--s1), var(--s1)) padding-box, var(--hair) border-box; }
.support p { margin: 6px 0 0; color: var(--text-2); }

/* ---------- Mini App ---------- */
.tg-mode .site-head { padding: 8px 10px 0; }
.tg-mode .bar { height: 50px; }
.tg-mode .bar nav, .tg-mode .bar .right .btn:not(.keep), .tg-mode .menu-btn { display: none; }
.tg-mode .site-foot { display: none; }
.tg-mode main { padding-bottom: 96px; }
.tabbar { display: none; }
.tg-mode .tabbar { position: fixed; left: 50%; bottom: 12px; translate: -50% 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; width: min(calc(100% - 20px), 420px); padding: 6px; border-radius: 20px; border: 1px solid transparent; background: linear-gradient(#111217e6, #111217e6) padding-box, var(--hair) border-box; backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 20px 40px -16px #000; }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 8px 0; border-radius: 14px; color: var(--muted); font-size: 11px; font-weight: 700; }
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a[aria-current] { color: var(--text); background: #ffffff10; }
.tg-mode .web-only { display: none !important; }
.phones { display: grid; grid-template-columns: repeat(3, 340px); gap: 28px; justify-content: center; padding: 10px 0 40px; }
.phone { width: 340px; height: 720px; border-radius: 48px; padding: 10px; background: #121317; box-shadow: 0 0 0 1px #ffffff1c, 0 50px 100px -40px #000, inset 0 0 0 2px #000; }
.phone-in { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg); }
.phone-top { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 20px; background: #0d0e12; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.phone-top span { color: #2aa3ff; }
.phone iframe { position: absolute; top: 52px; left: 0; width: 100%; height: calc(100% - 52px); border: 0; }
.phone-cap { text-align: center; margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.phone-in { border-radius: 38px; }
@media (max-width: 1140px) { .phones { grid-template-columns: repeat(2, 340px); } }
@media (max-width: 760px) { .phones { grid-template-columns: minmax(0, 340px); } .phone { width: 100%; height: 680px; } }

.concept { position: fixed; right: 12px; bottom: 12px; z-index: 90; padding: 6px 11px; border-radius: 999px; background: #000c; border: 1px solid var(--line-2); color: var(--muted); font-size: 11.5px; }
.tg-mode .concept { display: none; }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .cluster .key { animation: keyin .9s var(--ease) both, float 6s ease-in-out .9s infinite; }
@keyframes up { from { opacity: 0; transform: translateY(20px); } }
@keyframes keyin { from { opacity: 0; transform: translateY(24px) scale(.9); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .start { grid-template-columns: 1fr 1fr; }
  .p-layout, .co, .install, .login { grid-template-columns: minmax(0, 1fr); } .buy, .summary { position: static; }
  .topics { grid-template-columns: 1fr 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .scards { grid-template-columns: 1fr 1fr; } .sc.big { grid-column: span 2; }
}
@media (max-width: 820px) {
  .bar nav, .bar .right .btn.hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav.open { display: grid; gap: 2px; max-width: 1000px; margin: 8px auto 0; padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: #0d0e12f2; backdrop-filter: blur(18px); }
  .mobile-nav a { padding: 12px 14px; border-radius: 10px; font-weight: 700; color: var(--text-2); }
  .more { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .cluster { transform: scale(.5); transform-origin: 50% 0; margin-bottom: -140px; }
  .key.far { display: none; }
  .lead { font-size: 16.5px; }
  .sec { padding: 64px 0; } .sec.tight { padding: 40px 0; }
  .start, .scards, .points, .inside, .topics, .steps { grid-template-columns: 1fr; }
  .sc.big { grid-column: auto; flex-direction: column; text-align: center; } .sc.big .sc-foot { align-items: center; }
  .store-hero .cluster { transform: scale(.46); margin-bottom: -146px; }
  .p-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-head { padding: 36px 0 22px; }
  .co-steps div { padding: 11px 9px; font-size: 12.5px; gap: 7px; }
  .support { grid-template-columns: 1fr; padding: 24px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .panel { padding: 20px; }
  .final { padding: 32px 16px 72px; }
  .concept { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .dm .draw { stroke-dashoffset: 0; } .dm .fillp { opacity: 1; }
}

/* ===================== v5 ===================== */
/* Ambient depth: slow colour fields + sparse stars behind everything */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient::before { content: ''; position: absolute; inset: -25%; background: radial-gradient(38% 32% at 18% 12%, #2b47ff21, transparent 70%), radial-gradient(34% 30% at 88% 58%, #6a45ff1a, transparent 70%), radial-gradient(30% 28% at 35% 96%, #2a6cff14, transparent 70%); animation: amb 32s ease-in-out infinite alternate; }
.ambient::after { content: ''; position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(1px 1px at 23px 41px, #ffffffaa 50%, transparent 51%), radial-gradient(1.3px 1.3px at 271px 207px, #b9c6ffaa 50%, transparent 51%), radial-gradient(1px 1px at 157px 293px, #ffffff66 50%, transparent 51%), radial-gradient(1px 1px at 331px 121px, #ffffff77 50%, transparent 51%), radial-gradient(1px 1px at 97px 387px, #ffffff55 50%, transparent 51%), radial-gradient(1.4px 1.4px at 433px 59px, #c9d2ffaa 50%, transparent 51%), radial-gradient(1px 1px at 509px 311px, #ffffff66 50%, transparent 51%), radial-gradient(1px 1px at 211px 451px, #ffffff44 50%, transparent 51%); background-size: 383px 337px, 383px 337px, 383px 337px, 383px 337px, 541px 479px, 541px 479px, 541px 479px, 541px 479px; animation: twinkle 7s ease-in-out infinite alternate; }
@keyframes amb { to { transform: translate(4%, -3%) rotate(6deg); } }
@keyframes twinkle { to { opacity: .25; } }
main, .site-foot { position: relative; z-index: 1; }

/* Raycast-style beams in the hero (WebGL); CSS streaks stay as fallback */
.beams { position: absolute; left: 50%; top: -60px; width: 1600px; height: 860px; translate: -50% 0; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); -webkit-mask-image: radial-gradient(52% 50% at 50% 34%, #000 30%, transparent 76%); mask-image: radial-gradient(52% 50% at 50% 34%, #000 30%, transparent 76%); }
.beams.on { opacity: 1; }
.gl .streaks { display: none; }
.key.main { width: 136px; height: 136px; border-radius: 34px; box-shadow: inset 0 1px 0 #ffffff1f, 0 34px 70px -20px #000, 0 0 90px -6px #4f6bffaa; }
.key.main svg { width: 78px; }
.key { background: linear-gradient(170deg, #1d1e25ee, #0e0f13ee) padding-box, linear-gradient(180deg, #ffffff3a, #ffffff0a 50%, #ffffff05) border-box; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Section heading row */
.sec-head h2 { max-width: 15em; }

/* Cards: border spotlight that follows the cursor (Linear/Raycast style) */
.sc { --mx: -500px; --my: -500px; }
.sc::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: radial-gradient(240px circle at var(--mx) var(--my), #b4c3ffdd, #7c5cff66 40%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; }
.sc::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(360px circle at var(--mx) var(--my), #6f86ff14, transparent 60%); opacity: 0; transition: opacity .35s; }
.sc:hover::before, .sc:hover::after { opacity: 1; }

@media (max-width: 640px) {
  .beams { width: 900px; height: 620px; top: -40px; }
}
@media (prefers-reduced-motion: reduce) { .ambient::before, .ambient::after { animation: none; } }
.store-hero > :not(.beams):not(.streaks):not(.cluster) { position: relative; z-index: 1; }
.store-hero .cluster { z-index: 1; }
.store-hero .beams.on { opacity: .75; }
.store-hero .beams { -webkit-mask-image: radial-gradient(50% 42% at 50% 22%, #000 25%, transparent 75%); mask-image: radial-gradient(50% 42% at 50% 22%, #000 25%, transparent 75%); }

/* ===================== v6 ===================== */
/* Fix: glow on the N mark must never be clipped to the SVG box */
.dm svg, .key svg { overflow: visible; }


/* Catalog: icon sits in a small doorway instead of a circle */
.sc .ring { border-radius: 999px 999px 14px 14px; padding: 12px 9px 9px; background: radial-gradient(70% 60% at 50% 100%, color-mix(in srgb, var(--tint, #4f7cff) 40%, transparent), transparent 75%), #0d0e13; }
.sc.big .ring { border-radius: 999px 999px 18px 18px; padding: 16px 12px 12px; }

/* ---------- Cabinet v6 ---------- */
.cab6 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; padding-bottom: 40px; }
.cab6 > * { min-width: 0; }
.hello { padding: 50px 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.hello .who { display: flex; align-items: center; gap: 16px; }
.hello .avatar { width: 64px; height: 64px; }
.hello h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.04em; }
.hello small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.hello small svg { width: 14px; height: 14px; color: #2aa3ff; }
.loader-hero { grid-column: span 12; display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; border-radius: 26px; }
.loader-hero.hair { background: radial-gradient(60% 90% at 85% 50%, #4f6bff2e, transparent 70%) padding-box, linear-gradient(var(--s1), var(--s1)) padding-box, linear-gradient(180deg, #7f9bff55, #ffffff08 50%) border-box; }
.lh-copy { padding: 30px; display: flex; flex-direction: column; }
.lh-copy h2 { font-size: 26px; letter-spacing: -.035em; }
.lh-copy > p { margin: 6px 0 20px; color: var(--text-2); max-width: 30em; }
.lh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.lh-steps div { padding: 12px; border-radius: 12px; background: #ffffff05; border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.lh-steps b { display: block; font: 800 11px var(--mono); color: var(--sky); margin-bottom: 4px; letter-spacing: .08em; }
.lh-art { position: relative; display: grid; place-items: center; min-height: 280px; }
.lh-art .door-portal { position: absolute; inset: 0; }
.lh-art .door-portal:not(.gl) { position: relative; inset: auto; width: 190px; }
.lh-art .floor { position: absolute; left: 50%; bottom: 6%; width: 260px; height: 60px; translate: -50% 0; background: radial-gradient(closest-side, #6f86ff55, transparent); filter: blur(8px); }
.cab-card { padding: 22px; border-radius: 20px; }
.cab-card h2 { font-size: 18px; letter-spacing: -.02em; }
.cab-card .sub { margin: 3px 0 16px; color: var(--muted); font-size: 14px; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-12 { grid-column: span 12; } .span-6 { grid-column: span 6; }
.own6 { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: #ffffff04; border: 1px solid var(--line); }
.own6 .pi { width: 52px; height: 52px; border-radius: 15px; }
.own6 .meta { flex: 1; min-width: 0; }
.own6 .meta b { display: block; font-size: 16px; }
.own6 .meta small { color: var(--muted); font-size: 13px; }
.own6 .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.own6 + .own6 { margin-top: 8px; }
.receipt { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px dashed var(--line-2); }
.receipt:first-of-type { border-top: 0; }
.receipt .pi { width: 34px; height: 34px; border-radius: 10px; }
.receipt b { display: block; font-size: 15px; } .receipt small { color: var(--muted); font-size: 12.5px; }
.receipt .sum { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.receipt .sum small { display: block; color: var(--green); font-weight: 700; }
.help-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.help-tiles a { display: flex; align-items: center; gap: 10px; padding: 13px; border-radius: 12px; background: #ffffff05; border: 1px solid var(--line); font-size: 14px; font-weight: 700; transition: background .2s; }
.help-tiles a:hover { background: #ffffff0b; }
.help-tiles svg { width: 18px; height: 18px; color: var(--sky); }
.soon-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.soon-rail a { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border-radius: 14px; background: #ffffff04; border: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 700; transition: background .2s; }
.soon-rail a:hover { background: #ffffff0a; }
.soon-rail .pi { width: 38px; height: 38px; border-radius: 11px; }
.soon-rail small { color: var(--muted); font-weight: 600; font-size: 11.5px; }


@media (max-width: 1000px) {
  .loader-hero { grid-template-columns: 1fr; } .lh-art { min-height: 200px; order: -1; }
  .span-7, .span-5, .span-6 { grid-column: span 12; }
  .soon-rail { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .lh-steps { grid-template-columns: 1fr; }
  .help-tiles { grid-template-columns: 1fr; }
  .own6 { flex-wrap: wrap; } .own6 .acts { width: 100%; justify-content: flex-start; }
}

.store-hero.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }

/* ---------- Documents ---------- */
.docs { display: grid; gap: 12px; max-width: 820px; padding-bottom: 40px; }
.doc { display: grid; gap: 10px; }
.doc[hidden] { display: none; }
.doc-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #ffffff06; border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.doc-tabs a { padding: 9px 14px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.doc-tabs a:hover { color: var(--text); }
.doc-tabs a[aria-current] { background: #ffffff12; color: var(--text); }
.doc-s { padding: 20px 22px; border-radius: var(--r-lg); }
.doc-s h2 { font-size: 17px; letter-spacing: -.02em; }
.doc-s p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.co-closed { display: grid; justify-items: center; gap: 10px; max-width: 560px; margin: 0 auto 40px; padding: 40px 24px; text-align: center; }
.co-closed p { margin: 0; color: var(--text-2); }
.co-closed .cta-row { margin-top: 10px; }
@media (hover: none), (max-width: 640px) { .search kbd { display: none; } .search input { padding-right: 14px; } }
.doc-tabs { scrollbar-width: none; } .doc-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 520px) { .doc-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); } .doc-tabs a { padding: 9px 4px; font-size: 12.5px; text-align: center; white-space: normal; line-height: 1.25; } }

/* ---------- Home: one featured plugin + a compact "coming soon" strip ---------- */
.fc { --tint: #4f7cff; position: relative; display: grid; grid-template-columns: 280px minmax(0, 1fr) 236px; gap: 28px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 28px; border: 1px solid transparent; background: radial-gradient(60% 120% at 0% 50%, color-mix(in srgb, var(--tint) 16%, transparent), transparent 60%) padding-box, linear-gradient(var(--s1), var(--s1)) padding-box, linear-gradient(180deg, color-mix(in srgb, var(--tint) 55%, #ffffff22), #ffffff0a 45%, #ffffff05) border-box; }
.fc-door { position: relative; height: 296px; border-radius: 999px 999px 18px 18px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(70% 55% at 50% 100%, color-mix(in srgb, var(--tint) 55%, transparent), transparent 75%), linear-gradient(180deg, #0b0c11, #12131a); border: 1px solid #ffffff12; }
.fc-door::after { content: ''; position: absolute; left: 50%; bottom: -30%; width: 70%; height: 80%; translate: -50% 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 75%, transparent), transparent); filter: blur(20px); opacity: .75; transition: opacity .4s, transform .5s var(--ease); }
.fc-door .pi { position: relative; z-index: 1; box-shadow: inset 0 1px 0 #ffffff45, 0 22px 50px -12px var(--tint); transition: transform .5s var(--ease); }
.fc:hover .fc-door .pi { transform: translateY(-8px) scale(1.04); }
.fc:hover .fc-door::after { opacity: 1; transform: scale(1.12); }
.fc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fc h3 { margin-top: 10px; font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -.045em; line-height: 1; }
.fc-body > p { margin: 12px 0 0; color: var(--text-2); font-size: 16px; max-width: 34em; }
.fc-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
.fc-points li { display: flex; gap: 9px; align-items: center; font-size: 14px; font-weight: 600; }
.fc-points svg { width: 16px; height: 16px; color: var(--sky); flex-shrink: 0; }
.fc-buy { display: grid; gap: 12px; padding: 20px; border-radius: 18px; background: #ffffff05; border: 1px solid var(--line); text-align: center; }
.fc-buy .price { font-size: 36px; white-space: nowrap; }
.fc-buy .price small { display: block; margin: 6px 0 0; }
.fc-buy .link { justify-content: center; }
.fc-note { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.fc .card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.fc .btn, .fc .link { position: relative; z-index: 2; }
.soon-wrap { margin-top: 22px; }
.soon-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.soon-h b { font-size: 17px; letter-spacing: -.02em; } .soon-h span { color: var(--muted); font-size: 14px; }
.soon-h a { color: var(--text-2); font-weight: 700; } .soon-h a:hover { color: var(--text); }
.soon-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.sn { display: grid; align-content: start; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #ffffff03; transition: background .2s, border-color .2s, transform .3s var(--ease); }
.sn:hover { background: #ffffff07; border-color: var(--line-3); transform: translateY(-2px); }
.sn b { display: block; font-size: 14.5px; letter-spacing: -.01em; } .sn small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
@media (max-width: 1000px) {
  .fc { grid-template-columns: 220px minmax(0, 1fr); }
  .fc-buy { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; align-items: center; text-align: left; }
  .soon-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fc { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 12px; }
  .fc-door { height: 190px; } .fc-body { padding: 0 6px; } .fc-points { grid-template-columns: 1fr; }
  .fc-buy { grid-template-columns: 1fr; text-align: center; }
  .soon-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .soon-strip::-webkit-scrollbar { display: none; }
  .sn { flex: 0 0 150px; scroll-snap-align: start; }
}

/* ---------- Mini App: respect the iPhone home indicator ---------- */
.tg-mode .tabbar { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.tg-mode main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
