/* ==========================================================
   Digi Web Logic — Home page redesign (scoped to .dwl-home)
   Brand: red #e02020 / ink #202020. Animations respect
   prefers-reduced-motion. Content/SEO markup is untouched.
   ========================================================== */
.dwl-home{--red:#e02020;--red2:#ff4b3e;--red-d:#b81616;--ink:#202020;--ink2:#14141c;--soft:#f6f4f2;--ease:cubic-bezier(.22,.8,.24,1);overflow-x:hidden}

/* scroll progress bar */
#dwlProgress{position:fixed;top:0;left:0;height:4px;width:0;z-index:100001;background:linear-gradient(90deg,var(--red),#ff9a3d,var(--red));background-size:200% 100%;animation:dwlSlide 3s linear infinite}
@keyframes dwlSlide{to{background-position:200% 0}}

/* ---------- HERO ---------- */
.dwl-hero{position:relative;padding:150px 0 90px;color:#fff;background:linear-gradient(120deg,#14141c 0%,#23121a 50%,#14141c 100%);background-size:200% 200%;animation:dwlBg 14s ease infinite;overflow:hidden;isolation:isolate}
@keyframes dwlBg{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}
.dwl-hero:before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:56px 56px;-webkit-mask-image:radial-gradient(ellipse at 60% 40%,#000 25%,transparent 75%);mask-image:radial-gradient(ellipse at 60% 40%,#000 25%,transparent 75%);animation:dwlGrid 20s linear infinite}
@keyframes dwlGrid{to{background-position:56px 56px}}
.dwl-blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:.55;z-index:-1;animation:dwlFloat 12s ease-in-out infinite}
.dwl-blob.b1{width:420px;height:420px;background:var(--red);top:-120px;right:-80px}
.dwl-blob.b2{width:340px;height:340px;background:#ff9a3d;bottom:-140px;left:-60px;opacity:.35;animation-delay:-4s}
.dwl-blob.b3{width:260px;height:260px;background:#6a3cff;top:35%;left:42%;opacity:.25;animation-delay:-8s}
@keyframes dwlFloat{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(40px,-30px) scale(1.1)}66%{transform:translate(-30px,30px) scale(.95)}}
.dwl-hero .eyebrow{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);padding:7px 16px;border-radius:30px;font-size:13px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:#fff;backdrop-filter:blur(6px)}
.dwl-hero .eyebrow:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--red2);box-shadow:0 0 0 0 rgba(255,75,62,.7);animation:dwlPing 1.8s infinite}
@keyframes dwlPing{70%{box-shadow:0 0 0 10px rgba(255,75,62,0)}100%{box-shadow:0 0 0 0 rgba(255,75,62,0)}}
.dwl-hero h1{color:#fff!important;font-size:clamp(34px,5vw,58px);line-height:1.12;font-weight:800;margin:18px 0 14px;letter-spacing:-1px}
.dwl-hero h1 .grad{white-space:nowrap;background:linear-gradient(90deg,#ff4b3e,#ff9a3d,#ff4b3e);background-size:200% auto;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:dwlShine 4s linear infinite}
@keyframes dwlShine{to{background-position:200% center}}
.dwl-typed-line{font-size:clamp(17px,2vw,22px);font-weight:600;color:#ffd9d4;margin-bottom:14px;min-height:34px}
.dwl-typed-line b{color:#fff;border-right:3px solid var(--red2);padding-right:4px;animation:dwlCaret .8s step-end infinite}
@keyframes dwlCaret{50%{border-color:transparent}}
.dwl-hero .lead{color:rgba(255,255,255,.82);font-size:16.5px;line-height:1.75;max-width:600px}
.dwl-hero-btns{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px}
.dwl-btn{position:relative;display:inline-flex;align-items:center;gap:8px;padding:14px 30px;border-radius:40px;font-weight:700;font-size:15px;text-decoration:none!important;overflow:hidden;transition:transform .25s var(--ease),box-shadow .25s;border:2px solid transparent;cursor:pointer}
.dwl-btn.primary{background:linear-gradient(135deg,var(--red),var(--red-d));color:#fff!important;box-shadow:0 10px 26px rgba(224,32,32,.45)}
.dwl-btn.primary:after{content:"";position:absolute;top:0;left:-70%;width:45%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);animation:dwlSweep 3.2s infinite}
@keyframes dwlSweep{0%{left:-70%}60%,100%{left:130%}}
.dwl-btn.ghost{color:#fff!important;border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.06)}
.dwl-btn:hover{transform:translateY(-4px)}
.dwl-btn.ghost:hover{background:#fff;color:var(--ink)!important}
.dwl-hero-art{position:relative;text-align:center}
.dwl-hero-art img{position:relative;z-index:2;max-width:100%;height:auto;animation:dwlBob 6s ease-in-out infinite;filter:drop-shadow(0 30px 40px rgba(0,0,0,.45))}
@keyframes dwlBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-16px)}}
.dwl-ring{position:absolute;left:50%;top:50%;border:2px dashed rgba(255,255,255,.18);border-radius:50%;transform:translate(-50%,-50%);animation:dwlSpin 30s linear infinite}
.dwl-ring.r1{width:78%;padding-bottom:78%}
.dwl-ring.r2{width:100%;padding-bottom:100%;border-color:rgba(224,32,32,.35);animation-duration:45s;animation-direction:reverse}
@keyframes dwlSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.dwl-chip{position:absolute;z-index:3;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(8px);color:#fff;font-weight:700;font-size:13px;padding:8px 16px;border-radius:30px;box-shadow:0 8px 24px rgba(0,0,0,.3);animation:dwlBob 5s ease-in-out infinite}
.dwl-chip.c1{top:8%;left:2%}.dwl-chip.c2{top:20%;right:0;animation-delay:-1s}.dwl-chip.c3{bottom:22%;left:0;animation-delay:-2s}.dwl-chip.c4{bottom:8%;right:6%;animation-delay:-3s}.dwl-chip.c5{top:48%;right:-2%;animation-delay:-1.5s}
.dwl-scroll{position:absolute;left:50%;bottom:22px;width:26px;height:42px;border:2px solid rgba(255,255,255,.5);border-radius:14px;transform:translateX(-50%)}
.dwl-scroll:after{content:"";position:absolute;left:50%;top:8px;width:4px;height:8px;margin-left:-2px;border-radius:2px;background:#fff;animation:dwlWheel 1.6s infinite}
@keyframes dwlWheel{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(14px)}}

/* marquee */
.dwl-marquee{background:var(--red);color:#fff;overflow:hidden;white-space:nowrap;padding:14px 0;transform:rotate(-1deg);margin:-26px -10px 26px;position:relative;z-index:5;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.dwl-marquee .track{display:inline-flex;animation:dwlMarquee 28s linear infinite}
.dwl-marquee span{font-weight:800;font-size:17px;letter-spacing:1px;text-transform:uppercase;padding:0 26px}
.dwl-marquee span:after{content:"✦";margin-left:52px;opacity:.7}
.dwl-marquee:hover .track{animation-play-state:paused}
@keyframes dwlMarquee{to{transform:translateX(-50%)}}

/* ---------- SHARED SECTION POLISH ---------- */
.dwl-home .gray-light-bg{background:linear-gradient(180deg,#f7f5f3,#fff 120%)}
.dwl-home section{position:relative}
.dwl-home .section-heading h2,.dwl-home .section-title h2,.dwl-home .about-content-left h2{font-weight:800;letter-spacing:-.5px;color:var(--ink)}
.dwl-home .color-secondary{color:var(--red)!important;text-transform:uppercase;letter-spacing:2px;font-size:13px;font-weight:700;display:inline-block}
.dwl-home .animate-border{display:block;width:70px;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--red),#ff9a3d);position:relative;overflow:hidden}
.dwl-home .animate-border:after{content:"";position:absolute;inset:0;background:#fff;opacity:.6;width:20px;animation:dwlBorder 2.2s linear infinite}
@keyframes dwlBorder{from{left:-20px}to{left:100%}}
.dwl-home .secondary-solid-btn,.dwl-home .primary-solid-btn{background:linear-gradient(135deg,var(--red),var(--red-d))!important;border:0!important;color:#fff!important;border-radius:40px;box-shadow:0 8px 22px rgba(224,32,32,.35);transition:transform .25s var(--ease),box-shadow .25s}
.dwl-home .secondary-solid-btn:hover,.dwl-home .primary-solid-btn:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(224,32,32,.5)}

/* promo cards */
.dwl-home .promo-section{margin-top:-10px}
.dwl-home .single-promo-2{border:1px solid #eee;border-radius:18px!important;position:relative;overflow:hidden;transition:transform .35s var(--ease),box-shadow .35s;box-shadow:0 8px 30px rgba(0,0,0,.06)}
.dwl-home .single-promo-2:before{content:"";position:absolute;left:0;top:0;height:5px;width:0;background:linear-gradient(90deg,var(--red),#ff9a3d);transition:width .5s var(--ease)}
.dwl-home .single-promo-2:hover{transform:translateY(-12px);box-shadow:0 24px 50px rgba(224,32,32,.18)}
.dwl-home .single-promo-2:hover:before{width:100%}
.dwl-home .single-promo-2 .circle-icon{filter:drop-shadow(0 10px 14px rgba(224,32,32,.35));transition:transform .5s var(--ease)}
.dwl-home .single-promo-2:hover .circle-icon{transform:rotateY(360deg) scale(1.08)}

/* AI SEO cards */
.dwl-home .ai-seo-section{background:radial-gradient(circle at 10% 0,rgba(224,32,32,.07),transparent 40%),#fff}
.dwl-home .ai-seo-section .card{border:1px solid #eee;border-radius:18px;position:relative;overflow:hidden;transition:transform .35s var(--ease),box-shadow .35s;box-shadow:0 8px 28px rgba(0,0,0,.06)}
.dwl-home .ai-seo-section .card:before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,var(--red),#ff9a3d)}
.dwl-home .ai-seo-section .card:hover{transform:translateY(-10px);box-shadow:0 22px 46px rgba(224,32,32,.16)}
.dwl-home .ai-seo-section .card h3{color:var(--ink);font-weight:700}

/* FAQ accordions */
.dwl-home .single-faq{border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.05);margin-bottom:12px;transition:box-shadow .3s,transform .3s}
.dwl-home .single-faq:hover{box-shadow:0 10px 26px rgba(224,32,32,.12);transform:translateX(4px)}
.dwl-home .faq-heading a{transition:color .25s}
.dwl-home .faq-heading a:hover{color:var(--red)}

/* progress bars */
.dwl-home .progress span{transition:width 1.6s var(--ease)}
.dwl-home .progress span,.dwl-home .progress-line{background:linear-gradient(90deg,var(--red),#ff9a3d)}

/* timeline / process */
.dwl-home .timeline-content{transition:transform .35s var(--ease),box-shadow .35s}
.dwl-home .timeline:hover .timeline-content{transform:translateY(-8px);box-shadow:0 18px 36px rgba(0,0,0,.12)}
.dwl-home .timeline-icon{transition:transform .5s var(--ease)}
.dwl-home .timeline:hover .timeline-icon{transform:scale(1.12) rotate(-6deg)}

/* video CTA + testimonials */
.dwl-home .call-to-action-video .free-trial-content{background:linear-gradient(135deg,var(--ink2),#2a1118,var(--ink2));background-size:200% 200%;animation:dwlBg 12s ease infinite}
.dwl-home .video-play-icon{animation:dwlPulseBtn 2s infinite}
@keyframes dwlPulseBtn{0%{box-shadow:0 0 0 0 rgba(224,32,32,.6)}70%{box-shadow:0 0 0 24px rgba(224,32,32,0)}100%{box-shadow:0 0 0 0 rgba(224,32,32,0)}}
.dwl-home .call-to-action[style]:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(20,20,28,.88),rgba(224,32,32,.55));z-index:0}
.dwl-home .call-to-action[style] .container{position:relative;z-index:1}

/* team */
.dwl-home .staff-member .card{border:0;border-radius:18px;box-shadow:0 10px 30px rgba(0,0,0,.08);transition:transform .35s var(--ease),box-shadow .35s;overflow:hidden}
.dwl-home .staff-member:hover .card{transform:translateY(-10px);box-shadow:0 24px 48px rgba(224,32,32,.18)}
.dwl-home .staff-member img{border-radius:50%;transition:transform .5s var(--ease)}
.dwl-home .staff-member:hover img{transform:scale(1.08)}

/* ---------- SCROLL REVEAL (only when JS is active) ---------- */
.dwl-js .dwl-reveal{opacity:0;transform:translateY(46px);transition:opacity .8s var(--ease),transform .8s var(--ease);transition-delay:var(--d,0s);will-change:transform,opacity}
.dwl-js .dwl-reveal[data-anim=left]{transform:translateX(-60px)}
.dwl-js .dwl-reveal[data-anim=right]{transform:translateX(60px)}
.dwl-js .dwl-reveal[data-anim=zoom]{transform:scale(.88)}
.dwl-js .dwl-reveal.dwl-in{opacity:1;transform:none}
.dwl-js .dwl-hero .dwl-hero-anim{opacity:0;transform:translateY(30px);animation:dwlIn .9s var(--ease) forwards;animation-delay:var(--d,0s)}
@keyframes dwlIn{to{opacity:1;transform:none}}

@media (max-width:991px){
  .dwl-hero{padding:120px 0 70px;text-align:center}
  .dwl-hero .lead{margin-left:auto;margin-right:auto}
  .dwl-hero-btns{justify-content:center}
  .dwl-hero-art{margin-top:44px}
  .dwl-chip{font-size:11px;padding:6px 12px}
}
@media (max-width:575px){
  .dwl-hero{padding:105px 0 60px}
  .dwl-scroll{display:none}
  .dwl-marquee span{font-size:14px}
}
@media (prefers-reduced-motion:reduce){
  .dwl-home *,.dwl-home *:before,.dwl-home *:after{animation:none!important;transition:none!important}
  .dwl-js .dwl-reveal,.dwl-js .dwl-hero .dwl-hero-anim{opacity:1!important;transform:none!important}
}
