/* rb-home-en.css – إضافات الرئيسية (لاب 12-01): Your Stream Your Style · More Than Just Alerts · بطاقة النهاية الجديدة.
   نفس لغة الموقع: لوحات #0E0D13، حد علوي ملوّن، بلا ظل مزاح ولا توهج، حركة هادية. (تتحول عربي بعد ما تعتمد) */

/* ══ Your Stream Your Style ══ */
.ys-sec { padding-block: clamp(30px, 5vw, 70px); }
.ys-stage { position: relative; max-width: 1360px; margin: 0 auto; height: clamp(640px, 58vw, 820px); }
.ys-head { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3; text-align: center; pointer-events: none; width: min(640px, 60%); }
html[lang] .ys-head h2 { display: flex; flex-direction: column; align-items: center; margin: 0; font-size: clamp(40px, 6vw, 92px); line-height: 1.04; }
.ys-head h2 .ln { display: inline-flex; align-items: center; gap: .22em; white-space: nowrap; }
.ys-head p { margin: 18px 0 0; color: #d9d9e3; font-size: clamp(15px, 1.4vw, 18px); }
.ys-ast { width: .42em; height: .42em; margin-inline-end: -.1em; align-self: flex-start; margin-top: .12em; fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; }
.yi { position: absolute; margin: 0; z-index: 2; }
.yi .fx { width: 100%; height: 100%; }
.yl { position: absolute; bottom: 100%; inset-inline-start: 0; margin-bottom: 4px; display: flex; flex-direction: column; color: var(--c); font: 500 11px var(--f-body); line-height: 1.25; opacity: .9; }
.yl b { font: 600 13px var(--f-body); }
/* الأماكن (نفس توزيع الموقع الحالي) */
.p-tl  { left: 16%;  top: 4%;   width: 17%; height: 30%; }
.p-tml { left: 37%;  top: 3%;   width: 21%; height: 9%; }
.p-tr  { left: 61%;  top: 4%;   width: 20%; height: 27%; }
.p-ml  { left: 1%;   top: 38%;  width: 18%; height: 26%; }
.p-mr  { left: 82%;  top: 30%;  width: 17%; height: 26%; }
.p-mcr { left: 70%;  top: 57%;  width: 13%; height: 9%; }
.p-bl  { left: 19%;  top: 69%;  width: 14%; height: 27%; }
.p-bml { left: 38%;  top: 88%;  width: 23%; height: 9%; }
.p-br  { left: 64%;  top: 68%;  width: 18%; height: 26%; }
/* نجوم هادية */
.ys { position: absolute; width: clamp(14px, 1.6vw, 24px); fill: var(--c); animation: ysTw 5.5s ease-in-out infinite; }
.ys.s1 { left: 13%; top: 14%; } .ys.s2 { left: 34%; top: 11%; animation-delay: -1s; } .ys.s3 { left: 41%; top: 24%; animation-delay: -2.4s; }
.ys.s4 { left: 79%; top: 17%; animation-delay: -3s; } .ys.s5 { left: 87%; top: 63%; animation-delay: -1.7s; } .ys.s6 { left: 47%; top: 72%; animation-delay: -4s; } .ys.s7 { left: 58%; top: 82%; animation-delay: -.6s; }
@keyframes ysTw { 0%, 100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* صندوق التصميم الحقيقي */
.fx { position: relative; overflow: hidden; pointer-events: none; }
.fx iframe { position: absolute; left: 0; top: 0; border: 0; background: transparent; transform-origin: 0 0; opacity: 0; transition: opacity .9s ease; }
.fx.on iframe { opacity: 1; }

/* ══ More Than Just Alerts ══ */
html[lang] .feat .sec-head h2 { font-size: clamp(30px, 4.2vw, 62px); }
.feat .sec-head { max-width: none; }
@media (min-width: 861px) { html[lang] .feat .sec-head h2 { white-space: nowrap; display: block; } }
.ft-grid { max-width: var(--wrap); margin: clamp(28px, 4vw, 46px) auto 0; padding-inline: var(--gut); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ft { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 260px; padding: 26px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--c); color: #fff; text-decoration: none; }
.ft-3d { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top left; opacity: .9; pointer-events: none; transition: transform 1.4s cubic-bezier(.22,1,.36,1), opacity .6s ease; transform-origin: top left; }
.ft:hover .ft-3d { transform: scale(1.03); opacity: 1; }
.ft-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); position: relative; }
.ft-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ft h3 { margin: 4px 0 0; font: 900 clamp(18px, 1.7vw, 23px) var(--f-title); position: relative; }
.ft p { margin: 0; color: #c9c9d3; font-size: 14.5px; line-height: 1.65; position: relative; max-width: 34ch; }
.ft:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ══ بطاقة النهاية: نص يسار + شاشة بث يمين ══ */
.close2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 4vw, 56px); text-align: start; padding: clamp(36px, 5vw, 64px) clamp(28px, 4.5vw, 64px); }
html[lang] .close2 h2 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.08; margin: 0; }
.close2 .cl-txt > p { margin: 16px 0 0; color: #2a2d1c; font-size: clamp(15px, 1.3vw, 18px); } .close2 .cl-txt > p b { color: #5a2fc8; font-weight: 700; }
.cl-ok { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cl-ok li { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(11,11,15,.08); color: #1c1f12; font: 600 13px var(--f-body); }
.cl-ok svg { width: 15px; height: 15px; fill: none; stroke: #5a2fc8; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cl-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.close2 .cl-cta .btn { margin-top: 0; }
.btn-dark { background: #0B0B0F; border-color: #0B0B0F; color: var(--lime); }
.btn-dark:hover { background: #1a1a20; }
.btn-line { background: transparent; border-color: rgba(11,11,15,.35); color: #0B0B0F; }
.btn-line:hover { border-color: #0B0B0F; }
.cl-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; background: #0B0B0F; overflow: hidden; border: 1px solid rgba(11,11,15,.6);
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 28px 28px; }
.cl-rec, .cl-res { position: absolute; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 700 10.5px var(--f-num); letter-spacing: .08em; }
.cl-rec { left: 12px; background: rgba(255,59,92,.16); color: #FF5C6C; } .cl-rec i { width: 6px; height: 6px; border-radius: 50%; background: #FF3B5C; animation: sbBeat 2.4s ease-in-out infinite; }
.cl-res { right: 12px; background: rgba(255,255,255,.06); color: #8f8f9c; }
.cl-screen .fx { position: absolute; }
.cl-a { left: 4%; top: 15%; width: 24%; height: 50%; }
.cl-b { right: 4%; top: 12%; width: 44%; height: 50%; }
.cl-c { left: 6%; right: 6%; bottom: 6%; height: 16%; }
.close2 .close-spark { top: auto; bottom: 10%; }

@media (max-width: 1100px) {
    .ft-grid { grid-template-columns: 1fr 1fr; }
    .close2 { grid-template-columns: 1fr; }
}
/* الجوال والتابلت الصغير: العنوان أول وبعده التصاميم شبكة */
@media (max-width: 860px) {
    .ys-stage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 14px; padding: 0 var(--gut); }
    .ys-head { position: static; translate: none; width: auto; grid-column: 1 / -1; order: -1; margin-bottom: 10px; }
    .yi { position: relative; left: auto !important; top: auto !important; width: auto !important; height: 150px !important; }
    .p-tml, .p-bml, .p-mcr { left: 70%;  top: 57%;  width: 13%; height: 9%; }
    .p-mcr { left: 70%;  top: 57%;  width: 13%; height: 9%; }
    .ys { display: none; }
}
@media (max-width: 640px) {
    .ft-grid { grid-template-columns: 1fr; } .ft { min-height: 210px; padding: 22px; }
    .cl-cta .btn { flex: 1 1 140px; }
    .close2 .close-spark { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ys, .cl-rec i { animation: none; } .ft-3d, .fx iframe { transition: none; } }

/* live site: the designs play as short recorded loops (the real design code stays off the public page) */
.fx video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; background: transparent; pointer-events: none; }
/* the black of the recordings melts into the page: the blend has to sit on the box that makes the stacking layer */
.yi { mix-blend-mode: screen; }
.cl-screen .fx { mix-blend-mode: screen; }
.ys-sec { background: var(--bg, #0A0A0D); }   /* gives the blend something to melt into (main is its own layer) */
