/* ===== v8: smooth scroll, richer hero scenes, demo website maker ===== */

/* ---- smoother scrolling: one lightweight reveal, no blur, no layout-animated orbs ---- */
.js .reveal{transform:translateY(14px);transition:opacity .45s ease,transform .55s cubic-bezier(.2,.7,.2,1)}
.js .reveal.in{transform:none}
.js .pp{filter:none!important;transform:translateY(22px) scale(.96)}
.js .pp.in{animation:ppin2 .55s cubic-bezier(.2,.8,.25,1) both;animation-delay:calc(var(--d,0) * 45ms)}
@keyframes ppin2{from{opacity:0;transform:translateY(22px) scale(.96)}to{opacity:1;transform:none}}
.split-ready .wi{transition:transform .6s cubic-bezier(.2,.75,.2,1) calc(var(--i) * 28ms),opacity .45s ease calc(var(--i) * 28ms)}
.hero-orb{filter:blur(56px);will-change:transform}
.hero-orb.o1{animation:orb2 16s ease-in-out infinite alternate}
.hero-orb.o2{animation:orb2 20s ease-in-out -6s infinite alternate}
@keyframes orb2{from{translate:0 0}to{translate:50px 20px}}
.paused,.paused *{animation-play-state:paused!important}
.sl-slide{will-change:auto}
@media (max-width:700px){.hero-orb{filter:blur(40px);opacity:.3}}

/* ---- hero scene 1: laptop shows the real page overview ---- */
.ov{gap:1.8cqw}
.ov .s-nav{gap:2.2cqw}
.ov .s-nav img{width:5cqw;height:auto;margin-right:auto;display:block;background:#fff;border-radius:.8cqw;padding:.3cqw .6cqw}
.ov .s-nav span{width:auto;height:auto;background:none;font-size:1.55cqw;color:#a9bbd8;font-weight:600;border-radius:0}
.ov .s-nav span.nb{background:linear-gradient(180deg,var(--gold-soft),var(--gold));color:#2a1c00;padding:.7cqw 1.6cqw;border-radius:1cqw}
.ov .s-copy{gap:1.1cqw}
.ov .s-copy h4{margin:0;color:#fff;font-size:3.5cqw;line-height:1.1;font-family:var(--font-display)}
.ov .s-copy h4 b{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.ov .s-copy p{margin:0;color:#9fb3d3;font-size:1.65cqw;line-height:1.35}
.ov .s-copy .pill{width:auto;height:auto;display:inline-block;justify-self:start;padding:.9cqw 2.2cqw;font-size:1.65cqw;font-weight:700;color:#2a1c00;border-radius:1.2cqw;margin-top:.4cqw}
.ov .s-art{background:#0f1f3a}
.ov .s-art::before,.ov .s-art::after{display:none}
.ov .s-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ov .s-cards{gap:1.6cqw}
.ov .s-cards div{height:auto;padding:1.5cqw 1.8cqw;display:grid;gap:.3cqw}
.ov .s-cards div::before,.ov .s-cards div::after{display:none}
.ov .s-cards b{color:#fff;font-size:1.8cqw}
.ov .s-cards small{color:#8fa6cc;font-size:1.4cqw}
.ov .s-body{animation:ovscroll 9s ease-in-out infinite}
@keyframes ovscroll{0%,18%{transform:none}50%,68%{transform:translateY(-3.5cqw)}100%{transform:none}}

/* ---- hero scene 2: reels that actually play short clips ---- */
.reel.live{padding:0;background:#0a1628;justify-content:flex-end}
.reel.live .clips{position:absolute;inset:0}
.reel.live .clips img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;animation:clipin 6s linear infinite}
.reel.live .clips img:nth-child(2){animation-delay:2s}
.reel.live .clips img:nth-child(3){animation-delay:4s}
.reel.r2.live .clips img{animation-duration:7.5s}
.reel.r2.live .clips img:nth-child(2){animation-delay:2.5s}
.reel.r2.live .clips img:nth-child(3){animation-delay:5s}
.reel.r3.live .clips img{animation-duration:5.4s}
.reel.r3.live .clips img:nth-child(2){animation-delay:1.8s}
.reel.r3.live .clips img:nth-child(3){animation-delay:3.6s}
@keyframes clipin{0%{opacity:0;transform:scale(1)}6%{opacity:1}33%{opacity:1;transform:scale(1.14)}40%{opacity:0;transform:scale(1.16)}100%{opacity:0}}
.reel.live::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(5,10,22,.7),transparent 45%,rgba(5,10,22,.35));pointer-events:none}
.reel.live .rbar{position:absolute;top:6px;left:8px;right:8px;height:3px;border-radius:3px;background:rgba(255,255,255,.35);z-index:2;overflow:hidden}
.reel.live .rbar i{display:block;height:100%;background:#fff;transform-origin:0 50%;animation:rprog 2s linear infinite}
.reel.r2.live .rbar i{animation-duration:2.5s}.reel.r3.live .rbar i{animation-duration:1.8s}
@keyframes rprog{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.reel.live .top,.reel.live .tag,.reel.live .l1,.reel.live .l2,.reel.live .rec{z-index:2}
.reel.live .top{top:16px}.reel.live .tag{top:38px}
.reel.live .l1,.reel.live .l2{margin-left:12px}.reel.live .l2{margin-bottom:12px}
.reel.live .rec{position:absolute;right:10px;bottom:16px;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.9);display:grid;place-items:center}
.reel.live .rec::after{content:"";border-left:7px solid #e1477f;border-top:5px solid transparent;border-bottom:5px solid transparent;margin-left:2px}

/* ---- hero scene 3: a Meta / Instagram ad ---- */
.ads-scene{container-type:inline-size;position:absolute;inset:0}
.ad-back{position:absolute;width:44cqw;aspect-ratio:4/5;border-radius:3cqw;overflow:hidden;border:.5cqw solid rgba(255,255,255,.18);box-shadow:0 5cqw 8cqw -3cqw rgba(0,0,0,.7)}
.ad-back img{width:100%;height:100%;object-fit:cover;display:block}
.ad-back.b1{left:0;top:10cqw;transform:rotate(-8deg)}
.ad-back.b2{right:0;top:4cqw;transform:rotate(7deg)}
.ad-post{position:absolute;left:50%;top:50%;width:54cqw;transform:translate(-50%,-50%);background:#fff;color:#0a1628;border-radius:3.4cqw;overflow:hidden;box-shadow:0 6cqw 10cqw -3cqw rgba(0,0,0,.75);animation:bob 6s ease-in-out infinite}
.ad-head{display:flex;align-items:center;gap:1.6cqw;padding:2cqw 2.4cqw}
.ad-head i{width:5.4cqw;height:5.4cqw;border-radius:50%;background:var(--grad);flex:none}
.ad-head div{flex:1;line-height:1.15}
.ad-head b{display:block;font-size:2.2cqw}.ad-head small{font-size:1.7cqw;color:#6b7a95}
.ad-head span{letter-spacing:.2em;color:#6b7a95;font-size:2.2cqw}
.ad-img{aspect-ratio:1/1;position:relative}
.ad-img img{width:100%;height:100%;object-fit:cover;display:block}
.ad-cta{display:flex;justify-content:space-between;align-items:center;background:#e9eefc;padding:1.8cqw 2.4cqw;font-weight:700;font-size:2cqw;color:#2b4fd0}
.ad-act{display:flex;gap:2.2cqw;padding:1.8cqw 2.4cqw;color:#0a1628}
.ad-act svg{width:3.6cqw;height:3.6cqw}
.ads-scene .float{position:absolute}
.ads-scene .f1{left:-1cqw;top:0}.ads-scene .f3{right:-1cqw;bottom:6cqw;top:auto}

/* ---- Demo website maker ---- */
#demo{background:radial-gradient(60% 70% at 100% 0%,rgba(138,77,240,.35),transparent 60%),radial-gradient(50% 60% at 0% 100%,rgba(225,71,127,.2),transparent 60%),#070d1c;color:#fff;overflow-x:clip}
#demo h2{color:#fff}
#demo .head p{color:rgba(255,255,255,.72)}
.dm-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:40px;align-items:start}
.dm-form{display:grid;gap:18px}
.dm-form label.dm-l{font-weight:700;font-size:15px}
.dm-in{width:100%;min-height:54px;border-radius:999px;border:1.5px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);color:#fff;padding:0 22px;font:inherit;font-size:17px}
.dm-in::placeholder{color:rgba(255,255,255,.5)}
.dm-in:focus{outline:2px solid #8a4df0;outline-offset:2px;background:rgba(255,255,255,.12)}
.dm-cats{display:flex;flex-wrap:wrap;gap:10px}
.dm-cat-b{border:1.5px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);color:#fff;border-radius:999px;padding:10px 16px;font:inherit;font-size:15px;font-weight:600;cursor:pointer;min-height:44px;transition:background .25s,transform .25s,border-color .25s}
.dm-cat-b:hover{transform:translateY(-2px);background:rgba(255,255,255,.14)}
.dm-cat-b[aria-pressed="true"]{background:var(--grad);border-color:transparent;color:#fff;box-shadow:0 10px 24px -10px rgba(138,77,240,.8)}
.dm-note{margin:0;color:rgba(255,255,255,.6);font-size:13.5px}
.dm-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.dm-incl{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 0;padding:0;list-style:none}
.dm-incl li{display:flex;align-items:center;gap:6px;font-size:13.5px;color:rgba(255,255,255,.82);background:rgba(255,255,255,.07);border-radius:999px;padding:6px 12px}
.dm-incl svg{width:14px;height:14px;color:#f0b64a}
.dm-out{min-width:0}
.dm-frame{container-type:inline-size;background:#0c1428;border-radius:22px;border:1.5px solid rgba(255,255,255,.18);box-shadow:0 50px 90px -30px rgba(0,0,0,.85),0 0 0 8px rgba(255,255,255,.04);overflow:hidden}
.dm-bar{display:flex;align-items:center;gap:6px;padding:12px 16px;background:#0a1226}
.dm-bar i{width:10px;height:10px;border-radius:50%;background:#3a5a8c}
.dm-url{margin-left:10px;flex:1;background:#16264a;color:#9fb3d3;font-family:var(--font-mono);font-size:13px;padding:5px 14px;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-site{--p:#3b66f0;--a:#f0b64a;position:relative;background:#fff;color:#0a1628;font-size:max(11px,2.1cqw)}
.dm-nav{display:flex;align-items:center;gap:2.2cqw;padding:2.2cqw 3.4cqw;border-bottom:1px solid #e6ebf5}
.dm-logo{width:4.8cqw;height:4.8cqw;border-radius:1.2cqw;background:var(--p);color:#fff;display:grid;place-items:center;font-weight:800;font-size:2.6cqw;flex:none}
.dm-name{font-family:var(--font-display);font-size:2.5cqw;margin-right:auto;max-width:38cqw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-nav em{font-style:normal;color:#5a6a85;font-weight:600;font-size:1.9cqw}
.dm-btn{background:var(--a);color:#1b1300;font-weight:800;border-radius:999px;padding:1.2cqw 2.6cqw;font-size:1.9cqw;white-space:nowrap}
.dm-btn.big{display:inline-block;padding:1.6cqw 3.4cqw;font-size:2.2cqw;margin-top:1cqw}
.dm-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:3cqw;padding:5cqw 3.4cqw;align-items:center;background:linear-gradient(135deg,color-mix(in srgb,var(--p) 12%,#fff),#fff 70%)}
.dm-copy{display:grid;gap:1.6cqw;justify-items:start}
.dm-copy small{font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--p);font-size:1.6cqw}
.dm-copy h4{margin:0;font-family:var(--font-display);font-size:5.2cqw;line-height:1.08}
.dm-copy p{margin:0;color:#4b5b78;font-size:2.1cqw;line-height:1.45}
.dm-art{aspect-ratio:4/3.4;border-radius:3cqw;position:relative;overflow:hidden;background:linear-gradient(135deg,var(--p),color-mix(in srgb,var(--p) 40%,var(--a)));box-shadow:0 3cqw 5cqw -2cqw rgba(0,0,0,.35)}
.dm-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dm-art .dm-big{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--font-display);font-weight:800;font-size:16cqw;color:rgba(255,255,255,.9)}
.dm-art::after{content:"";position:absolute;width:20cqw;height:20cqw;border-radius:50%;background:rgba(255,255,255,.16);right:-5cqw;top:-5cqw}
.dm-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:2.4cqw;padding:0 3.4cqw 4cqw}
.dm-card{border:1px solid #e6ebf5;border-radius:2.4cqw;padding:2.4cqw;display:grid;gap:1cqw;background:#fff;box-shadow:0 2cqw 3cqw -2cqw rgba(10,22,40,.25)}
.dm-card i{width:5.4cqw;height:5.4cqw;border-radius:1.6cqw;background:color-mix(in srgb,var(--p) 14%,#fff);color:var(--p);display:grid;place-items:center}
.dm-card i svg{width:60%;height:60%}
.dm-card b{font-size:2.3cqw}.dm-card span{color:#5a6a85;font-size:1.8cqw;line-height:1.4}
.dm-foot{display:flex;justify-content:space-between;gap:2cqw;flex-wrap:wrap;padding:2.4cqw 3.4cqw;background:#0a1628;color:#b9c6e2;font-size:1.8cqw}
.dm-sample{position:absolute;right:2.4cqw;bottom:9cqw;background:#0a1628;color:#fff;font-size:1.7cqw;font-weight:700;padding:.8cqw 1.8cqw;border-radius:999px;opacity:.9}
.dm-site.build .dm-nav,.dm-site.build .dm-copy>*,.dm-site.build .dm-art,.dm-site.build .dm-card,.dm-site.build .dm-foot{animation:dmin .55s cubic-bezier(.2,.8,.25,1) both}
.dm-site.build .dm-copy>:nth-child(2){animation-delay:.08s}.dm-site.build .dm-copy>:nth-child(3){animation-delay:.16s}.dm-site.build .dm-copy>:nth-child(4){animation-delay:.24s}
.dm-site.build .dm-art{animation-delay:.2s}.dm-site.build .dm-card:nth-child(1){animation-delay:.3s}.dm-site.build .dm-card:nth-child(2){animation-delay:.38s}.dm-site.build .dm-card:nth-child(3){animation-delay:.46s}.dm-site.build .dm-foot{animation-delay:.5s}
@keyframes dmin{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
@media (max-width:960px){.dm-grid{grid-template-columns:1fr;gap:28px}}
@media (max-width:520px){.dm-nav em{display:none}.dm-hero{grid-template-columns:1fr}.dm-art{aspect-ratio:16/9}.dm-copy h4{font-size:6.6cqw}.dm-copy p{font-size:2.8cqw}.dm-cards{grid-template-columns:1fr}.dm-card b{font-size:3cqw}.dm-card span{font-size:2.5cqw}.dm-site{font-size:13px}.dm-btn{font-size:2.6cqw}}
@media (prefers-reduced-motion:reduce){.ov .s-body,.ad-post,.reel.live .clips img,.reel.live .rbar i{animation:none}.reel.live .clips img:first-child{opacity:1}.dm-site.build *{animation:none!important}}

/* ===== stable layout while counters run (no jumping while scrolling) ===== */
.stat b{display:block;white-space:nowrap;font-variant-numeric:tabular-nums;min-height:1.25em;line-height:1.25}
.stat span{display:block;min-height:2.6em}
.stat{contain:layout}
@media (min-width:700px){.stat span{min-height:0}}

/* demo tools: device, colour, dark */
.dm-tools{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin-bottom:14px}
.dm-seg{display:inline-flex;background:rgba(255,255,255,.08);border-radius:999px;padding:3px}
.dm-dv{border:0;background:none;color:rgba(255,255,255,.75);font:600 13px/1 inherit;font-family:inherit;padding:8px 14px;border-radius:999px;cursor:pointer;transition:background .25s,color .25s}
.dm-dv[aria-pressed=true]{background:#fff;color:#0a1628}
.dm-sw{display:inline-flex;gap:8px;align-items:center}
.dm-c{width:26px;height:26px;border-radius:50%;border:2px solid rgba(255,255,255,.35);cursor:pointer;padding:0;color:#fff;font:700 11px/1 inherit;transition:transform .25s}
.dm-c.auto{background:linear-gradient(135deg,#3b66f0,#e1477f,#f0b64a)}
.dm-c[aria-pressed=true]{border-color:#fff;transform:scale(1.18);box-shadow:0 0 0 3px rgba(255,255,255,.25)}
.dm-mode{border:1px solid rgba(255,255,255,.3);background:none;color:#fff;font:600 13px/1 inherit;font-family:inherit;padding:8px 14px;border-radius:999px;cursor:pointer}
.dm-mode[aria-pressed=true]{background:#fff;color:#0a1628}
.dm-stage{display:flex;justify-content:center;align-items:flex-start}
.dm-frame{width:100%;transition:width .5s cubic-bezier(.2,.8,.2,1)}
.dm-frame.dev-tablet{width:72%}
.dm-frame.dev-mobile{width:min(100%,290px)}
.dm-frame.dev-mobile .dm-nav em{display:none}.dm-frame.dev-mobile .dm-hero{grid-template-columns:1fr}.dm-frame.dev-mobile .dm-art{aspect-ratio:16/9}
.dm-frame.dev-mobile .dm-copy h4{font-size:7.4cqw}.dm-frame.dev-mobile .dm-copy p{font-size:3.6cqw}.dm-frame.dev-mobile .dm-cards{grid-template-columns:1fr}
.dm-frame.dev-mobile .dm-card b{font-size:4cqw}.dm-frame.dev-mobile .dm-card span{font-size:3.3cqw}.dm-frame.dev-mobile .dm-site{font-size:12px}
.dm-frame.dev-mobile .dm-btn{font-size:3.4cqw;padding:1.8cqw 3.4cqw}.dm-frame.dev-mobile .dm-name{font-size:4.2cqw}.dm-frame.dev-mobile .dm-logo{width:8cqw;height:8cqw;font-size:4cqw}.dm-frame.dev-mobile .dm-copy small{font-size:2.8cqw}.dm-frame.dev-mobile .dm-foot{font-size:3cqw}
.dm-site.dk{background:#0b1226;color:#eaf0ff}
.dm-site.dk .dm-nav{border-color:#1d2a4a}.dm-site.dk .dm-nav em,.dm-site.dk .dm-copy p,.dm-site.dk .dm-card span{color:#a9b8d8}
.dm-site.dk .dm-hero{background:linear-gradient(135deg,color-mix(in srgb,var(--p) 30%,#0b1226),#0b1226 75%)}
.dm-site.dk .dm-card{background:#121c38;border-color:#1d2a4a}
.dm-site.dk .dm-copy small{color:var(--a)}
@media (max-width:520px){.dm-frame.dev-tablet{width:100%}}
