/* Build My App theme — small additions on top of the plugin design system. */
.wp-block-image img { border-radius: 16px; }
.alignwide { max-width: 1040px; margin-left: auto; margin-right: auto; }
.post-meta { font-size: .875rem; color: var(--muted); }
.post-card { display: flex; flex-direction: column; height: 100%; padding: 0 !important; overflow: hidden; text-decoration: none; }
.post-card .cover { height: 160px; background: var(--grad); opacity: .85; transition: opacity .3s; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card:hover .cover { opacity: 1; }
.post-card .body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.article-grid { display: grid; gap: 40px; padding-bottom: 40px; }
@media (min-width: 1024px) { .article-grid { grid-template-columns: 220px 1fr; } .article-grid .toc-wrap { position: sticky; top: 112px; align-self: start; } }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); text-decoration: none; }
.pagination .current { background: var(--grad); border-color: transparent; }

/* ===== Hero+ : enhanced hero visuals & motion ===== */
.hero.hx { --mx: 70%; --my: 40%; isolation: isolate; }
.hero.hx::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(124,92,255,.22), transparent 60%);
  transition: background .2s linear; }
.hero.hx > .container { position: relative; z-index: 2; }
.hero.hx .bg-grid { -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%); animation: hx-grid 28s linear infinite; }
@keyframes hx-grid { to { background-position: 64px 64px, 64px 64px; } }
.hero.hx .blob { translate: calc(var(--px, 0) * var(--d, 30px)) calc(var(--py, 0) * var(--d, 30px)); transition: translate .6s var(--ease); }
.hero.hx .b2 { --d: -40px; } .hero.hx .b3 { --d: 55px; }
.hx-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .9; }
.hx-beam { position: absolute; z-index: 1; top: -20%; left: -30%; width: 40%; height: 140%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(160,140,255,.10), transparent); transform: rotate(18deg);
  animation: hx-beam 9s ease-in-out infinite; }
@keyframes hx-beam { 0%, 15% { left: -40%; } 60%, 100% { left: 130%; } }
.hero.hx .eyebrow { position: relative; overflow: hidden; backdrop-filter: blur(10px); }
.hero.hx .eyebrow::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); animation: hx-shine 4.5s 1.2s ease-in-out infinite; }
.hero.hx .eyebrow .dot { position: relative; }
.hero.hx .eyebrow .dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--success); animation: hx-ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes hx-ping { 75%, 100% { transform: scale(3); opacity: 0; } }
@keyframes hx-shine { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }
.hero.hx .h-hero .text-gradient-soft { background-image: linear-gradient(90deg, #9DB4FF, #B79CFF, #F0A6FF, #8FD3FF, #9DB4FF) !important;
  background-size: 300% 100% !important; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: word-in .7s var(--ease) forwards, hx-pan 8s linear infinite; }
@keyframes hx-pan { to { background-position: 300% 50%; } }
.hero.hx .hx-under { position: relative; }
.hx-swoosh { position: absolute; left: 0; right: .2em; bottom: -.08em; height: .28em; width: calc(100% - .25em); overflow: visible; pointer-events: none; }
.hx-swoosh path { fill: none; stroke: url(#hxGrad); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: hx-draw 1.1s 1.3s var(--ease) forwards; }
@keyframes hx-draw { to { stroke-dashoffset: 0; } }
.hero.hx .hero-ctas .btn { position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.hero.hx .hero-ctas .btn-primary { box-shadow: 0 10px 40px -10px rgba(91,77,255,.75); }
.hero.hx .hero-ctas .btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: hx-btnshine 3.8s 2s ease-in-out infinite; pointer-events: none; }
@keyframes hx-btnshine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
.hero.hx .hero-ctas .btn-primary:hover { box-shadow: 0 16px 50px -8px rgba(124,92,255,.95); transform: translateY(-2px); }
.hero.hx .hero-ctas .btn-primary svg { transition: transform .3s var(--ease); }
.hero.hx .hero-ctas .btn-primary:hover svg { transform: translateX(4px); }
.hero.hx .hero-ctas .btn-secondary::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--hx-a, 0deg), transparent 0 60%, #8FA8FF, #E08BFF, transparent 90%);
  -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 .3s; animation: hx-spin-a 3s linear infinite; }
.hero.hx .hero-ctas .btn-secondary:hover::before { opacity: 1; }
.hero.hx .hero-ctas .btn-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); }
@property --hx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes hx-spin-a { to { --hx-a: 360deg; } }
.hero.hx .trust li { opacity: 0; transform: translateY(12px) scale(.96); animation: hx-pop .6s var(--ease) forwards; animation-delay: calc(1s + var(--i, 0) * .09s);
  transition: transform .25s var(--ease), border-color .25s, background .25s; }
.hero.hx .trust li.hx-in { opacity: 1; transform: none; animation: none; }
.hero.hx .trust li:hover { transform: translateY(-3px); border-color: rgba(160,140,255,.5); background: rgba(124,92,255,.12); }
.hero.hx .trust li svg { transition: transform .4s var(--ease); }
.hero.hx .trust li:hover svg { transform: rotate(-12deg) scale(1.15); }
@keyframes hx-pop { to { opacity: 1; transform: none; } }
.hero.hx .hero-visual .glow { animation: hx-breathe 6s ease-in-out infinite; }
@keyframes hx-breathe { 0%, 100% { opacity: .8; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } }
.hx-orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; z-index: 0; translate: -50% -50%; }
.hx-orbit.o1 { width: 440px; height: 440px; border: 1px dashed rgba(160,150,255,.32); animation: hx-rot 40s linear infinite; }
.hx-orbit.o2 { width: 580px; height: 580px; border: 1px solid rgba(160,150,255,.16); animation: hx-rot 60s linear infinite reverse; }
.hx-orbit i { position: absolute; width: 10px; height: 10px; border-radius: 50%; top: -5px; left: calc(50% - 5px); background: #9C8CFF; box-shadow: 0 0 14px 3px rgba(156,140,255,.8); }
.hx-orbit.o2 i { background: #E58CFF; box-shadow: 0 0 14px 3px rgba(229,140,255,.7); top: auto; bottom: -5px; }
.hx-orbit.o1 i + i { top: auto; bottom: 30%; left: -5px; width: 6px; height: 6px; background: #7FD3FF; box-shadow: 0 0 10px 2px rgba(127,211,255,.8); }
@keyframes hx-rot { to { rotate: 360deg; } }
.hx-conic { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; translate: -50% -50%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(30,91,255,.0), rgba(30,91,255,.35), rgba(192,38,211,.35), rgba(109,59,255,.0)); filter: blur(40px); animation: hx-rot 14s linear infinite; }
.hero.hx .phone-wrap { z-index: 1; }
.hero.hx .float-card { z-index: 3; background: rgba(14,18,52,.82) !important; border: 1px solid rgba(160,150,255,.28) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04) inset; color: #fff; }
.hero.hx .float-card .muted { color: rgba(220,224,255,.7) !important; }
.hero.hx .float-card.fc1 { left: -64px; top: 72px; }
.hero.hx .float-card.fc2 { right: -56px; bottom: 96px; }
.hero.hx .float-card.hx-float { animation-name: fade-up, hx-bob; animation-duration: .6s, 5s; animation-timing-function: var(--ease), ease-in-out;
  animation-iteration-count: 1, infinite; animation-fill-mode: forwards, none; }
.hero.hx .float-card.fc2.hx-float { animation-duration: .6s, 6s; animation-delay: .9s, -2s; }
.hero.hx .float-card.fc3 { left: -48px; bottom: 150px; width: 210px; animation-delay: 1.1s, -3s; }
@keyframes hx-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero.hx .fc2 .hx-live { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--success); }
.hero.hx .fc2 .hx-live::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--success); animation: hx-ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
.hx-prog { margin-top: 8px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.hx-prog b { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #4C7DFF, #A06BFF, #E36BFF); transition: width .5s var(--ease); }
.hx-steps { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: rgba(220,224,255,.55); }
.hx-steps span.on { color: #fff; }
.hx-steps span.on::before { content: "✓ "; color: var(--success); }
.hx-pct { float: right; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.hero.hx .fc1 .big { font-variant-numeric: tabular-nums; }
.hx-scroll { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 2; display: none; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(220,224,255,.55); text-decoration: none; opacity: 0; animation: fade-up .6s 1.8s var(--ease) forwards; }
.hx-scroll span { width: 22px; height: 34px; border: 1.5px solid rgba(220,224,255,.4); border-radius: 12px; position: relative; }
.hx-scroll span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: hx-wheel 1.8s ease-in-out infinite; }
@keyframes hx-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (min-width: 1024px) { .hx-scroll { display: flex; } }
@media (max-width: 1100px) { .hero.hx .float-card.fc1 { left: -16px; } .hero.hx .float-card.fc2 { right: -16px; } .hero.hx .float-card.fc3 { display: none; } }
@media (max-width: 640px) { .hx-orbit.o1 { width: 340px; height: 340px; } .hx-orbit.o2 { display: none; } .hx-conic { width: 280px; height: 280px; } .hx-beam { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero.hx *, .hero.hx *::before, .hero.hx *::after, .hero.hx::before { animation: none !important; transition: none !important; }
  .hero.hx .trust li, .hx-scroll { opacity: 1; transform: none; }
  .hx-swoosh path { stroke-dashoffset: 0; }
}

