:root{
  --navy:#0a1f3d; --navy2:#0f2c55; --blue:#1478ff; --green:#19c37d;
  --ink:#10233f; --mut:#5b6b82; --bg:#fff; --alt:#f3f7fc; --line:#e1e8f2;
  --grad:linear-gradient(135deg,#1478ff,#19c37d);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:76px}
body{font-family:'Cairo',system-ui,'Segoe UI',Tahoma,sans-serif;color:var(--ink);background:var(--bg);line-height:1.8;overflow-x:hidden}
a{color:inherit;text-decoration:none}
.wrap{width:min(1120px,100% - 40px);margin-inline:auto}

/* nav */
.nav{position:fixed;inset:0 0 auto 0;z-index:50;background:rgba(10,31,61,.92);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.08)}
.nav-in{display:flex;align-items:center;gap:20px;height:68px}
.brand{display:flex;align-items:center;gap:10px;color:#fff}
.brand-t{display:flex;flex-direction:column;line-height:1.15}
.brand-t b{font-size:1rem}
.brand-t small{color:#7fe3b8;letter-spacing:.2em;font-weight:700}
.links{display:flex;gap:26px;margin-inline:auto}
.links a{color:#cfe0f7;font-weight:600;font-size:.95rem;transition:color .2s}
.links a:hover{color:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--grad);color:#fff;border:0;border-radius:12px;padding:12px 26px;font:700 1rem 'Cairo',sans-serif;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 8px 24px rgba(20,120,255,.28)}
.btn:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(25,195,125,.3)}
.btn-sm{padding:8px 18px;font-size:.9rem}
.btn-ghost{background:transparent;border:1.5px solid rgba(255,255,255,.35);box-shadow:none}
.btn-ghost:hover{background:rgba(255,255,255,.08);box-shadow:none}
.burger{display:none;background:none;border:0;width:40px;height:40px;cursor:pointer;flex-direction:column;justify-content:center;gap:6px;align-items:center}
.burger span{display:block;width:24px;height:2px;background:#fff;border-radius:2px}

/* hero */
.hero{position:relative;background:radial-gradient(1200px 500px at 80% -10%,rgba(21,65,125,.55) 0,transparent 60%),linear-gradient(180deg,rgba(10,31,61,.68) 0%,rgba(10,31,61,.82) 55%,rgba(10,31,61,.94) 100%),url(https://static.wixstatic.com/media/403560_ee07a7ccb37b4da8a9fb179c20335545~mv2.jpeg) center bottom/cover no-repeat,var(--navy);color:#fff;padding:150px 0 100px;overflow:hidden}
.grid-bg{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(#000,transparent 85%)}
.hero-in{position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:center}
.chip{display:inline-block;background:rgba(25,195,125,.14);color:#7fe3b8;border:1px solid rgba(25,195,125,.35);padding:4px 16px;border-radius:99px;font-size:.88rem;font-weight:600;margin-bottom:18px}
.hero h1{font-size:clamp(2rem,4.6vw,3.3rem);line-height:1.35;font-weight:800;margin-bottom:18px}
.hero h1 em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{color:#c4d6ef;font-size:1.08rem;max-width:560px;margin-bottom:30px}
.cta{display:flex;gap:14px;flex-wrap:wrap}
.air{width:100%;max-width:420px;margin-inline:auto;display:block}
.flow{fill:none;stroke:url(#g2);stroke-width:3;stroke-linecap:round;stroke-dasharray:10 14;opacity:.85;animation:dash 3s linear infinite}
.f2{animation-duration:3.6s}.f3{animation-duration:2.8s}.f4{animation-duration:3.3s}
@keyframes dash{to{stroke-dashoffset:-96}}
.blink{animation:blink 1.8s ease-in-out infinite}
@keyframes blink{50%{opacity:.25}}

/* sections */
.sec{padding:92px 0}
.sec.alt{background:var(--alt)}
.head{max-width:680px;margin-bottom:46px}
.kicker{color:var(--blue);font-weight:700;font-size:.92rem;letter-spacing:.04em}
.head h2,.q-txt h2{font-size:clamp(1.6rem,3.2vw,2.3rem);line-height:1.4;font-weight:800;margin:4px 0 12px}
.head p,.q-txt p{color:var(--mut)}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px;transition:transform .25s,box-shadow .25s,border-color .25s}
.card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(16,35,63,.1);border-color:#bcd6fb}
.ic{width:60px;height:60px;border-radius:16px;background:var(--grad);display:grid;place-items:center;margin-bottom:18px}
.ic svg{width:32px;height:32px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.card h3{font-size:1.2rem;margin-bottom:8px}
.card p{color:var(--mut);font-size:.97rem}
.strip{list-style:none;display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.strip li{background:var(--navy);color:#fff;padding:8px 20px;border-radius:99px;font-size:.92rem;font-weight:600;position:relative;padding-inline-start:34px}
.strip li::before{content:"";position:absolute;inset-inline-start:14px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;background:var(--green)}

.steps{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:18px;counter-reset:s}
.steps li{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px 20px;position:relative}
.steps b{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--grad);color:#fff;margin-bottom:12px}
.steps h3{font-size:1.05rem;margin-bottom:6px}
.steps p{color:var(--mut);font-size:.9rem;line-height:1.7}

.why{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.why div{border-inline-start:3px solid var(--green);padding:6px 18px}
.why h3{font-size:1.1rem;margin-bottom:6px}
.why p{color:var(--mut);font-size:.95rem}

.quote{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:start}
.contacts{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.contacts a,.contacts span{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--navy)}
.contacts i{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--grad);color:#fff;font-style:normal;font-size:.8rem}
.form{background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;display:grid;gap:16px;box-shadow:0 18px 40px rgba(16,35,63,.07)}
.form label{display:grid;gap:6px;font-weight:600;font-size:.92rem}
.form input,.form select,.form textarea{width:100%;font:inherit;font-weight:400;color:var(--ink);background:var(--alt);border:1.5px solid transparent;border-radius:12px;padding:11px 14px;transition:border-color .2s,background .2s}
.form input:focus,.form select:focus,.form textarea:focus{outline:0;border-color:var(--blue);background:#fff}
.form .invalid{border-color:#e5484d}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.note{min-height:1.4em;font-size:.92rem;color:var(--mut)}
.note.ok{color:#0f8a57;font-weight:600}
.note.err{color:#c4313a;font-weight:600}

.foot{background:var(--navy);color:#b8cbe6;padding:34px 0;text-align:center}
.foot-in{display:flex;flex-direction:column;gap:4px;align-items:center}
.foot b{color:#fff}

/* responsive */
@media (max-width:980px){
  .steps{grid-template-columns:repeat(2,1fr)}
  .why{grid-template-columns:repeat(2,1fr)}
  .cards{grid-template-columns:1fr}
  .quote{grid-template-columns:1fr}
  .hero-in{grid-template-columns:1fr}
  .hero-vis{margin-top:10px}
}
@media (max-width:760px){
  .burger{display:flex;margin-inline-start:auto}
  .nav .btn-sm{display:none}
  .links{position:absolute;top:68px;inset-inline:0;background:var(--navy);flex-direction:column;gap:0;margin:0;padding:8px 20px 16px;border-bottom:1px solid rgba(255,255,255,.1);display:none}
  .links.open{display:flex}
  .links a{padding:12px 0;border-bottom:1px solid rgba(255,255,255,.06)}
  .hero{padding:120px 0 70px}
  .sec{padding:64px 0}
  .steps,.why,.row2{grid-template-columns:1fr}
  .form{padding:22px}
}
@media (prefers-reduced-motion:reduce){
  .flow,.blink{animation:none}
  html{scroll-behavior:auto}
}
/* ثرموستات تفاعلي: شاشة LCD ولوحة فضية */
.hero-vis{display:flex;justify-content:center}
.thermo{--tc:#2fa8ff;--spd:2.2s;width:min(340px,100%);border-radius:24px;overflow:hidden;border:1px solid rgba(255,255,255,.14);box-shadow:0 30px 60px rgba(0,0,0,.4)}
.lcd{direction:ltr;background:rgba(7,9,13,.82);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:14px 16px 12px;color:#fff;transition:opacity .3s}
.lcd-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.ic-row,.sys{display:flex;align-items:center;gap:8px}
.li{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:opacity .25s}
.li .fillme{fill:#fff;stroke:none}
.fanl{animation:spin var(--spd) linear infinite;transform-origin:50% 50%}
@keyframes spin{to{transform:rotate(360deg)}}
.swl{opacity:.25}
.thermo[data-swing="1"] .swl{opacity:1;animation:sway 1.8s ease-in-out infinite}
@keyframes sway{50%{transform:translateY(2px)}}
.lockl{opacity:.2}
.thermo[data-lock="1"] .lockl{opacity:1}
.clock{font-weight:700;font-size:1.05rem;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.bars{display:flex;align-items:flex-end;gap:2px;height:14px}
.bars i{display:block;width:4px;border-radius:2px;background:rgba(255,255,255,.18)}
.bars i:nth-child(1){height:5px}.bars i:nth-child(2){height:8px}.bars i:nth-child(3){height:11px}.bars i:nth-child(4){height:14px}
.bars i.on{background:#fff}
.lcd-main{display:flex;justify-content:space-between;align-items:flex-end;margin:10px 0 4px;gap:10px}
.lbl{display:block;font-size:.72rem;color:#9fb0c6;font-weight:600;margin-bottom:2px;direction:rtl;text-align:start}
.seg-wrap{display:flex;align-items:flex-start;gap:4px}
.seg{display:block;width:84px;height:auto;transform:skewX(-5deg)}
.seg.big{width:158px}
.seg line{stroke:rgba(255,255,255,.07);stroke-width:7;stroke-linecap:round;transition:stroke .12s}
.seg line.on{stroke:#fff;filter:drop-shadow(0 0 2px rgba(255,255,255,.5))}
.seg circle{fill:rgba(255,255,255,.07)}
.seg circle.on{fill:#fff}
.unit{font-size:.8rem;font-weight:700;color:#e7eef8;margin-top:2px}
.setb{padding-bottom:2px}
.lcd-bot{display:flex;justify-content:space-between;direction:rtl;font-size:.82rem;color:#9fb0c6;font-weight:600;margin-top:6px}
.panel{background:linear-gradient(180deg,rgba(228,231,236,.94),rgba(172,178,187,.94));padding:14px 16px 16px;display:grid;gap:12px}
.row5{display:flex;justify-content:space-between;direction:ltr}
.row2{display:flex;justify-content:center;gap:30px;direction:ltr}
.rb{width:44px;height:44px;border-radius:50%;border:1.5px solid rgba(20,40,70,.28);background:rgba(255,255,255,.4);color:#17263d;display:grid;place-items:center;cursor:pointer;padding:0;transition:transform .15s,background .2s,border-color .2s,box-shadow .2s,color .2s}
.rb.big{width:58px;height:58px}
.rb svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.rb.big svg{width:26px;height:26px}
.rb:hover{background:var(--grad);border-color:transparent;color:#fff;box-shadow:0 6px 16px rgba(25,195,125,.35)}
.rb:active{transform:scale(.9)}
.rb:focus-visible{outline:2px solid #0a7a4a;outline-offset:3px}
.rb[aria-pressed="true"]{border-color:#0a7a4a}
#bPower[aria-pressed="true"]{color:#0a8a55}
#bLock[aria-pressed="true"]{background:var(--grad);color:#fff;border-color:transparent}
.fanbtn{transform-origin:50% 50%;animation:spin var(--spd) linear infinite}
.thermo[data-on="0"] .lcd-main,.thermo[data-on="0"] .ic-row,.thermo[data-on="0"] .lockl{opacity:.2}
.thermo[data-on="0"] .fanl,.thermo[data-on="0"] .fanbtn,.thermo[data-on="0"] .swl{animation-play-state:paused}
.thermo[data-on="0"] .ctl{opacity:.4;pointer-events:none}
.thermo[data-lock="1"] .ctl{opacity:.4;pointer-events:none}
@media (max-width:380px){.seg.big{width:132px}.seg{width:72px}.rb{width:40px;height:40px}.rb.big{width:54px;height:54px}}
@media (prefers-reduced-motion:reduce){.fanl,.fanbtn,.swl{animation:none!important}}
/* الشعار */
.brand-logo{height:30px;width:auto;display:block}
.brand-t b{font-size:.95rem}
.foot-logo{height:34px;width:auto;display:block;margin-bottom:6px}


/* طقس الرياض */
.wx{display:flex;align-items:center;gap:8px;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:99px;padding:4px 12px;font-weight:700;white-space:nowrap}
.wx[hidden]{display:none}
.wi{width:22px;height:22px;fill:none;stroke:#7fe3b8;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wt{direction:ltr;font-size:1rem}
.wt sup{font-size:.6rem;margin-inline-start:1px}
.wx small{color:#9fc2ee;font-weight:600;font-size:.8rem}
@media (max-width:760px){.wx small{display:none}.wx{padding:3px 9px}}

/* ثرموستات: سطر واحد للأزرار ونصوص إنجليزية */
.lbl{direction:ltr}
.lcd-bot{direction:ltr}
.row5{gap:4px}
.panel .rb{width:40px;height:40px}
.panel .rb svg{width:20px;height:20px}
#bDown,#bUp{background:rgba(255,255,255,.75);border-color:#0a7a4a}
@media (max-width:380px){.panel{padding:12px 12px 14px}.panel .rb{width:35px;height:35px}.panel .rb svg{width:18px;height:18px}}

/* تكبير الثرموستات */
@media (min-width:381px){
  .thermo{width:min(430px,100%);border-radius:28px}
  .lcd{padding:20px 22px 16px}
  .li{width:24px;height:24px}
  .clock{font-size:1.25rem}
  .bars{height:17px}.bars i{width:5px}.bars i:nth-child(1){height:6px}.bars i:nth-child(2){height:10px}.bars i:nth-child(3){height:14px}.bars i:nth-child(4){height:17px}
  .lbl{font-size:.8rem}
  .seg.big{width:206px}
  .seg{width:112px}
  .unit{font-size:1rem}
  .lcd-bot{font-size:.92rem}
  .panel{padding:18px 22px 22px}
  .panel .rb{width:48px;height:48px}
  .panel .rb svg{width:24px;height:24px}
}

/* اسم الشركة صغير تحت الشعار */
.brand{flex-direction:column;align-items:center;gap:3px}
.brand-logo{height:26px}
.brand-t{line-height:1}
.brand-t b{font-size:.66rem;font-weight:600;color:#cfe0f7;white-space:nowrap;letter-spacing:0}


/* لمعة اللوجو */
.logo-shine{position:relative;display:inline-block;line-height:0}
.logo-shine::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(110deg,transparent 38%,rgba(255,255,255,.95) 50%,transparent 62%);background-size:250% 100%;background-position:100% 0;
  -webkit-mask:url(assets/logo-mark.svg) center/contain no-repeat;mask:url(assets/logo-mark.svg) center/contain no-repeat;
  animation:logoShine 3.8s ease-in-out infinite}
@keyframes logoShine{0%{background-position:100% 0}55%,100%{background-position:0% 0}}
.brand-logo,.foot-logo{filter:drop-shadow(0 0 6px rgba(25,195,125,.4));animation:logoGlow 3.8s ease-in-out infinite}
@keyframes logoGlow{0%,100%{filter:drop-shadow(0 0 4px rgba(20,120,255,.35))}50%{filter:drop-shadow(0 0 10px rgba(25,195,125,.65))}}
.foot .logo-shine{margin-bottom:6px}
.foot-logo{margin-bottom:0}
@media (prefers-reduced-motion:reduce){.logo-shine::after,.brand-logo,.foot-logo{animation:none}}

/* لمعة داخل ملف اللوجو بدل الطبقة القديمة */
.logo-shine::after{display:none}

/* لوجو حاد: بدون فلتر توهج */
.brand-logo,.foot-logo{filter:none;animation:none;image-rendering:auto}
.brand-logo{height:32px}
.logo-shine{transform:translateZ(0)}

/* اللوجو بنفس عرض الاسم: محاذاة يمين ويسار */
.brand{align-items:stretch;gap:4px}
.brand .logo-shine{display:block;width:100%}
.brand .brand-logo{width:100%;height:auto}
.brand-t{display:block;text-align:center}
.brand-t b{display:block;font-size:.68rem;white-space:nowrap}

/* عرض ثابت للوجو والاسم يتظبط عليه */
.brand{width:132px;align-items:stretch;gap:4px}
.brand .brand-logo{width:100%;height:auto}
.brand-t b{text-align:justify;text-align-last:justify;width:100%}
@media (max-width:760px){.brand{width:116px}}

/* تصغير اللوجو لحجمه المعتاد */
.brand{width:104px}
.brand-t b{font-weight:700}
@media (max-width:760px){.brand{width:94px}}

/* حماية: اللوجو لا يتمدد أبدًا */
.brand{flex:none;max-width:104px}
.brand .logo-shine{max-width:104px}
.brand .brand-logo{max-width:104px;max-height:34px;object-fit:contain}
@media (max-width:760px){.brand,.brand .logo-shine,.brand .brand-logo{max-width:94px}}

/* لمعة خفيفة على كل الأزرار */
.btn,.rb{position:relative;overflow:hidden;isolation:isolate}
.btn::after,.rb::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background-image:linear-gradient(110deg,transparent 36%,rgba(255,255,255,.3) 50%,transparent 64%);
  background-size:260% 100%;background-repeat:no-repeat;background-position:120% 0;
  animation:btnShine 4.2s ease-in-out infinite}
.panel .rb::after{background-image:linear-gradient(110deg,transparent 36%,rgba(255,255,255,.75) 50%,transparent 64%)}
@keyframes btnShine{0%{background-position:120% 0}45%,100%{background-position:-20% 0}}
.nav .btn-sm::after{animation-delay:-1s}
.cta .btn-ghost::after{animation-delay:-1.8s}
.form .btn::after{animation-delay:-.6s}
.row5 .rb:nth-child(1)::after{animation-delay:-.2s}
.row5 .rb:nth-child(2)::after{animation-delay:-.8s}
.row5 .rb:nth-child(3)::after{animation-delay:-1.4s}
.row5 .rb:nth-child(4)::after{animation-delay:-2s}
.row5 .rb:nth-child(5)::after{animation-delay:-2.6s}
.row5 .rb:nth-child(6)::after{animation-delay:-3.2s}
.row5 .rb:nth-child(7)::after{animation-delay:-3.8s}
@media (prefers-reduced-motion:reduce){.btn::after,.rb::after{animation:none;display:none}}

/* ثرموستات: درجة الضبط فقط في النص + شفافية أكتر */
.lcd-main{justify-content:center;align-items:center;margin:14px 0 8px}
.setb{display:flex;flex-direction:column;align-items:center;text-align:center}
.setb .seg{width:210px}
.setb .seg-wrap{justify-content:center}
.thermo{background:transparent;border-color:rgba(255,255,255,.2);box-shadow:0 24px 50px rgba(0,0,0,.28)}
.lcd{background:rgba(7,9,13,.5);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.panel{background:linear-gradient(180deg,rgba(228,231,236,.62),rgba(172,178,187,.62));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}

/* الهيرو يغطي الشاشة كلها عند الفتح */
.hero{box-sizing:border-box;min-height:100vh;min-height:100svh;display:flex;align-items:center}
.hero>*{width:100%}

/* محاذاة الثرموستات مع حافة الحاوية اليسرى */
.hero-vis{justify-content:flex-end}
@media (max-width:900px){.hero-vis{justify-content:center}}

/* الثرموستات يملأ العمود اليسار: حافته على نفس خط شريحة الطقس */
@media (min-width:901px){.hero-vis{justify-content:stretch!important}.hero-vis .thermo{width:100%!important;max-width:none}}

/* إصلاح: عرض الهيرو يرجع لنفس عرض الهيدر */
.hero>.wrap{width:min(1120px,100% - 40px);margin-inline:auto}

/* زر المروحة: شرائط طولية تزيد وتقل مع السرعة */
.fbars rect{fill:currentColor;opacity:.22;stroke:none;transition:opacity .25s,transform .25s;transform-box:fill-box;transform-origin:bottom}
.fbars rect.on{opacity:1}

/* وضع Eco: ورقة خضراء على الشاشة */
.ecol{display:none;color:#34d399;stroke:#34d399;opacity:1}
.thermo[data-eco="1"] .ecol{display:block}

/* لمعة متحركة على النص المتدرج */
.hero h1 em{background-image:linear-gradient(110deg,transparent 38%,rgba(255,255,255,.9) 50%,transparent 62%),var(--grad);background-size:250% 100%,100% 100%;background-repeat:no-repeat;background-position:120% 0,0 0;-webkit-background-clip:text;background-clip:text;color:transparent;animation:emShine 3.8s ease-in-out infinite}
@keyframes emShine{0%{background-position:120% 0,0 0}50%,100%{background-position:-20% 0,0 0}}
@media (prefers-reduced-motion:reduce){.hero h1 em{animation:none}}

/* بدون لمعة على الأزرار */
.btn::after,.rb::after{animation:none!important;display:none!important;background:none!important}
