
@font-face{font-family:Space Grotesk;src:url("../fonts/space-grotesk.woff2") format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:IBM Plex Sans Arabic;src:url("../fonts/plex-arabic-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:IBM Plex Sans Arabic;src:url("../fonts/plex-arabic-600.woff2") format("woff2");font-weight:500 600;font-display:swap}
@font-face{font-family:IBM Plex Sans Arabic;src:url("../fonts/plex-arabic-700.woff2") format("woff2");font-weight:700 900;font-display:swap}
:root{
  --font-sans:system-ui,-apple-system,"Segoe UI",sans-serif;
  --rc-display:"Space Grotesk",var(--font-sans);--container-max:1280px;
  --text-primary:#141d37;--text-secondary:#3b4865;--text-muted:#54617c;
  --surface:#fff;--surface-secondary:#f1f4fb;--surface-hover:#e9eef9;
  --bg-main:#f6f8fc;--border:#c4cee2;--border-subtle:#dfe5f0;
  --accent:#344ed7;--accent-dark:#263bb1;--accent-light:#ecf0ff;--text-result:#2943c2;
  --input-border:#bfcae0;--input-focus-border:#344ed7;--input-placeholder:#65738e;
  --rc-shadow:0 20px 46px #2235660c;
}
html.dark{
  --text-primary:#edf1ff;--text-secondary:#c7d1e9;--text-muted:#a2afcc;
  --surface:#131c32;--surface-secondary:#192440;--surface-hover:#222f50;--surface-elevated:#192440;
  --bg-main:#0c1428;--border:#3a4869;--border-subtle:#2a3756;
  --accent:#9baeff;--accent-dark:#b5c3ff;--accent-light:#242f5a;--text-result:#a7b8ff;
  --input-border:#475679;--input-focus-border:#9baeff;--input-placeholder:#a2afcc;
  --input-background:#10192d;--rc-shadow:0 20px 46px #02061150;
}
html[lang=ar]{--rc-display:var(--font-arabic)}
.rc3-shell{background:var(--bg-main)}
.rc3-shell h1,.rc3-shell h2,.rc3-shell h3,.rc3-shell .brand-name{font-family:var(--rc-display)}
.rc3-shell :is(h1,h2,h3){text-wrap:balance}
.rc3-shell :is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.rc3-shell .site-header{background:var(--surface);border-color:var(--border-subtle)}
.rc3-shell .header-inner{gap:clamp(8px,2vw,28px)}
.rc3-shell .brand{gap:9px;white-space:nowrap}
.rc3-shell .brand-name{font-size:1.1rem;letter-spacing:-.035em}
.rc3-shell .brand-mark{display:grid;place-items:center;color:#f1f4ff;background:#1b2858;border:1px solid #405595;border-radius:10px;box-shadow:none}
.rc-nav{gap:clamp(4px,1.2vw,16px)}
.rc-nav-menu{position:relative}
.rc-nav-menu summary{display:flex;align-items:center;gap:5px;cursor:pointer;white-space:nowrap}
.rc-nav-menu summary::-webkit-details-marker{display:none}
.rc-nav-panel{
  position:absolute;z-index:10;inset-block-start:calc(100% + .8rem);inset-inline-start:0;
  width:min(440px,80vw);padding:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;
  background:var(--surface);border:1px solid var(--border-subtle);border-radius:14px;box-shadow:0 18px 48px #101a3b28;
}
.rc-nav-panel-studios{width:220px;grid-template-columns:1fr}
.rc-nav-panel a{display:flex;align-items:center;gap:9px;padding:12px 9px;border-radius:8px;font-size:.88rem;color:var(--text-primary)}
.rc-nav-panel a:hover,.rc-nav-panel a:focus-visible{background:var(--surface-secondary);color:var(--accent)}
.rc-nav-panel svg{color:var(--rc-tone,var(--accent));flex:none}
.rc-breadcrumb{display:flex;align-items:center;gap:8px;padding-block:15px 0;font-size:.82rem;color:var(--text-muted)}
.rc-breadcrumb a{color:var(--text-secondary)}
.rc-hero{
  position:relative;overflow:hidden;color:#f0f3ff;padding-block:clamp(40px,4.7vw,72px);
  background:radial-gradient(ellipse at 75% 18%,#23397b 0,transparent 50%),linear-gradient(140deg,#0c1531,#121f47 72%,#192c62);
  border-block-end:1px solid #43589a;
}
.rc-hero-grid{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);align-items:center;gap:clamp(24px,5vw,80px)}
.rc-kicker{display:flex;align-items:center;gap:9px;color:var(--accent);font-weight:700;font-size:.82rem;letter-spacing:.06em;text-transform:uppercase;margin:0 0 12px}
:lang(ar) .rc-kicker{letter-spacing:0}
.rc-hero .rc-kicker{color:#c3d0ff}
.rc-kicker span{width:8px;height:8px;border-radius:2px;background:#d8f990;box-shadow:0 0 18px #d8f99080}
.rc-hero h1{margin:0;color:#f5f7ff;font-size:clamp(2.7rem,5.2vw,4.95rem);line-height:.99;letter-spacing:-.068em;text-wrap:initial}
:lang(ar) .rc-hero h1{line-height:1.13;letter-spacing:0;font-size:clamp(2.7rem,5.6vw,5rem)}
.rc-hero h1 em{color:#d8f990;font-style:normal}
.rc-hero-description{max-inline-size:48ch;margin:24px 0;color:#c9d4f5;line-height:1.65;font-size:clamp(.99rem,1.35vw,1.14rem)}
.rc3-shell .rc-hero-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:9px;margin:0 0 23px}
.rc-hero .btn{border-radius:9px;min-height:46px}
.rc-hero .btn-primary{background:#d8f990;color:#182444;border-color:#d8f990;box-shadow:none}
.rc-hero .btn-primary:hover{background:#efffc8;color:#182444}
.rc-hero .rc-hero-secondary{background:#1c2b51;color:#edf2ff;border:1px solid #687bb0}
.rc-hero .rc-hero-secondary:hover{background:#314577}
.rc-hero-search{display:flex;align-items:center;gap:12px;padding-inline-start:14px;min-width:0;max-width:510px;min-height:52px;background:#101c39;border:1px solid #6c7eaf;border-radius:10px;color:#cad6fc}
.rc-hero-search:focus-within{border-color:#c0cefb}
.rc-hero-search input{min-width:0;flex:1;background:transparent;color:#fff;border:0;font:inherit;height:48px;padding-inline:0}
.rc-hero-search :is(input,button):focus-visible{outline-color:#d8f990}
.rc-hero-search input::placeholder{color:#bac6eb;opacity:1}
.rc-hero-search button{display:grid;place-items:center;margin-inline:4px;width:41px;height:42px;border-radius:7px;background:#263a70;color:#f5f7ff}
.rc-hero-search button:hover{background:#354d8d}
.rc-search-examples{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px;max-width:510px}
.rc-search-examples button{border:1px solid #51669f;border-radius:6px;color:#dbe4ff;background:#1a2a51;font-size:.75rem;padding:5px 8px;text-align:start}
.rc-search-examples button:hover{border-color:#d8f990;color:#e7ffae}
.rc-network-visual{position:relative;aspect-ratio:520/420;border-radius:18px;min-width:0;isolation:isolate;background:#12234a;box-shadow:0 25px 60px #07112f75,inset 0 0 0 1px #687db575}
.rc-network-visual>svg{display:block;width:100%;height:100%;border-radius:inherit}
.rc-cctv{--rc-tone:#3854d5;--rc-bright:#aab9ff;--rc-tint:#edf0ff}
.rc-network{--rc-tone:#00694f;--rc-bright:#85eacb;--rc-tint:#e5f7f1}
.rc-electrical{--rc-tone:#8e4a00;--rc-bright:#ffca94;--rc-tint:#fff1e2}
.rc-office{--rc-tone:#6942a4;--rc-bright:#d7bfff;--rc-tint:#f3edff}
.rc-devices{--rc-tone:#00658b;--rc-bright:#85dfff;--rc-tint:#e5f6fc}
.rc-diagnostics{--rc-tone:#9f315b;--rc-bright:#ffabcc;--rc-tint:#fcecf3}
.dark :is(.rc-cctv,.rc-network,.rc-electrical,.rc-office,.rc-devices,.rc-diagnostics){--rc-tone:var(--rc-bright);--rc-tint:#253453}
.rc-workspaces,.rc-featured{padding-block:clamp(36px,5.8vw,76px) 12px;scroll-margin-top:85px}
.rc-featured{padding-block-end:clamp(24px,5vw,60px)}
.rc-section-heading{display:flex;justify-content:space-between;align-items:end;margin-block-end:24px}
.rc-section-heading h2{font-size:clamp(1.85rem,3.5vw,3rem);line-height:1.08;letter-spacing:-.044em;margin:0}
:lang(ar) .rc-section-heading h2{letter-spacing:0}
.rc-workspace-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.rc-workspace-card,.rc-feature{min-width:0;color:var(--text-primary);background:var(--surface);border:1px solid var(--border-subtle);border-radius:14px;box-shadow:var(--rc-shadow);transition:border-color .18s,transform .18s}
.rc-workspace-card{display:flex;flex-direction:column;min-height:217px;padding:21px}
.rc-workspace-card:hover,.rc-feature:hover{color:var(--text-primary);border-color:var(--rc-tone);transform:translateY(-2px)}
.rc-card-top,.rc-card-foot{display:flex;justify-content:space-between;align-items:center;gap:8px}
.rc-icon{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:10px;color:var(--rc-tone,var(--accent));background:var(--rc-tint,var(--accent-light))}
.rc-count{color:var(--text-muted);font-size:.74rem;font-weight:650}
.rc-workspace-card h3,.rc-feature h3{font-size:1.2rem;margin:14px 0 5px;color:var(--text-primary)}
.rc-workspace-card p,.rc-feature p{margin:0 0 12px;color:var(--text-secondary);font-size:.91rem;line-height:1.55}
.rc-card-foot{margin-block-start:auto;padding-block-start:9px;border-block-start:1px solid var(--border-subtle);color:var(--rc-tone);font-size:.77rem;font-weight:650}
.rc-card-foot svg,.rc-feature>svg{flex:none}
.rc-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rc-feature{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding:15px}
.rc-feature h3,.rc-feature p{margin:0}
.rc-feature>svg{color:var(--rc-tone)}
#eng-tool-history{scroll-margin-top:86px}
.rc3-shell :is(.cctv-header,.eng-header,.workspace-card,.tool-workspace-page .tool-form,.result-hero-display){border-radius:14px}
.rc3-shell :is(.cctv-header,.eng-header){background:var(--surface);border:1px solid var(--border-subtle);box-shadow:var(--rc-shadow);padding:clamp(16px,3vw,34px);margin-block-end:16px}
.rc3-shell :is(.cctv-header,.eng-header) h1{font-size:clamp(1.8rem,3.6vw,3.4rem);line-height:1.12;letter-spacing:-.035em}
html[lang=ar] .rc3-shell :is(.cctv-header,.eng-header) h1{letter-spacing:0}
.rc3-shell :is(.ct-card,.eng-card,.workspace-card,.cctv-project-card){box-shadow:var(--rc-shadow)}
.rc3-shell .site-footer{border-color:var(--border-subtle)}
@media(max-width:950px){.rc3-shell .rc-nav{display:none}.rc3-shell .menu-toggle{display:inline-flex}.rc-workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.rc-hero-grid{grid-template-columns:minmax(0,1fr)}.rc-network-visual{width:min(100%,495px);justify-self:center}.rc-feature-grid{grid-template-columns:1fr}.rc-hero h1{line-height:1.04}}
@media(max-width:480px){.rc-workspace-grid{grid-template-columns:1fr;gap:10px}.rc-workspace-card{min-height:0;padding:16px}.rc-count{font-size:.72rem}.rc-hero-actions .btn{font-size:.8rem;padding-inline:10px}.rc3-shell .header-actions{gap:4px}.rc3-shell .brand-name{font-size:.98rem}.rc3-shell .header-search-btn{min-width:32px;padding-inline:7px}.rc3-shell .header-search-btn span{display:none}}
@media(max-width:360px){.rc3-shell .brand-name{font-size:.87rem}.rc3-shell .brand{gap:5px}.rc3-shell .header-inner{gap:4px}.rc3-shell .header-actions .btn-icon{width:32px}.rc3-shell .lang-toggle svg{display:none}}
@media(prefers-reduced-motion:reduce){.rc3-shell *,.rc3-shell *::before,.rc3-shell *::after{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}.rc-workspace-card:hover,.rc-feature:hover{transform:none}}


.rc3-shell .theme-toggle-btn .theme-icon-dark,.dark .rc3-shell .theme-toggle-btn .theme-icon-light{display:none}
.dark .rc3-shell .theme-toggle-btn .theme-icon-dark{display:block}
.rc-hero::before{
  position:absolute;inset:0;content:"";pointer-events:none;
  background:radial-gradient(ellipse at 75% 20%,#5369ec24,transparent 54%);
  animation:rc-ambient 12s ease-in-out infinite alternate;
}
.rc-hero-grid{position:relative}
@keyframes rc-ambient{from{opacity:.2}to{opacity:1}}
@keyframes rc-appear{from{opacity:.74;transform:translateY(6px)}to{opacity:1;transform:none}}
.rc-reveal{animation:rc-appear .35s ease-out both}
.rc3-shell .btn:active,.rc-hero-search button:active{filter:brightness(.9)}
#eng-tool-history:not(:empty){margin-block-start:18px;background:var(--surface);border:1px solid var(--border-subtle);border-radius:14px;padding:17px 21px;display:grid;gap:7px}
#eng-tool-history p{margin:0;color:var(--text-muted);font-size:.88rem}
#eng-tool-history h3{margin:0;font-size:1.05rem}
#eng-tool-history .eng-actions{display:flex;flex-wrap:wrap;gap:8px}
.rc3-shell #primary-studios [style*="font-size: 0.8125rem"].badge{background:var(--accent-light)!important;color:var(--text-result)!important}
.rc3-shell #primary-studios .studio-card{border:1px solid var(--border-subtle)!important;box-shadow:var(--rc-shadow)}
@media(prefers-reduced-motion:reduce){.rc-hero::before,.rc-reveal{animation:none!important}}
.rc-breadcrumb ~ .cctv-shell .cctv-header>a:first-child{display:none}
.rc3-shell :is(.cctv-header,.eng-header){
  background:linear-gradient(130deg,var(--surface) 56%,var(--rc-tint,var(--surface-secondary)));
  border-block-start:3px solid var(--rc-tone,var(--accent));
}
.rc3-shell .cctv-cards>a{border-radius:13px;border-color:var(--border-subtle);box-shadow:var(--rc-shadow);transition:border-color .18s,transform .18s}
.rc3-shell .cctv-cards>a:hover{border-color:var(--rc-tone,var(--accent));transform:translateY(-2px)}
.rc3-shell .cctv-cards .eng-icon{color:var(--rc-tone,var(--accent));background:var(--rc-tint,var(--accent-light))}
.rc3-shell :is(.search-modal-window,.modal-content,.toast){
  border-color:var(--border-subtle);border-radius:14px;box-shadow:var(--rc-shadow);
}
.rc3-shell :is(.form-control,input[type=text],input[type=number],select,textarea){border-radius:9px}
.rc3-shell :is(.ct-result-value,.eng-metric strong,.result-hero-display){font-variant-numeric:tabular-nums}
.rc3-shell .result-hero-display{background:var(--surface-secondary);border-color:var(--border-subtle)}
.rc3-shell .site-footer{background:var(--surface-secondary)}
@media(prefers-reduced-motion:reduce){.rc3-shell .cctv-cards>a:hover{transform:none}}
.search-category{font-size:.69rem;white-space:normal;text-align:center}
@media(max-width:480px){.search-category{display:none}}
/* RC3.1 home and workspace refinements */
.rc-hero{padding-block:clamp(32px,4vw,57px)}
.rc-network-visual{aspect-ratio:auto;display:grid;gap:12px;padding:clamp(14px,2vw,26px);background:radial-gradient(ellipse at 85% 15%,#263a77,#122142 64%);border:1px solid #6278ac}
.rc31-demo-head{display:grid;gap:10px;color:#f4f6ff}
.rc31-tabs{display:flex;flex-wrap:wrap;gap:5px}
.rc31-tabs button{padding:7px 11px;border:1px solid #7890c5;border-radius:7px;color:#f4f6ff;font-size:.88rem}
.rc31-tabs button[aria-pressed=true]{background:#d8f990;color:#142443;border-color:#d8f990;font-weight:700}
.rc31-tabs button:focus-visible{outline-color:#d8f990}
.rc31-demo{display:grid;align-content:center;gap:8px;min-height:145px;padding:10px 15px;background:#10203b;border:1px solid #50658f;border-radius:10px;color:#eaf0ff}
.rc31-demo[hidden]{display:none}
.rc31-demo svg{width:100%;max-height:136px}
.rc31-demo bdi{font-size:1.6rem;font-weight:700;color:#d8f990}
.rc31-demo meter{width:100%;height:15px}
.rc31-demo-link{display:inline-flex;align-items:center;gap:7px;color:#d8f990;font-weight:650}
.rc-workspaces,.rc-featured{padding-block:clamp(23px,3vw,42px) 10px}
.rc-section-heading{margin-block-end:14px}
.rc-workspace-card{min-height:0;padding:15px}
.rc-workspace-card h3{margin-block-start:8px}
.rc-workspace-card .rc-count,.rc-card-foot{font-size:.82rem}
.rc-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.rc-feature{grid-template-columns:auto minmax(0,1fr);align-items:start;gap:9px}
.rc-feature>svg{display:none}
.rc-feature:first-child{grid-column:span 2;background:linear-gradient(125deg,var(--surface) 48%,var(--rc-tint))}
.rc-feature:nth-child(2){grid-column:span 2;background:linear-gradient(125deg,var(--surface) 48%,var(--rc-tint))}
.rc31-tool-preview{display:block;margin-block-start:8px;padding:6px 8px;border-radius:6px;background:var(--rc-tint);color:var(--rc-tone);font-size:.83rem;font-weight:700;overflow-wrap:anywhere}
.rc31-library{padding-block:18px;scroll-margin-top:78px}
.rc31-library h2,.rc31-faq h2{font-size:clamp(1.5rem,2.5vw,2.15rem);margin-block-end:10px}
.rc31-links{display:flex;flex-wrap:wrap;gap:7px}
.rc31-links a{display:flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid var(--border-subtle);border-radius:8px;background:var(--surface);font-weight:650;color:var(--text-primary)}
.rc31-links a:hover{border-color:var(--accent);color:var(--accent)}
.rc31-links svg{flex:none;color:var(--accent)}
.rc31-studios a{flex:1 1 210px}
.rc31-studios small{display:block;font-size:.84rem;color:var(--text-secondary);font-weight:400}
.rc31-library details{margin-block-start:10px;color:var(--text-secondary)}
.rc31-library summary{cursor:pointer;width:fit-content}
.rc31-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:10px}
.rc31-directory a{display:block}
.rc3-shell .rc31-faq{padding-block:20px!important}
.rc31-faq .section-header{margin-block-end:12px!important}
.rc31-faq .section-desc{display:none}
.rc31-faq .faq-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.rc31-faq .faq-item{margin:0!important;padding:9px 12px!important}
.rc31-faq .faq-summary{gap:8px;font-size:.91rem}
.rc31-faq .faq-chevron{flex:none}
#eng-tool-history .rc31-history-group{display:grid;gap:6px}
#eng-tool-history .rc31-history-group + .rc31-history-group{border-block-start:1px solid var(--border-subtle);padding-block-start:8px}
.rc3-shell :is(.eng-field small,.ct-hint,.cctv-header p){color:var(--text-secondary)}
.rc3-shell :is(.eng-workspace,.workspace-grid) :is(button,input,select,textarea):focus-visible{outline-offset:2px}
.rc3-shell :is(.eng-panel,.workspace-card){border-radius:12px}
@media(max-width:850px){.rc-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rc-feature:is(:first-child,:nth-child(2)){grid-column:auto}}
@media(max-width:520px){.rc-feature-grid,.rc31-faq .faq-list{grid-template-columns:1fr}.rc31-demo svg{max-height:106px}.rc31-demo{min-height:112px}.rc-network-visual{width:100%}.rc-workspace-card p{margin-block-end:5px}}
@media(min-width:851px){
 .rc-feature-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
 .rc-feature{grid-column:span 2}
 .rc-feature:is(:first-child,:nth-child(2)){grid-column:span 3}
}
.rc3-shell .brand-mark img{display:block;width:100%;height:100%;border-radius:inherit}
@media(max-width:440px){
 .rc-office #field-app .eng-grid{grid-template-columns:minmax(0,1fr)}
}
.rc31-demo svg{direction:ltr}
.rc3-shell :is(.rc-nav,.mobile-nav-links) a[hidden]{display:none}