/* Shared ambient light stream for the English and Arabic homepages. */
body { isolation:isolate; }
.stc-flow { position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; background:radial-gradient(ellipse at 82% 30%,#122219 0%,transparent 58%); }
.stc-flow canvas { display:block; width:100%; height:100%; }
.stc-flow:after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,rgba(10,15,13,.88),rgba(10,15,13,.48) 38%,transparent 70%); }
html[dir="rtl"] .stc-flow { transform:scaleX(-1); }
.hero-inner { position:relative; z-index:1; }
.hero p.sub { color:#a8b7ad; }
.hero .headline { text-shadow:0 4px 35px rgba(4,12,8,.6); }
.p-card { background:linear-gradient(135deg,rgba(22,34,27,.9),rgba(12,21,16,.93)); backdrop-filter:blur(15px); }
@media(max-width:820px) { .stc-flow { opacity:.88; } .stc-flow:after { background:linear-gradient(90deg,rgba(10,15,13,.85),rgba(10,15,13,.4)); } .status-line { bottom:65px; } }
@media(prefers-reduced-motion:reduce) { .hero .eyebrow,.hero .headline,.hero p.sub,.hero-actions,.status-line { animation:none; opacity:1; } }

/* Reference-inspired depth and restrained motion, in STC's own palette. */
:root { --flow-glass:rgba(14,23,17,.76); --flow-edge:rgba(197,242,211,.12); --flow-ease:cubic-bezier(.2,.7,.2,1); }
.hero:before { content:''; position:absolute; inset:0; pointer-events:none; opacity:.065; background-image:radial-gradient(circle,#b5e5c5 .7px,transparent 1px); background-size:28px 28px; mask-image:linear-gradient(#000,transparent 88%); }
.p-card { background:linear-gradient(135deg,rgba(28,46,34,.64),var(--flow-glass)); border-color:var(--flow-edge); border-radius:18px; box-shadow:inset 0 1px 0 rgba(221,255,229,.035),0 18px 50px rgba(0,0,0,.13); }
.p-card.glow-card:before,.p-card.glow-card:after { border-radius:18px; }
.btn-primary { box-shadow:0 0 0 rgba(63,191,127,0); transition:transform .25s,background .25s,box-shadow .25s; }
.btn-primary:hover { box-shadow:0 0 26px rgba(63,191,127,.24); }
.reveal { filter:blur(8px); transition:opacity .7s var(--flow-ease),transform .7s var(--flow-ease),filter .7s var(--flow-ease); }
.reveal.visible { filter:blur(0); }
a:focus-visible,button:focus-visible { outline:2px solid var(--green-glow); outline-offset:5px; }
@media(prefers-reduced-motion:reduce) { html {scroll-behavior:auto} .reveal {opacity:1;transform:none;filter:none;transition:none} .eyebrow .trace:after,.status-line .dot,.glow-card:before,.glow-card:after {animation:none} }

/* Compact stop/play control, available throughout the page. */
.flow-control{position:fixed;z-index:110;right:20px;bottom:calc(18px + env(safe-area-inset-bottom,0px));width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid rgba(116,215,160,.32);border-radius:50%;background:rgba(12,24,17,.88);color:#c3eed3;backdrop-filter:blur(12px);box-shadow:0 4px 20px rgba(0,0,0,.25);cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s}
.flow-control[hidden]{display:none}.flow-control:hover{border-color:#5fd9a0;background:rgba(27,54,37,.94);box-shadow:0 0 18px rgba(63,191,127,.14)}
.flow-control-icon{display:block;width:10px;height:10px;background:currentColor;border-radius:1px}
.flow-control.is-paused .flow-control-icon{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:10px solid currentColor;background:none;border-radius:0;transform:translateX(1px)}
html[dir="rtl"] .flow-control{right:auto;left:20px}
@media(max-width:600px){.flow-control{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}html[dir="rtl"] .flow-control{right:auto;left:12px}}

/* Mobile: avoid blur layers repainting over a moving canvas. */
@media(max-width:820px),(hover:none) and (pointer:coarse){
  .p-card{backdrop-filter:none;-webkit-backdrop-filter:none;background:linear-gradient(135deg,rgba(22,34,27,.97),rgba(12,21,16,.98));box-shadow:inset 0 1px 0 rgba(221,255,229,.035),0 5px 16px rgba(0,0,0,.12)}
  .glow-card::before{animation:none;--angle:140deg;opacity:.65}
  .glow-card::after{display:none}
  .reveal,.reveal.visible{filter:none;transition:opacity .45s ease,transform .45s ease}
  .p-card:hover{transform:none;box-shadow:inset 0 1px 0 rgba(221,255,229,.035),0 5px 16px rgba(0,0,0,.12)}
  .flow-control{backdrop-filter:none;-webkit-backdrop-filter:none;background:#102219}
}
