/* ==========================================================================
   Giao diện "Thác nước ETG102NL" – thêm 20/11/2026
   Nền: cảnh thác nước, rừng xanh lấy từ ảnh máy ETUGI ETG102NL (đã làm mờ).
   Chỉ bổ sung lên etugi.css, không xóa phần nào cũ. Tắt hết chuyển động khi
   người xem bật "giảm chuyển động" trên máy.
   ========================================================================== */
:root{
  --mist:#E8F1EC; --mist-2:#DCEAE2; --falls:#BFE3F2; --falls-deep:#2E7FA6;
  --bg-falls:url("../img/brand/thac-nuoc-bg.webp");
}

/* Nền chung toàn trang: sương mù xanh nhẹ thay cho nền ngà phẳng */
body{
  background:
    radial-gradient(1100px 520px at 8% -6%, rgba(191,227,242,.55), transparent 70%),
    radial-gradient(900px 480px at 100% 30%, rgba(23,77,56,.08), transparent 70%),
    linear-gradient(180deg, #EFF5F1 0%, #F4F3EC 60%, #F1F4EE 100%);
  background-attachment:fixed;
}

/* Thanh tiến độ đọc trên cùng – dòng nước chảy dần theo khi cuộn */
.read-bar{position:fixed;inset:0 0 auto 0;height:3px;z-index:60;pointer-events:none;background:transparent}
.read-bar i{display:block;height:100%;width:100%;transform-origin:0 50%;transform:scaleX(0);
  background:linear-gradient(90deg,#8FD3EE,#1891C8 45%,#C7A66A);box-shadow:0 0 12px rgba(24,145,200,.6)}

/* ---------- HERO: thác nước chuyển động ---------- */
.hero.falls{
  background:
    linear-gradient(100deg, rgba(10,40,29,.94) 0%, rgba(16,56,40,.86) 34%, rgba(16,56,40,.42) 62%, rgba(16,56,40,.18) 100%),
    var(--bg-falls) center 30%/cover no-repeat, var(--emerald-deep);
  min-height:min(92vh,880px);display:flex;align-items:center;isolation:isolate
}
.hero.falls::before{z-index:-1;background:radial-gradient(circle,rgba(191,227,242,.22),transparent 65%);inset:-20% -15% auto auto;width:70vw;height:70vw;animation:mistGlow 9s ease-in-out infinite alternate}
.hero.falls .wrap{width:100%;z-index:2}
.falls-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;mix-blend-mode:screen}
.hero.falls .hero-copy > *{animation:riseIn .9s cubic-bezier(.2,.7,.2,1) both}
.hero.falls .hero-copy > *:nth-child(2){animation-delay:.12s}
.hero.falls .hero-copy > *:nth-child(3){animation-delay:.24s}
.hero.falls .hero-copy > *:nth-child(4){animation-delay:.36s}
.hero.falls .hero-copy > *:nth-child(5){animation-delay:.48s}
.hero.falls .hero-copy > *:nth-child(6){animation-delay:.58s}
.hero.falls h1 em{background:linear-gradient(90deg,#E4D3AE,#BFE3F2,#E4D3AE);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shimmerText 6s linear infinite}

/* Khung vòm máy ETG102NL: nổi nhẹ như đứng giữa thác */
.hero.falls .arch{animation:floatY 7s ease-in-out infinite}
.hero.falls .arch img{border:1px solid rgba(191,227,242,.35)}
.hero.falls .arch::before{content:"";position:absolute;inset:-34px;border-radius:280px 280px 40px 40px;z-index:-1;
  background:radial-gradient(closest-side,rgba(191,227,242,.35),transparent);filter:blur(8px);animation:mistGlow 6s ease-in-out infinite alternate}
.hero.falls .arch figcaption{animation:riseIn 1s .7s both}

/* Gợi ý cuộn xuống */
.scroll-cue{position:absolute;left:50%;bottom:clamp(64px,8vw,92px);transform:translateX(-50%);z-index:3;display:flex;flex-direction:column;align-items:center;gap:8px;
  color:rgba(244,243,236,.85);font-size:.74rem;letter-spacing:.2em;text-transform:uppercase;text-decoration:none}
.scroll-cue .drop{width:22px;height:34px;border:1.5px solid rgba(244,243,236,.7);border-radius:12px;position:relative}
.scroll-cue .drop::after{content:"";position:absolute;left:50%;top:6px;width:6px;height:8px;margin-left:-3px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:#BFE3F2;animation:dropFall 1.8s ease-in infinite}
.scroll-cue:hover{color:#fff}

/* Sóng nước chân hero */
.wave-edge{position:absolute;left:0;right:0;bottom:-1px;height:clamp(46px,6vw,80px);z-index:2;pointer-events:none;overflow:hidden}
.wave-edge svg{position:absolute;bottom:0;width:200%;height:100%;left:0}
.wave-edge .w1{animation:waveMove 14s linear infinite;opacity:.55}
.wave-edge .w2{animation:waveMove 9s linear infinite reverse}

/* ---------- Các dải nền tối khác: cùng cảnh thác, có màn nước rơi ---------- */
.quality,.final,.page-head{position:relative;isolation:isolate;overflow:hidden}
.quality{background:linear-gradient(180deg,rgba(10,40,29,.93),rgba(16,56,40,.88)),var(--bg-falls) center/cover no-repeat,var(--emerald-deep)}
.final{background:linear-gradient(180deg,rgba(16,56,40,.86),rgba(10,40,29,.93)),var(--bg-falls) center 40%/cover no-repeat,var(--emerald)}
.page-head{background:linear-gradient(100deg,rgba(10,40,29,.93),rgba(16,56,40,.72)),var(--bg-falls) center 30%/cover no-repeat,var(--emerald)}
@media (min-width:901px) and (hover:hover){.quality,.final,.page-head{background-attachment:scroll,fixed,scroll}}
.quality::after,.final::after,.page-head::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.22;
  background-image:repeating-linear-gradient(90deg,transparent 0 46px,rgba(191,227,242,.55) 46px 47px,transparent 47px 91px,rgba(255,255,255,.35) 91px 92px,transparent 92px 140px);
  -webkit-mask-image:repeating-linear-gradient(180deg,#000 0 38px,transparent 38px 120px);mask-image:repeating-linear-gradient(180deg,#000 0 38px,transparent 38px 120px);
  -webkit-mask-size:100% 240px;mask-size:100% 240px;animation:rainFall 2.6s linear infinite}

/* ---------- Dải sáng: thẻ nổi nhẹ, viền nước khi rê chuột ---------- */
.diff-grid article,.sol,.k-card,.tiers > div,.values > div,.moments > div{transition:transform .35s ease,box-shadow .35s ease,background .35s ease}
.diff-grid article:hover,.sol:hover,.k-card:hover,.tiers > div:hover{transform:translateY(-6px);box-shadow:0 26px 50px -30px rgba(24,145,200,.55)}
.diff-grid .ic{position:relative;overflow:hidden}
.diff-grid article:hover .ic{background:linear-gradient(180deg,transparent 40%,rgba(191,227,242,.8) 40%);background-size:100% 200%;animation:fillUp 1s ease forwards}
.eyebrow::before{content:"";display:inline-block;width:7px;height:9px;margin-right:9px;vertical-align:1px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:currentColor;opacity:.9;animation:dropPulse 2.8s ease-in-out infinite}

/* Hình ảnh trong trang hiện ra kèm hiệu ứng gợn nước */
.life img{transition:transform 1.2s cubic-bezier(.2,.7,.2,1),filter 1.2s ease}
.life img.reveal.pre{transform:scale(.96) translateY(18px);filter:saturate(.6) blur(2px)}

/* Nút vàng có vệt sáng chạy qua để thu hút bấm */
.btn.gold{position:relative;overflow:hidden}
.btn.gold::after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-60%;transform:skewX(-20deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);animation:sweep 3.8s ease-in-out infinite}

/* Tiêu đề mỗi phần hiện dần (nội dung luôn đọc được, chỉ mờ nhẹ trước khi tới) */
.js .sec-head.flow-pre{opacity:.55;transform:translateY(16px)}
.sec-head{transition:opacity .8s ease,transform .8s ease}
.sec-head .rule{transform-origin:0 50%;transition:transform 1s .2s ease}
.js .sec-head.flow-pre .rule{transform:scaleX(.2)}

/* ---------- Keyframes ---------- */
@keyframes riseIn{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes floatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes mistGlow{from{opacity:.55;transform:scale(1)}to{opacity:1;transform:scale(1.08)}}
@keyframes shimmerText{to{background-position:-200% 0}}
@keyframes dropFall{0%{transform:translateY(0);opacity:0}20%{opacity:1}80%{transform:translateY(14px);opacity:1}100%{transform:translateY(16px);opacity:0}}
@keyframes waveMove{to{transform:translateX(-50%)}}
@keyframes rainFall{to{-webkit-mask-position:0 240px;mask-position:0 240px}}
@keyframes fillUp{from{background-position:0 0}to{background-position:0 100%}}
@keyframes dropPulse{0%,100%{transform:translateY(0);opacity:.9}50%{transform:translateY(2px);opacity:.5}}
@keyframes sweep{0%,60%{left:-60%}100%{left:130%}}

@media (max-width:900px){
  .hero.falls{min-height:auto;padding-bottom:120px;
    background:linear-gradient(180deg,rgba(10,40,29,.84) 0%,rgba(16,56,40,.62) 45%,rgba(16,56,40,.35) 100%),var(--bg-falls) 55% top/auto 100% no-repeat,var(--emerald-deep)}
  .scroll-cue{bottom:58px}
}
@media (prefers-reduced-motion:reduce){
  .falls-canvas,.quality::after,.final::after,.page-head::after,.btn.gold::after{display:none}
  .hero.falls .arch,.hero.falls h1 em,.wave-edge svg *{animation:none}
  .hero.falls h1 em{color:var(--gold-soft);background:none}
  .js .sec-head.flow-pre{opacity:1;transform:none}
}

/* ==========================================================================
   Video thác nước làm nền phần đầu trang chủ – thêm 20/11/2026 tối
   (video tạo trên Google Flow, đã cắt bỏ chữ/logo/máy; khung vòm giữ nguyên ảnh)
   ========================================================================== */
.hero.falls.has-video{background:url("../img/brand/thac-nuoc-video.webp") center 40%/cover no-repeat,var(--emerald-deep)}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%;z-index:-3;pointer-events:none;
  opacity:0;transition:opacity 1.2s ease}
.hero-video.is-playing{opacity:1}
.hero-shade{position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:linear-gradient(100deg,rgba(10,40,29,.9) 0%,rgba(16,56,40,.78) 32%,rgba(16,56,40,.34) 60%,rgba(16,56,40,.12) 100%),
             linear-gradient(180deg,rgba(10,40,29,.25) 0%,transparent 30%,transparent 70%,rgba(10,40,29,.35) 100%)}
@media (max-width:900px){
  .hero.falls.has-video{background:url("../img/brand/thac-nuoc-video.webp") 32% center/cover no-repeat,var(--emerald-deep)}
  .hero-video{object-position:32% 50%}
  .hero-shade{background:linear-gradient(180deg,rgba(10,40,29,.8) 0%,rgba(16,56,40,.56) 45%,rgba(16,56,40,.3) 100%)}
}
@media (prefers-reduced-motion:reduce){.hero-video{display:none}}

/* ==========================================================================
   Ảnh máy ETG102NL đứng tự do trên nền video (bỏ khung vòm) – 20/11/2026
   ========================================================================== */
.hero-product{position:relative;justify-self:center;align-self:center;width:min(100%,clamp(170px,17vw,230px));margin:0;z-index:1;animation:floatY 7s ease-in-out infinite}
.hero-product img{display:block;width:100%;height:auto;filter:drop-shadow(0 36px 34px rgba(0,0,0,.5)) drop-shadow(0 0 30px rgba(191,227,242,.25))}
.hero-product::after{content:"";position:absolute;left:-18%;right:-18%;bottom:-26px;height:70px;z-index:-1;border-radius:50%;
  background:radial-gradient(closest-side,rgba(235,246,250,.55),rgba(235,246,250,0));filter:blur(6px);animation:mistGlow 5s ease-in-out infinite alternate}
.hero-product figcaption{position:absolute;left:-46%;bottom:18%;background:var(--ivory);color:var(--emerald);padding:14px 18px;border-radius:12px;box-shadow:var(--shadow);font-size:.82rem;max-width:220px;animation:riseIn 1s .7s both}
.hero-product figcaption b{display:block;font:600 1.1rem/1.2 var(--f-display)}
@media (max-width:900px){
  .hero-product{width:min(44%,170px);justify-self:center}
  .hero-product figcaption{left:62%;right:auto;bottom:20%;max-width:170px;padding:10px 14px}
}
@media (prefers-reduced-motion:reduce){.hero-product,.hero-product::after{animation:none}}

/* ==========================================================================
   Nền đầu trang chủ: máy ETG102NL đứng trên tảng đá phủ rêu, rừng cây giữ
   nguyên, thác nước chảy (video Google Flow, đã xóa chữ/logo in sẵn,
   nối vòng lặp mượt) – 20/11/2026 22h
   - Máy tính/điện thoại nằm ngang: video ngang 1600x900
   - Điện thoại dựng đứng: video dọc 720x1280, máy hiện ngay dưới phần chữ
   ========================================================================== */
:root{--bg-falls:url("../img/brand/thac-nuoc-bg-etg102nl.webp")}
.hero.falls.scene-102nl{min-height:min(94vh,900px);
  background:url("../img/brand/etg102nl-thac-ngang.webp") center 55%/cover no-repeat,var(--emerald-deep)}
.scene-102nl .hero-video{object-position:50% 55%;transform-origin:72% 60%;animation:sceneZoom 24s ease-in-out infinite alternate}
.scene-102nl .hero-shade{background:
  linear-gradient(90deg,rgba(10,40,29,.93) 0%,rgba(13,48,34,.82) 30%,rgba(16,56,40,.38) 52%,rgba(16,56,40,0) 66%),
  linear-gradient(180deg,rgba(10,40,29,.35) 0%,transparent 22%,transparent 78%,rgba(10,40,29,.45) 100%)}
.scene-102nl .wrap{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.scene-102nl .hero-copy{max-width:600px}

/* Nhãn chỉ vào máy ETG102NL: chấm sáng gợn sóng, bấm để xem chi tiết */
.scene-tag{justify-self:start;align-self:center;display:flex;align-items:center;gap:0;text-decoration:none;
  margin-left:clamp(0px,3vw,48px);position:relative;z-index:3;animation:riseIn 1s .8s both}
.scene-tag .txt{order:1;display:flex;flex-direction:column;background:rgba(244,243,236,.95);color:var(--emerald);
  padding:12px 16px;border-radius:12px;box-shadow:0 18px 40px -18px rgba(0,0,0,.55);font-size:.82rem;line-height:1.35;transition:transform .3s ease,box-shadow .3s ease}
.scene-tag .txt b{font:600 1.12rem/1.2 var(--f-display)}
.scene-tag .txt i{font-style:normal;font-weight:600;color:var(--gold);margin-top:4px}
.scene-tag .pulse{order:2;position:relative;width:clamp(40px,6vw,96px);height:2px;background:linear-gradient(90deg,rgba(244,243,236,.95),rgba(191,227,242,.9))}
.scene-tag .pulse::before,.scene-tag .pulse::after{content:"";position:absolute;right:-7px;top:50%;width:14px;height:14px;margin-top:-7px;border-radius:50%}
.scene-tag .pulse::before{background:#BFE3F2;box-shadow:0 0 14px rgba(191,227,242,.9)}
.scene-tag .pulse::after{border:2px solid #BFE3F2;animation:ripple 2.2s ease-out infinite}
.scene-tag:hover .txt,.scene-tag:focus-visible .txt{transform:translateY(-3px);box-shadow:0 24px 46px -18px rgba(0,0,0,.6)}

@keyframes sceneZoom{from{transform:scale(1)}to{transform:scale(1.06)}}
@keyframes ripple{0%{transform:scale(1);opacity:.9}100%{transform:scale(3.2);opacity:0}}

/* Điện thoại, máy tính bảng dựng đứng: chữ ở trên, cảnh máy trên đá rêu ở dưới */
@media (max-width:900px) and (orientation:portrait){
  .hero.falls.scene-102nl{min-height:auto;padding-bottom:calc(112vw + 40px);
    background:url("../img/brand/etg102nl-thac-doc.webp") center bottom/100% auto no-repeat,var(--emerald-deep)}
  .scene-102nl .hero-video{inset:auto 0 0 0;width:100%;height:auto;aspect-ratio:9/16;object-position:center;animation:none}
  .scene-102nl .hero-shade{background:
    linear-gradient(180deg,rgba(10,40,29,1) 0%,rgba(10,40,29,.95) calc(100% - 120vw),rgba(10,40,29,.45) calc(100% - 104vw),rgba(10,40,29,0) calc(100% - 92vw),rgba(10,40,29,0) 90%,rgba(10,40,29,.35) 100%)}
  .scene-102nl .wrap{grid-template-columns:1fr;position:static}
  .scene-tag{position:absolute;left:max(16px,4vw);bottom:calc(66vw);margin:0;animation:riseIn 1s .6s both}
  .scene-tag .pulse{width:clamp(26px,12vw,64px)}
  .scene-tag .txt{padding:9px 12px;font-size:.76rem}
  .scene-tag .txt b{font-size:1rem}
}
@media (prefers-reduced-motion:reduce){
  .scene-102nl .hero-video{animation:none}
  .scene-tag,.scene-tag .pulse::after{animation:none}
}
