/* ============================================================
   DGTechQA — HOME tab redesign: modern styles + animations
   Sections: Website promo · Live Groups · Hero · Stats · Terminal · Explore Platform
   Loaded after whatsapp-mobile.css (same compact type scale).
   ============================================================ */
@keyframes hmUp{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@keyframes hmPop{0%{opacity:0;transform:scale(.7)}60%{transform:scale(1.06)}100%{opacity:1;transform:scale(1)}}
@keyframes hmFloat{50%{transform:translateY(-4px) rotate(-4deg)}}
@keyframes hmGrad{to{background-position:200% 0}}
@keyframes hmSweep{0%,55%{transform:translateX(-130%) skewX(-18deg)}100%{transform:translateX(230%) skewX(-18deg)}}
@keyframes hmGlow{50%{box-shadow:0 1px 2px rgba(11,20,26,.10),0 18px 34px -14px rgba(37,211,102,.55)}}
@keyframes hmType{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes hmBlink{50%{opacity:0}}
@keyframes hmOrb{50%{transform:translate(-10px,8px) scale(1.15)}}
@keyframes hmNudge{50%{transform:translateX(4px)}}
@keyframes hmFlow{to{background-position:100% 0}}
@keyframes hmTick{0%{transform:scale(0)}70%{transform:scale(1.4)}100%{transform:scale(1)}}

/* ───────── section labels ───────── */
html[data-mobile-app] #tab-home .sec-label{margin:20px 0 9px 4px!important;font-size:11px!important;letter-spacing:.7px;color:#128C7E!important}
html[data-mobile-app] #tab-home .sec-label::after{transform-origin:left;transform:scaleX(0);transition:transform .9s cubic-bezier(.22,1,.36,1) .2s}
html[data-mobile-app] #tab-home .sec-label.rv-in::after{transform:scaleX(1)}
.hm-count{order:3;font-style:normal;font-size:9.5px;font-weight:800;letter-spacing:.3px;color:#128C7E;background:rgba(37,211,102,.14);padding:3px 9px;border-radius:999px;text-transform:none}

/* ───────── 1. Website promo card ───────── */
html[data-mobile-app] #tab-home .book-promo-card{border-radius:22px!important;
  box-shadow:0 1px 2px rgba(11,20,26,.12),0 18px 34px -16px rgba(7,94,84,.65)!important;animation:hmGlow 4s ease-in-out infinite}
html[data-mobile-app] #tab-home .bp-chips span{backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
html[data-mobile-app] #tab-home .book-promo-btn{overflow:hidden;box-shadow:0 10px 20px -10px rgba(0,0,0,.45)}
html[data-mobile-app] #tab-home .book-promo-btn::before{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;
  background:linear-gradient(90deg,transparent,rgba(37,211,102,.35),transparent);animation:hmSweep 3.6s ease-in-out 1.5s infinite;pointer-events:none}

/* ───────── 2. Live Groups ───────── */
html[data-mobile-app] #lgApp{border:0!important;border-radius:22px!important;
  box-shadow:0 1px 2px rgba(11,20,26,.10),0 16px 32px -18px rgba(0,128,105,.5)!important}
html[data-mobile-app] #lgApp .wa-top{position:relative;overflow:hidden;padding:14px!important;
  background:linear-gradient(120deg,#064e46,#0b8f74,#25d366,#0b8f74,#064e46)!important;background-size:300% 100%!important;
  animation:hmFlow 9s ease-in-out infinite alternate!important}
#lgApp .wa-top::after{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.22),transparent);animation:hmSweep 5.5s ease-in-out 1s infinite;pointer-events:none}
#lgApp .wa-top>div{position:relative;z-index:1}
html[data-mobile-app] #lgApp .wa-top h3{font-size:16px!important;display:flex;align-items:center;gap:8px}
#lgApp .wa-top h3::before{content:"";width:8px;height:8px;border-radius:50%;background:#b9ffcf;box-shadow:0 0 0 0 rgba(185,255,207,.7);animation:hmLive 1.8s infinite}
@keyframes hmLive{70%{box-shadow:0 0 0 8px rgba(185,255,207,0)}100%{box-shadow:0 0 0 0 rgba(185,255,207,0)}}
html[data-mobile-app] #lgApp .wa-top small{font-size:11px!important}
#lgApp .wa-ic a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:13px;
  transition:transform .2s cubic-bezier(.34,1.56,.64,1)}
#lgApp .wa-ic a:active{transform:scale(.85) rotate(90deg)}
#lgApp .wa-list{border-top:0;padding:6px 8px 10px}
html[data-mobile-app] #lgApp .wa-row{margin:3px 0;padding:9px 10px;border-radius:16px;gap:11px;
  transition:transform .2s cubic-bezier(.34,1.56,.64,1),background .2s}
#lgApp .wa-row::before{display:none!important}
html[data-mobile-app] #lgApp .wa-row:active{transform:scale(.97);background:#f0f7f4!important}
html[data-mobile-app] #lgApp .wa-av{flex:0 0 42px;width:42px;height:42px;font-size:16px;border-radius:14px;box-shadow:0 6px 12px -6px rgba(0,0,0,.45)}
html[data-mobile-app] #lgApp .wa-nm b{font-size:13px!important}
html[data-mobile-app] #lgApp .wa-pv p{font-size:11px!important}
#lgApp .wa-row{animation:hmUp .5s cubic-bezier(.22,1,.36,1) both}
#lgApp .wa-row:nth-child(2){animation-delay:.06s}#lgApp .wa-row:nth-child(3){animation-delay:.12s}
#lgApp .wa-row:nth-child(4){animation-delay:.18s}#lgApp .wa-row:nth-child(5){animation-delay:.24s}

/* ───────── 3. Hero ───────── */
html[data-mobile-app] #tab-home .hero-card{border-radius:22px!important;padding:18px 16px!important;overflow:hidden;
  background:
    radial-gradient(120px 90px at 100% 0%,rgba(37,211,102,.22),transparent 70%),
    radial-gradient(130px 100px at 0% 100%,rgba(83,189,235,.18),transparent 70%),
    linear-gradient(#fff,#fff)!important;
  box-shadow:0 1px 2px rgba(11,20,26,.10),0 14px 30px -18px rgba(0,128,105,.55)!important}
html[data-mobile-app] #tab-home .hero-title{font-size:23px!important;letter-spacing:-.3px}
html[data-mobile-app] #tab-home .hero-title .blue,html[data-mobile-app] #tab-home .hero-title .green{
  background:linear-gradient(90deg,#128C7E,#25d366,#53bdeb,#128C7E)!important;background-size:200% 100%!important;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent!important;animation:hmGrad 4.5s linear infinite!important}
html[data-mobile-app] #tab-home .hero-eyebrow{box-shadow:0 4px 10px -6px rgba(0,128,105,.6)}
html[data-mobile-app] #tab-home .hero-eyebrow span{animation:hmLive 1.8s infinite!important;box-shadow:0 0 0 0 rgba(37,211,102,.6)}
#tab-home .hero-card.rv-in .hero-eyebrow{animation:hmPop .5s cubic-bezier(.34,1.56,.64,1) .1s both}
#tab-home .hero-card.rv-in .hero-title{animation:hmUp .6s cubic-bezier(.22,1,.36,1) .2s both}
#tab-home .hero-card.rv-in .hero-sub{animation:hmUp .6s cubic-bezier(.22,1,.36,1) .32s both}
#tab-home .hero-card.rv-in .hero-cta-row{animation:hmUp .6s cubic-bezier(.22,1,.36,1) .44s both}
html[data-mobile-app] #tab-home .btn-primary-mob{box-shadow:0 10px 20px -8px rgba(18,140,126,.75)!important;background:linear-gradient(135deg,#128C7E,#25d366)!important}
html[data-mobile-app] #tab-home .btn-primary-mob:active,html[data-mobile-app] #tab-home .btn-outline-mob:active{transform:scale(.95)}

/* ───────── 4. Stats ───────── */
html[data-mobile-app] #tab-home .stats-strip{display:grid!important;grid-template-columns:repeat(4,1fr);gap:8px!important;padding:0!important;
  background:transparent!important;box-shadow:none!important;border:0!important}
html[data-mobile-app] #tab-home .stat-box{position:relative;overflow:hidden;padding:26px 4px 10px!important;text-align:center;border-radius:16px!important;
  box-shadow:0 1px 2px rgba(11,20,26,.10)!important;transition:transform .2s cubic-bezier(.34,1.56,.64,1)}
html[data-mobile-app] #tab-home .stat-box:active{transform:scale(.94)}
#tab-home .stat-box::before{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:20px;height:20px;border-radius:7px;display:flex;align-items:center;justify-content:center;
  font-family:"Font Awesome 6 Free"!important;font-weight:900;font-size:10px;color:#fff}
#tab-home .stat-box:nth-child(1)::before{content:"\f0c0";background:linear-gradient(135deg,#128C7E,#25d366)}
#tab-home .stat-box:nth-child(2)::before{content:"\f0b1";background:linear-gradient(135deg,#027eb5,#53bdeb)}
#tab-home .stat-box:nth-child(3)::before{content:"\f518";background:linear-gradient(135deg,#f59e0b,#ffc94d)}
#tab-home .stat-box:nth-child(4)::before{content:"\f059";background:linear-gradient(135deg,#7f66ff,#a58dff)}
#tab-home .stat-box::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,#128C7E,#25d366);transform:scaleX(0);transform-origin:left}
#tab-home .stats-strip.rv-in .stat-box{animation:hmPop .55s cubic-bezier(.34,1.56,.64,1) both}
#tab-home .stats-strip.rv-in .stat-box::after{animation:hmBar 1s cubic-bezier(.22,1,.36,1) .5s forwards}
@keyframes hmBar{to{transform:scaleX(1)}}
#tab-home .stats-strip.rv-in .stat-box:nth-child(2){animation-delay:.08s}
#tab-home .stats-strip.rv-in .stat-box:nth-child(3){animation-delay:.16s}
#tab-home .stats-strip.rv-in .stat-box:nth-child(4){animation-delay:.24s}

/* ───────── 5. Terminal ───────── */
html[data-mobile-app] #tab-home .terminal-box{position:relative;border-radius:18px!important;overflow:hidden;
  background:linear-gradient(160deg,#0b141a,#10242a)!important;
  box-shadow:0 0 0 1px rgba(37,211,102,.25),0 16px 30px -16px rgba(0,0,0,.7)!important}
#tab-home .terminal-box::after{content:"";position:absolute;top:0;bottom:0;left:0;width:35%;pointer-events:none;
  background:linear-gradient(105deg,transparent,rgba(37,211,102,.10),transparent);animation:hmSweep 6s ease-in-out 2s infinite}
#tab-home .term-head{background:rgba(255,255,255,.04)!important;border-bottom:1px solid rgba(255,255,255,.06)!important}
#tab-home .term-body>div{white-space:nowrap;clip-path:inset(0 100% 0 0)}
#tab-home .terminal-box.rv-in .term-body>div{animation:hmType .8s steps(34) forwards}
#tab-home .terminal-box.rv-in .term-body>div:nth-child(1){animation-delay:.3s}
#tab-home .terminal-box.rv-in .term-body>div:nth-child(2){animation-delay:1.2s}
#tab-home .terminal-box.rv-in .term-body>div:nth-child(3){animation-delay:2.1s}
#tab-home .terminal-box.rv-in .term-body>div:nth-child(4){animation-delay:3s}
#tab-home .term-body .t-green{display:inline-block}
#tab-home .terminal-box.rv-in .term-body>div:nth-child(2) .t-green:last-child,
#tab-home .terminal-box.rv-in .term-body>div:nth-child(3) .t-green:last-child{animation:hmTick .4s ease 1.9s both}
#tab-home .term-body::after{content:"";display:inline-block;width:7px;height:13px;margin-left:2px;vertical-align:-2px;background:#25d366;animation:hmBlink 1s steps(2) infinite}
#tab-home .term-dot{animation:hmPop .5s both}
#tab-home .term-dot:nth-child(2){animation-delay:.1s}#tab-home .term-dot:nth-child(3){animation-delay:.2s}

/* ───────── 6. Explore Platform (bento) ───────── */
html[data-mobile-app] #tab-home .hm-bento{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html[data-mobile-app] #tab-home .hm-q{--c1:#128C7E;--c2:#25d366;position:relative;overflow:hidden;min-height:112px;padding:14px 13px 12px!important;gap:3px!important;
  border-radius:20px!important;background:#fff!important;
  box-shadow:0 1px 2px rgba(11,20,26,.10),0 12px 24px -16px var(--c1)!important;
  transition:transform .2s cubic-bezier(.34,1.56,.64,1),box-shadow .2s!important;-webkit-tap-highlight-color:transparent}
#tab-home .hm-q::before{content:"";position:absolute;right:-26px;top:-26px;width:86px;height:86px;border-radius:50%;
  background:radial-gradient(circle,var(--c2),transparent 70%);opacity:.22;animation:hmOrb 6s ease-in-out infinite}
html[data-mobile-app] #tab-home .hm-q:active{transform:scale(.96)!important;background:#fafcfb!important}
html[data-mobile-app] #tab-home .hm-q .qc-icon{position:relative;width:40px!important;height:40px!important;border-radius:14px!important;margin-bottom:6px;
  display:flex;align-items:center;justify-content:center;font-size:16px;color:#fff!important;
  background:linear-gradient(135deg,var(--c1),var(--c2))!important;box-shadow:0 8px 14px -6px var(--c1);animation:hmFloat 4.5s ease-in-out infinite!important}
#tab-home .hm-q:nth-child(2n) .qc-icon{animation-delay:-1.2s!important}
#tab-home .hm-q:nth-child(3n) .qc-icon{animation-delay:-2.4s!important}
html[data-mobile-app] #tab-home .hm-q .qc-label{font-size:13px!important;font-weight:800;position:relative}
html[data-mobile-app] #tab-home .hm-q .qc-sub{font-size:10.5px!important;position:relative;padding-right:26px}
#tab-home .hm-go{position:absolute;right:11px;bottom:11px;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:9px;color:#fff;background:linear-gradient(135deg,var(--c1),var(--c2));transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
#tab-home .hm-q:active .hm-go{transform:translateX(4px) scale(1.12)}
#tab-home .hm-q .hm-go{animation:hmNudge 2.2s ease-in-out infinite}

.hm-q.hm-feature,.hm-q.hm-wide{grid-column:1/-1}
html[data-mobile-app] #tab-home .hm-q.hm-feature{min-height:128px;color:#fff;
  background:linear-gradient(125deg,#064e46,#0b8f74,#25d366,#0b8f74)!important;background-size:240% 100%!important;animation:hmFlow 8s ease-in-out infinite alternate;
  box-shadow:0 1px 2px rgba(11,20,26,.12),0 16px 30px -14px rgba(7,94,84,.8)!important}
#tab-home .hm-feature::before{background:radial-gradient(circle,#fff,transparent 70%);opacity:.2;width:130px;height:130px}
#tab-home .hm-feature::after{content:"";position:absolute;top:0;bottom:0;left:0;width:35%;pointer-events:none;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.25),transparent);animation:hmSweep 4.5s ease-in-out 1.2s infinite}
html[data-mobile-app] #tab-home .hm-feature .qc-label{color:#fff!important;font-size:15px!important}
html[data-mobile-app] #tab-home .hm-feature .qc-sub{color:rgba(255,255,255,.88)!important;font-size:11px!important}
html[data-mobile-app] #tab-home .hm-feature .qc-icon{background:rgba(255,255,255,.2)!important;box-shadow:none;backdrop-filter:blur(6px)}
#tab-home .hm-feature .hm-go{background:#fff;color:#075E54}
.hm-tag{position:absolute;right:12px;top:12px;font-size:9px;font-weight:800;letter-spacing:.6px;padding:3px 9px;border-radius:999px;
  background:rgba(255,255,255,.22);color:#fff;border:1px solid rgba(255,255,255,.35)}
.hm-tag::before{content:"🔥 "}
.hm-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;position:relative}
.hm-chips b{font-size:9.5px;font-weight:700;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.18);color:#fff}
html[data-mobile-app] #tab-home .hm-wide{min-height:0;flex-direction:row!important;align-items:center;gap:12px!important}
html[data-mobile-app] #tab-home .hm-wide .qc-icon{margin:0}
#tab-home .hm-wide .hm-txt{flex:1;min-width:0;position:relative;padding-right:30px}
#tab-home .hm-wide .hm-go{bottom:auto;top:50%;margin-top:-12px}
#tab-home .hm-wide .qc-sub{padding-right:0!important}

.hm-q.c1{--c1:#064e46;--c2:#25d366}.hm-q.c2{--c1:#027eb5;--c2:#53bdeb}.hm-q.c3{--c1:#e08600;--c2:#ffc94d}
.hm-q.c4{--c1:#6d4aff;--c2:#a58dff}.hm-q.c5{--c1:#d6153f;--c2:#ff7a93}.hm-q.c6{--c1:#0891b2;--c2:#5eead4}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important}
  #tab-home .term-body>div{clip-path:none}
}

/* ───────── polish: 4-card Explore layout ───────── */
html[data-mobile-app] #tab-home .hm-bento{gap:10px;align-items:stretch}
html[data-mobile-app] #tab-home .hm-q:not(.hm-feature):not(.hm-wide){min-height:118px;justify-content:flex-start}
html[data-mobile-app] #tab-home .hm-wide{padding:12px 13px!important;min-height:68px}
html[data-mobile-app] #tab-home .hm-wide .qc-sub{font-size:10.5px!important;line-height:1.35}
#tab-home .hm-wide .hm-go{right:12px}
#tab-home .hm-q>*{position:relative;z-index:1}
#tab-home .hm-q .hm-go,#tab-home .hm-tag{position:absolute}

/* ───────── FIX: hero gradient words rendered as solid boxes ─────────
   The !important background shorthand was resetting background-clip, so the
   gradient painted the whole box instead of only the letters. */
html[data-mobile-app] #tab-home .hero-title .blue,
html[data-mobile-app] #tab-home .hero-title .green{
  display:inline-block;
  background-image:linear-gradient(90deg,#128C7E,#25d366,#53bdeb,#128C7E)!important;
  background-size:200% 100%!important;
  background-repeat:repeat-x!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  color:transparent!important;
  padding-bottom:.08em;
}
