/* شاشة «ذكاء يفكّر معك خطوة بخطوة»
   رمادي فاتح ناعم · بقع لونية تتحرّك · كلمات تُكتب كخط اليد · خط مرسوم · شريط خطوات · بطاقتا تفكير حيّتان */
.vo-hero-beat { position: relative; isolation: isolate; align-content: center; row-gap: 0; }
.vo-hero-beat > * { grid-column: 1; }

/* ---------- المسرح: بعرض الشاشة كلها ---------- */
.bt-stage { position: absolute; z-index: -1; top: 0; left: 50%; width: 100vw; height: max(100%, 100svh); translate: -50% 0;
  pointer-events: none; overflow: hidden; opacity: var(--beat, 0); --sx: 50%; --sy: 45%; }
.bt-stage > i { position: absolute; display: block; }
.bt-blob { width: 46vw; height: 46vw; border-radius: 50%; filter: blur(80px); opacity: .55; mix-blend-mode: multiply; }
.bt-blob.b1 { background: #d9cffd; left: -8vw; top: -10vw; animation: bt-orbit 22s ease-in-out infinite; }
.bt-blob.b2 { background: #fbe2c6; right: -10vw; top: 6vw; animation: bt-orbit 26s ease-in-out -8s infinite reverse; }
.bt-blob.b3 { background: #cfe0fb; left: 28vw; bottom: -22vw; animation: bt-orbit 30s ease-in-out -15s infinite; }
@keyframes bt-orbit { 0%, 100% { translate: 0 0; scale: 1; } 33% { translate: 6vw 4vw; scale: 1.12; } 66% { translate: -4vw 6vw; scale: .92; } }
.bt-grid { inset: 0; background-image: radial-gradient(#0000001a 1.1px, transparent 1.3px); background-size: 28px 28px;
  -webkit-mask: radial-gradient(60% 55% at 50% 50%, #000 0%, transparent 80%); mask: radial-gradient(60% 55% at 50% 50%, #000 0%, transparent 80%); }
.bt-spot { inset: 0; background: radial-gradient(560px circle at var(--sx) var(--sy), #ffffffb0, transparent 62%); }
.bt-grain { inset: 0; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .45 0 0 0 0 .45 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- العبارة ---------- */
.vo-hero-beat p { font-size: clamp(48px, min(9vw, 12.5svh), 140px) !important; max-width: 12ch !important; }
.vo-hero-beat .vo-fun-emoji { display: none !important; }
/* كل كلمة تُكتب من اليمين لليسار كأنها خط يد */
.vo-hero-beat .vo-fun-word { opacity: 1 !important; transform: rotate(var(--r)) !important; filter: blur(8px);
  clip-path: inset(-.3em 0 -.4em 100%); transition: clip-path .9s cubic-bezier(.65,0,.35,1), filter .9s ease, scale .3s cubic-bezier(.34,1.56,.64,1), rotate .3s cubic-bezier(.34,1.56,.64,1) !important; }
.vo-hero-beat p[data-shown="1"] .vo-fun-word { clip-path: inset(-.3em -.2em -.4em -.2em); filter: blur(0);
  transition-delay: calc(var(--i) * 170ms), calc(var(--i) * 170ms), 0s, 0s !important; }
.vo-hero-beat .vo-fun-word:not(.is-highlight) .vo-fun-text { background: linear-gradient(180deg, #3a3a42 0%, #121216 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vo-hero-beat .vo-fun-word.is-highlight .vo-fun-text { background: linear-gradient(100deg, #f1b35c, #c49bff 40%, #8f86ff 60%, #f1b35c 100%) !important; background-size: 240% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent; animation: bt-flow 6s linear infinite; }
@keyframes bt-flow { to { background-position: -240% 0; } }

/* الخط المرسوم تحت العبارة */
.bt-underline { width: min(560px, 62vw); height: auto; margin-top: -.2em; overflow: visible; }
.bt-underline path { stroke-dasharray: 640; stroke-dashoffset: 640; filter: drop-shadow(0 4px 8px #b59cff55); }
.vo-hero-beat:has(p[data-shown="1"]) .bt-underline path { animation: bt-ink 1.2s cubic-bezier(.65,0,.35,1) 1s forwards; }
@keyframes bt-ink { to { stroke-dashoffset: 0; } }

/* ---------- شريط الخطوات ---------- */
.bt-steps { position: relative; display: flex; gap: clamp(10px, 2.2vw, 34px); margin: 30px 0 0; padding: 0; list-style: none; direction: rtl;
  opacity: var(--beat, 0); translate: 0 calc((1 - var(--beat, 0)) * 20px); }
.bt-steps li { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px;
  background: #ffffffb8; color: #8a8a94; font-size: clamp(14px, 1.2vw, 17px); font-weight: 600; box-shadow: 0 6px 18px #00000010, 0 0 0 1px #00000008 inset;
  backdrop-filter: blur(8px); transition: color .4s, background .4s, transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .4s; }
.bt-steps li b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e3e3e8; color: #fff; font-size: 13px; transition: background .4s; }
.bt-steps li.on { color: #1d1b24; background: #fff; transform: translateY(-3px); box-shadow: 0 12px 26px #7d6cff22, 0 0 0 1px #c9b8ff inset; }
.bt-steps li.on b { background: linear-gradient(135deg, #f1b35c, #a98cff); }
.bt-steps li.now { animation: bt-pop .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes bt-pop { 40% { transform: translateY(-6px) scale(1.08); } }
.bt-bar { position: absolute; z-index: 0; left: 6%; right: 6%; top: 50%; height: 2px; background: #00000012; translate: 0 -50%; }
.bt-bar i { position: absolute; inset-block: 0; right: 0; width: var(--p, 0%); background: linear-gradient(270deg, #f1b35c, #a98cff); transition: width .7s cubic-bezier(.65,0,.35,1); }

/* ---------- بطاقتا التفكير ---------- */
.bt-card { position: absolute; z-index: 2; width: clamp(230px, 19vw, 290px); padding: 16px 18px; border-radius: 22px; text-align: start; color: #1d1b24;
  background: linear-gradient(160deg, #ffffffd9, #ffffffa8); backdrop-filter: blur(14px); box-shadow: 0 24px 50px -18px #0000002e, 0 0 0 1px #ffffff inset, 0 0 0 1px #00000008;
  font-size: 14px; opacity: calc(var(--beat, 0) * 1); pointer-events: none; animation: bt-float 7s ease-in-out infinite; }
.bt-think { right: max(-9vw, calc(50% - 50vw + 2.5vw)); top: 30%; rotate: 4deg; translate: calc((1 - var(--beat, 0)) * 60px) 0; }
.bt-chat { left: max(-9vw, calc(50% - 50vw + 2.5vw)); bottom: 12%; rotate: -4deg; translate: calc((1 - var(--beat, 0)) * -60px) 0; animation-delay: -3.5s; }
@keyframes bt-float { 50% { margin-top: -12px; } }
.bt-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bt-card header b { flex: 1; font-size: 14.5px; }
.bt-timer { font-style: normal; font-size: 12px; color: #9a98a6; font-variant-numeric: tabular-nums; }
.bt-face { display: inline-flex; gap: 4px; justify-content: center; align-items: center; width: 34px; height: 24px; border-radius: 0 0 10px 10px; background: #111; }
.bt-face i { width: 4px; height: 9px; border-radius: 3px; background: #fff; animation: bt-blink 4s infinite; }
@keyframes bt-blink { 0%, 92%, 100% { scale: 1 1; } 96% { scale: 1 .15; } }
.bt-think ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.bt-think li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: #a3a1ad; background: #f4f4f7; transition: color .4s, background .4s; }
.bt-think li i { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d6d4de; transition: background .3s, border-color .3s; }
.bt-think li.run { color: #1d1b24; background: #fff; box-shadow: 0 4px 12px #0000000d; }
.bt-think li.run i { border-color: #c4b5ff; border-top-color: #7f6bff; animation: bt-spin .8s linear infinite; }
.bt-think li.ok { color: #4a4855; }
.bt-think li.ok i { border-color: transparent; background: linear-gradient(135deg, #f1b35c, #a98cff); }
.bt-think li.ok i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; }
@keyframes bt-spin { to { rotate: 360deg; } }
.bt-chat { display: flex; flex-direction: column; gap: 10px; }
.bt-q { align-self: flex-start; max-width: 92%; padding: 10px 14px; border-radius: 16px 16px 16px 5px; background: #17161c; color: #fff; font-weight: 600; line-height: 1.5; }
.bt-a { min-height: 72px; padding: 10px 14px; border-radius: 16px 16px 5px 16px; background: #fff; line-height: 1.7; color: #3a3844; box-shadow: 0 4px 12px #0000000d; }
.bt-caret { display: inline-block; width: 2px; height: 1em; margin-inline-start: 2px; vertical-align: -2px; background: #8f7bff; animation: bt-caret 1s steps(1) infinite; }
@keyframes bt-caret { 50% { opacity: 0; } }
.bt-chat small { display: flex; align-items: center; gap: 6px; color: #9a98a6; font-size: 12px; }
.bt-chat small i { width: 7px; height: 7px; border-radius: 50%; background: #5ad19a; box-shadow: 0 0 0 3px #5ad19a33; }

@media (max-width: 1180px) { .bt-card { display: none; } }
@media (max-width: 699px) {
  .bt-steps { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .bt-steps li { padding: 7px 12px 7px 8px; } .bt-bar { display: none; }
  .bt-blob { width: 90vw; height: 90vw; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-blob, .bt-card, .bt-face i, .vo-hero-beat .vo-fun-text { animation: none !important; }
  .vo-hero-beat .vo-fun-word { clip-path: none; filter: none; }
  .bt-underline path { stroke-dashoffset: 0; }
}

/* ---------- ضبط بعد المعاينة ---------- */
.bt-stage { top: calc(-1 * var(--face-height) - 20vh); height: calc(100% + var(--face-height) + 40vh);
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); }
.bt-card { width: clamp(230px, 18vw, 270px); }
.bt-think { right: calc(50% - 50vw + 22px); top: 44%; }
.bt-chat { left: calc(50% - 50vw + 22px); bottom: 14%; }
@media (max-width: 1300px) { .bt-card { display: none; } }
.bt-stage { -webkit-mask: linear-gradient(180deg, transparent 0%, #000 20%, #000 56%, transparent 80%); mask: linear-gradient(180deg, transparent 0%, #000 20%, #000 56%, transparent 80%); }
@media (max-width: 699px) {
  .bt-steps { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; }
}

/* ================= مدار أفكار الدخل ================= */
.bt-orbit { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(1100px, 96vw); margin-bottom: 18px;
  opacity: var(--beat, 0); translate: 0 calc((1 - var(--beat, 0)) * 30px); }
.bt-orbit-label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #5d5a68;
  background: #ffffffa6; box-shadow: 0 0 0 1px #00000008 inset; backdrop-filter: blur(8px); }
.bt-orbit-label i { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #f1b35c, #a98cff); animation: hx-ping-g 2s infinite; }
@keyframes hx-ping-g { 70% { box-shadow: 0 0 0 8px #a98cff00; } 0% { box-shadow: 0 0 0 0 #a98cff66; } }
.bt-ring { position: relative; width: 100%; height: var(--rh, 190px); }
/* المدار نفسه: خط بيضاوي خافت */
.bt-ring::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--rx, 480px) * 2); height: calc(var(--ry, 64px) * 2); translate: -50% -50%;
  border-radius: 50%; border: 1px dashed #00000017; }
.bt-idea { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: #26232f; white-space: nowrap; will-change: transform, opacity, filter;
  background: linear-gradient(160deg, #ffffff, #f3f2f7); box-shadow: 0 10px 24px -8px #00000026, 0 0 0 1px #ffffff inset, 0 0 0 1px #0000000a;
  transition: box-shadow .3s, color .3s; }
.bt-idea b { font-size: 1.15em; font-weight: 400; }
.bt-idea:hover { color: #000; box-shadow: 0 16px 34px -10px #7d6cff55, 0 0 0 1.5px #b9a6ff inset; }
.bt-idea.asked { animation: bt-asked .7s cubic-bezier(.34,1.56,.64,1); }
@keyframes bt-asked { 40% { box-shadow: 0 0 0 10px #a98cff33, 0 16px 34px -10px #7d6cff55; } }
@media (max-width: 699px) {
  .bt-idea { font-size: 13px; padding: 8px 12px; }
  .bt-orbit-label { font-size: 12px; text-align: center; }
}
/* الجوال: الأفكار تنساب في شريط بدل المدار */
@media (max-width: 699px) {
  .bt-ring { height: auto; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .bt-ring::before { display: none; }
  .bt-ring .bt-track { display: flex; gap: 8px; width: max-content; padding: 8px 0; animation: hx-marquee 32s linear infinite; }
  .bt-idea { position: static; transform: none !important; opacity: 1 !important; filter: none !important; }
}
/* لا يفيض المحتوى للأعلى خلف لورا حين يطول */
.vo-hero-beat { align-content: safe center !important; padding-bottom: 40px; }
.vo-hero-beat p { font-size: clamp(46px, min(8.4vw, 11svh), 128px) !important; }
.bt-orbit { gap: 10px; margin-bottom: 8px; }
/* بلا عنوان للمدار، ومسافة مريحة بينه وبين العبارة */
.bt-orbit-label { display: none; }
.bt-orbit { margin-bottom: clamp(40px, 7svh, 80px) !important; }
